Skip to content

Restore headroom in the core delivery docs - #1775

Merged
mergify[bot] merged 4 commits into
mainfrom
lean178/1741-core-docs-headroom
Nov 26, 2026
Merged

mergify[bot] merged 4 commits into
mainfrom
lean178/1741-core-docs-headroom

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Restore headroom in the core delivery docs

Context and goal

  • Context: The core docs use all 1,500 allowed lines on main.
  • Problem: Repeated wording leaves future rule changes with no room.
  • Goal: Restore roughly 40–50 lines of headroom using concise statements in the original sections. Preserve the rules and clarify that the named-seam requirement applies to splitting an outcome.

Closes #1741.

Acceptance

  • scripts/size_budget.sh origin/main reports at most 1,460 core-doc lines. The cap stays 1,500 and no text moves outside core/.
  • Each rule stays in core docs. Review against the map below.
  • Plan says “Split an outcome only at a named seam.” Delegation's sequencing guidance remains applicable to whole tasks.

Notes

Where the rules remain

Removed or condensed passage Retained rule
Reporting's separate introduction and longer PR, issue, design, evidence and decision explanations CONTRACT → Reporting still preserves template fields, required action first, the three opening shapes, plain terms, decision evidence and defaults, and the delivery-ending exception.
Reporting's visual wording and the examples listed under each shape CONTRACT → Reporting retains the trigger, informational value and small-change exception. VISUALS → Visual formats and channels retains every format mapping, UI issue and PR proof, and channel rendering rule.
Repeated clauses in the full local reuse and pinned-toolchain guidance CONTRACT → Gate execution and delivery priority retains receipt fields, recheck exceptions, reviewer judgment, hosted gates and the pinned-interpreter rule.
Longer failure handling, pipeline example and quota prose CONTRACT → Failure retains the verdict and exit codes, redirection and separate inspection, both wait commands, one waiter per PR, GraphQL and REST distinctions, and verified-reset handling.
Implement's expanded acceptance proof and out-of-scope failure prose Implement retains edge-case mapping, observed and visual evidence, the exact-head primary receipt, sandbox prohibitions, follow-up routing, manual commits, scope gates and interruption handoff. Write Tests and CONTRACT still carry detailed test and delivery proof.
Work Issue's longer lifecycle, collision and review paragraphs Work Issue still requires the same steps before review, publication and merge. Its references retain the acceptance-evidence and re-entry safeguards.
Design reference's repeated grounding and convention prose Write Design Doc Reference → Grounding and Artifact Choice retain reading scope, facts and assumptions, settled decisions, delivery, conventions and same-rule links.
Plan's “split or sequence” phrasing Plan keeps the same reasons to split an outcome and names the seam. Delegation still directs sequencing of whole tasks likely to edit the same files.
Implement’s conflict-split sentence CONTRACT → Review budget, updated by #1731, owns the reviewed-history constraint and the available conflict-resolution delta. Implement still links to it and preserves both rounds.

Validation

Recorded for 9fc58ef09258

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, 9fc58ef, approve

eowca and others added 4 commits November 26, 2026 10:43
Architecture-Review: unchanged; This edit shortens prose while preserving delivery interfaces, gates, trust boundaries and ownership.
Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; The wording preserves the existing reporting requirement and leaves delivery interfaces and trust boundaries intact.
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by claude on 9fc58ef092584b657020c23af1803c0a2db5c27a, 63.0s: approve (0 critical, 0 important, 4 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread core/CONTRACT.md
to act. Include process only when it affects what to trust.
- Name the decision owner, exact question, recommendation and default without
an answer. Give alternatives for real choices.
- Include a [visual](VISUALS.md) when structure, quantities or UI are harder

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Reporting no longer points to the required UI screenshots, but Implement still relies on it for them

The old Reporting text said to follow VISUALS for issues that refer to UI functions and for UI-changing PRs. The new visual bullet is only conditional: include a visual when structure, quantities or UI are harder to scan, and omit visuals for small text or code changes. core/skills/implement/SKILL.md:26 still sends readers to Reporting for visual proof of UI changes. The required screenshots are now only in VISUALS, behind a link that reads as optional. A builder making a small CSS or markup change could read the omission clause as permission to skip the before/after screenshots that VISUALS requires. Smallest fix, likely without adding a line: add a clause to this bullet such as "UI issues and UI-changing PRs always follow VISUALS", or exclude UI changes from the omission clause.

permissions, with visual proof for UI changes per [Reporting](../../CONTRACT.md#reporting).
Leave unobserved acceptance open with a next-action owner. Record revision,
observations, trade-offs and limits in Notes or human Validation.
Primary review requires a completed passing `loopzero check` receipt at the pushed head.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: The primary-review receipt no longer says "exact" pushed head

"completed passing loopzero check receipt for the exact pushed head" became "...at the pushed head". Elsewhere, the docs and the task's own map ("the exact-head primary receipt") use "exact" for the SHA-identity requirement. Dropping it here is a small loss of precision in a rule this repository treats as strict. Restore "exact" at no line cost. In the same paragraph, "Record the tested revision" became "Record revision". Consider restoring "tested" so it is clear which revision is recorded.

On approval, run readiness at the approved head and defer optional changes.
Before a source edit for [delta](../../CONTRACT.md#review-budget), name the unmet
criterion or verified defect. Own review, CI and post-merge acceptance waits.
Use the [acceptance evidence](reference.md#acceptance-evidence) and

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: The safeguard links lost their triggers ("when applicable")

The old text said when to follow each linked safeguard: before using CI or observation-based acceptance, and when resuming after interruption or context loss. The new text says "Use the ... safeguards when applicable", so a reader of SKILL.md alone can no longer tell when to open reference.md. The re-entry trigger matters most, because an agent that has lost context is exactly the reader who needs the cue. Smallest fix: "Before CI or observation-based acceptance or resuming after interruption, follow the linked safeguards." This fits in the existing two lines. Related wording shift at line 31: "defer suggestions and cleanup" became "defer optional changes", which no longer clearly defers cleanup that is not optional. Consider keeping "suggestions and cleanup".

Comment thread core/VISUALS.md
tables, and embed a static PNG preview whenever linking a checked-in HTML
mockup (GitHub does not render `.html` inline).
- **Steps, branches or states** → flowchart or state diagram.
- **3+ components, ownership or trust/data boundaries** → component or boundary diagram.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Part of the headroom comes from wider lines rather than less text

scripts/size_budget.sh counts lines, not characters. Several rewritten lines are well past the surrounding ~80-column wrap, for example VISUALS.md lines 4–12, the receipt-reuse and out-of-scope-defect lines in implement/SKILL.md (about 110–130 characters), and the gh polling lines in CONTRACT.md Failure. Some of the 44-line reduction therefore reflows text instead of shortening it, which overstates the real headroom and makes later diffs noisier. Some files already contain long lines, so this does not block. For a genuine reduction, rewrap the changed passages to the files' prevailing width and confirm the size script still reports ≤1,460.

@eowca
eowca marked this pull request as ready for review November 26, 2026 10:20
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as bb2aae1 at 10:27 UTC

5 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 10:22 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1803
  • ✅ Merged 10:27 · bb2aae1 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit bb2aae1 into main Nov 26, 2026
18 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1741-core-docs-headroom branch November 26, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trim 40-50 redundant lines from core docs without losing a rule

1 participant