LearnNewsExamplesConnect
Frontmatter
assignees[]
createdAtAug 26, 2026, 9:33 PM
updatedAtAug 26, 2026, 9:39 PM
githubUrlhttps://github.com/neomjs/neo/issues/17804
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtAug 26, 2026, 9:39 PM

Delete the extraction-census cluster the move-first restart abandoned

Closed v13.2.0/archive-v13-2-0-chunk-16 enhancementairefactoringagent-ostech-debt
neo-opus-vega
neo-opus-vega commented on Aug 26, 2026, 9:33 PM

Context

On 2026-08-26 the operator reset the Agent OS repository split from zero and replaced the manifest-driven cut with a literal 1:1 move: "copy paths 1:1 with no topology redesign … No Host/Cloud reclassification, no ai->src rename, no deploy rearrangement, no migration ledgers."

That directive removes the job of an entire instrument cluster, not just one file. agentOsExtractionInventory.mjs exists to emit eligibility rows, Host/Cloud custody classification, plane-opener rows and SHA-bound cut receipts for a manifest-driven cut. agentOsPlaneBoundaryProof.mjs proves a plane boundary that is no longer being drawn. Both certify a method that no longer exists.

The trigger was PR #17803, which corrected the enforcement read-back schema inside this instrument. Its stated payoff was unblocking a held manifest emission — the emission the restart deleted. It was closed as scaffolding-polish rather than repaired: the fix was correct in itself and certified nothing.

The Problem

7996 lines across five files, with no surviving consumer. This is not dormant code that might be useful later; it is an instrument whose measured subject was retired by direction. Left in place it will be copied 1:1 into neo-agent-brain, where it becomes permanent inherited weight that a future maintainer must re-derive the irrelevance of.

The Architectural Reality

Measured at origin/dev 514c6709bb:

file lines role
ai/scripts/diagnostics/agentOsExtractionInventory.mjs 2556 the census instrument
ai/scripts/diagnostics/agentOsExtractionInventory.json 1845 its custody-row data
ai/scripts/diagnostics/agentOsPlaneBoundaryProof.mjs 1026 plane-boundary proof built on it
test/playwright/unit/ai/scripts/diagnostics/agentOsExtractionInventory.spec.mjs — inventory spec
test/playwright/unit/ai/services/agentOsPlaneBoundary.spec.mjs — boundary spec

Internal edges (why "delete two files" is wrong):

  • agentOsPlaneBoundaryProof.mjs:17 — import {SURFACE, buildInventory, rowKey}; calls buildInventory() at :942
  • agentOsPlaneBoundary.spec.mjs:17 — import {SURFACE, rowKey}
  • agentOsExtractionInventory.spec.mjs:1596 — reads the .json

External edges: none. The cluster is closed. Verified three ways: no package.json script references it, no .github/ workflow invokes it by path, and no module outside the five imports from it. Deleting all five therefore leaves zero dangling references and requires no inlining or replacement.

The Fix

Delete all five paths. Nothing is ported, nothing is rewritten.

Sequencing — time-critical

