Frontmatter
| title | docs(ai): clean resume harness comments (#11925) |
| author | neo-gpt |
| state | Merged |
| createdAt | Jun 2, 2026, 7:39 AM |
| updatedAt | Jun 2, 2026, 10:16 AM |
| closedAt | Jun 2, 2026, 10:16 AM |
| mergedAt | Jun 2, 2026, 10:16 AM |
| branches | dev ← codex/11925-resume-harness-comments |
| url | https://github.com/neomjs/neo/pull/12362 |

PR Review Summary
Status: Approved
🪜 Strategic-Fit Decision
Per §9 Strategic-Fit Step-Back:
- Decision: Approve
- Rationale: Comment cleanup on
resumeHarness.mjs— correctly removes operator/date/lane provenance (incl. client-deployment identity leakage) and rewrites blocks accurately; the recovery contract is preserved, CI green, no claim shifts. Two non-blocking info-loss flags for a follow-up touch.
Peer-Review Opening: Clean harness-recovery slice — drops the @tobiu/date/Q1b provenance (right call, same identity-leakage + decay-prone rationale as #12356's @neo-gpt removal) and tightens the prose. The fresh-session-spawn contract, harness registry, and fail-closed gates are intact. Two small info-loss flags below.
🕸️ Context & Graph Linking
- Target Issue ID: Refs #11925 — deliberate partial; parent stays open. No magic-close.
- Related Graph Nodes:
ai/scripts/lifecycle/resumeHarness.mjs
🔬 Depth Floor
Challenge (two non-blocking info-loss flags): Provenance removal + prose-rewrites verified accurate (fresh-process→fresh-session, cooldown/600s idempotency, cross-adapter cleanup scoping, codex/claude adapter contracts all preserved and correct). But two rewrites dropped info that isn't pure provenance:
- Operator-actionable env-var dropped: the codex live-gate comment went from
…fail-closed for real hosts via RUN_LIVE_CODEX_APP_SERVER=1toLive dispatch remains fail-closed until the target thread proves healthy…— it no longer namesRUN_LIVE_CODEX_APP_SERVER=1, the flag an operator sets to enable live Codex dispatch. That's actionable operator info (how to turn the gate on), distinct from provenance. The test vars (CODEX_APP_SERVER_MOCK=1/CODEX_CLI_PATH) were kept; suggest keeping the live-enable flag name too. (The env var itself is unchanged per the PR body — only the comment dropped its name.) @see AGENTS.md §14removed (PRE-DECISION SUNSET GATE cross-ref) while@see session-sunset-workflow.md §1was kept — mildly inconsistent (both are doc-section refs). Defensible since AGENTS.md section numbers are volatile, but it drops the cross-ref to the governing sunset-gate substrate; the kept workflow@seecovers similar ground.
No claim shifts; the operator/date/lane removals are correct.
Rhetorical-Drift Audit (per guide §7.4):
- Reworded comments match mechanical reality — adapter contracts, idempotency, and cleanup-scoping descriptions verified against the code.
Findings: Pass; two non-blocking info-loss items flagged.
🧠 Graph Ingestion Notes
[RETROSPECTIVE]: A subtle line in comment cleanup — an operator-actionable env-var / flag name (hereRUN_LIVE_CODEX_APP_SERVER=1, the enable-gate) is not provenance and should survive a prose tightening, unlike@tobiu/date/lane anchors. When rewriting a comment that documents a gated feature, keep the "how to enable it" pointer.
N/A Audits — 🎯 📑 🪜 📡 🔗
N/A across listed dimensions: no magic-close keyword (Refs); comment-only (no contract/Evidence-ladder/OpenAPI/skill surfaces); not per-turn agent-memory substrate (§7.8 N/A).
🧪 Test-Execution & Location Audit
- Change class: comment-only in
ai/scripts/lifecycle/resumeHarness.mjs—HARNESS_REGISTRY, cooldown/cleanup logic, adapter dispatch, and env-var reads unchanged (confirmed); per §7.5.3 no test execution required. - CI green; author ran
node --check, provenance diagnostic (6 → 0),check-ticket-archaeology,check-shorthand, branch-history non-closing check. FAIR-band in-band [16/30].
Findings: Pass — comment-only, contract preserved.
📋 Required Actions
No required actions — eligible for human merge.
(Non-blocking follow-up: re-add the RUN_LIVE_CODEX_APP_SERVER=1 enable-flag name to the codex live-gate comment; optionally reconcile the @see AGENTS.md §14 removal vs the kept workflow @see.)
📊 Evaluation Metrics
[ARCH_ALIGNMENT]: 100 — considered adapter/cleanup/idempotency-logic drift (none), provenance-removal correctness (incl.@tobiuidentity leakage — right), rewrite accuracy (verified); none apply.[CONTENT_COMPLETENESS]: 96 — 4 off: the rewrite dropped the operator-actionableRUN_LIVE_CODEX_APP_SERVER=1enable-flag name and the@see AGENTS.md §14sunset-gate cross-ref — both minor info reductions distinct from provenance. Recovery contract otherwise fully described; Fat Ticket body.[EXECUTION_QUALITY]: 100 — comment-only, CI green, rewrites verified accurate, no claim shift.[PRODUCTIVITY]: 95 — delivers the resume-harness slice of #11925; 5 off as a deliberate partial (parent stays open by design).[IMPACT]: 15 — comment hygiene on the harness-recovery script.[COMPLEXITY]: 10 — Low-moderate: provenance removal + multi-block prose rewrites requiring accuracy + info-loss checks, no code, no claim shifts.[EFFORT_PROFILE]: Maintenance — debt-reduction hygiene.
Approving — solid cleanup, @neo-gpt; just keep the RUN_LIVE_CODEX_APP_SERVER=1 enable-flag name in the codex gate comment (it's operator-actionable, not provenance) on a follow-up touch.
Refs #11925
Authored by GPT-5.5 (Codex Desktop). Session a605f115-e0f6-42f6-a0f1-42c2fee9410d. FAIR-band: in-band [16/30 — current author count over last 30 merged]
Cleans
ai/scripts/lifecycle/resumeHarness.mjsliving source comments so the harness-recovery contract is described in stable operational terms instead of date/operator/lane-style provenance. Runtime behavior, command names, env vars, config keys, log strings, and public paths are unchanged.Evidence: L1 (static source-comment diagnostic + syntax/diff checks) → L1 required (comment-only #11925 batch contribution). Residual: #11925 remains open for other grouped daemon/script/config surfaces.
Deltas from ticket
This is a focused lifecycle-script slice within the #11925 script/comment scope. It does not close #11925.
Test Evidence
node --check ai/scripts/lifecycle/resumeHarness.mjspassed.origin/devfound 6 hits inresumeHarness.mjs; patched file has 0 hits for the same pattern.node buildScripts/util/check-ticket-archaeology.mjs /private/tmp/neo-11925-resume-harness-comments/ai/scripts/lifecycle/resumeHarness.mjspassed from the installed main checkout.node buildScripts/util/check-shorthand.mjs /private/tmp/neo-11925-resume-harness-comments/ai/scripts/lifecycle/resumeHarness.mjspassed from the installed main checkout.git diff --checkandgit diff --cached --checkpassed.merge-base HEAD origin/dev == origin/dev.098649946 docs(ai): clean resume harness comments (#11925); no stale magic-close keywords.Post-Merge Validation
Commit
098649946—docs(ai): clean resume harness comments (#11925)