rdmbair15m5-changelog-20260923-0830-boot-resume-engine-delivery
rdmbair15m5-changelog-20260923-0830-boot-resume-engine-delivery
Delivered native Boot Resume Engine in TyrellCore (FEAT-20260831-14 / EPIC-20260831-01), completing the core implementation for post-reboot recovery, candidate evaluation, pruning rules, and identity collision detection per PRD FR-1..FR-7.
1. Scope & Hosts Touched
- Hosts:
rdmbair15m5(worker),rdmsm4x(canonical hub & ticket authority), all peer spokes via mail bus. - Repositories & Paths:
apps/Tyrell:Sources/TyrellCore/Resume/BootModels.swiftSources/TyrellCore/Resume/BootDetector.swiftSources/TyrellCore/Resume/PinnedSessionReader.swiftSources/TyrellCore/Resume/BootResumeEngine.swiftTests/TyrellCoreTests/BootResumeEngineTests.swift
issues:resolved/FEAT-20260831-14-boot-resume-engine-detect-reboot-join-se.md
2. Actions & Changes Executed
A. FEAT-20260831-14: Boot Resume Engine Core Delivery
- Boot Detection (
BootDetector.swift):- Implemented native Darwin
sysctlbyname("kern.boottime", ...)evaluation. - Added atomic persistent boot receipt storage
(
boot_receipt.json) trackingbootEpoch,lastBootEpoch, andisNewBoot.
- Implemented native Darwin
- Pinned Session Ingestion
(
PinnedSessionReader.swift):- Implemented parsing for legacy and modern
PINNED-SESSION-*andpins.d/*.pinfiles across~/dev/fleet/ops/resume/pins.d/,~/.claude/resume/, and repo roots. - Resolves multi-tier pin pointer links (
pin_file: ...), vendor classification (.claude,.codex,.agy,.gemini), priority weights, and enablement states.
- Implemented parsing for legacy and modern
- Candidate Evaluation & Pruning
(
BootResumeEngine.swift):- Unified join across pinned sessions,
SessionRecord(registry transcripts), live processes (AgentSession), and active tickets. - Implemented deterministic pruning rules:
.transcriptMissing: transcript file absent on disk..sessionLive: process actively running or transcript mtime < 300s..ticketResolved: ticket statusresolvedorclosed..claimLapsed: lease expired beyond threshold.
- Unified join across pinned sessions,
- Identity Collision Detection (
FR-6):- Detects duplicate candidates sharing the same
sessionUUIDor overlapping ticket claims and flags them with typed.duplicateeligibility.
- Detects duplicate candidates sharing the same
- Ranking & Cap Enforcement (
FR-4&FR-5):- Ranks blocked tickets as Rank 1, in-progress tickets by heartbeat recency as Rank 2, and idle pins as Rank 3.
- Automatically admits top
candidates into
resumedand withholds remainder inwithheld.
- Test Suite
(
BootResumeEngineTests.swift):- Delivered 8 comprehensive test cases validating boot evaluation, pin parsing, pruning rules, collision detection, and cap enforcement.
- Verified 100% assertions passing across all targets.
3. Verification Evidence
swift test --package-path apps/Tyrell --filter BootResumeEngineTests:Test Suite 'BootResumeEngineTests' started at 2026-09-23 08:28:21.655. Test Case '-[TyrellCoreTests.BootResumeEngineTests testBootDetectorNewBootVsSameBoot]' passed (0.005 seconds). Test Case '-[TyrellCoreTests.BootResumeEngineTests testIdentityCollisionDetection]' passed (0.004 seconds). Test Case '-[TyrellCoreTests.BootResumeEngineTests testPinnedSessionReaderParsing]' passed (0.002 seconds). Test Case '-[TyrellCoreTests.BootResumeEngineTests testPinnedSessionReaderVendorResolution]' passed (0.009 seconds). Test Case '-[TyrellCoreTests.BootResumeEngineTests testPruningLiveSessionByRecentMTime]' passed (0.001 seconds). Test Case '-[TyrellCoreTests.BootResumeEngineTests testPruningMissingTranscript]' passed (0.001 seconds). Test Case '-[TyrellCoreTests.BootResumeEngineTests testPruningResolvedTicket]' passed (0.001 seconds). Test Case '-[TyrellCoreTests.BootResumeEngineTests testRankingAndCapEnforcement]' passed (0.005 seconds). Test Suite 'BootResumeEngineTests' passed at 2026-09-23 08:28:21.685. 8 passed, 0 failed.- Tri-Remote Parity:
origin(git.ecs0.net:git/apps/Tyrell.git) @7b0e6a0.backup(github.com/richhdoty/rdmsm4x-dev-apps-tyrell.git) @7b0e6a0.- Canonical
rdmsm4x:~/dev/apps/Tyrellfast-forwarded to7b0e6a0.
- Ticket Resolution:
ssh rdmsm4x "~/dev/issues/bin/ticket show FEAT-20260831-14"statusresolved(702e2a6). - Fleet Bus: Broadcasted
20260923-082950-570ACA4A.
4. Rollback & Remediation
- Code changes are purely additive under
Sources/TyrellCore/Resume/andTests/TyrellCoreTests/BootResumeEngineTests.swift. - Ticket resolution can be reopened via
ticket status FEAT-20260831-14 in-progressif further UI integration demands modifications.