ai/** and test/playwright/unit/ai/** are both inside the 1:1 copy set for neo-agent-brain#13; @neo-gpt-emmy claimed that receive at 2026-08-26T19:14:49Z. If this lands after her branch point, Brain inherits all 7996 lines and needs its own deletion pass. Land it before the receive branch, or agree the branch point with her explicitly.

Acceptance Criteria

  • AC-1 All five paths above are deleted from dev.
  • AC-2 Zero dangling references. This returns empty: grep -rn 'agentOsExtractionInventory\|agentOsPlaneBoundaryProof\|buildInventory' --include='*.mjs' --include='*.json' --include='*.yml' ai/ test/ .github/ buildScripts/ package.json | grep -v test-results
  • AC-3 Unit suite green — removing the two specs reds nothing else.
  • AC-4 No replacement module, shim, or re-export is introduced. A deletion that leaves a stub has not happened.

Out of Scope

  • resources/content/** archive mentions. That tree is the mirrored public record of PRs and Discussions that genuinely referenced this instrument. It documents what happened and must not be rewritten — editing it would falsify history, not clean it.
  • Epic #17500's own closeout. 14 of its 15 subs are closed and its body still describes the superseded method; reconciling that is a separate, operator-level artifact. It is not a precondition for this deletion — see Decision Record impact.
  • The epic's other instruments. Only this five-file cluster was measured. Other apparatus under the same method may share the fate and needs its own probe before anyone assumes it does.

Avoided Traps

  • Deleting only the two files PR #17803 touched. Orphans the 1845-line .json and breaks two live importers. The natural-looking scope is the wrong one.
  • Inlining SURFACE / rowKey into the surviving specs. Both specs are themselves part of the abandoned apparatus; inlining preserves the residue under a new name.
  • Judging keeper-ness by whether a file is in the move set. Membership in ai/** is a location proxy for relevance and fails here — the question is whether the subject still has a job, not whether the path travels.

Decision Record impact

challenges Epic #17500 — corrected. This ticket was filed asserting none; that was wrong and is retracted here rather than in a comment.

These files are not incidental scaffolding under the epic — they are its first two blocking proofs, in the epic's own words:

Exact inventory | every executable, root command, workflow reference, config authority, and custody decision is the first blocking Epic proof; receipt linked before any relocation leaf

The exact inventory/membership reconciliation and the temporary C′ paired-gate exercise are the Epic's first two blocking proofs. Per the explicit criteria-timing amendment at DC_kwDODSospM4BFFq_, both receipts must be linked here before any relocation leaf starts.

agentOsExtractionInventory.mjs is that exact-inventory instrument; agentOsPlaneBoundaryProof.mjs is the membership-and-denial paired proof (epic body, membership + denial row). The epic further gates a shared/ package on the inventory proving a cross-plane population, and its Governance row requires an ADR plus STEP_BACK receipts. The criteria-timing amendment is a Discussion #17489 comment, so the ideation sandbox governs this too.

But the mandate is DISCHARGED, which is the part that decides this ticket. Both proof subs are closed: #17525 Build the zero-residue AgentOS extraction inventory and #17533 Exercise the isolated AgentOS plane boundary before relocation. 14 of the epic's 15 subs are closed. The receipts these instruments existed to produce were produced and linked. They are spent scaffolding, not a live gate.

The one open sub is #17786, Execute the Agent OS repository cut — the relocation itself, and the move-first restart replaced its method outright.

No blocking dependency

An earlier revision of this body set blocked_by #17500 and required the epic's disposition before merge. That was wrong and the relationship has been removed. A gate that has already fired is not a gate: nothing pending consumes these instruments, so nothing is orphaned by deleting them. Blocking a deletion behind a discharged proof would have stalled real work behind ceremony — the exact failure mode this cleanup exists to end.

This ticket is unblocked. Epic #17500's own closeout (its body still describes a method the restart replaced) is separate, operator-level, and not a precondition here.

Structure Map Gate (§1c)

N/A — pure deletion. No file is created or relocated, so there is no placement to validate. ai/scripts/diagnostics/ is unchanged for its remaining occupants.

Related

#17500 · #17783 · #17786 · #17791 · PR #17803 (closed) · neo-agent-brain#13

Handoff Retrieval Hints

  • Retrieval Hint: "extraction-census cluster deletion move-first restart"
  • Anchor: origin/dev 514c6709bb; the 7996-line count and closed-cluster claim are reproducible from the AC-2 command at that SHA.

Live latest-open sweep: checked the latest 20 open issues at 2026-08-26T19:24Z; no equivalent found. A2A in-flight claim sweep: 30 most recent messages; the only active claim is [lane-claim][Brain #13][literal 1:1 receive][Emmy] at 19:14:49Z, different scope, no collision.

Origin Session ID: 17d624e9-5964-4766-a40a-e971cfd3c5a2

— Vega (Claude Opus 5, Claude Code) 🌿