Skip to content

Archive add-worker-input-budget: promote the bounded worker input budget onto doc-health - #1258

Merged
brettheap merged 7 commits into
mainfrom
archive/add-worker-input-budget
Oct 7, 2026
Merged

brettheap merged 7 commits into
mainfrom
archive/add-worker-input-budget

Conversation

@brettheap

@brettheap brettheap commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1

What this is

This archives add-worker-input-budget. Brett Heap gave the archive word in session to lane openxfactory-1, verbatim "archive add-worker-input-budget after it lands" (2026-10-06). It is RULED in opensoft/brett-wip lanes/log/openxfactory-1.md at 2026-10-06T14:24:52Z, commit f18c337b, against openspec/changes/add-worker-input-budget.

This pull request lands as a MERGE COMMIT, never a squash, inside a Rule 6 landing window, because it touches openspec/changes/. The archive directory is named for the UTC day of the archive act, 2026-10-06. archive-date-vs-commit compares that name with the UTC committer date of the commit that first added the directory. A merge commit keeps that commit. A squash would replace it with a commit dated at landing.

Realization evidence

code_surface: is non-empty: the packers and their record live here, and the two child workflows live in opensoft/xFactory. Under release-realization, the packet therefore archives on merged-plus-green realization evidence. The packet's own tasks.md Group 4 records it.

leg merged green
packers and record, #1137 9da52e318aa7662efa57b750bef3dc1992ff6332, 2026-09-22T03:45:21Z pytest-suite success on main at 9da52e31 itself, run 35684322745
child workflows, opensoft/xFactory#481 b2479b6e4d9a6bccb8cdf5e2b39417257dc3f5c5, 2026-09-22T03:45:36Z validate success at head 90311333; no check on the merge commit failed
aggregation pin-sync, opensoft/xFactory#483 9ecdb551, 2026-09-22T03:58:45Z it put the packer under the nightly
first green nightly (task 4.3) opensoft/xFactory run 35947804907, 2026-09-24 analysis child 35948587830 passed the input-size guard at 1,899,236 of 1,900,000 bytes and returned findings; cataloger child 35948591376 succeeded

The archive act

It went through the governed wrapper, never a bare openspec archive:

TZ=UTC python3 scripts/proposal-support.py . archive add-worker-input-budget --yes

The wrapper exited 0. It reported:

  • "ORIGIN RETAINED add-worker-input-budget (declaration unchanged since the ratifying commit 3cec62f)";
  • "Applying changes to openspec/specs/doc-health/spec.md: + 1 added, ~ 1 modified";
  • "Totals: + 1, ~ 1, - 0, → 0";
  • "archived as '2026-10-06-add-worker-input-budget'".

It ran over the content-addressed @fission-ai/[email protected] pin.

The promotion

Each block was taken from the archived delta and from canon by its heading, and hashed.

block canon before canon after = archived delta
MODIFIED Sweep sequencing and snapshot consistency 875 B, 2 scenarios 1,773 B, 3 scenarios, sha256 8efe2d94bfa469d5…
ADDED Bounded worker input budget absent 3,595 B, 6 scenarios, sha256 3533488d999d93d5…
  • Requirements go from 43 to 44, and scenarios from 260 to 267.
  • The preamble and the other 42 requirement blocks are byte-identical.
  • canon --numstat reads +65 -2.

The commits

  1. The archive act.
    • The five packet files move as R100 renames, and canon doc-health takes the delta.
    • The README OpenSpec Records bullet moves from Active to the head of Archived.
    • The modified-block-currency self-gate's one _LEDGER_SUBJECTS row for this block retires on its own stated condition. That leaves 13 literal entries, 12 unique.
  2. The carry-over topic. ideation/staging/doc-health-sweep-carry-over/ said this packet was "still ACTIVE, not archived". Its conflict clause now records the archive. This one bullet is the whole edit.
  3. The ledger row and the PR number. validate-sequenced-after.py . --seed-ledger --moved-by '#1258' flips this change's row to archived, dated 2026-10-06. The README bullet's PR marker now names Archive add-worker-input-budget: promote the bounded worker input budget onto doc-health #1258.

Gates at this head

