Skip to content

add-worker-input-budget: tick Group 4 with landed evidence (4.1-4.3) - #1198

Merged
brettheap merged 5 commits into
mainfrom
change/awib-group-4-evidence
Sep 29, 2026
Merged

brettheap merged 5 commits into
mainfrom
change/awib-group-4-evidence

Conversation

@brettheap

@brettheap brettheap commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1

Group 4 evidence for add-worker-input-budget (Groups 1-3 already built and
ticked; Group 0 ratified except 0.4). Ticks 4.1-4.3 in tasks.md with
measured evidence only; touches nothing else. This PR is under
openspec/changes/ (Rule 6 landing-window applies at merge time).

What / why

Group 4 was open pending confirmation that the two built pull requests
actually landed, that the aggregation's openxFactory pin actually carries
the packer into the nightly, and that a real nightly ran green under it.
All three are independently measured here, not assumed from the proposal's
own narrative.

How verified

  • 4.1 opensoft/openxFactory#1137 (merged 9da52e31, 2026-09-22T03:45:21Z)
    and opensoft/xFactory#481 (merged b2479b6e, 2026-09-22T03:45:36Z) — 15
    seconds apart, both under Brett Heap's word "land the input-size guard
    when green"
    (xFactory#479), confirmed from each PR's own
    FREEZE/LANDING/LANDED comment trail.
  • 4.2 The gitlink first carried the packer via xFactory#483
    (2026-09-22T03:58:45Z, -> 9da52e31 exactly). Measured
    git merge-base --is-ancestor 9da52e31 <gitlink> true at every nightly's
    gitlink since (09-24 through today), and at the two pin-syncs that landed
    today, xFactory#543 and #544 (current gitlink e369cb25, confirmed
    live via the GitHub contents API at 2026-09-28T23:05:35Z).
  • 4.3 Downloaded opensoft/xFactory run 35947804907 (2026-09-24):
    analysis child 35948587830 and cataloger child 35948591376, the two
    children this task needs, both success — the first night BOTH
    succeeded end to end with real model output under the packer (the
    budget record itself is older: prepare already wrote a full one the
    night before, 09-23 run 35810840997, per proposal.md's own OQ-1
    citation, independent of that night's model-call outcome). Not
    called "fully green": the same run's finalize job separately recorded
    a snapshot-lane
    failure (CarveReachUnavailable) and readiness/derive-possibles
    dashboard-rendering skips, per .github/workflows/doc-health-reusable.yml: 1628-1635, for the then-uninitialized openDox/openXdox carved legs
    (unrelated, since fixed; the readiness-worker/derive-possibles-worker
    children themselves succeeded that night, runs 35949701420/
    35950836940). semantic-sweep-bundle/ meta.json: input_budget_bytes=1900000, input_bytes=1899236, docs_included=96, docs_deferred=227, truncated=true. No
    skip-reason.json in either bundle. The analysis child's own job log:
    input-size guard: analysis-input.txt is 1899236 bytes against a 1900000-byte budget from meta.json — passed, not refused. The committed
    health/reports/2026-09-24.md (recovered from commit 28f8d918f6 on the
    rolling report branch) states under ## Semantic Sweep: "- input:
    1899236 of 1900000 budgeted bytes, 96 docs sent, 227 deferred"
    — byte
    for byte the bundle's own record.
  • Residual, flagged not hidden: nights 09-25 through 09-28 have both
    children failing again — measurably on OQ-3's HTTP 403 org-entitlement
    refusal recurring ("Your organization has disabled Claude subscription access for Claude Code"), not on the input-size guard, which still
    passes every one of those nights before the model call itself errors.
    Recorded in tasks.md 4.3 rather than left implicit.

Validation

  • OPENSPEC_TELEMETRY=0 openspec validate add-worker-input-budget --strict
    → Change 'add-worker-input-budget' is valid.
  • python3 scripts/validate-openspec-cli-pin.py --all → Totals: 110 passed, 1 failed (111 items); the one failure is the pre-existing,
    cited/ratified add-chain-attestation disposition in
    contracts/openspec-cli-pin.yaml (Brett Heap, 2026-09-05, "take exit
    2") — not a blocker introduced here.
  • python3 scripts/doc-health.py --single-repo . --family status-validity
    → Findings: 0 critical, 0 error, 0 warning, 0 info. New regressions vs previous report: 0. (this repo's own CI does not itself run doc-health
    as a per-PR gate — it runs from the aggregation side — so this is a
    good-faith local self-check, not a wired gate re-run.)

Not done here (out of scope for this PR)

  • 0.4 (ratify or amend the two spec deltas) is Brett Heap's word, not
    ticked by this PR. Reported separately to the coordinator as a
    RULING-shaped question.

🤖 Generated with Claude Code

Summary by Sourcery

Mark Group 4 complete with measured landing, pin-sync, and nightly evidence while recording unrelated residual failures and leaving Group 0.4 ratification unresolved.

Enhancements:

  • Record measured evidence that both worker input-budget pull requests landed and that the aggregation has continuously carried the budgeted packer.
  • Confirm the analysis and cataloger workers succeeded under the input budget on the 2026-09-24 nightly, including matching bundle and report measurements.
  • Document the remaining nightly failures as unrelated organization-level Claude subscription entitlement errors rather than input-budget guard failures.
  • Explicitly flag the unresolved sequencing question between Group 4 completion and Group 0.4 ratification.

Tests:

  • Validate the OpenSpec change, CLI pin state, and repository documentation health without introducing new regressions.

Measured, not assumed. 4.1: both PRs (openxFactory#1137, xFactory#481)
merged 2026-09-22 fifteen seconds apart, on Brett Heap's word "land the
input-size guard when green" (xFactory#479). 4.2: the aggregation's
openxFactory gitlink has carried the packer continuously since
xFactory#483 (2026-09-22T03:58:45Z); every pin-sync since, including
today's xFactory#543 and #544, is a measured descendant. 4.3: the first
fully green nightly (xFactory run 35947804907, 2026-09-24) is confirmed
directly from the downloaded semantic-sweep-bundle and
document-catalog-bundle meta.json, the child job logs' input-size-guard
line, and the committed health/reports/2026-09-24.md sweep section,
quoted byte for byte.

Also records a residual, non-blocking observation: nights 09-25 through
09-28 have both children failing again, but on OQ-3's HTTP 403
org-entitlement refusal recurring, not on the input-size guard (which
measurably passed each of those nights before the model call failed).

0.4 (ratify-or-amend the two spec deltas) is untouched -- that is
Brett Heap's word to give, not this packet's to tick.

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 28, 2026 23:17
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

This PR updates only the change task checklist to tick Group 4 items 4.1–4.3 with independently measured landing, pin ancestry, and nightly artifact evidence, while explicitly preserving the unresolved 0.4 ratification and distinguishing unrelated lane failures and later model-service entitlement errors from input-budget behavior.

Sequence diagram for budgeted nightly verification

sequenceDiagram
    participant OpenXFactory
    participant XFactory
    participant Prepare
    participant Workers
    participant Report

    OpenXFactory->>XFactory: merge pull requests
    XFactory->>XFactory: sync openXFactory gitlink
    XFactory->>Prepare: run python3 openxFactory/scripts/doc-health.py
    Prepare->>Prepare: write semantic-sweep-bundle/meta.json
    Prepare->>Workers: dispatch analysis and cataloger
    Workers->>Workers: input-size guard
    alt within budget
        Workers->>Workers: model call
        Workers-->>Report: findings and catalog output
        Report->>Report: record input line
    else over budget
        Workers-->>Report: refuse input
    end
Loading

Flow diagram for nightly input-budget evidence

flowchart LR
    A["Packer records 1,899,236 bytes\nagainst 1,900,000-byte budget"] --> B{"Input-size guard passes?"}
    B -->|Yes| C["Analysis and cataloger\nproduce real model output"]
    B -->|No| D["Worker refuses input"]
    C --> E["Report records 96 docs sent\nand 227 deferred"]
    F["Later HTTP 403 entitlement errors"] -.-> C
Loading

File-Level Changes

Change Details Files
Records measured evidence that both implementation pull requests landed under the stated operational approval.
  • Ticks 4.1 and records both merge commits, timestamps, and FREEZE/LANDING/LANDED evidence.
  • Explicitly identifies the still-open 0.4 ratification and raises the sequencing tension as a ruling rather than silently resolving it.
openspec/changes/add-worker-input-budget/tasks.md
Documents that the aggregation continuously runs with an openxFactory pin containing the budgeted packer.
  • Ticks 4.2 and identifies the first qualifying pin-sync and descendant checks across subsequent nightly pins.
  • Records the current live gitlink and distinguishes routine later pin-syncs from the initial packer admission.
openspec/changes/add-worker-input-budget/tasks.md
Confirms the input-budget behavior on the first nightly where the required analysis and cataloger children both succeeded.
  • Ticks 4.3 with run and child success evidence, bundle budget metadata, guard-pass logs, and matching report output.
  • Clarifies that the nightly was not wholly green because unrelated snapshot/dashboard lanes failed or skipped.
  • Records later HTTP 403 model-service failures as residual entitlement issues, while noting the input-size guard continued to pass.
openspec/changes/add-worker-input-budget/tasks.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!

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 021e289dcf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

Group 4 is marked complete despite its ratification prerequisite remaining open.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Records measured evidence for completing Group 4 verification of the worker input-budget rollout.

Changes:

  • Documents landed implementation PRs and aggregation pin synchronization.
  • Records successful nightly budget enforcement and later unrelated HTTP 403 failures.
File Description
openspec/​changes/​add-worker-input-budget/​tasks.md Checks tasks 4.1–4.3 with supporting evidence.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Codex and Copilot both flagged the same real point on the first head:
Group 4 is headed "after ratification" and Group 0 "gates landing," yet
4.1 measurably landed on 2026-09-22 while 0.4 (ratifying the two spec
deltas) is still open. That already happened before this PR; ticking
4.1-4.3 without saying so would have looked like a properly gated
sequence rather than a fix landed under a separate operational word
during an active nightly outage. Adds a note naming the tension and the
actual authority the landing ran under, and puts the sequencing question
itself to Brett Heap as a RULING rather than deciding it here.

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 28, 2026 23:22
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

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

Group 4 remains sequenced after an incomplete ratification gate, and the documented exception still requires a human ruling.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 9ded2caad6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI review requested due to automatic review settings September 29, 2026 11:22

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

Run 35947804907 is inaccurately described as fully green despite documented lane failures and skips.

Review effort: Balanced
Findings: 1 Low severity

Open (1)

Copilot's re-review at the merged head was right: run 35947804907 was
not "fully green" -- the same run's finalize job recorded a separate
snapshot-lane failure (CarveReachUnavailable) and readiness/derive
dashboard-rendering skips ("the pinned openxdox_spec leg is not
materialized"), per .github/workflows/doc-health-reusable.yml:1628-1635,
for the then-uninitialized openDox/openXdox carved legs (unrelated,
since fixed). Reworded 4.3 to claim exactly what this task needs and
what was measured: the analysis and cataloger children succeeded and
produced the budget record, full stop -- naming the other lane's
failure/skips rather than implying the whole night was clean. Verified
the readiness-worker and derive-possibles-worker children (a different
pair from the skipped dashboard-rendering lanes) themselves succeeded
that night (runs 35949701420, 35950836940), so that distinction is
named too rather than left to be misread the other way.

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 29, 2026 11:44
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

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 PR description incorrectly calls the cited nightly fully green despite the task evidence documenting same-run failures and skips.

Review effort: Balanced
Findings: None

Resolved since last review (1)
Previously missed (1)

In code that hasn't changed since last review

Low severity Correct PR description's inaccurate fully green nightly claim

openspec/​changes/​add-worker-input-budget/​tasks.md:154

The PR description still calls run 35947804907 “the first fully green nightly,” but this evidence explicitly says the same run was not fully green because its snapshot lane failed and other lanes skipped. Please narrow the PR description to the analysis/cataloger children so the merge record does not claim stronger validation than the task evidence supports.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1200a8a19a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…xisted'

Codex caught a new imprecision my own previous reword introduced: calling
2026-09-24 "the first night either produced the budget record" conflicts
with proposal.md's own OQ-1 citation, which shows 09-23's semantic-sweep-
bundle (run 35810840997) already carried a full budget record (1,899,789
bytes, 92 sent, 226 deferred) -- prepare packs and records the budget
before either child is dispatched, independent of that night's model-call
outcome. 09-24 remains correct as the first night BOTH the analysis and
cataloger children succeeded end to end with real model output; that is
now stated as exactly that, with the 09-23 record named separately so the
two claims can't be conflated again.

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 29, 2026 12:06
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 2c11ee052b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

Cross-repository run and artifact evidence requires final human verification.

Review effort: Balanced
Findings: None

@sonarqubecloud

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-09-29T12:30:18Z, PR #1198 into opensoft/openxFactory main (Rule 6 window; rule6 scan CLEAR; gate PASS at head 2c11ee0 on main f56c87c). On Brett Heap's word verbatim: "land #511, #1198, #1199 and #51 when green".

@brettheap
brettheap marked this pull request as ready for review September 29, 2026 12:30
@brettheap
brettheap merged commit 51887c6 into main Sep 29, 2026
17 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1

LANDED — lane openxfactory-1, 2026-09-29T12:30:43Z, PR #1198 → 51887c6 (squash into opensoft/openxFactory main). Window closed.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="openspec/changes/add-worker-input-budget/tasks.md" line_range="135" />
<code_context>
+- [x] 4.3 Confirm on the first green nightly: `meta.json` carries
</code_context>
<issue_to_address>
**issue:** 4.3 is checked off even though its stated acceptance condition is confirmation on the first green nightly, while the documented 2026-09-24 run had a separate finalize snapshot-lane failure and dashboard-rendering skips. The checklist therefore reports the task as satisfying a green-nightly criterion that the evidence explicitly says was not met.

**Triggers:** When reviewers or automation interpret the checked task using its original “first green nightly” wording.

**Suggested fix:** Change the task criterion to explicitly require only successful analysis/cataloger children, or leave 4.3 unchecked until a genuinely green nightly satisfies the existing criterion.

```suggestion
- [x] 4.3 Confirm when both the analysis and cataloger children succeed: `meta.json` carries
```
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: openspec/changes/add-worker-input-budget/tasks.md:135


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

commits (finalize-job sealed-run containment, a T007 openspec record);
neither was needed to first admit the packer, which the nightly has run
under continuously since the night of 2026-09-23.
- [x] 4.3 Confirm on the first green nightly: `meta.json` carries

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

issue: 4.3 is checked off even though its stated acceptance condition is confirmation on the first green nightly, while the documented 2026-09-24 run had a separate finalize snapshot-lane failure and dashboard-rendering skips. The checklist therefore reports the task as satisfying a green-nightly criterion that the evidence explicitly says was not met.

Triggers: When reviewers or automation interpret the checked task using its original “first green nightly” wording.

Suggested fix: Change the task criterion to explicitly require only successful analysis/cataloger children, or leave 4.3 unchecked until a genuinely green nightly satisfies the existing criterion.

Suggested change
- [x] 4.3 Confirm on the first green nightly: `meta.json` carries
- [x] 4.3 Confirm when both the analysis and cataloger children succeed: `meta.json` carries

brettheap added a commit that referenced this pull request Sep 30, 2026
Brings the branch current with main after #1198 (51887c6), #1199
(7daaf0f, the catalog staging directory, the deleted _is_writer_temp,
the fsync-then-rename durability work), #1202-#1206 and #1181.

The merge applied without conflicts. #1199 did not reshape any function
this branch touches: _own_mode, _refuse_links_inside and the os.walk
error path of _refuse_foreign_descendants are as this branch left them,
and main's rewrite of _refuse_foreign_descendants' docstring (no temp
admitted, STAGING_DIR) and its body (the _is_writer_temp clause gone)
sits beside this branch's shared _refuse_unreadable_walk onerror
unchanged. The diff against main is still exactly this branch's two
files, at the same size as before the merge.

Lane: openxfactory-1
Co-Authored-By: Claude Opus 5.5 <[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