Repository navigation
feat(claude): add opt-in persisted-session nudger (#126) - #134
Conversation
OBenner
left a comment
There was a problem hiding this comment.
Final architecture review (arch) — ACCEPT (PR #134, HEAD 8aafee2).
Reviewed the ownership, process, proof, and nudger modules against the accepted design: cooperative N1 ownership (atomic wx lock, canonical transcript binding, no stale-lock stealing, explicit operator handoff), fail-closed preflight with re-check after async boundaries, N2 process-local tool allowlist with pinned CLI version, and the N4 durable check — parent-chain transcript verification with ino/dev same-file guards and the independent SQLite ACK as the final arbiter. The durable-check construction (host evidence correlated, never substituting authenticated state) is the reference pattern for future nudger-class delivery work.
Payload hygiene reuses the #104 identifier discipline; explicit v1 non-goals are recorded with return triggers. No wire/schema changes; verify green (120 files / 1071 tests + build). Ready for CTO final. (Verdict as COMMENT — self-approve unavailable from this account, per convention.)
8aafee2 to
b0dc622
Compare
Adds an opt-in Claude Code nudger owned by the relay. New committed pending messages can resume an existing, explicitly handed-off persisted session, read its inbox and acknowledge messages. Completion requires a fresh transcript marker, correlated tool results for every captured target and independent SQLite ACK state; exit zero alone does not count.
The cooperative transcript lock excludes other participating launchers, with a closed-session/process preflight. Raw concurrent manual resume remains unsupported and can fork transcript visibility. Configuration is local and disabled by default. Permissions apply only to the child inbox/ack calls; prompts contain identifiers only. Attempts are reserved in a separate metadata ledger, with shared cooldown/budget constants and no blind retry after uncertain outcomes. No polling or startup backfill is introduced.
Validation: after rebase onto merged main
38f9ff9e, fullpnpm verifypassed (125 files / 1134 tests, typecheck, format, imports, build). Includes 24 focused nudger cases and two composition regressions proving both webhook/Claude creation observers, replay dedup, webhook ACK and both shutdown paths, including a throwing webhook observer. Dev, architecture and security reviews approved; the dev lock-release nit is addressed with a regression test. Live acceptance is pending the unified auth-v2 re-init window; this PR does not modify the preserved Claude stand or claim live UI refresh. See the included design for the conservative process scan, 100-target/4-MiB caps, ownership/recovery procedure and exact limitations.Refs #126. Merge remains with CTO; live acceptance is a separate gate.