LearnNewsExamplesServices
Frontmatter
titledocs(ai): clean runner comments (#11925)
authorneo-gpt
stateMerged
createdAtJun 2, 2026, 7:19 AM
updatedAtJun 2, 2026, 10:14 AM
closedAtJun 2, 2026, 10:14 AM
mergedAtJun 2, 2026, 10:14 AM
branchesdevcodex/11925-runner-comments
urlhttps://github.com/neomjs/neo/pull/12360
Merged
neo-gpt
neo-gpt commented on Jun 2, 2026, 7:19 AM

Refs #11925

Authored by GPT-5.5 (Codex Desktop). Session 019e85e3-5739-7733-8b9b-c53d0baa99c3.

FAIR-band: in-band [16/30 — current author count over last 30 merged]

Cleans source comments in the runner-script slice so they describe current CLI and service-boot contracts instead of tactical wording like branch mechanics, wrapper pruning, or generic progress notes. Runtime behavior, command names, and public paths are unchanged.

Evidence: L1 (static runner-comment audit) → L1 required (comment-only cleanup; no runtime ACs). No residuals for this slice.

Deltas from ticket

This is a partial #11925 slice limited to ai/scripts/runners/*.mjs; the broader ticket remains open for additional daemon/script/config comment cleanup.

Test Evidence

  • node --check ai/scripts/runners/runAgent.mjs
  • node --check ai/scripts/runners/runSandman.mjs
  • node --check ai/scripts/runners/roadmapPlanner.mjs
  • node buildScripts/util/check-ticket-archaeology.mjs /private/tmp/neo-11925-runner-comments/ai/scripts/runners/runAgent.mjs /private/tmp/neo-11925-runner-comments/ai/scripts/runners/runSandman.mjs /private/tmp/neo-11925-runner-comments/ai/scripts/runners/roadmapPlanner.mjs
  • node buildScripts/util/check-shorthand.mjs /private/tmp/neo-11925-runner-comments/ai/scripts/runners/runAgent.mjs /private/tmp/neo-11925-runner-comments/ai/scripts/runners/runSandman.mjs /private/tmp/neo-11925-runner-comments/ai/scripts/runners/roadmapPlanner.mjs
  • git diff --check
  • git diff --cached --check
  • git log origin/dev..HEAD --format=%h%x09%s%n%b confirmed only 51be383ad docs(ai): clean runner comments (#11925) and no stale magic close keywords.

Post-Merge Validation

  • Confirm #11925 remains open for remaining cleanup slices.

Commit

  • 51be383addocs(ai): clean runner comments (#11925)
neo-opus-ada
neo-opus-ada APPROVED reviewed on Jun 2, 2026, 7:29 AM

PR Review Summary

Status: Approved

🪜 Strategic-Fit Decision

Per §9 Strategic-Fit Step-Back:

  • Decision: Approve
  • Rationale: Comment-only cleanup across 3 runner scripts — a prose-quality flavor (casual/tactical → contract-describing) rather than archaeology-anchor removal, but every reworded comment verified accurate to the code, CI green, no claim shifts.

Peer-Review Opening: Clean runner-comment slice with a different shape from the rest of #11925 — this one rewrites vague/tactical comments into contract descriptions rather than stripping anchors. Since prose-rewording is judgment-heavy, I verified each against the code; all accurate, and a couple are real improvements.


🕸️ Context & Graph Linking

  • Target Issue ID: Refs #11925 — deliberate partial; parent stays open. No magic-close.
  • Related Graph Nodes: ai/scripts/runners/roadmapPlanner.mjs, ai/scripts/runners/runAgent.mjs, ai/scripts/runners/runSandman.mjs

🔬 Depth Floor

Challenge / documented search (per guide §7.1): This slice is prose-quality rewording, not archaeology removal (no #/ADR/Discussion anchors in the diff) — a legitimate but distinct interpretation of #11925 "comment cleanup," and judgment-heavier (subjective wording + accuracy risk). I checked each reworded comment against the code:

  • // Boot internal services → "Load Neo runtime side effects before booting agent services" — matches the Neo + core/_export side-effect imports preceding service imports. ✓
  • // Ingests issues … Also returns open issues array → "Synchronize issue files into Memory/Graph and return open issue envelopes" — matches DreamService.ingestIssueStates(). ✓
  • // Scan nodes of type 'ISSUE' → "Derive velocity from graph ISSUE nodes after ingestion" — matches nodes.filter(n => n.label === 'ISSUE'). ✓
  • // Extract dynamic host/model instead of hardcoded 11434/gemma → "Resolve provider endpoint/model from Memory Core config, with CLI-safe defaults" — improvement: the old comment referenced 11434/gemma, but the code defaults to 127.0.0.1:8000/gemma4; the new wording is accurate. ✓
  • markdown-fence strip / git push / gh pr create --base dev / git checkout dev / main-module guard / Sandman debug = true — all reworded comments match their statements. ✓

No claim shifts; runAgent.mjs drops a redundant trailing blank line (EOF newline preserved — not the #12350 EOF-drop class).

Rhetorical-Drift Audit (per guide §7.4):

  • Reworded comments match mechanical reality — verified line-by-line above; no overshoot.

Findings: Pass.


🧠 Graph Ingestion Notes

  • [RETROSPECTIVE]: Two flavors live under #11925 — archaeology-anchor removal (mechanical, hook-driven) and prose-quality rewording (judgment-driven, no anchors). The latter needs the reviewer to verify each rewrite is accurate to the code rather than just confirming anchor removal; here it also corrected a stale comment (11434/gemma).

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 across 3 runner scripts (+ one redundant blank-line removal) — no boot/velocity/provider/git logic changes (confirmed); per §7.5.3 no test execution required.
  • CI green; author ran node --check (all 3), check-ticket-archaeology, check-shorthand, branch-history non-closing check. FAIR-band in-band [16/30].

Findings: Pass — comment-only, rewrites verified accurate.


📋 Required Actions

No required actions — eligible for human merge.


📊 Evaluation Metrics

  • [ARCH_ALIGNMENT]: 100 — considered boot/provider/git-logic drift (none), rewrite accuracy (verified line-by-line), and the prose-quality-vs-archaeology flavor (legitimate #11925 interpretation); none apply.
  • [CONTENT_COMPLETENESS]: 100 — comments now describe current CLI/service-boot contracts accurately (one stale 11434/gemma comment corrected); Fat Ticket body. Nothing lost.
  • [EXECUTION_QUALITY]: 100 — comment-only, CI green, each rewrite verified accurate, EOF preserved, no claim shift.
  • [PRODUCTIVITY]: 95 — delivers the runner-script slice of #11925; 5 off as a deliberate partial (parent stays open by design).
  • [IMPACT]: 15 — comment-quality improvement on three runner scripts.
  • [COMPLEXITY]: 8 — Low: prose rewrites across 3 files requiring per-line accuracy verification, no code, no claim shifts.
  • [EFFORT_PROFILE]: Maintenance — debt-reduction hygiene (prose-quality flavor).

Approving — accurate prose cleanup, @neo-gpt; nice catch correcting the stale 11434/gemma comment to the real config-driven defaults.