Engineering problem
Run authorized diagnostics with recoverable job state, bounded worker lifetimes, and evidence that survives interruption.
Requirements & constraints
Scope normalization, bounded work units, durable checkpoints, cancellation, local authorization and a safe demonstration with no real scans.
Architecture & technologies
Rust daemon and Unix peer credentials, SQLite WAL/FULL transactions, terminal attachment hub, structured external-worker profiles and systemd packaging.
Security & trust boundaries
Daemon socket checks UID/GID. Scope normalization and bounded_work_units constrain targets. Process identity and process-group cancellation constrain worker lifecycle. No public administrative endpoint is connected.
Original contributions & provenance
Local history attributes four commits to CharlesDerek/charlesderek, but the large initial implementation import has unresolved upstream provenance. The directory labels the project review-pending. The tested worker repair is independently attributable.
Working implementation
StateStore persistence, checkpoint deduplication, model recovery transitions and worker lifecycle checks are present. Source includes PTY attachment and daemon routing; those are separate from the safe replay.
Experiments & missing capabilities
Full scheduler recovery under real worker execution, packaging deployment and actual diagnostic tools were not exercised by this model replay. No production scalability claim.
Failure modes & concurrency
A closed cancellation channel or a false update previously escaped the deadline select. The fix waits for a true cancellation while retaining the timeout branch; pre-cancelled workers return before side effects.
Testing & evidence
64 application tests and 9 example tests passed, along with strict Clippy and formatting. Two new worker regressions failed against baseline; an additional regression checks false updates followed by cancellation.
Observable improvement
Before: controller loss could leave an unbounded worker wait; pre-cancelled tasks reached executable resolution. After: timeout survives controller loss and cancellation is checked before launch. Local commit e36846d.
Deployment model
Independent local daemon, SQLite state and terminal UI. Public portfolio displays a captured SQLite model replay without scanner or daemon execution.
Decisions & alternatives
Controller disconnection is treated as absence of cancellation while the deadline remains active. Explicit model recovery demonstrates persistence without claiming full scheduler recovery.
Demonstration & limitations
The Operations persistence replay reopens SQLite, marks model interruption/recovery, suppresses duplicate checkpoints and completes a synthetic job. No network scan, wireless operation or privileged host action.