Each gate was run locally in a full clone named openxFactory, and a tree of main was measured the same way in a second clone of the same kind. The validator and doc-health rows compare this head, 9d83dd95, with main at 0992369a. This head is the archive commits plus main 0992369a merged in, plus the staging-index answer to Copilot. The two pytest rows were run before the last two commits. They compare be6d4a61, which is the archive commits plus main 8c1eeae1 and so carries C2 (#1256), with main at 3cec62fd. Every failing test is the same on both sides, so C2 moved no test result. #1255 touches only openspec/changes/prefer-triad-project-shape/. It adds one doc-health warning, which appears on both sides at 0992369a. CI's pytest-suite runs the whole suite at this head, with the submodules a local clone lacks.

gate main exit this head exit this head, summary
cli-pin-all-strict 0 0 Totals: 112 passed, 1 failed (113 items) / OK openspec-cli-pin: @fission-ai/[email protected] verified against its content address; every target validated --strict with 0 UNDISPOSITIONED failures. THIS IS NOT A CLEAN TREE: 1 finding(s) are ACCEPTED EXCEPTIONS, named above.
proposal-support-verify 0 0 proposal support verification ok
code-surface 0 0 code_surface validation passed (every active declaration's head is admitted, and every identifier it names is carried by the estate inventory).
target-release 0 0 target_release validation passed (every active declaration is admitted).
scope-globs 0 0 scope_globs validation passed (all active changes conform).
sequenced-after 0 0 sequenced_after validation passed (46 active changes, 19 declaring the field). / archive-date agreement passed (no archived row's moved_on predates its directory). / archive-date-vs-commit agreement passed (every archived directory is named for the UTC date of the commit that added it, or is disposi
sequenced-after-ledger-diff 0 0 per-change sweep ledger consistent with the corpus (232 rows).
former-id-arrival 0 0 former-id arrival gate passed (every packet-directory move in range is a draft's, an archive relocation, or declared).
release-tag-gate 0 0 the release-tag obligation is unaffected by this pull request and is not evaluated against it
doc-health 0 0 Findings: 31 critical, 22 error, 69 warning, 19 info. New regressions vs previous report: 0.
pytest-subset 1 1 7 failed, 3581 passed, 3 skipped, 7 warnings, 365 subtests passed in 1059.73s (0:17:39)
pytest-full 1 1 163 failed, 7091 passed, 84 skipped, 338 deselected, 9 warnings, 77 errors, 595 subtests passed in 2451.11s (0:40:51)
  • doc-health: 1 finding line(s) leave and 0 arrive against main.
    • leaves: [info] openxFactory:openspec/changes/add-worker-input-budget/specs/doc-health/spec.md
  • pytest, the ratification record's subset: 7 failing or erroring at this head and the SAME 7 on main, so this head adds none. Both local clones lack what CI sets up first: the openXwallet, openDox and openXdox submodules, the hermes-runtime lockfile install and the pinned decision core.
  • pytest, the whole suite: 237 failing or erroring at this head and the SAME 237 on main, so this head adds none. Both local clones lack what CI sets up first: the openXwallet, openDox and openXdox submodules, the hermes-runtime lockfile install and the pinned decision core.

merge-master-approval (advisory)

A local rehearsal of its step 8 at the pinned decision core fe9a6f5b reads stage floor_complete. This head touches 1 floored path(s) (openspec/specs/doc-health/spec.md), removes or renames none (0 caused by this candidate), and leaves 0 uncovered. Covered-pending stands at 0 against a tolerance of 3. Touching a floored path is reported as a PERMANENTLY HUMAN-ONLY path, not refused. It is not required by any ruleset on main. The pull request's head ref is not an enrolled envelope candidate, so the envelope step reaches skip and nothing is approved autonomously; the human gate decides, as for every archive.

What this archive does not decide

  • The Group 4 sequencing question on task 4.1 stays as it stood. The question is whether the operational word "land the input-size guard when green" was the approved exception, or whether 0.4 should have gated 4.1. The archived tasks.md keeps it as written, and neither the ratification nor this archive answers it.
  • Carrying deferred documents over stays a staged topic. The topic is ideation/staging/doc-health-sweep-carry-over/. Its change will modify the text this archive promotes.
  • No issue is shut by this pull request. The governing issue, opensoft/xFactory#479, was closed on 2026-09-23. This body and every commit message carry no closing keyword.

🤖 Generated with Claude Code

Summary by Sourcery

Archive add-worker-input-budget and promote its worker input budgeting and deferred-document reporting requirements into doc-health canon.

New Features:

  • Promote the bounded worker input budget and sweep deferral reporting requirements into the canonical doc-health specification.

Enhancements:

  • Archive the ratified add-worker-input-budget change and record its realization, promotion, and sequencing state across the repository.
  • Update the doc-health sweep carry-over topic and related indexes to reflect that the predecessor change has archived and its text is now canonical.

Documentation:

  • Move add-worker-input-budget from the active changes list to the archived changes list with its archive and realization record.

Tests:

  • Update modified-block currency and sequencing ledger tests to reflect the archived change and retired ledger finding.

brettheap and others added 4 commits October 6, 2026 23:01
…get onto doc-health after realization 9da52e3

On Brett Heap's archive word, verbatim "archive add-worker-input-budget
after it lands" (2026-10-06, in session to lane openxfactory-1; RULED in
opensoft/brett-wip lanes/log/openxfactory-1.md at 2026-10-06T14:24:52Z,
commit f18c337b), given for after the ratification pull request #1250
landed. It landed by squash as 3cec62f, the ratifying commit the
origin-retention gate compares against. This branch is cut fresh from
main at 3cec62f and carries none of #1250's pre-squash commits.

code_surface is non-empty, so under release-realization the packet
archives on merged-plus-green realization evidence. It is in hand and is
recorded in the packet's own tasks.md Group 4:
- #1137 -> 9da52e3 (2026-09-22T03:45:21Z),
  with pytest-suite SUCCESS on main at 9da52e3 itself, run 35684322745
  (https://github.com/opensoft/openxFactory/actions/runs/35684322745);
- opensoft/xFactory#481 -> b2479b6e4d9a6bccb8cdf5e2b39417257dc3f5c5
  (2026-09-22T03:45:36Z); validate was green at its head 90311333, and no
  check on the merge commit failed;
- the pin-sync opensoft/xFactory#483 -> 9ecdb551, which put the packer
  under the nightly;
- the first green nightly, opensoft/xFactory run 35947804907 (2026-09-24):
  its analysis child 35948587830 passed the input-size guard at 1899236 of
  1900000 bytes and returned findings, and its cataloger child 35948591376
  succeeded (task 4.3).

Performed through the governed wrapper, never a bare openspec archive:

    TZ=UTC python3 scripts/proposal-support.py . archive \
        add-worker-input-budget --yes

exit 0: "ORIGIN RETAINED add-worker-input-budget (declaration unchanged
since the ratifying commit 3cec62f)", "Totals: 1 passed, 0 failed
(1 items)", "Task status: Complete", "Applying changes to
openspec/specs/doc-health/spec.md: + 1 added, ~ 1 modified", "Totals: + 1,
~ 1, - 0, -> 0", "Change 'add-worker-input-budget' archived as
'2026-10-06-add-worker-input-budget'", "NO SUPPORTING DOCS ... (origin
retained, nothing to package)", over the content-addressed
@fission-ai/[email protected] pin. --date was not passed, so the directory
takes today in UTC. The run started at 2026-10-06T23:01:47Z. This commit,
the directory's adding commit, carries the same UTC day, which is what
archive-date-vs-commit measures. The origin is retained with no record
owed, so openspec/origin-dispositions.yaml is not edited.

THE PROMOTION IS THE DELTA AS WRITTEN, measured on both sides: each block
is extracted by its heading from the archived delta and from canon, and
hashed. doc-health is the only capability the delta touches.
- MODIFIED "Sweep sequencing and snapshot consistency": in canon
  875 bytes and 2 scenarios before,
  1,773 bytes and 3 scenarios now; sha256
  8efe2d94bfa469d5... on the archived delta and canon alike.
- ADDED "Bounded worker input budget": 3,595 bytes and
  6 scenarios; sha256 3533488d999d93d5... on both sides.
Requirements 43 -> 44 and scenarios
260 -> 267. The preamble and the other
42 requirement blocks are byte-identical, and canon
--numstat reads +65 -2. The CLI diverged from the delta nowhere.

The five packet files move as R100 pure renames. Also in this commit:
- the README OpenSpec Records bullet moves from Active to the head of
  Archived; its pull-request link is the ARCHIVE-PR-NUMBER-PENDING marker,
  which a later commit replaces once the pull request exists;
- the modified-block-currency self-gate's one _LEDGER_SUBJECTS row for this
  block retires on its own stated condition, leaving 13 literal
  entries and 12 unique.

This archive does not answer the Group 4 sequencing question on task 4.1.
The archived tasks.md keeps it as it stood.

Refs #1250
Refs opensoft/xFactory#479

Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… archive

ideation/staging/doc-health-sweep-carry-over/ section Conflicts said the
budget packet "is still ACTIVE, not archived", and that the topic's change
is proposed after that packet archives. The previous commit archived it,
so its MODIFIED "Sweep sequencing and snapshot consistency" is now the
promoted text in openspec/specs/doc-health/spec.md. The bullet's status
clause now says so: the packet archived on 2026-10-06, no active change holds
a MODIFIED block over that requirement, and the sequencing the bullet asked
for is met. It records the update the way #1250 recorded the ratification
update.

One bullet of a staged topic; no other line of the topic, its INDEX row or
any spec moves.

Refs #1250

Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in 8c1eeae (#1256, lane 5's C2: the review-lane pin lockstep
after #1138), which landed after this branch was cut from 3cec62f. It
touches contracts/review-lane-pin.yaml and one test literal, and no path
this archive moves. A merge, never a rebase: the archive commit a9bbcba
stays the adding commit of the archive directory, dated 2026-10-06 UTC.

Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…l request in the README

--moved-by needs a real pull-request number, and this branch had none
until #1258 was opened, so the row is seeded here rather than in the
archive act. This follows the order 5216c70 and 14920ec used.

Seeded by the machine, not by hand:

  python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1258'
  -> wrote tests/sequenced_after/corpus-ledger.yaml (232 rows, 1 moved by #1258).
  python3 scripts/validate-sequenced-after.py . --ledger-diff
  -> per-change sweep ledger consistent with the corpus (232 rows).

The diff is one line: add-worker-input-budget's row goes from state active
to archived, moved_by "#1137" -> "#1258", and
moved_on 2026-09-22 -> 2026-10-06. A flipping row takes its archive
directory's date. No other row moved.

README: the archived bullet's ARCHIVE-PR-NUMBER-PENDING marker (two
occurrences, one line) now names PR #1258.

Refs #1250

Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR archives the ratified add-worker-input-budget packet through the governed archive workflow, promotes its verified specification changes into doc-health, and updates repository indexes, staged-topic conflict tracking, and modified-block-currency self-gate state to reflect the promotion.

Flow diagram for archiving and promoting the worker input budget

flowchart LR
    Ratified["Ratified add-worker-input-budget"] --> Evidence["Merged plus green realization evidence"]
    Evidence --> Wrapper["proposal-support.py archive --yes"]
    Wrapper --> Archive["Archive packet under 2026-10-06"]
    Wrapper --> Promote["Promote verified delta to doc-health"]
    Promote --> Canon["doc-health spec: 43 to 44 requirements"]
    Promote --> Index["Update README and self-gate indexes"]
    Archive --> Topic["Update staged carry-over conflict tracking"]
Loading

File-Level Changes

Change Details Files
Archives the ratified worker-input-budget change and promotes its specification delta into the canonical doc-health spec.
  • Moves the five packet files into the dated archive directory while retaining the origin declaration and ratification records.
  • Promotes one modified requirement and adds the new bounded worker input budget requirement, including deterministic whole-document packing, reserved population shares, dispatch metadata, over-budget refusal, and deferred-finding semantics.
  • Updates the README to remove the active entry and add the detailed archived record.
  • Rewords the staged carry-over topic to reflect that the promoted requirement is now canonical.
  • Retires the corresponding modified-block-currency ledger finding and updates its self-gate expectations.
README.md
openspec/specs/doc-health/spec.md
ideation/staging/doc-health-sweep-carry-over/doc-health-sweep-carry-over.md
tests/doc-health/test_modified_block_currency_self_gate.py
openspec/changes/archive/2026-10-06-add-worker-input-budget/proposal.md
openspec/changes/archive/2026-10-06-add-worker-input-budget/design.md
openspec/changes/archive/2026-10-06-add-worker-input-budget/tasks.md
openspec/changes/archive/2026-10-06-add-worker-input-budget/review/ratification-2026-10-06.md
openspec/changes/archive/2026-10-06-add-worker-input-budget/.openspec.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

The staging index still incorrectly states that the carry-over topic is waiting for this archive.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Archives add-worker-input-budget and promotes its ratified doc-health requirements into canon.

Changes:

  • Relocates the five-file proposal packet into the archive.
  • Promotes bounded worker-input-budget requirements and updates lifecycle records.
  • Retires related ledger/self-gate entries.
File Description
README.md Moves the packet from active to archived records.
openspec/​specs/​doc-health/​spec.md Promotes the ratified requirements.
openspec/​changes/​archive/​.../​.openspec.yaml Preserves origin provenance.
openspec/​changes/​archive/​.../​proposal.md Archives the proposal.
openspec/​changes/​archive/​.../​tasks.md Archives implementation and realization evidence.
openspec/​changes/​archive/​.../​specs/​doc-health/​spec.md Preserves the promoted delta.
openspec/​changes/​archive/​.../​review/​ratification-2026-10-06.md Preserves the ratification record.
tests/​sequenced_after/​corpus-ledger.yaml Marks the packet archived.
tests/​doc-health/​test_modified_block_currency_self_gate.py Retires the promoted block’s ledger subject.
ideation/​staging/​doc-health-sweep-carry-over/​doc-health-sweep-carry-over.md Marks its archive sequencing dependency satisfied.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

…has cleared

Answers Copilot's finding r4201752800 at b1bba72. The carry-over topic's
own conflict clause already records that add-worker-input-budget archived,
but ideation/staging/INDEX.md still said the topic's exit "waits on
add-worker-input-budget archiving", in its table row and in its detail
section's Exit. Both now say the wait has cleared: the packet archived to
openspec/changes/archive/2026-10-06-add-worker-input-budget/ by #1258, and
its deltas are the promoted text the topic's change modifies.

Staging-index text only. No spec, requirement, scenario or packet file
moves, and the topic's exit itself is unchanged.

Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>

Copilot AI 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.

Copilot review overview

🔵 Needs a closer look

The merge-commit-only archive semantics and cross-repository realization evidence require final human verification.

Review effort: Balanced
Findings: None

Resolved since last review (1)

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

The promoted normative requirement contradicts itself about whether dispatching an over-budget unit is conformant.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

Comment thread openspec/specs/doc-health/spec.md Resolved
@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2026

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1

LANDING — lane openxfactory-1, session eb835de4-d46e-4bb7-86f3-82780be6f51e@Eagle, 2026-10-07T09:42:59Z, PR #1258 into opensoft/openxFactory main (Rule 6 window; rule6 scan CLEAR; gate PASS at head 2ab9774 on main f335c07). On Brett Heap's word verbatim: "archive add-worker-input-budget after it lands".

@brettheap
brettheap marked this pull request as ready for review October 7, 2026 09:43
@sourcery-ai

sourcery-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 11 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit 1677981 into main Oct 7, 2026
15 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1

LANDED — lane openxfactory-1, 2026-10-07T09:43:28Z, PR #1258 → 1677981 (merge commit into opensoft/openxFactory main). Window closed.

brettheap added a commit that referenced this pull request Oct 7, 2026
…input-budget archive

Lane: openxfactory-4

main moved through the archive of add-worker-input-budget (#1258), which
touches README.md and the doc-health spec but not this change's directory.
Section 4 names the new base and the commits since fc4fa0f; section 6 carries
the re-measured numbers (113 -> 112 passed in the pinned gate, 20 -> 19 info
in doc-health, 308 -> 307 subtests in the corpus directories). The doc-health
report is again byte-identical to main alone.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 8, 2026
…t Heap's word 'ratify 1262 when ready' (#1264)

Lane: openxfactory-1

Drafts and RATIFIES the OpenSpec change `amend-worker-input-budget-dispatch-wording`, the amendment #1262 asks for. Refs #1262.

**Ratified in place, as drafted, on Brett Heap's word *"ratify 1262 when ready"*.** No requirement or scenario text moved at ratification: the spec delta is blob `eead8960` at every commit of this PR. The archive is a separate act on its own word.

## The words

Brett Heap, verbatim, in session on 2026-10-07. Each is a RULED line on the lane register (`opensoft/brett-wip`, `lanes/log/openxfactory-1.md`) except the second, which the issue itself records.

1. *"(a) land as ratified, amend later"*. His ruling on Copilot's comment [`4202036546`](#1258 (comment)) at #1258. RULED at 2026-10-07T09:42:21Z (commit `98b8b3d4`).
2. *"log the issue to change this"*. The lane filed #1262.
3. *"draft the amendment change for 1262"*. This PR.
4. *"ratify 1262 when ready"*. RULED at 2026-10-07T09:58:32Z (commit `f6964352`). Its condition held at `5b3edf14`: every required check green, `pytest-suite` included, and Copilot's review `5441182701` recommending approval with one low-severity citation fix, taken in `5d236d7d`. The ratification is commit `3a7ba60c`.
5. *"yes, land it when green"*. RULED at 2026-10-07T10:04:03Z (commit `43e9a5c2`). This PR lands by SQUASH, by the lane's coordinator, inside a Rule 6 window. The squash commit is then the ratifying commit on `main`, and it carries the origin's approval pair. Closing #1262 still needs its own word, and the archive is a separate later pull request.

## What changes

One `## MODIFIED` requirement in `doc-health`, *Bounded worker input budget*. Only the last sentence of its second paragraph is replaced.

As promoted (canon on `main` `16779816`, lines 4083-4087):

> Where the WORKER assembles the prompt from a dispatchable unit the orchestrator prepared, the orchestrator SHALL measure each unit's assembled size, record it, and SHALL NOT dispatch a unit it has measured over the budget — dispatching one and letting the worker refuse is conformant but useless, because the same unit is selected again next run.

As amended (#1262's text, verbatim):

> Where the WORKER assembles the prompt from a dispatchable unit the orchestrator prepared, the orchestrator SHALL measure each unit's assembled size, record it, and SHALL NOT dispatch a unit it has measured over the budget. The worker's refusal of an over-budget input (scenario "A worker receives an input over the budget") is a backstop that keeps such an input from reaching the model. It does not make an over-budget dispatch conformant, and relying on it wastes the run, because the same unit is selected again next run.

`diff` of canon's block (`openspec/specs/doc-health/spec.md`:4070 to the end, 52 lines) against the delta's block gives one hunk:

```diff
17,18c17,21
< measured over the budget — dispatching one and letting the worker refuse is
< conformant but useless, because the same unit is selected again next run.
---
> measured over the budget. The worker's refusal of an over-budget input
> (scenario "A worker receives an input over the budget") is a backstop that
> keeps such an input from reaching the model. It does not make an
> over-budget dispatch conformant, and relying on it wastes the run, because
> the same unit is selected again next run.
```

The title, the first and third paragraphs and all six scenarios (16 bullets) are byte-identical to canon. The archived delta under `openspec/changes/archive/2026-10-06-add-worker-input-budget/` is history and is not edited.

## Task 1.1: the realization never dispatches over budget (CONFIRMED)

#1262's acceptance 1, checked read-only:

- `scripts/doc_health/catalog_dispatch.py` at #1137's merge `9da52e31`:
  - :513-515 measures each shard's assembled input in bytes;
  - :516-517 adds the shard to the dispatch list only when it is `<= input_budget_bytes`;
  - :527-528 writes `shards.json` from that list alone;
  - :535-543 records the rest as `shards_over_budget`.
- On `main` `16779816`, the gate is at :521-522 and the write at :532-533.
- The worker reads only that list. `opensoft/xFactory` `.github/workflows/doc-health-cataloger-worker.yml`:171-175 takes `ids[0]` of `shards.json` and exits 0 when the list is empty. The file is identical at `b2479b6e` (xFactory#481) and at `main`.
- `tests/doc-health/test_semantic_input_budget.py`:503, `test_a_shard_measured_over_the_budget_is_never_dispatched`, asserts that the over-budget shard is not dispatched.

So the amended sentence describes behaviour that already holds, and `code_surface: none` is measured, not assumed.

## The ratification (commit `3a7ba60c`)

Following #1250's pattern (`3cec62fd`), in one commit, so the ratifying commit also carries the approval pair:

- `proposal.md`: `Status: draft` becomes `Status: ratified`, with one `Ratified:` line citing the word, the RULED line and the record;
- `tasks.md`: `Status: ratified` with a `Ratified by:` line; boxes 0.1 and 0.2 ticked with the word;
- `.openspec.yaml`: `approved_by` (Brett Heap, the word verbatim) and `approved_on: 2026-10-07` ADDED after the drafting pair. Every existing field is unchanged, checked by parsing both versions;
- `review/ratification-2026-10-07.md`: the record (`Status: ratified`, `Kind: report`, `Decision date:`, `Ratifier:`, one `Ratified:` citation and the ratified baseline);
- `README.md`: the *Active changes* entry in its ratified form, ending **RATIFICATION ONLY**.

Not moved: `specs/doc-health/spec.md`, the ledger row and the self-gate row.

## Files

- `openspec/changes/amend-worker-input-budget-dispatch-wording/`:
  - `.openspec.yaml`: an `ad_hoc` origin written by `proposal-support.py declare-adhoc` with the drafting pair, the approval pair added at ratification, and a `related:` list;
  - `proposal.md`, `tasks.md`, `review/ratification-2026-10-07.md`;
  - `specs/doc-health/spec.md`, the one delta.
- `README.md`: the *Active changes* entry.
- `tests/doc-health/test_modified_block_currency_self_gate.py`: one `_LEDGER_SUBJECTS` row, with its docstring count and chronology. The carriage arm reports this block once, at INFO (1 of 25 units uncarried, which is the amended sentence). A `**Removed from canon by**` marker was not used, because the marker would be promoted into canon and carry the old sentence with it, which #1262's acceptance 3 forbids.
- `tests/sequenced_after/corpus-ledger.yaml`: the seeded row (`--moved-by '#1264'`).

Registered and not taken (`tasks.md` § 5): a code comment at `scripts/doc_health/catalog_dispatch.py`:527-528 and a test docstring at `tests/doc-health/test_semantic_input_budget.py`:506-508 still echo the old clause. Editing them would give a wording packet a code surface.

## Review

Copilot reviewed each head this PR asked it to:

- `5441182701` at `5b3edf14`: approval recommended, with one low-severity citation fix (`r4205972528`), taken in `5d236d7d`.
- `5441515765` at `3a7ba60c`, the ratifying commit: three non-normative record fixes (`r4206239376`, `r4206239452`, `r4206239504`), taken in `e9c63a18`. None touched requirement or scenario text; the spec delta is still blob `eead8960` and `.openspec.yaml` is unchanged.
- `5441560962` at `e9c63a18`: approval recommended, no findings.
- `5441620162` at `a2761b1f`, this head (after the merge of `main` below): approval recommended, no findings.

Every review thread is answered and resolved: 4 threads, 0 unresolved.

`main` then moved to `a38585e9` (#1266, `correct-naming-families-count`), and this branch took it by merge commit `a2761b1f`, never a rebase. The only conflict was the head of the README *Active changes* list, where both entries are kept, this packet's first, with no byte of either entry changed.

## Gates

Same-kind full clones named `openxFactory`.

**At this head, `a2761b1f`, against `main` `a38585e9`:**

| gate | `main` `a38585e9` | this head |
| --- | --- | --- |
| `validate-openspec-cli-pin.py --all --strict` | exit 0; 113 passed, 1 failed (the accepted `add-chain-attestation` exception), 0 undispositioned | exit 0; 114 passed, the same 1 accepted exception |
| `validate-openspec-cli-pin.py --change amend-worker-input-budget-dispatch-wording` | n/a (exit 2, no such change) | exit 0; 1 passed |
| `proposal-support.py . verify amend-worker-input-budget-dispatch-wording` | exit 0 | exit 0 |
| `validate-code-surface.py`, `validate-target-release.py`, `validate-scope-globs.py` | exit 0 | exit 0 |
| `validate-sequenced-after.py .` | exit 0 (47 active, 19 declaring) | exit 0 (48 active, 20 declaring) |
| `validate-sequenced-after.py . --ledger-diff` | exit 0 (233 rows) | exit 0 (234 rows) |
| `validate-former-id-arrival.py`, `validate-release-tag-gate.py` | exit 0 | exit 0 |
| `doc-health.py --single-repo .` | 31 critical, 22 error, 69 warning, 19 info | 31 critical, 22 error, 69 warning, **20 info**. The one added finding is this block's carriage-ledger INFO, named by the self-gate row. No other line moves: no `ratified-provenance` or `proposal-origin` finding names the ratified packet |
| pytest: `tests/sequenced_after`, `tests/proposal-support`, the self-gate module and `test_semantic_input_budget.py` | | 537 passed |

**Earlier, against `main` `16779816`,** the same validator and doc-health rows held at `24b7862b` (draft), `5b3edf14` (ledger seeded), `3a7ba60c` (ratified) and `e9c63a18`. At `24b7862b` the pytest subset (`tests/doc-health`, `sequenced_after` and nine more gate modules) and the whole suite (`--continue-on-collection-errors`) failed exactly the same ids as `main` (7 and 237, from the clone's uninitialized `openDox` and `openXdox` legs) plus the 4 `sequenced_after` ledger tests that fail until the row is seeded; at `5b3edf14`, with the row seeded, those modules passed (337 tests). CI's `pytest-suite` runs the whole suite with the legs. It was green at `5b3edf14`, and `gh pr checks` reports it at this head.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap
brettheap deleted the archive/add-worker-input-budget branch October 8, 2026 17:37
brettheap added a commit that referenced this pull request Oct 9, 2026
…23375303) (#1261)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).

**THE RATIFICATION RECORD for `realize-doc-health-direction-arc`** (plan 038's T071), the doc_health direction arc's own change. It landed as a draft through #1247 → `51456835` and #1253 → `fc4fa0ff`. No requirement, decision or task text moves: the change has no spec delta (`skip_specs: true`). It lands through the holder's lander in a Rule 6 window; this actor merges nothing.

## The word

RULED by Brett Heap, 2026-10-06 at about 18:59Z, by interactive multi-choice, verbatim *"Ratify it (Recommended)"*, recorded at #656 comment [`6023375303`](#656 (comment)) (created 2026-10-06T19:00:45Z).

The option text he saw read *"I post your word on #656 and land the ratification record (Status: ratified, Ratified by) under a Rule 6 window. T072 can start right away; T074 and T075 then follow in order."*

## The form followed

`cd494e4c` / #1151, "Ratify add-neutral-product-standalone-operability on Brett Heap's word (#656 5815412869)", file for file and field for field. The holder's ruling at #656 [`6023619783`](#656 (comment)) confirms the one choice that differs from the change's as-filed text (below).

## What is ratified, and what the word authorizes

- **Ratified:** the change as landed on `main` at `fc4fa0ff` (#1253, merged 2026-10-06T18:56:42Z). Its change-directory tree, `02d362f6ebcaf49e18aa107f7ce2b3a409ca2275`, is identical at #1253's final head `e4f3f1db` and on current `main`, and the last commit on `main` that touches it is `fc4fa0ff`. Copilot's review at `e4f3f1db` read "Approval recommended", Findings: None.
- **D1–D7 stand as recommended.** `tasks.md` 1.2 provides that the word rules `design.md` § 11's D1–D7 as recommended unless it says otherwise, and the word does not. The record says that this applies 1.2's own rule and does not claim Brett Heap was shown the seven one by one.
- **Authorized:** per the ruling record, the realization in plan 038's order: T072 (opportunistic, ARC-6), then T074 and T075. None of it happens by the word itself.
- **Nothing archives or promotes.** The change stays ACTIVE until its realization is merged and green, and it gates neither release 2's close nor #1144's archive (ARC-Q3 (a)).

## What this PR changes

Six files. None of the changes is requirement or scenario text.

**`openspec/changes/realize-doc-health-direction-arc/proposal.md`**
- `Status: ratified`, with a `Ratified:` citation.
- A qualifier above the filing's "DRAFT. FILING IS NOT RATIFYING" paragraph, which is kept verbatim as the filing's record.
- A `## Ratification record` section.
- A read-at-ratification note after the D1–D7 list.

**`design.md` and `tasks.md`**
- `Status: ratified`, with a `Ratified by:` citation. This is the citation split #1144's record carried.
- `design.md` § 11: the same read-at-ratification note.
- `tasks.md` 1.1 (the filing, citing #1247 → `51456835` and #1253 → `fc4fa0ff`) and 1.2 (this act) are ticked. Boxes go from 0 `[x]` / 23 `[ ]` to **2 `[x]` / 21 `[ ]`**.
- 1.2 keeps its as-filed wording and gains a marked italic note on the one divergence (below), as #1151 did for its own 1.8.

**`.openspec.yaml`**
- `approved_by` / `approved_on` are ADDED after `proposed_on`. `kind`, `id`, `path`, `reason`, `proposed_by` and `proposed_on` do not move.

**New record:** `review/ratification-2026-10-06.md` (`Status: ratified`, `Kind: report`, one `Ratified:` citation).

**`README.md`:** the *Active changes* entry's status, now linking the record.

The sequenced-after ledger row does not move.

**The one divergence from the text as filed.** `tasks.md` 1.2 says the record carries `Status: record`. It carries `Status: ratified` with a `Ratified:` citation, as #1144's record did. `document-lifecycle` sanctions both spellings, the option put to Brett read "(Status: ratified, Ratified by)", and a `Status: record` file trips `record-immutability` (CRITICAL) on any later edit, such as a Copilot fix commit on this PR. Confirmed by the holder at #656 `6023619783`.

## Gate state at `f9f71063`

The tree is `main` at `40d6e5c1` plus this PR's twelve commits (the change itself, five merges of `main` and six re-measurements of the record), with the submodules initialised. After the first head, `main` moved five times: the archive of `add-worker-input-budget` (#1258), then #1266 and #1264, then the archive of `amend-worker-input-budget-dispatch-wording` (#1269), then #1263, #1270, #1271 and #1267 (renew-resolved-council-protocol), then #1272, #1275 (the archive of `correct-naming-families-count`) and #1277 (a bot review-lane repin). They touch `README.md`, `docs/`, the sweep ledger, other changes, the review-lane contracts and workflows and the doc-health and project-repo-schema specs, and not the change directory (its tree is still `02d362f6ebcaf49e18aa107f7ce2b3a409ca2275` on `main`, last commit `fc4fa0ff`). So `main` was merged in, never rebased, and everything below was re-measured. `main` has since moved again, to `b4b9d903` (a new change, `refresh-install-repository-enumerations-opsxfactory-gateway`: its own directory, a README entry and a ledger row). It is not merged here, per the holder's one-merge instruction, and a trial merge with it is clean.

```
OPENSPEC_TELEMETRY=0 openspec validate realize-doc-health-direction-arc --strict → valid (the pinned 1.12.0)
validate-openspec-cli-pin.py --all --strict   → exit 0, 0 UNDISPOSITIONED failures
                                                113 passed, 1 failed (114 items); the 1 = the accepted exception, as on main alone
validate-code-surface.py . / validate-target-release.py .  → passed
validate-sequenced-after.py . / --ledger-diff → pass; ledger consistent (235 rows), this row unmoved
proposal-support.py . verify realize-doc-health-direction-arc → ok
doc-health.py --single-repo .                 → 31 critical, 26 error, 69 warning, 19 info
                                                report byte-identical to main alone (same clone kind); 0 findings name this change
doc-health families (1.2's falsifier)         → proposal-origin 0 findings, status-validity 0 findings
                                                (negative control: dropping proposal.md's Ratified: line takes ratified-provenance 27 → 28 critical, naming proposal.md)
pytest -m "not postgres" -k "ledger or records or sequenced or openspec"  → 615 passed, 3 skipped
pytest sequenced_after code_surface target_release proposal-support scope_globs packet_reference → 866 passed, 311 subtests passed
pytest tests/doc-health                       → 2157 passed
```

An earlier `tests/doc-health` run showed 8 failures in `test_neutrality_dispatch.py`. They were this actor's own environment, not the tree: an exported `REPO` variable collided with the fake scout worker's `REPO`. With it unset the file gives 25 passed, and the whole directory is green above.

## Copilot

- **First head `0039a47e`:** review `5436306140`, "Approval recommended", Findings: None, 0 threads.
- **Head `739da6e0`** (after the first merge of `main`): review `5440756736`, "Approval recommended", Findings: None, 0 threads.
- **Head `69479c77`** (after the second merge of `main`): review `5459920482`, "Approval recommended", 0 threads.
- **Head `83e3511e`** (after the third merge of `main`): review `5460937374`, "Approval recommended", 0 open findings, 0 threads.
- **Head `b186eb62`** (after the fourth merge of `main`): review `5462168108`, "Needs a closer look", **0 open findings**, 0 threads. Its stated reason is that final approval depends on human validation of the governance authority and the historical provenance assertions. The holder ruled at #656 [`6069024568`](#656 (comment)), item 5, that this is NOT a block, because that authority is Brett Heap's ratify word `6023375303`.
- **Checks at `b186eb62`:** the rollup was SUCCESS with 15 status checks, all SUCCESS, including `merge-master-approval`, `pytest-suite` and SonarCloud Code Analysis. 0 threads unresolved.
- **Head `f89fc853`** (after the fifth merge of `main`): review `5464071466`, "Needs a closer look", **0 open findings**, 0 threads. Its stated reason is that the exact-head checks and the Codex review were then pending, and that final approval also depends on governance provenance, which the holder's ruling at #656 `6069024568`, item 5, covers.
- **Final head `f9f71063`** (a record-only correction of the corpus subtest figure, 312 to 311, which the completed run measured): Copilot requested through the reviewer API after the push. Its result, the checks and the thread count are recorded here once the exact final head has been reviewed.

## Codex

- At `b186eb62`, `@codex review` was posted twice (comments `6067925769` and `6069046343`), and the `chatgpt-codex-connector[bot]` answered both with the usage-limit message (comments `6067927988` and `6069048581`). No Codex review existed at that head.
- At `f89fc853`, `@codex review` (comment `6071059884`) was answered with a review: **Reviewed commit `f89fc853cb`**, "Didn't find any major issues" (comment `6071083487`; summary comment `6071062721`, Code Review completed at 2026-10-08T23:29:24Z).
- At the final head `f9f71063`, `@codex review` was posted once after the push (comment `6071252263`). The bot's reply is recorded here once it arrives. READY needs a Codex "Reviewed commit" at the exact head, or Brett Heap's explicit waiver (#656 `6069024568`, item 4).

## What is NOT done

- No code, pin, gitlink, contract bundle or release tag moves. T072, T074 and T075 are the realization, and none of them starts by this PR.
- Plan 038's `specs/038-…/tasks.md` is not edited here. T071's tick there goes in the holder's own bookkeeping batch.
- Nothing archives or promotes.

**Rule 6:** this PR touches `openspec/changes/` and the README OpenSpec Records block, so it lands in a declared window by the holder, and not by this actor.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.

2 participants