You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add-worker-input-budget: encode the OQ-1/OQ-2 rulings, record OQ-3 resolved, stage the sweep carry-over - #1160
Pre-ratification authoring on the draft change add-worker-input-budget (Status: draft, proposed 2026-09-22 on Brett Heap's word "brief a writer to add the input-size guard"). Prose only: no requirement, scenario, count, code or contract changes. OQ-1 and OQ-2 are now RESOLVED by Brett Heap's words of 2026-09-26. He ruled in session to lane openxfactory-1 by structured choice, option verbatim "Accept both, land #1160". The ruling is recorded on opensoft/xFactory#480 as comment 5850005209 (item 3, answering the RULING NEEDED, comment 5820150177) and as a RULED line on the lane register. OQ-1: the grounding share stays 0.5. OQ-2: cap-and-record, with the carry-over as a separate staged packet whose cursor is its own record beside the inventory. OQ-3 was already recorded as resolved in fact (2026-09-23). The spec deltas stay unratified (task 0.4), and Status: draft is unchanged.
openspec/changes/add-worker-input-budget/proposal.md, ## Open questions:
OQ-1 reads RESOLVED 2026-09-26: the grounding share stays 0.5. The filed text is kept, and the RULING NEEDED's wording and the record are quoted verbatim. Its Measured 2026-09-24 evidence is unchanged. Its recommendation is relabelled as put for ruling on 2026-09-24, verbatim (accepted 2026-09-26), with the text unchanged. No code changes: GROUNDING_BUDGET_SHARE is already 0.5.
OQ-2 reads RESOLVED 2026-09-26: cap-and-record, with the carry-over as a separate packet, which is the RULING NEEDED's option (a) per the record's own gloss. Its filed reasoning is qualified to the incremental selection: a document deferred tonight is not re-selected by the next night's incremental diff, and only a full sweep (on the weekly day, or under the full-nightly scope) selects the whole inventory again, where the same packing order defers the late-sorting documents too. It says the ruling stands on its own whatever the baseline does. Item 4 of the same ruling set ("Approve, nightly wins") rules that opensoft/xFactory#396 lands, which unsticks the baseline once it lands, but that changes only how a deferred document is lost, not whether. Its measurement and recommendation are kept verbatim.
OQ-3 is rewritten RESOLVED 2026-09-23, keeping the blocker as filed in one clause.
openspec/changes/add-worker-input-budget/tasks.md: 0.1 and 0.2 are ticked, with the ruling and evidence pointers in 0.3's form. 0.2's "advances unconditionally" now reads "is emitted unconditionally", the wording the README entry uses. 0.3 is ticked with its evidence line. 0.4 (ratify the deltas) stays open.
README.md OpenSpec Records entry: all three questions are resolved; it names the staged topic, and says resolving the questions ratifies neither delta.
New staged topicideation/staging/doc-health-sweep-carry-over/doc-health-sweep-carry-over.md, a changed document the sweep defers stays owed: the separate packet the OQ-2 ruling names. It is Status: staged and follows the staged-topic outline template: the ruling verbatim, six falsifiable claims, xspec:candidate fences on Why / What changes / Impact targeting doc-health, idea notes, four conflicts, eight open questions each carrying Context / Recommended answer / Explanation / Disposition status, and an Exit naming one OpenSpec change MODIFYING doc-health, proposed after this packet archives. Its settled claim is the ruled constraint: the cursor is its own committed record beside health/inventory/<date>.json, never a field of it. Its recommended answers, bounded in review: only a document that CHANGED is owed, and a full sweep enrols only its changed deferrals (Q6, Q7); a document larger than the whole usable budget (1,897,840 bytes) is named OVERSIZED rather than queued, while one larger only than its population's share stays queued and is reported apart (Q3); the first cursor is seeded from the committed inventories (every governed document changed since health/inventory/2026-09-02.json), never empty (Q8). ideation/staging/INDEX.md gains the topic's row and detail section in the existing form.
Commits: f62de2fe is this lane's first writer's content, preserved by the lane coordinator when the writer's session hit its limit (the message says WIP; the content is complete). fe95aa1a, cf2d1d19 and 3aece177 tighten the evidence. 47435c21 encodes the two rulings and stages the carry-over. The review rounds follow, all prose: 34fda9cf bounds the carry-over's claims, so an oversized document is named, not queued, and only a changed document is owed (the Codex review's two findings), and re-wraps one proposal paragraph with no word changed; 656c958d reserves OVERSIZED for a document no packing can send, so one larger only than its share stays queued; 7b75aa1f seeds the carry-over from the committed inventories and says where a full sweep re-selects a deferred document; b0c9be62 qualifies OQ-2's filed reasoning to the incremental selection (those three answer the Copilot review's four findings). aeae2f10 merges main at 0d48231b and settles the one collision, with #1173's row and detail section in ideation/staging/INDEX.md, by keeping both, main's first. None is amended (no force-push).
Evidence for OQ-1 (measured 2026-09-24)
The two nightlies since the budget went live, from their own semantic-sweep-bundlemeta.json (budget 1,900,000 B both nights; deferrals split by the population the packer records on each):
night
opensoft/xFactory run
bytes sent
included
deferred
of which changed docs
of which promoted specs
2026-09-23
35810840997
1,899,789
92
226
152
74
2026-09-24
35947804907
1,899,236
96
227
156
71
The split at each grounding share on the current inventory, with no model call: the aggregation's main at c6280584, assembled by the runner's own prepare path (python3 openxFactory/scripts/doc-health.py --repo-root . --previous-inventory health/inventory/2026-09-04.json --semantic-prepare <dir>), then packed by pack_within_budget at each share — 196 changed documents (5,051,588 B at document_cost) and 127 promoted specs (2,984,532 B):
grounding share
bytes sent
sent / deferred
changed docs sent / deferred
promoted specs sent / deferred
openxFactory sent: changed docs of 109, specs of 66
codexFactory sent: changed docs of 31, specs of 13
0.3
1,899,164
90 / 233
53 / 143
37 / 90
1, 0
0, 0
0.4
1,899,413
94 / 229
50 / 146
44 / 83
1, 1
0, 0
0.5 (built)
1,899,236
96 / 227
40 / 156
56 / 71
0, 1
1, 7
0.6
1,899,594
96 / 227
33 / 163
63 / 64
1, 3
0, 12
0.7
1,899,953
104 / 219
29 / 167
75 / 52
2, 14
0, 13
The weekly full sweep over the same inventory (same prepare path, --as-of 2026-09-27, a Sunday: 738 governed documents, 9,416,787 B; the same 127 specs):
grounding share
bytes sent
sent / deferred
governed docs sent (of 738)
promoted specs sent (of 127)
openxFactory sent: governed docs of 397, specs of 66
0.3
1,899,895
202 / 663
165
37
0, 0
0.4
1,899,834
184 / 681
140
44
1, 1
0.5 (built)
1,899,751
183 / 682
127
56
0, 1
0.6
1,899,722
181 / 684
118
63
0, 3
0.7
1,899,977
182 / 683
107
75
0, 14
Method fidelity. At 0.5 the offline repack rebuilds each nightly bundle's analysis-input.txt byte for byte and its meta.json budget record field for field (2026-09-23 and 2026-09-24), and does the same for both runner-built current bundles; the current inventory's 0.5 prompt is byte-identical to 2026-09-24's. scripts/doc_health/{semantic,corpus,inventory,runner}.py and semantic-prompt.md are unchanged between both nights' openxFactory pins (9da52e31, 94b6f7f1) and main. Both nights' selections reproduce exactly against the aggregation main's health/inventory/2026-09-04.json.
The two recommendations, verbatim (both accepted by the 2026-09-26 ruling)
OQ-1:
Lane recommendation as put for ruling on 2026-09-24, verbatim (accepted
2026-09-26, above): keep 0.5 — each 0.1 of share only
moves about 190,000 bytes of capacity between the populations (3 to 10
changed documents one way, 7 to 12 specs the other), while how much of
openxFactory the sweep reaches at any share — at most 2 of its 109
changed documents and 14 of its 66 specs — is set by the (repo, path)
packing order, which no share repairs.
OQ-2:
Lane recommendation as put for ruling on 2026-09-24, verbatim (accepted
2026-09-26, above; the topic it names is created by this revision):
accept cap-and-record for this packet, and carry deferrals over in a
separate packet staged first as ideation/staging/doc-health-sweep-carry-over/ (not created here). Its
one design constraint: the cursor is its own committed record beside the
inventory (for example health/sweep-cursor/<date>.json, written from
the bundle's meta.jsondeferred list and delivered in the same report
commit), never a field of health/inventory/<date>.json — finalize
emits that file UNCONDITIONALLY from the full current inventory every
night, so a cursor folded into it would be erased by the next emit.
OQ-1 and OQ-2 as now recorded (verbatim; fenced so bare issue numbers do not autolink to this repository)
- **OQ-1 — RESOLVED 2026-09-26: the grounding share stays 0.5.** Filed on
2026-09-22 as *"the grounding share"*: the default reserves half the budget
for promoted specs. At the 2026-09-21 corpus that sends 93 of 311 documents
and defers 218, of which 71 are promoted specs, so `semantic-contradiction`
is grounded against roughly half the promoted corpus on any given night. The
alternative — spending the whole budget on grounding and sweeping almost no
changed documents — is worse, but the split is a policy choice and was put
for ruling rather than assumed. The ruling was taken on 2026-09-26: Brett
Heap chose, in session to lane `openxfactory-1` by structured choice, the
option verbatim *"Accept both, land #1160"*, answering the RULING NEEDED of
2026-09-24 (opensoft/xFactory#480, comment 5820150177), which put this
question as, verbatim, *Your word: a share, or "keep 0.5".* The ruling is
recorded on the same issue — comment 5850005209, item 3, verbatim *"OQ-1,
the grounding share stays 0.5"* — and as a RULED line on the lane register
(2026-09-26T21:22:13Z) naming opensoft/openxFactory#1160. The lane
recommendation below is accepted as it stood. No code changes:
`GROUNDING_BUDGET_SHARE` is already `0.5` in `scripts/doc_health/semantic.py`,
as built.
- **OQ-2 — RESOLVED 2026-09-26: cap-and-record, with the carry-over as a
separate packet.** Filed on 2026-09-22 as *"deferral does not carry over,
and this packet does not make it"*: the incremental scope is a content-hash
diff against the last committed `health/inventory/<date>.json`, which the
`finalize` job emits UNCONDITIONALLY (`--emit-inventory`, `if: always()`)
from the full current inventory. There is no per-document sweep cursor
anywhere in `doc_health`. A document deferred tonight is therefore in
tomorrow's baseline, no longer "changed", and would not be re-selected by
the next night's incremental selection (only a full sweep, on the weekly
day or under the `full-nightly` scope, selects the whole inventory again,
and there the same packing order defers the late-sorting documents too). This
packet consequently CAPS AND RECORDS rather than claiming a carry-over it
does not implement; a real carry-over needs its own state and its own
packet. The ruling was taken on 2026-09-26 by the same choice and the same
option as OQ-1, verbatim *"Accept both, land #1160"*. The RULING NEEDED had
put this question as, verbatim, *Your word: (a) cap-and-record here +
stage the carry-over packet, (b) cap-and-record alone, or (c) fold
carry-over into this packet.* The record's own gloss (comment 5850005209,
item 3), verbatim *"OQ-2, cap-and-record plus the separate carry-over
packet at `ideation/staging/doc-health-sweep-carry-over/` with the cursor as
its own record beside the inventory"*, is option (a). This packet therefore
caps and records and carries nothing over; the carry-over is staged by this
revision as `ideation/staging/doc-health-sweep-carry-over/`, which carries
as a settled claim the design constraint the recommendation below states:
the cursor is its own committed record beside the inventory, never a field
of it. **The ruling stands on its own, whatever the baseline does.** The
same ruling set's item 4 (answering comment 5819739722), verbatim
*"Approve, nightly wins"*, rules that opensoft/xFactory#396 lands with the
nightly's content winning, which unsticks the committed baseline once it
lands. That changes how a deferred document is lost, not whether: while
the baseline stood at `health/inventory/2026-09-04.json` a deferred
document was re-selected and deferred again by the same packing order
(measured below); once the baseline advances, a deferred document leaves
the next night's diff unswept. Cap-and-record names every deferral in both cases, and the
carry-over packet records the deferred-document cursor in both cases.
OQ-3 as now recorded (verbatim; fenced so its bare issue numbers do not autolink to this repository)
- **OQ-3 — RESOLVED 2026-09-23.** Filed on 2026-09-22 as *"a live blocker
this packet does not address"*: from 2026-09-16 through 2026-09-21 the
runner's CLI had received HTTP 403 *"Your organization has disabled Claude
subscription access for Claude Code"* on every invocation (readiness: 12 of
12 clusters errored each of those nights, 0 of 12 on 2026-09-15), which no
code change reaches. The 2026-09-22 nightly, run after the filing, drew no
403 (its readiness, derive-possibles and cataloger children all answered);
the refusal recurred on 2026-09-23 (opensoft/xFactory#491).
The administrative act was taken on 2026-09-23: Brett Heap re-enabled
Claude Code access via subscription in the Anthropic Console — the remedy
that issue #491 names as its option 1 — and reported, verbatim, *"the HTTP
403: 'Your organization has disabled Claude subscription access for Claude
Code.' error was fixed. it runs now"* (recorded on #491 at 16:34:40Z); no
repository change was made. Verified the same hour: the analysis child
re-dispatched against nightly parent run 35810840997 — opensoft/xFactory
Actions run 35889825278, correlation `semantic-35810840997-2` — passed the
input-size guard at 1,899,789 of 1,900,000 bytes, and the model accepted
the prompt and returned 4 findings in 2 min 16 s, where that morning's
02:48Z dispatch of the same bundle (run 35811821401) had been refused 403.
Issue #491 closed at 16:38:55Z and #479, the governing issue, at 16:38:58Z,
with both halves of task 4.3 recorded on it. The 2026-09-24 nightly (run
35947804907, conclusion `success`) is the first full night under the
restored access: all four model children succeeded with model output —
analysis 35948587830 (guard passed at 1,899,236 bytes; 5 findings),
cataloger 35948591376 (21 catalog entries), readiness 35949701420 (12 of 12
clusters, no error entry) and derive-possibles 35950836940 (10 of 10). A
recurrence can no longer hide in a green child: opensoft/xFactory#499
(merge `4feb0db3`, 2026-09-23T22:52:54Z, for #492) fails the readiness and
derive-possibles children closed with a degraded artifact on any 401/403
refusal, as the analysis and cataloger children already fail on one.
Validation (final state, head aeae2f10)
At b0c9be62, the last commit before the merge from main, run locally in a full clone:
python3 scripts/validate-openspec-cli-pin.py --all --no-cache (pinned @fission-ai/[email protected], content address verified): rc 0; 110 passed, 1 failed (111 items). The one failure is add-chain-attestation, the disposition Brett Heap accepted on 2026-09-05; 0 undispositioned.
The other PR gates, run exactly as their workflows invoke them, all rc 0: verify-openxwallet-pin.py, validate-signed-execution-chain.py . --require-pinned-wallet-vocabulary, validate-former-id-arrival.py ., validate-release-tag-gate.py ., openXwallet/scripts/wallet-yaml-syntax-gate.py ., openXwallet/scripts/validate-openxwallet.py ., validate-factory-identity.py ., validate-clearing-dispatch.py ., verify-openxdox-pin.py, verify-opendox-pin.py.
python3 scripts/doc-health.py --single-repo . --as-of 2026-09-26: identical findings at 3aece177, 47435c21, 34fda9cf, 656c958d, 7b75aa1f and b0c9be62 (31 critical, 25 error, 45 warning, 21 info; 0 new regressions; all 122 finding lines equal once the clone's directory name is normalised). Canon share by words moves from 39.8% to 39.6%, from the added staged prose.
The new topic, run through the repo's own functions: no staged-topic-template gaps; no location-conformance staged-exit citations (fragment and INDEX); Status: staged; the header parses to exactly its nine fields; eight questions; no prose line over 80 columns; the INDEX row has four cells.
tests/doc-health/test_ideation_readiness.py, tests/doc-health/test_family_enumeration.py, tests/notebooklm and tests/corpus-adapter: 262 passed, 3 skipped, 30 subtests passed (the same at 656c958d and 7b75aa1f).
Closing-keyword scan (Python re) over the title, this body and all nine commit messages: clean. Host-absolute path scan over the branch diff's 769 added lines: clean. git merge-tree against main at bca4a260: no conflict.
The full suite ran at 47435c21, the last head before the review rounds; every later commit up to b0c9be62 is Markdown prose in the same files. python3 -m pytest tests/ -q -m "not postgres", with the openXwallet, openXdox and openDox gitlinks initialised as CI does and the pinned decision core at b21f0100: 8427 passed, 19 skipped, 411 subtests passed, 1 failed (below).
The corpus subset at 34fda9cf, the four directories whose tests read the real ideation corpus (tests/doc-health, tests/ideation-dashboard, tests/notebooklm, tests/corpus-adapter): 3282 passed, 16 skipped, 30 subtests passed, 0 failed.
The one local failure is pre-existing and environmental, not this PR's:tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization] hits its fixed 30-second subprocess timeout on a loaded host (load average 11 to 13; the realization run makes about 5,900 git calls). Its validator reads none of this PR's five files; the previous head 3aece177, checked out like for like, gives identical output and fails identically (2 of 2 interleaved rounds on each side, 30.05 s); and CI's pytest-suite passed it at 3aece177, 47435c21 and b0c9be62.
CI at aeae2f10: all eight required checks green (signed-execution-chain-gate, lane-line, former-id-arrival-gate, openspec-cli-pin, wallet-validation, pytest-suite, release-tag-gate, openxdox-consumer-gate); review threads 0 of 11 unresolved. The merge commit's message scans clean for closing keywords, and its tree differs from main by exactly this branch's five files, each with the same delta as before the merge.
…budget OQ-3 resolved text and OQ-1 evidence in progress; unvalidated
Preserved by the coordinator from the dead writer's clone; not reviewed; continue from here.
Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…path, one recommendation reworded
Follow-up to the preserved WIP commit f62de2f (not amended: it is on
origin and the org ruleset refuses a force-push), after re-reading it
against the measurements.
OQ-1. The table's first column is named the grounding share. The weekly
full-sweep figures now name their source: the same runner prepare path
(`doc-health.py --repo-root . --semantic-prepare`) with a Sunday
`--as-of 2026-09-27`, whose bundle the repack rebuilds byte for byte at
0.5 (1,899,751 bytes, 183 sent, 682 deferred). The lane recommendation
now says what a 0.1 step actually moves -- about 190,000 bytes of
capacity, 3 to 10 changed documents one way and 7 to 12 specs the other
-- instead of "3 to 12 documents from one population to the other".
OQ-2. The stalled baseline is stated by both measured causes, not the
second alone: no nightly report has reached the aggregation's main
since opensoft/xFactory#235 on 2026-09-04 (the 2026-09-05 to 09-11
nightlies concluded failure), and the rolling report pull request that
would land one, opensoft/xFactory#396, has been open since 2026-09-10.
Re-selection is said of changed documents only; promoted specs are
offered every night regardless.
OQ-3. Brett Heap's act is stated as the act -- the Anthropic Console
re-enable that issue #491 names as its option 1 -- with his words kept
verbatim. The cataloger child's output is named (21 catalog entries).
"Can no longer pass as a green night" becomes "can no longer hide in a
green child": the 2026-09-23 nightly parent concluded success while its
analysis and cataloger children failed, so opensoft/xFactory#499 changes
what the per-cluster children report, not the parent's conclusion.
tasks.md 0.2's pointer follows the OQ-2 wording. Prose only; no
requirement, scenario, count or code changes.
Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This prose-only PR enriches the draft change with production measurements and non-binding recommendations for OQ-1 and OQ-2, records OQ-3 as administratively resolved with verification evidence, updates task completion and pointers, and synchronizes the README status summary; it does not alter requirements, scenarios, code, counts, or contracts.
Sequence diagram for OQ-3 administrative resolution verification
sequenceDiagram
actor BrettHeap
participant AnthropicConsole
participant Runner
participant AnalysisChild
participant NightlyChildren
BrettHeap->>AnthropicConsole: Re-enable Claude Code subscription access
AnthropicConsole-->>Runner: Claude access restored
Runner->>AnalysisChild: Re-dispatch run 35889825278
AnalysisChild->>AnalysisChild: Input-size guard passes at 1,899,789 of 1,900,000 bytes
AnalysisChild-->>Runner: Model accepts prompt and returns 4 findings
Runner->>NightlyChildren: Run nightly 35947804907
NightlyChildren-->>Runner: Four model children succeed with model output
Runner-->>BrettHeap: OQ-3 verified and recorded resolved
Loading
File-Level Changes
Change
Details
Files
Adds measured evidence and explicitly non-binding recommendations for the two unresolved open questions.
Records nightly budget utilization and deferral populations from production metadata.
Compares grounding shares 0.3–0.7 on the current inventory and a weekly full sweep.
Recommends retaining 0.5 grounding share without deciding OQ-1.
Documents the unchanged committed baseline, repeated deferrals, and a separate cursor design constraint without creating the staging topic.
Links task items 0.1 and 0.2 to the evidence while leaving both rulings pending.
Synchronizes the repository-level OpenSpec status summary with the updated open-question state.
Changes the README wording to distinguish two questions awaiting ruling from the resolved third question.
Adds measured-evidence and resolution context to the active change summary.
README.md
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!
Copilot's review of fe95aa1 (thread on README.md line 830) is right:
the entry opened "THREE OPEN QUESTIONS, ALL DECLARED; TWO STILL PUT FOR
RULING", which still labels OQ-3 open while the packet records it
RESOLVED 2026-09-23. The clause now reads "THREE QUESTIONS DECLARED,
TWO STILL OPEN FOR RULING", names the two open ones, and states the
third as resolved, so the index and the packet say the same thing.
Prose only; no count, requirement or scenario changes.
Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The table reports documents/specs that were sent, so the sentence is self-contradictory: it says what the sweep “misses” while giving the sent maxima (2 changed documents and 14 specs). This makes the recommendation's conclusion about openxFactory coverage ambiguous; use “reaches” here and omit “sent” or report the deferred counts instead.
…han misses
Two review findings on the OQ text, both real.
OQ-3 (Codex, P2, proposal.md line 258). The history clause said "since
2026-09-16 the runner's CLI received HTTP 403 ... on every invocation"
and, in the same sentence, recorded a clean 2026-09-22 night, which
contradicts itself. The claim is now bounded to the interval it was
measured over -- 2026-09-16 through 2026-09-21, re-verified from the
readiness children's own findings: 12 of 12 clusters errored with the
subscription-access 403 on each of those six nights (runs 35049928775,
35176831607, 35301866163, 35416923864, 35485638570, 35556488866) and 0
of 12 on 2026-09-15 (34923409810) -- and the 2026-09-22 night is stated
as what it measurably was: run after the packet was filed, it drew no
403, its readiness, derive-possibles and cataloger children all
answering. (Its analysis child failed that night too, silently, on the
pre-guard input size, which is the defect this packet exists for.)
OQ-1 recommendation (Copilot overview, proposal.md line 225). "What the
sweep misses ... at most 2 changed documents and 14 specs sent" named a
miss and gave sent counts. It now reads "how much of openxFactory the
sweep reaches at any share -- at most 2 of its 109 changed documents
and 14 of its 66 specs". Same numbers, same single reason.
Prose only; no requirement, scenario or count changes.
Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot's review of cf2d1d1 listed one "previously missed" item outside a thread — Clarify contradictory sweep coverage wording (proposal.md line 225: the OQ-1 recommendation said what the sweep "misses" while giving sent counts). Real, and addressed in 3aece17: the recommendation now reads "how much of openxFactory the sweep reaches at any share — at most 2 of its 109 changed documents and 14 of its 66 specs". Same numbers, same single reason; still a lane recommendation, not a ruling.
…over they send to its own packet
Brett Heap ruled on 2026-09-26, in session to lane openxfactory-1 by
structured choice, the option verbatim "Accept both, land #1160", answering
the RULING NEEDED of 2026-09-24 (opensoft/xFactory#480 comment 5820150177).
The ruling is recorded on that issue as comment 5850005209, item 3, and as
a RULED line on the lane register (2026-09-26T21:22:13Z).
add-worker-input-budget, proposal.md "Open questions":
- OQ-1 now reads RESOLVED 2026-09-26: the grounding share stays 0.5. The
filed text is kept, the RULING NEEDED's wording is quoted verbatim, and
the lane recommendation is relabelled "as put for ruling on 2026-09-24,
verbatim (accepted 2026-09-26)" with its text unchanged. No code changes:
GROUNDING_BUDGET_SHARE is already 0.5.
- OQ-2 now reads RESOLVED 2026-09-26: cap-and-record, with the carry-over
as a separate packet (the RULING NEEDED's option (a), per the record's
own gloss). It says the ruling stands on its own whatever the baseline
does. Item 4 of the same ruling set ("Approve, nightly wins") rules that
opensoft/xFactory#396 lands, which unsticks the baseline once it lands,
but that changes only how a deferred document is lost, not whether. The
2026-09-24 measurement and the recommendation are kept verbatim.
tasks.md: 0.1 and 0.2 are ticked, with evidence pointers in 0.3's form.
0.2's "advances unconditionally" becomes "is emitted unconditionally", the
wording the README entry already uses, since the measurement showed the
committed baseline held. 0.4 (ratify the deltas) stays open;
Status: draft is unchanged.
README OpenSpec Records entry: all three questions are now resolved; it
names the staged topic and says resolving the questions ratifies neither
delta.
ideation/staging/doc-health-sweep-carry-over/ is the packet the ruling
names. It is one primary fragment on the staged-topic outline template:
Status: staged, target MODIFIED doc-health, six falsifiable claims (the
ruled constraint that the cursor is its own record beside the inventory
and never a field of it among them), eight open questions each carrying
Context / Recommended answer / Explanation / Disposition status, and
candidate fences on Why / What changes / Impact targeting doc-health.
The exit is one OpenSpec change, proposed after the budget packet
archives. INDEX.md gains the topic's row and detail section in the
existing form.
Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap
changed the title
add-worker-input-budget: record OQ-3 resolved and measure OQ-1 (no ruling taken)
add-worker-input-budget: encode the OQ-1/OQ-2 rulings, record OQ-3 resolved, stage the sweep carry-over
Sep 27, 2026
…eued, and only a changed document is owed
Two review findings on the staged doc-health-sweep-carry-over topic (Codex,
at 47435c2), both real:
- Q3 claimed oldest-first bounds how long ANY document stays owed. A
document whose document_cost exceeds its population's reserved share
(948,920 bytes at share 0.5) cannot be sent by any order while the other
population fills its own share; the grounding population's 2,984,532
bytes of specs always does. _pack_first_fit defers it whole and walks on,
as the budget packet requires. Q3 now gives it a terminal path: the
cursor records it as OVERSIZED with its size, the report names it every
night, its prior findings stay protected, and it is looked at again only
when its content or the budget changes. The bound is restated for the
documents that can fit. What changes and Conflicts bullet 3 say the same.
- Q6 said a document the scope SELECTED stays owed whatever the scope. That
contradicted Q7, where a full sweep enrols only its changed deferrals. Q6
now ties the obligation to CHANGE: a document that changed since the
previous inventory, and that a night selected and did not analyze, stays
owed. The Summary, Target capabilities, What changes and the INDEX row,
which used the same over-broad wording, are narrowed to match.
The topic still has eight open questions. add-worker-input-budget
proposal.md re-wraps one OQ-2 paragraph with every word unchanged.
Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.
… than its share stays queued
Copilot, at 34fda9c, on the staged doc-health-sweep-carry-over topic's Q3:
the threshold for the terminal OVERSIZED path was the population's reserved
share. pack_within_budget's third phase re-offers deferred documents
against the leftover capacity of BOTH populations, so a document larger
than its share can still be sent on a night when the rest of the packing
leaves its cost unused. The finding is real.
Q3 now separates two kinds. A document whose document_cost exceeds the
usable budget (1,900,000 bytes less the 2,160-byte prompt scaffold, so
1,897,840) can never be sent by any packing. It keeps the terminal path:
recorded OVERSIZED, named every night, prior findings protected, looked at
again only when its content or the budget changes. A document larger only
than its share stays owed and queued for the third phase. While the
grounding population's 2,984,532 bytes fill its own share, that night does
not come, so the report names such a document apart with its own age
instead of letting it set the oldest-owed age. What changes, Conflicts
bullet 3 and the INDEX row say the same. The topic still has eight open
questions.
Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ull sweep re-selects a deferred document
Two review findings on the staged doc-health-sweep-carry-over topic
(Copilot, at 656c958), both real:
- Q8's fallback ("if no budgeted bundle is retained, start empty") broke
the topic's own guarantee: an empty first cursor forgets exactly the
deferred documents the topic exists for. The seed now comes from durable
records. The first cursor enrols every governed document whose content
differs between the current inventory and health/inventory/2026-09-02.json,
the last committed inventory whose night's sweep completed with nothing
held back (per the budget packet's evidence table; the 2026-09-03 and
2026-09-04 inventories were committed after failed nights, so a diff
against 2026-09-04 already misses those two nights). A retained bundle
can only remove documents it proves analyzed. There is no empty start.
- The Summary, Claim 3 and Why said a deferred document drops out of the
next night's selection once the baseline advances. That holds only for
the incremental selection. The weekly full sweep and the full-nightly
scope select the whole inventory (semantic.select_corpus), where the same
(repo, path) packing defers the late-sorting documents again: the budget
packet's Sunday repack at 0.5 sent none of openxFactory's 397 governed
documents. All three places now say so.
Self-review, in the same vein: the title now reads "a changed document the
sweep defers stays owed", to match Q6. Q1 reads the cursor as an addition
to tonight's selection rather than its diff. Q2's rotation claim is bounded
to specs that fit the grounding share; the largest of openxFactory's own 66
costs 317,749 bytes. Q7's context names the full-nightly scope beside the
weekly day. The INDEX row's Q8 summary matches. The topic still has eight
open questions.
Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot, at 7b75aa1: OQ-2's carried-forward reasoning said a document
deferred tonight "would not be re-selected". semantic.select_corpus returns
the whole inventory on the weekly day and under the full-nightly scope, so
that holds only for the next night's incremental selection. The sentence
now says so, and adds that a full sweep's same packing order defers the
late-sorting documents again, the wording the staged carry-over topic
already uses. This refines filed prose for accuracy, as 3aece17 did for
OQ-3's filed interval. The ruling, the tasks, and the spec deltas are
untouched.
Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…idence
ideation/staging/INDEX.md conflicted append-on-append: #1173 added the
doc-health-direction-arc row and detail section where this branch added
doc-health-sweep-carry-over's. Both are kept, main's first; nothing else
in the file changes on either side.
Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lane: openxfactory-1
What this changes
Pre-ratification authoring on the draft change
add-worker-input-budget(Status: draft, proposed 2026-09-22 on Brett Heap's word "brief a writer to add the input-size guard"). Prose only: no requirement, scenario, count, code or contract changes. OQ-1 and OQ-2 are now RESOLVED by Brett Heap's words of 2026-09-26. He ruled in session to laneopenxfactory-1by structured choice, option verbatim "Accept both, land #1160". The ruling is recorded on opensoft/xFactory#480 as comment 5850005209 (item 3, answering the RULING NEEDED, comment 5820150177) and as a RULED line on the lane register. OQ-1: the grounding share stays 0.5. OQ-2: cap-and-record, with the carry-over as a separate staged packet whose cursor is its own record beside the inventory. OQ-3 was already recorded as resolved in fact (2026-09-23). The spec deltas stay unratified (task 0.4), andStatus: draftis unchanged.openspec/changes/add-worker-input-budget/proposal.md,## Open questions:RESOLVED 2026-09-26: the grounding share stays 0.5. The filed text is kept, and the RULING NEEDED's wording and the record are quoted verbatim. Its Measured 2026-09-24 evidence is unchanged. Its recommendation is relabelled as put for ruling on 2026-09-24, verbatim (accepted 2026-09-26), with the text unchanged. No code changes:GROUNDING_BUDGET_SHAREis already0.5.RESOLVED 2026-09-26: cap-and-record, with the carry-over as a separate packet, which is the RULING NEEDED's option (a) per the record's own gloss. Its filed reasoning is qualified to the incremental selection: a document deferred tonight is not re-selected by the next night's incremental diff, and only a full sweep (on the weekly day, or under thefull-nightlyscope) selects the whole inventory again, where the same packing order defers the late-sorting documents too. It says the ruling stands on its own whatever the baseline does. Item 4 of the same ruling set ("Approve, nightly wins") rules that opensoft/xFactory#396 lands, which unsticks the baseline once it lands, but that changes only how a deferred document is lost, not whether. Its measurement and recommendation are kept verbatim.RESOLVED 2026-09-23, keeping the blocker as filed in one clause.openspec/changes/add-worker-input-budget/tasks.md: 0.1 and 0.2 are ticked, with the ruling and evidence pointers in 0.3's form. 0.2's "advances unconditionally" now reads "is emitted unconditionally", the wording the README entry uses. 0.3 is ticked with its evidence line. 0.4 (ratify the deltas) stays open.README.mdOpenSpec Records entry: all three questions are resolved; it names the staged topic, and says resolving the questions ratifies neither delta.ideation/staging/doc-health-sweep-carry-over/doc-health-sweep-carry-over.md, a changed document the sweep defers stays owed: the separate packet the OQ-2 ruling names. It isStatus: stagedand follows the staged-topic outline template: the ruling verbatim, six falsifiable claims,xspec:candidatefences on Why / What changes / Impact targetingdoc-health, idea notes, four conflicts, eight open questions each carrying Context / Recommended answer / Explanation / Disposition status, and an Exit naming one OpenSpec change MODIFYINGdoc-health, proposed after this packet archives. Its settled claim is the ruled constraint: the cursor is its own committed record besidehealth/inventory/<date>.json, never a field of it. Its recommended answers, bounded in review: only a document that CHANGED is owed, and a full sweep enrols only its changed deferrals (Q6, Q7); a document larger than the whole usable budget (1,897,840 bytes) is named OVERSIZED rather than queued, while one larger only than its population's share stays queued and is reported apart (Q3); the first cursor is seeded from the committed inventories (every governed document changed sincehealth/inventory/2026-09-02.json), never empty (Q8).ideation/staging/INDEX.mdgains the topic's row and detail section in the existing form.Commits:
f62de2feis this lane's first writer's content, preserved by the lane coordinator when the writer's session hit its limit (the message says WIP; the content is complete).fe95aa1a,cf2d1d19and3aece177tighten the evidence.47435c21encodes the two rulings and stages the carry-over. The review rounds follow, all prose:34fda9cfbounds the carry-over's claims, so an oversized document is named, not queued, and only a changed document is owed (the Codex review's two findings), and re-wraps one proposal paragraph with no word changed;656c958dreserves OVERSIZED for a document no packing can send, so one larger only than its share stays queued;7b75aa1fseeds the carry-over from the committed inventories and says where a full sweep re-selects a deferred document;b0c9be62qualifies OQ-2's filed reasoning to the incremental selection (those three answer the Copilot review's four findings).aeae2f10mergesmainat0d48231band settles the one collision, with #1173's row and detail section inideation/staging/INDEX.md, by keeping both, main's first. None is amended (no force-push).Evidence for OQ-1 (measured 2026-09-24)
The two nightlies since the budget went live, from their own
semantic-sweep-bundlemeta.json(budget 1,900,000 B both nights; deferrals split by thepopulationthe packer records on each):The split at each grounding share on the current inventory, with no model call: the aggregation's
mainatc6280584, assembled by the runner's own prepare path (python3 openxFactory/scripts/doc-health.py --repo-root . --previous-inventory health/inventory/2026-09-04.json --semantic-prepare <dir>), then packed bypack_within_budgetat each share — 196 changed documents (5,051,588 B atdocument_cost) and 127 promoted specs (2,984,532 B):The weekly full sweep over the same inventory (same prepare path,
--as-of 2026-09-27, a Sunday: 738 governed documents, 9,416,787 B; the same 127 specs):Method fidelity. At 0.5 the offline repack rebuilds each nightly bundle's
analysis-input.txtbyte for byte and itsmeta.jsonbudget record field for field (2026-09-23 and 2026-09-24), and does the same for both runner-built current bundles; the current inventory's 0.5 prompt is byte-identical to 2026-09-24's.scripts/doc_health/{semantic,corpus,inventory,runner}.pyandsemantic-prompt.mdare unchanged between both nights' openxFactory pins (9da52e31,94b6f7f1) andmain. Both nights' selections reproduce exactly against the aggregationmain'shealth/inventory/2026-09-04.json.The two recommendations, verbatim (both accepted by the 2026-09-26 ruling)
OQ-1:
OQ-2:
OQ-1 and OQ-2 as now recorded (verbatim; fenced so bare issue numbers do not autolink to this repository)
OQ-3 as now recorded (verbatim; fenced so its bare issue numbers do not autolink to this repository)
Validation (final state, head
aeae2f10)b0c9be62, the last commit before the merge frommain, run locally in a full clone:OPENSPEC_TELEMETRY=0 openspec validate add-worker-input-budget --strict:Change 'add-worker-input-budget' is valid, rc 0.python3 scripts/validate-openspec-cli-pin.py --all --no-cache(pinned@fission-ai/[email protected], content address verified): rc 0; 110 passed, 1 failed (111 items). The one failure isadd-chain-attestation, the disposition Brett Heap accepted on 2026-09-05; 0 undispositioned.verify-openxwallet-pin.py,validate-signed-execution-chain.py . --require-pinned-wallet-vocabulary,validate-former-id-arrival.py .,validate-release-tag-gate.py .,openXwallet/scripts/wallet-yaml-syntax-gate.py .,openXwallet/scripts/validate-openxwallet.py .,validate-factory-identity.py .,validate-clearing-dispatch.py .,verify-openxdox-pin.py,verify-opendox-pin.py.python3 scripts/doc-health.py --single-repo . --as-of 2026-09-26: identical findings at3aece177,47435c21,34fda9cf,656c958d,7b75aa1fandb0c9be62(31 critical, 25 error, 45 warning, 21 info; 0 new regressions; all 122 finding lines equal once the clone's directory name is normalised). Canon share by words moves from 39.8% to 39.6%, from the added staged prose.staged-topic-templategaps; nolocation-conformancestaged-exit citations (fragment and INDEX);Status: staged; the header parses to exactly its nine fields; eight questions; no prose line over 80 columns; the INDEX row has four cells.tests/doc-health/test_ideation_readiness.py,tests/doc-health/test_family_enumeration.py,tests/notebooklmandtests/corpus-adapter: 262 passed, 3 skipped, 30 subtests passed (the same at656c958dand7b75aa1f).re) over the title, this body and all nine commit messages: clean. Host-absolute path scan over the branch diff's 769 added lines: clean.git merge-treeagainstmainatbca4a260: no conflict.47435c21, the last head before the review rounds; every later commit up tob0c9be62is Markdown prose in the same files.python3 -m pytest tests/ -q -m "not postgres", with the openXwallet, openXdox and openDox gitlinks initialised as CI does and the pinned decision core atb21f0100: 8427 passed, 19 skipped, 411 subtests passed, 1 failed (below).34fda9cf, the four directories whose tests read the real ideation corpus (tests/doc-health,tests/ideation-dashboard,tests/notebooklm,tests/corpus-adapter): 3282 passed, 16 skipped, 30 subtests passed, 0 failed.tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]hits its fixed 30-second subprocess timeout on a loaded host (load average 11 to 13; the realization run makes about 5,900 git calls). Its validator reads none of this PR's five files; the previous head3aece177, checked out like for like, gives identical output and fails identically (2 of 2 interleaved rounds on each side, 30.05 s); and CI'spytest-suitepassed it at3aece177,47435c21andb0c9be62.aeae2f10: all eight required checks green (signed-execution-chain-gate,lane-line,former-id-arrival-gate,openspec-cli-pin,wallet-validation,pytest-suite,release-tag-gate,openxdox-consumer-gate); review threads 0 of 11 unresolved. The merge commit's message scans clean for closing keywords, and its tree differs frommainby exactly this branch's five files, each with the same delta as before the merge.Lane: openxfactory-1
🤖 Generated with Claude Code