LearnNewsExamplesConnect
Frontmatter
assignees[]
createdAtSep 3, 2026, 8:33 PM
updatedAtSep 3, 2026, 10:27 PM
githubUrlhttps://github.com/neomjs/neo/issues/18225
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 3, 2026, 10:27 PM

Nothing in the substrate asks whether a layer should exist

Closed v13.2.0/archive-v13-2-0-chunk-18 enhancementaiarchitecture
neo-opus-vega
neo-opus-vega commented on Sep 3, 2026, 8:33 PM

Operator-directed, 2026-09-03, after a day in which the engine gained ~950 net lines and consumers lost none.

Context

Live latest-open sweep: latest 12 open issues at 2026-09-03T18:35Z; no equivalent. Discussions swept (the substrate two of my own artifacts skipped today): nothing on prose or bloat rules; D#17782 is about the split runway, not this. Closed prior art #11890 codified why-first documentation — it asks for reasoning in comments and is the rule this one bounds, not a duplicate.

The Problem

Two gaps, both demonstrated today by me:

1. No rule asks whether a layer deserves to exist. §self_evolving_systems has the maintainer test ("no bloat?") and the Substrate Accretion Defense — but the latter governs substrate bytes, not engine code. Nothing says: before adding a layer, ask whether the layer beneath it should exist. Today that produced a change-class map whose sole itemFlags member is an operation that should not be an operation, and a 44-line guard I added to a file already under an open bloat Discussion (D#18150) — making a wrong shape louder rather than removing it. src/dashboard/dock/Workspace.mjs grew 3,895 → 4,331 the day after that Discussion was filed.

2. The volume rule stops at the PR body. §pr_diff_equals_pr_body already says "complete anchors, never volume… same intent in fewer words? Cut until yes" — and it is scoped to PR bodies and reviews. It did not stop me shipping 77 comment lines against 33 lines of code, with the same finding restated across class doc, method doc, spec doc, commit and PR body — five copies that rot separately.

The Fix

Two clauses, sited where the concern already lives rather than as a new section:

  1. §self_evolving_systems gains Challenge what deserves to exist — DELETE before EXTEND, with the operative test: a change that adds engine lines and removes no consumer lines has simplified nothing — name the deletion, or name why there is none.
  2. §pr_diff_equals_pr_body gains one clause extending its existing volume rule into source, with a mechanical check: if added comment lines exceed added code lines, cut until they do not.

Net +1,043 bytes. A first draft was 1,176 and duplicated §pr_diff_equals_pr_body wholesale; the redundant half was folded into the section that already owns volume.

Decision Record impact

none — bounds two existing rules, overturns neither. #11890's why-first contract still holds: this constrains volume and siting, not the presence of reasoning.

Acceptance Criteria

  • AC-1 §self_evolving_systems carries the DELETE-before-EXTEND clause including the adds-engine-lines/removes-no-consumer-lines test.
  • AC-2 §pr_diff_equals_pr_body carries the source-comment clause with the comment-lines-vs-code-lines check.
  • AC-3 AGENTS.md's resulting total is at or under the 24576-byte cap, evidenced by the substrate guard's headroom line — not by a delta. As first written this AC graded the change ("net delta under 1,100 bytes") and could pass while the file breached: the cap is on the total, and no delta can test it. Found by @neo-opus-grace in review of PR #18227, where the head sat 750 over with dev holding 2 bytes of headroom.
  • AC-4 Both clauses carry a retirement trigger, per the Substrate Accretion Defense.

Substrate Accretion Defense — retirement triggers

This PR adds bytes, so it owes triggers rather than a net reduction:

  • The DELETE-before-EXTEND clause retires when a merge-gate check reports engine-lines-added against consumer-lines-removed per PR, making the prose redundant.
  • The comment-ratio clause retires when a pre-commit hook measures added-comment-lines vs added-code-lines, alongside the existing check-ticket-archaeology, which already polices comment content and would be the natural host for comment volume.

Out of Scope

  • Building either mechanical check. The clauses are discipline until the hooks exist; the triggers say when they stop being needed.
  • #11890's why-first contract, and the learn/ guide standards.
  • The dock architecture itself — D#18150 and #18151 own that.

Avoided Traps

  • A new section. Both concerns already have owners; a third block competing with them is the accretion this ticket is about.
  • Restating §pr_diff_equals_pr_body. The first draft did, and was cut. The only genuinely new half is the mechanical check.
  • A rule with no exit. Both clauses name what makes them redundant.

Related

  • D#18150 — the 4,000-LOC dock Workspace Discussion this file kept growing after
  • #18151 — consumers re-deriving engine knowledge; the same shape one layer up
  • #11890 — why-first documentation, bounded rather than contradicted

Origin Session ID: e8ea32a2-b9a8-43ea-84ba-b83081ec4b3d

Retrieval Hint: "delete before extend — adds engine lines and removes no consumer lines has simplified nothing"