Skip to content

Harden #263: a reduced_reason must state something — one admission rule at four gates (+F5) - #314

Merged
brettheap merged 12 commits into
mainfrom
change/263-nonblank-reduced-reason
Aug 25, 2026
Merged

brettheap merged 12 commits into
mainfrom
change/263-nonblank-reduced-reason

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Closes #263.

The posture family implemented "a reduction nobody can read" as non-empty, not non-blank. Nine blank classes passed every gate and rendered as a disclosure with nothing in it — the exact outcome the browser adopter's own comment forbids ("showing the bare words 'reduced context' with no reason would be that degradation wearing a badge"), arriving through the one input shape nobody checked.

Provenance: fresh-eyes review of PR #256 (contract-v1.40, task 10.7 of the now-archived add-doxbench-editing-phase-b), findings F1 and F5. Not reachable from this repository's producer — the two shipped reasons are module constants — but real for the third-party producers this contract is published for.

The predicate

A reason states something iff it contains at least one character in L* ∪ N* ∪ P* ∪ S* — a letter, number, punctuation mark or symbol.

.strip() is not it, and this is why — measured, not assumed:

class category .strip() empties it
space Zs yes
tab Cc yes
NBSP U+00A0 Zs yes
newline Cc yes
ZWSP U+200B Cf no
BOM U+FEFF Cf no
bidi override U+202E Cf no
combining U+0301 Mn no
control U+0001 Cc no

The last five survive because they are not White_Space — they are zero-visible-width, a different property.

Stated as what it ADMITS, not what it excludes

The first version of this rule named the blank categories. Review swept all 1,112,064 code points and found the premise breaker: Python's unicodedata (15.0.0) and Node's ICU (Unicode 16) disagreed on 51 code points, all unassigned in 15.0 and newly assigned combining marks in 16 — and the disagreement ran the dangerous way, with the server accepting what the browser refused. That is the original bug reproduced.

An exclusion rule is written over a set that grows with the Unicode table, so it cannot be fixed by naming more categories. Cn is never L/N/P/S in any table, so an admission rule is stable by construction.

The property the tests assert is not "the runtimes agree" — they still disagree on 5,761 code points, and always will. It is that the bug direction is empty:

direction exclusion rule admission rule
server ACCEPTS / browser REFUSES (the bug) 51 0
server REFUSES / browser ACCEPTS (fail-closed) 0 5,761
unassigned code points accepted 825,345 0

The 5,761 are points Unicode 16 assigned and 15 has not: the older server refuses, so no record is admitted.

The four value gates

The released schema is untouched — minLength: 1 counts characters and every blank class is exactly one character, so tightening the shape is a contract-v2.0 question. This is the family's second delegated rule.

  1. ContextPacket.__post_init__ — now as strict as ref and provider_id two fields up, which is the inconsistency the issue named
  2. serve.doxbench_context_packet — imports the canonical predicate rather than restating it
  3. check_context_packet — restates it, because a contract validator must not import the runtime package whose artifacts it checks
  4. adoptContextPacket — restates it as NON_BLANK_REASON, a Unicode-property regex

F5

The last str() coercions on the posture path are gone, resolved the way the derivation resolved its own — refuse a non-string rather than manufacture one from it (str() on a malformed value is how <object object at 0x…> reaches a durable record). Its call site was inside no try at all, AST-confirmed, so those refusals would have escaped as a 500; now mapped to the same fixed invalid_turn_request the packet boundary uses.

No release cut

A documentation-only consumption_rule edit does not require one:

  • the versioning policy's change classes (Additive / Deprecating / Breaking) are defined over fields, shapes and vocabulary — manifest prose is none of them;
  • precedent exists: of the 23 commits touching a consumption_rule, 13 changed no schema file, and 238369ec is a genuine documentation-only edit — manifest and CHANGELOG prose, no schema bytes, no version heading;
  • mechanically nothing new breaks: validate-manifest-digests.py passes and the contract-v1.40 tag still verifies at its own commit.

v1.40's CHANGELOG entry is deliberately not edited — it is the immutable record of what that release shipped, and no release was cut here. Both notes live above the manifest row, where the next editor will look.

Separately filed

#312 — verify-commit has been red on main since the v1.40 tag (two commits edited manifest/CHANGELOG without a bundle cut) and no gate runs it. Discovered here, deliberately not fixed here.

Gates

gate result
tests/ideation-dashboard 4126 passed, 15 skipped (+111 new)
tests/doc-health 771 passed
tests/ideation_dashboard + proposal-support 99 passed
openspec validate --all --strict 75 passed, 0 failed
contracts validator 0 errors / 4 by-design warnings
manifest digests 150 verify
doc-health same-clock 4/8/82/3 both sides, new findings [], line-by-line identical

Six revert tests bite, including two that close a gap found by revert-testing this branch's own pins: reverting the browser regex alone left every test green, because the safety property held by accident.

🤖 Generated with Claude Code

brettheap and others added 9 commits August 24, 2026 19:38
…gates (+F5)

THE PREDICATE, chosen against measurement rather than intuition. `.strip()` --
what the family had and what a reviewer reaches for first -- catches four of the
nine recorded blank classes and misses five. Measured:

  space Zs, tab Cc, NBSP Zs, newline Cc     -> .strip() empties them
  ZWSP U+200B Cf, BOM U+FEFF Cf,            -> .strip() does NOT
  bidi U+202E Cf, combining U+0301 Mn,
  control U+0001 Cc

The last five survive because they are not White_Space -- they are
ZERO-VISIBLE-WIDTH, a different property. U+200B has not been Zs since Unicode
4.0.1. So the rule is written over CATEGORIES: a reason states something iff it
has at least one character outside White_Space u Cc u Cf u Mn u Mc u Me.

Stated ONCE in doxbench_packet with the measurement table beside it, because the
issue asks for one predicate restated identically rather than five spellings.
serve.py IMPORTS it rather than restating -- where sharing is available it beats
restatement, and it means the type gate and the server gate cannot drift.

Gate 1 (ContextPacket.__post_init__) now matches the strictness `ref` and
`provider_id` have had two fields up all along, which is the inconsistency the
issue named. Gate 2 (doxbench_context_packet) had `or not reason`, which IS the
released shape's `minLength: 1` -- and that bound counts characters, so every
one of the nine blanks is one character and passed.

F5: the last `str()` coercions on the posture path are gone from
doxbench_turn_v2_success_body, resolved the way the derivation resolved its own
rather than by inventing a second answer -- REFUSE a non-string instead of
manufacturing one from it, on the same recorded 400-vs-500 tension, unreachable
from any request because the only caller passes already-validated values.

Verified: both gates refuse all nine blanks and accept the shipped constant,
CJK, emoji, and a base letter carrying a combining mark -- the last three pinned
so this cannot quietly become a filter on non-Latin prose.

Co-Authored-By: Claude Fable 5 <[email protected]>
Gate 3 (check_context_packet) RESTATES the predicate rather than importing it,
deliberately: a contract validator must not import the runtime package whose
artifacts it checks, or a shared bug passes both sides. A test asserts the
restatement agrees with the canonical predicate on every recorded class.

Gate 4 (adoptContextPacket) restates it as a Unicode-property regex, exported as
NON_BLANK_REASON so the cross-runtime test can drive the EXACT regex the gate
uses rather than a copy. Its own comment already called a bare "reduced context:"
note "that degradation wearing a badge"; the blank classes were how that outcome
arrived.

DOC 1 -- check_context_packet's docstring said the pairing was the only restated
rule and that the second rule "is the only place it lives". Both stopped being
true. It now enumerates the non-blank rule's four homes and says which import and
which restate, and the rejected-rule note is renumbered.

DOC 2 -- the chat-turn consumption_rule, ADJUDICATED before editing, per the
brief. Conclusion: a documentation-only consumption_rule edit does NOT require a
release cut, on three grounds:

  * PRECEDENT IS CONFOUNDED, not supportive: all 23 commits in history that
    touch consumption_rule also touch the CHANGELOG -- but every one of them
    also changed schema bytes, which independently required a cut. The record is
    silent on a documentation-only edit; it has never happened.
  * THE POLICY'S CHANGE CLASSES do not cover it. `docs/contract-versioning-policy.md`
    defines Additive / Deprecating / Breaking, all in terms of fields, shapes and
    vocabulary. Prose in a manifest row is none of them, and there is no
    editorial class.
  * MECHANICALLY IT BREAKS NOTHING NEW, proven rather than argued:
    validate-manifest-digests.py still passes (150 digests -- consumption_rule is
    prose, not a per-file digest), the contract-v1.40 TAG still verifies at its
    own commit (verification is at-commit), and `verify-commit --commit HEAD`
    fails on exactly the two paths it ALREADY failed on before this change.

That last point is a PRE-EXISTING FINDING worth reporting separately: main has
drifted from its own release inventory since the v1.40 tag -- 525ac8b and
38f7b6b edited the manifest and CHANGELOG without cutting a bundle version --
so verify-commit at HEAD was already red on arrival. No gate in the set runs it,
which is why nobody saw it. Not mine, not fixed here, and NOT a licence: I am
joining an existing drift the next cut will re-baseline.

No release cut made. Brett rules on cuts (the v1.36 lesson).

Co-Authored-By: Claude Fable 5 <[email protected]>
…untimes

103 tests. The issue's reproduction table IS the matrix, and the table's own
premises are asserted rather than believed: each class's Unicode category, and
whether `.strip()` would have caught it. If a future Unicode release moves one of
these characters between categories, that fails loudly here instead of silently
changing what the predicate refuses.

Six values must still be ACCEPTED, and three of them are the real guard: a reason
may be entirely CJK, may be an emoji, and may carry combining marks on a base
letter. Without those this rule could quietly become a filter on non-Latin prose,
which would be a worse bug than the one it fixes.

The agreement test is the point of the file. Four homes, three runtimes, one
rule; two spellings is how they drift. It drives the same inputs through the
canonical predicate, the validator's restatement, and the browser regex and
asserts identical verdicts.

Two harness corrections worth naming, both found by running rather than
reasoning:

  * `adoptContextPacket` is NOT exported -- it is module-private, and the
    released consumer path is `settleTurnSuccess`. Driving the exported path is
    stronger anyway: it proves a blank cannot reach browser STATE, not merely
    that a helper would have refused it.
  * the source-scan test for F5 failed on its own subject, because the comment
    recording the fix necessarily quotes the coercion it removed. Scanning the
    whole body would have taught the next author to delete the explanation
    rather than keep the guard, so the scan now strips comment lines and checks
    CODE.

Co-Authored-By: Claude Fable 5 <[email protected]>
The brief named two documents that call the pairing the only restated rule. A
sweep found a third, in the posture-negatives table's own comment: "It is the one
rule this release delegates". That stopped being true when the non-blank rule
landed -- it is equally undelegatable to the shape, since `minLength: 1` counts
characters and every blank class is one character.

Rescoped to what the sentence can still truthfully say (the one negative in THAT
table the shape must not catch) and pointed at where the second delegated rule is
actually asserted. It has no packaged negative because adding one would touch the
released example surface, which is not this issue's to change.

Co-Authored-By: Claude Fable 5 <[email protected]>
…F5 raise

P2-1 IS REAL AND I REPRODUCED IT. Sweeping all 1,112,064 code points, Python's
unicodedata (15.0.0) and Node's ICU (Unicode 16) disagreed on 51 -- every one
unassigned in 15.0 and newly assigned as a combining mark in 16 (Arabic, Garay,
Tulu-Tigalari). The direction is what makes it a defect and not a curiosity: the
SERVER accepted a reason made only of them and the BROWSER refused it, which is
the original bug exactly -- a reason admitted to the durable record that renders
as nothing.

The cause is structural. An exclusion rule ("outside the blank categories") is
written over a set that GROWS WITH THE UNICODE TABLE, so it cannot be fixed by
naming more categories; the next release adds more. Inverted to an ADMISSION
rule -- accept iff at least one character is L*/N*/P*/S* -- which is stable by
construction, because `Cn` is never L/N/P/S in any table.

I STATE THE PROPERTY DIFFERENTLY FROM THE REVIEW, because the measurement does
not support "version-stable, zero disagreements". Under the new rule the two
runtimes still disagree on 5,761 code points. What changed is the DIRECTION, and
that is the whole safety argument:

  direction                          old rule    new rule
  server ACCEPTS / browser REFUSES   51 <-- bug         0
  server REFUSES / browser ACCEPTS    0            5,761 (fail-closed)
  unassigned code points accepted   825,345             0

The 5,761 are points Unicode 16 assigned and 15 has not: the older server
refuses, so no record is admitted. The test therefore asserts "the bug direction
is EMPTY", not "the runtimes agree" -- the latter would be red and would have to
be weakened later, which is how a pin rots.

The agreement test is widened from nine inputs to the full space, and it READS
THE SHIPPED REGEX out of the module rather than re-typing it: a sweep against a
copy proves the copy is fine and says nothing about the gate. It runs in ~4s.

P2-2 IS ALSO REAL, AST-confirmed both ways: the builder call was inside NO try at
all, so the refusals it gained when the coercions went would have escaped as a
500 while the builder's own comment claimed both refusals stayed on one shape.
Wrapped and mapped to the SAME fixed invalid_turn_request the packet boundary
uses -- not a new code, so the recorded 400-vs-500 tension stays one tension.
Pinned twice: end-to-end through the real route (asserting the V2 failure family,
because a refusal is answered in the family its request arrived in), and
structurally against the AST, which a source grep could not do.

Co-Authored-By: Claude Fable 5 <[email protected]>
…ymmetry

P3-3 -- the docstring claimed the predicate admits "a character a reader can
actually see". Falsified: U+3164 HANGUL FILLER, U+2800 BRAILLE PATTERN BLANK,
U+115F and U+FFA0 are letters or symbols by category, are accepted, and render
blank. Reworded to the category rule, which is exactly right. The fillers are
NOT chased -- visible rendering is a font and shaping question no category table
answers, and a predicate that tried to decide it would be guessing in the wrong
layer.

P3-4 -- my adjudication's ground 1 said a documentation-only consumption_rule
edit had "never happened", which was wrong. Re-archaeology: of the 23 commits
touching a consumption_rule, 13 changed no schema file, and 238369e is a
genuine documentation-only edit -- manifest and CHANGELOG prose, verified to
touch NO schema bytes and add NO version heading. That is a real precedent
pointing the same way the verdict already went, so the verdict stands and is
better supported than the argument I gave for it.

P3-5 -- recorded that v1.40's CHANGELOG entry is deliberately NOT edited even
though it now says "TWO DELEGATED RULES" and names one as living in exactly one
place. A CHANGELOG entry is the immutable record of what a release SHIPPED; no
release was cut here, and editing it would make it describe a bundle that was
never published.

Both notes live in contracts/manifest.yaml above the row itself, because that is
where the next person to edit a consumption_rule will actually be looking --
not in a commit message they would have to know to go find.

P3-6 -- the builder refused a non-string posture with its own message but folded
a non-string REASON into the blank message, telling a reader "nobody can read
this" about a value that was never a string. That is the same manufactured
diagnosis the str() coercion was. Two refusals now, one per defect.

Co-Authored-By: Claude Fable 5 <[email protected]>
REVERT-TESTING THE NEW PINS FOUND ONE THAT DID NOT BITE. Reverting the JS regex
alone -- back to the exclusion form, Python left inverted -- left all 109 tests
GREEN. The safety sweep genuinely held: everything Python admits (L/N/P/S) the
exclusion form also admits, so the bug direction stayed empty.

It held BY ACCIDENT. The exclusion form admits ~825,000 unassigned code points;
it merely happens not to admit anything Python refuses. So the browser would
have kept exactly the version-instability P2-1 is about -- its refusals moving
with every ICU release -- while the suite reported the rule safe. A pin that
passes for a reason unrelated to what it claims is worse than no pin.

Two assertions close it, and they are deliberately different in kind:

  * BEHAVIOURAL -- an admission rule accepts only what some table has assigned,
    so the unassigned points it admits are just the ones the newer runtime
    assigned and this one has not. Measured: 5,761 under admission versus
    825,294 under exclusion, a 143x gap, so the 50,000 bound is generous both
    ways and will not need moving when a Unicode release shifts the numbers.
  * STRUCTURAL -- a bound invites a clever rule that squeaks under it, so the
    shipped regex must also be a non-negated class naming L/N/P/S. A `[^…]`
    class is an exclusion by construction whatever it lists.

Both now fail on that revert.

Co-Authored-By: Claude Fable 5 <[email protected]>
The fail-closed assertion sampled `sorted(safe_direction)[:200]`, which is this
round's own lesson in miniature: the nine-input agreement test was a narrow
scope, and a narrow scope is exactly what hid the 51-code-point divergence P2-1
turned out to be.

Now checks all 5,761. The distinction it defends is real: a code point assigned
in BOTH tables that the two rules classify differently would be a genuine
disagreement rather than a version skew, and at code point 900,000 a sample of
the lowest 200 would never see it. The failure message names the offenders and
their categories instead of asserting per-item, so a real divergence reports as
one readable finding.

Co-Authored-By: Claude Fable 5 <[email protected]>
…educed-reason

Five upstream commits, none of which touches a file this branch touches: a new
doc-health family and the #301 archive-certification work. Clean by inspection
as well as by git — the openspec item count moves because the change set grew,
not because anything here moved.
Copilot AI lite review requested due to automatic review settings August 25, 2026 01:10

@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.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@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: 2b10ba8dc9

ℹ️ 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".

Comment on lines 1364 to 1367
if posture == "reduced" and not _states_something(reason):
f.error("context-packet",
f"{label}: a reduced context_packet STATES its reason — a "
f"reduction nobody can read is a silent degradation")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Publish the rejection only through a breaking release

For third-party producers, a contract-v1.40 record such as {posture: "reduced", reduced_reason: " "} was accepted by the released schema and validator but is now rejected as an error while the manifest still identifies the bundle as contract-v1.40 and the changelog/tag are unchanged. docs/contract-versioning-policy.md defines additive validator changes as warnings that preserve same-major conformance (lines 130–135), while rejecting previously accepted inputs requires the breaking-change process (lines 136–140); this cannot be treated as documentation-only without retroactively changing the meaning of the published version.

AGENTS.md reference: AGENTS.md:L9-L10

Useful? React with 👍 / 👎.

Comment on lines +461 to +462
return any(
unicodedata.category(ch)[0] in _STATED_CATEGORIES for ch in text)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Match the predicate to the published category rule

The changed manifest defines a valid reason as containing a character outside White_Space | Cc | Cf | Mn | Mc | Me, but this admission list additionally rejects all Co, Cn, and Cs characters. For example, a reason consisting of the private-use character U+E000 is outside every published blank class and may render as a customer-defined glyph, yet both this predicate and the browser regex reject it. Either implement the stated exclusion rule consistently or update the normative contract to describe the narrower L/N/P/S rule.

AGENTS.md reference: AGENTS.md:L9-L10

Useful? React with 👍 / 👎.

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.

Pull request overview

This pull request hardens doxBench reduced-context reason validation across Python, contract validation, and browser adoption while removing posture-path coercion.

Changes:

  • Adds a Unicode L/N/P/S admission predicate at all relevant gates.
  • Rejects malformed inputs and maps builder failures to the existing 400 response.
  • Adds cross-runtime regression tests and updates consumer documentation.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.

Show a summary per file
File Summary and review status
tests/ideation-dashboard/test_doxbench_contracts.py Updates delegated-rule documentation coverage.
tests/ideation-dashboard/test_doxbench_blank_reason.py Adds Unicode and cross-gate regression coverage. Open nit: document the exact L/N/P/S admission predicate. (nit, 4 votes)
scripts/validate-ideation-dashboard-contracts.py Adds standalone predicate validation. Open nit: align the docstring with the implemented admission rule. (nit, 4 votes)
scripts/ideation_dashboard/web/views/doxbench-chat-model.js Adds browser-side admission validation. Open critical issue: reducedContextNote still permits blank whitespace reasons. (critical, 1 vote) Open nit: correct the predicate comment. (nit, 4 votes)
scripts/ideation_dashboard/serve.py Removes coercion and handles packet errors. Open critical issue: the early return bypasses turn_store.fail, potentially leaving turns permanently in flight. (critical, 2 votes)
scripts/ideation_dashboard/doxbench_packet.py Defines and applies the canonical reason predicate.
contracts/manifest.yaml Updates consumer guidance. Open critical issue: the manifest change leaves a release digest mismatch. (critical, 2 votes) Open nit: state the exact L/N/P/S admission predicate. (nit, 4 votes)
Suppressed comments (3)

scripts/ideation_dashboard/doxbench_packet.py:383

  • This predicate is only monotonic when the server's Unicode table is no newer than the browser's. If Python is upgraded first while a supported browser still classifies a newly assigned letter/number/punctuation/symbol as Cn, states_something accepts it but NON_BLANK_REASON rejects it, recreating the server-accepts/browser-refuses bug. Nothing here pins or enforces that version ordering; use a version-stable shared table or make the supported Unicode-version ordering an explicit checked deployment invariant.
# An exclusion rule cannot be fixed by listing more categories, because the next
# Unicode release adds more. `Cn` (unassigned) is never `L`/`N`/`P`/`S` in ANY
# Unicode table, so an ADMISSION rule is stable by construction: a code point
# this predicate accepts is one some table has assigned meaning to.

scripts/ideation_dashboard/serve.py:870

  • Guarding the reason only inside if context_reduced_reason is not None still lets context_posture="reduced", context_reduced_reason=None build a packet with the required reduced_reason missing. That invalid body can reach the route's post-dispatch schema check and become response_invalid; the new builder hardening should enforce the reduced pairing (or keep all pairing validation out of this builder).
    if context_reduced_reason is not None:
        # TWO REFUSALS, NOT ONE (issue #263 review, P3-6). A non-string reason
        # and a blank one are different defects and had been folded into the
        # blank message, which told a reader "nobody can read this" about a
        # value that was never a string — the same manufactured-diagnosis class

scripts/validate-ideation-dashboard-contracts.py:1364

  • This is a new hard rejection for inputs that the released v1.40 schema still accepts (for example, a one-space reduced_reason). Because the manifest continues to declare contract-v1.40 while its immutable tag/validator have the old verdict, consumers pinned to that release and consumers using this checkout can disagree about conformance. Please stage this rule for the next bundle or ship it through a superseding release with the matching release metadata, rather than changing the v1.40 validator in place.
    if posture == "reduced" and not _states_something(reason):

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

Comment thread contracts/manifest.yaml
Comment on lines +1595 to +1599
# A DOCUMENTATION-ONLY `consumption_rule` edit does not require a cut:
# * `docs/contract-versioning-policy.md`'s change classes — Additive,
# Deprecating, Breaking — are all defined over fields, shapes and
# vocabulary. Manifest prose is none of them, and there is no editorial
# class.
Comment thread contracts/manifest.yaml Outdated
Comment on lines +1650 to +1651
NON-BLANK — at least one character outside
`White_Space | Cc | Cf | Mn | Mc | Me` — which `minLength: 1` cannot say,
Comment on lines +3297 to +3301
except doxbench_packet.PacketError:
self._refuse_turn(
validators, DOXBENCH_ERR_INVALID_TURN_REQUEST,
turn_id, failure_kind=failure_kind)
return
Comment on lines +442 to +444
// THE FAMILY'S RULE, RESTATED (canonical statement and the measurement:
// `doxbench_packet.states_something`): at least one character outside
// `White_Space ∪ Cc ∪ Cf ∪ M`. NOT `.trim()` — that catches space, tab,
Comment on lines +449 to +450
const reasonUsable = typeof reason === "string"
&& NON_BLANK_REASON.test(reason)
Comment on lines +1333 to +1334
3. THE REASON IS NON-BLANK — it contains at least one character outside
`White_Space ∪ Cc ∪ Cf ∪ Mn ∪ Mc ∪ Me`. "A reduction nobody can read"
Comment on lines +16 to +17
THE PREDICATE: a reason states something iff it contains at least one character
outside `White_Space ∪ Cc ∪ Cf ∪ Mn ∪ Mc ∪ Me`. `.strip()`/`.trim()` is NOT it
brettheap and others added 2 commits August 24, 2026 21:20
…te the

admission rule everywhere

BOTH FINDINGS ARE REAL. I reproduced each before deciding.

P1 -- VERIFIED AT THE TAG. The released contract-v1.40 validator answers
{posture: "reduced", reduced_reason: " "} with ZERO errors and ZERO warnings; my
branch turned that into an ERROR while the manifest, changelog and tag all still
say contract-v1.40. docs/contract-versioning-policy.md decides it in as many
words: ADDITIVE (minor) is "new optional fields, new contracts, NEW VALIDATOR
WARNINGS", under which same-major repos "remain conformant without changes";
rejecting a shape that was accepted is BREAKING (major) and its validator update
"rejects the old one ONLY AT THE NEW MAJOR VERSION".

The obvious counter-argument does not survive the record. `check_context_packet`
already errors on the pairing -- but all three of its error arms were introduced
BY the v1.40 cut itself (671a690, the tagged release commit), so that strictness
was published WITH the contract rather than added to it afterwards. v1.40's own
prose describes exactly two delegated rules and reserves no right to add a third.

So the validator now WARNS (`context-packet-blank`) and still ACCEPTS, naming
contract-v2.0 as where it becomes an error -- the same mechanism the deprecated
v1 chat-turn family already rides. The packaged expected output is unchanged at
0 errors / 4 warnings, re-verified.

THE THREE RUNTIME GATES STILL REFUSE, and that is not inconsistency. Only the
validator renders a conformance verdict on somebody else's record. The other
three guard this repo's own injected assembler seam, its own durable record, and
its own browser rendering its own server's output -- a server may hold itself to
more than the wire requires. This producer cannot emit a blank anyway; its two
reasons are module constants.

P2 -- REAL, and it is this round's own one-rule lesson turned on me: I inverted
the code to the admission rule and left the NORMATIVE manifest text stating the
exclusion form. A fourth home (the browser comment) was stale too, which Codex
did not catch and the sweep for it found. All four now state
`L* | N* | P* | S*`, and every one names the delta explicitly -- the admission
rule additionally refuses `Co` (private use), `Cn` (unassigned) and `Cs`
(surrogates).

Rejecting private use is defended, not incidental: a `Co` code point means
nothing outside the font that defines it, so a reason made only of them renders
as tofu for every other reader -- the disclosure-with-nothing-in-it in a
different disguise, refused on the same fail-closed ground.

Five new tests: the validator warns-and-accepts on all nine classes and names
v2.0; the Co/Cn/Cs delta; and a test asserting all four textual homes state the
same rule, because a home stating the old one is exactly how they drift.

Co-Authored-By: Claude Fable 5 <[email protected]>
CAUGHT BY THE PACKAGED-NEGATIVE SUITE, which is the guard doing its job: the
first version of the P1 fix collapsed two rules into one downgrade. ONE
predicate had been serving both the PAIRING rule (a reduced posture with no
reason) and the new BLANK rule, so warning instead of erroring quietly
downgraded the pairing too -- and that rule shipped as an error WITH v1.40,
where the blank rule did not. `test_each_packaged_posture_negative_is_refused_
where_it_should_be` went red on exactly the right negative.

Split on v1.40's own predicate, `not reason`, so the published version's
verdicts are preserved exactly:

  reason            v1.40      now
  missing key       ERROR      ERROR
  explicit null     ERROR      ERROR
  empty string      ERROR      ERROR
  " " / ZWSP / ...  accepted   accepted, with a warning
  a real reason     accepted   accepted

Nothing contract-v1.40 accepted is rejected, and nothing it rejected is now
allowed. That is the additive property the policy names, and it is now a test
(`test_no_record_contract_v140_accepted_is_now_rejected`) rather than a claim in
a comment.

Its fixture is DERIVED from the shared blank matrix rather than retyped -- the
first version hand-wrote the list, the literal U+0001 did not survive being
written, and the resulting empty string made the test fail against a verdict
v1.40 had actually errored on. A hand-copied fixture of invisible characters is
a fixture that will be wrong.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 25, 2026 01:42
@brettheap

Copy link
Copy Markdown
Contributor Author

P1 — VERIFIED. You are right, and the fix is in a8942a9d + aea42b38.

I reproduced it at the tag before deciding. The released contract-v1.40 validator answers {posture: "reduced", reduced_reason: " "} with zero errors and zero warnings:

$ git worktree add --detach ../v140 contract-v1.40
reduced_reason=' '        v1.40 validator errors=0 warnings=0  -> ACCEPTED
reduced_reason='​'   v1.40 validator errors=0 warnings=0  -> ACCEPTED

And the policy text you cite says exactly what you say it says: ADDITIVE (minor) is "new optional fields, new contracts, new validator warnings", under which same-major repos "remain conformant without changes"; a validator that rejects a previously accepted shape is the BREAKING class and "rejects the old one only at the new major version".

I checked the strongest counter-argument and it does not survive. check_context_packet already errors on the pairing rule — but git log -S shows that function and all three of its error arms were introduced by commit 671a6908, which is the v1.40 cut itself (the commit the tag points at). That strictness was published with the contract rather than added to it afterwards, so it is precedent for what a release may ratify, not a licence to add a fourth error under the same bundle version. v1.40's own CHANGELOG prose describes exactly two delegated rules and reserves no right to add a third.

So the published validator now warns and still accepts (context-packet-blank), naming contract-v2.0 as where it becomes an error — the same mechanism the deprecated v1 chat-turn family already rides. Packaged expected output re-verified unchanged at 0 errors / 4 warnings.

Your finding surfaced a second defect that neither of us named. My first cut of this fix downgraded the whole arm — and one predicate had been serving both the pairing rule and the blank rule. test_each_packaged_posture_negative_is_refused_where_it_should_be went red on exactly the right negative. The arms are now split on v1.40's own predicate (not reason), so:

reason v1.40 now
missing key / null / "" ERROR ERROR
" ", ZWSP, BOM, … accepted accepted, with a warning
a real reason accepted accepted

Nothing v1.40 accepted is rejected; nothing it rejected is now allowed. That is asserted as a test now, not argued in a comment.

The three runtime gates keep refusing, and I want to be explicit that this is a considered split rather than an inconsistency: only the validator renders a conformance verdict on someone else's record. ContextPacket.__post_init__ guards this repo's own injected assembler seam, doxbench_context_packet guards what this server writes into its own durable record, and the browser adopter guards this repo's own surface rendering its own server's output. A server may hold itself to more than the wire requires — and this producer cannot emit a blank anyway, since its two reasons are module constants pinned under the released ceiling.

P2 — VERIFIED, and it was worse than you found.

Straightforwardly real: I inverted the code to the admission rule and left the normative manifest text stating the exclusion form. That is this branch's own one-rule lesson turned on me.

Sweeping for it found a fourth stale home you did not name — the browser adopter's comment at doxbench-chat-model.js:444 was also still describing the exclusion form as the current rule. All four now state L* | N* | P* | S*, and there is a test asserting they do, because a home stating the old rule is exactly how four homes drift.

Every home now names the delta explicitly, as you asked: the admission rule additionally refuses Co (private use), Cn (unassigned) and Cs (surrogates).

On whether rejecting private use is defensible — I think yes, on the same fail-closed ground as the rest: a Co code point means nothing outside the font that defines it, so a reason composed only of them renders as tofu for every reader who lacks that font. That is the disclosure-with-nothing-in-it this rule exists to prevent, wearing a different disguise. It is now argued in the text rather than left implicit, so a future reader can disagree with it deliberately.

Gates

tests/ideation-dashboard 4135 passed, 15 skipped · doc-health + ideation_dashboard + proposal-support 870 · openspec --all --strict 75/0 · contracts validator 0 errors / 4 warnings · manifest digests 150.

Three new revert tests bite: validator back to ERROR (9 fail), a textual home back to the exclusion form (1), predicate widened to accept C* (32).

Thank you — the P1 in particular was the branch's central adjudication and I had it wrong.

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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Suppressed comments (6)

scripts/ideation_dashboard/serve.py:3301

  • This catch sends a refusal and returns without resolving the TurnStore lease created by reserve() earlier in the same request. Unlike the pre-reservation _refuse_turn callers, this path has already marked the (scope, client_turn_id) in flight; a retry with the same id will wait indefinitely, and a different id is blocked by the in-flight guard. Please finalize the reservation with turn_store.fail (preferably by reusing the common failure-finalization block below) before sending the refusal.
                    except doxbench_packet.PacketError:
                        self._refuse_turn(
                            validators, DOXBENCH_ERR_INVALID_TURN_REQUEST,
                            turn_id, failure_kind=failure_kind)
                        return

scripts/ideation_dashboard/serve.py:875

  • The new reason-side F5 branch is not directly exercised: the added builder tests cover a non-string posture and blank string reasons, but not a non-string context_reduced_reason such as 123 or object(). Add a focused case that asserts the manufactured-reason refusal, otherwise this branch can regress to coercion or the wrong failure classification while the current value tests remain green.
        if not isinstance(context_reduced_reason, str):
            raise doxbench_packet.PacketError(
                "a turn record carries the reduction's reason as the packet "
                "stated it; a coerced reason is a manufactured one")

scripts/ideation_dashboard/serve.py:761

  • The updated guard now uses states_something, so this branch enforces the non-blank admission rule rather than merely non-empty text. However, the preceding heading still says A NON-EMPTY STRING, which contradicts the new behavior and could send a future maintainer back to the old truthiness rule; please change that heading to A NON-BLANK STRING.
        # NON-BLANK, not merely non-empty (issue #263). This read
        # `or not reason`, which is the released shape's `minLength: 1` — and
        # that bound counts CHARACTERS, so all nine recorded blank classes are
        # one character long and every one of them passed. `states_something`
        # is the family's rule, defined once in `doxbench_packet`; this
        # boundary IMPORTS it rather than restating it, so the type gate and
        # the server gate cannot drift into two spellings of one rule.
        if not states_something(reason):

scripts/ideation_dashboard/web/views/doxbench-chat-model.js:451

  • This comment incorrectly says JavaScript .trim() misses all five of the listed classes. ECMAScript trimming includes U+FEFF (the BOM), even though Python's .strip() does not; scope this explanation to Python or describe whitespace trimming more generally so the rationale is accurate.
  // NOT `.trim()` — that catches space, tab, NBSP and newline and misses the
  // other five blank classes, which are zero-visible-width rather than
  // whitespace. A FULL CODE-POINT SWEEP drives every code point through this

tests/ideation-dashboard/test_doxbench_blank_reason.py:18

  • The module docstring still defines the predicate as the replaced exclusion set. That contradicts the admission rule implemented and asserted below, and could lead a future maintainer to copy the Unicode-version-unstable exclusion rule back into a gate. Please describe the current L* ∪ N* ∪ P* ∪ S* admission predicate here.
THE PREDICATE: a reason states something iff it contains at least one character
outside `White_Space ∪ Cc ∪ Cf ∪ Mn ∪ Mc ∪ Me`. `.strip()`/`.trim()` is NOT it
and the table below is why — it empties four of the nine and leaves five

tests/ideation-dashboard/test_doxbench_blank_reason.py:791

  • This test asserts findings.errors == [] and explicitly documents that a contract-v1.40-accepted record remains accepted with a warning, but its name says the record is "now rejected." Please rename it so the test name matches the behavior it locks in.
def test_no_record_contract_v140_accepted_is_now_rejected():

…own stale rule

P3-A -- a third party that VENDORS this runtime (imports doxbench_packet, or
runs this serve) rather than only validating against the published contract
inherits contract-v2.0's strictness today, because the runtime gates refuse what
the validator merely warns about. Fail-closed, and outside what the versioning
policy governs -- the policy binds the published contract surface, not a
consumer's choice to run this repository's code -- but a vendoring consumer
should know it is holding itself to the next major's rule early. Recorded in the
consumption_rule, which is the consumer-facing home where such a reader looks.

P3-B -- the test module's own docstring still stated the EXCLUSION form as the
current rule, in the file whose second paragraph calls itself "the agreement's
home". That is the worst possible place for a stale statement of the rule. It
now states the admission form, names the Co/Cn/Cs delta, frames the exclusion
form explicitly as history, and records that the four gates differ in what they
DO with the verdict.

And the four-homes test gained an ABSENCE assertion, because presence alone was
never enough: a home carrying BOTH statements reads as ambiguous to the next
author, and ambiguity is exactly how four homes drift. Verified to bite by
injecting the stale phrasing into the manifest, and verified not to fire on the
two genuine history spellings ("was first written as an EXCLUSION", "This was an
exclusion"), which are past-tense by construction.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 25, 2026 01:58
@brettheap
brettheap merged commit ba07a0e into main Aug 25, 2026
2 checks passed

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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Suppressed comments (3)

scripts/ideation_dashboard/serve.py:3301

  • This return path runs after turn_store.reserve(...) has created an in-flight lease, but _refuse_turn only emits the HTTP response and does not call TurnStore.fail. A builder refusal therefore strands the conversation in TURN_STATE_IN_FLIGHT: a later turn is rejected as turn_in_flight (and an identical retry can wait indefinitely). Route this error through the common failure-finalization block, or explicitly finalize the reserved lease before returning.
                    except doxbench_packet.PacketError:
                        self._refuse_turn(
                            validators, DOXBENCH_ERR_INVALID_TURN_REQUEST,
                            turn_id, failure_kind=failure_kind)
                        return

scripts/validate-ideation-dashboard-contracts.py:1451

  • _states_something returns False for non-strings too, so a structurally invalid record such as {posture: "reduced", reduced_reason: 123} takes this branch and emits a warning claiming it was accepted at contract-v1.40. validate_instance invokes these custom checks even when schema errors already exist, so this mislabels a type violation; gate this warning with isinstance(reason, str) or keep wrong types on the schema/error path.
    elif posture == "reduced" and not _states_something(reason):
        f.warn("context-packet-blank",
               f"{label}: a reduced context_packet STATES its reason — a "
               f"reduction nobody can read is a silent degradation. Accepted "
               f"at contract-v1.40 (the released shape's `minLength: 1` counts "
               f"CHARACTERS, and every blank class is one character); this "
               f"becomes an ERROR at contract-v2.0")

tests/ideation-dashboard/test_doxbench_blank_reason.py:817

  • The test name says the opposite of what its docstring and assertions verify: this checks that records accepted by contract-v1.40 remain accepted (with warnings), not that they are now rejected. Please rename it so failures and the compatibility guarantee are not misleading.
def test_no_record_contract_v140_accepted_is_now_rejected():

brettheap added a commit that referenced this pull request Sep 10, 2026
…cle, and the ledger that says why the archive is NOT taken yet (#876)

Box ledger for the option-(b) mirror on the real cycle (cxF #314 → b08958ae 23:27Z): 2.1/2.2/5.1 ticked with citations; archive not taken (this repository's half of the cycle pending; six boxes await Brett Heap). Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 10, 2026
Two review findings, both valid and both inside the record's remit.

The § 3.1 table was broken: the #314 heads paragraph sat between the two
data rows, so the 2026-09-10 #325 row rendered as prose rather than as
part of the table. The rows are now contiguous and the note follows the
table, which is where an explanatory note belongs.

`tasks.md` § 3.1's 2026-09-10 note could be read as putting the signing
before the approving. It now states the order out loud: both approvals
(2026-09-09T22:49:36Z, 2026-09-10T01:54:56Z) predate the signature
(~17:2xZ), and the enrolment merge predates both (codexFactory
`4c0053c3`, 2026-09-07T21:16:37Z), so the signature ratifies approvals
already given. That is the record's own § 0.2 reading, said in the
second place a reader meets it rather than left to be inferred.

Two measured corrections found while re-reading the API for these:
ruleset 22655338's name is `xFactory Tier-1 main protection (require PR
+ 1 approval)` and was quoted truncated in both files, and its bypass
list is recorded alongside 22655341's; and the org carries exactly THREE
active rulesets, so the record now says the two-ruleset enumeration is
complete and names the third (22655344 `Copilot Auto-Review All PRs`,
`non_fast_forward` + `copilot_code_review`, no `pull_request` rule) as
bearing on nothing here.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 10, 2026
…live tree (#912)

* Sign the Gate-Rules Council admitting record, reconciled against the live tree

The record OQ-2 selects is SIGNED — verdict ADMIT, Brett Heap 2026-09-10,
verbatim "do 1 and 2, sign, file it, do 744" (openxFactory #745 comment
5622848416, item 3). His act, the lane's pen; a direct convener disposition
with no seat run, on the precedent of codexFactory
records/2026-09-04-gate-rules-packaged-contract-floor-widening.md § 0.

The 2026-09-07 DRAFT is stale in eight named places and the record rewrites
what IS rather than editing silently (its § 7). The two that matter: NO
governance ground was spent — decision N-1 (e) was taken, the artifact was
relocated to floor/ where no CODEOWNERS entry reaches it, and codexFactory's
promoted `Bounded autonomous surface` is unnarrowed on main — and the
signature ratifies an act already taken, the enrolment having merged at
codexFactory 4c0053c3 on 2026-09-07.

tasks.md § 3.2 ticks on codexFactory #325 -> df42f803, merged by
openxfactory[bot] 22 min 16 s after opening with no human act. Every other box
is left open with the clause of its own text that is not yet met named:
3.1 on `Candidate class: unrecorded`, 3.3 on the missing constructed control,
3.4 on the absent re-pin artifact, 4.2 on two cycles where three are required.
§ 5.3 and § 5.4 are DISCHARGED and stay UNTICKED — an agent may not tick an
owner's-act box.

Lane: openxfactory-2

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Answer both review threads: contiguous table, the order said out loud

Two review findings, both valid and both inside the record's remit.

The § 3.1 table was broken: the #314 heads paragraph sat between the two
data rows, so the 2026-09-10 #325 row rendered as prose rather than as
part of the table. The rows are now contiguous and the note follows the
table, which is where an explanatory note belongs.

`tasks.md` § 3.1's 2026-09-10 note could be read as putting the signing
before the approving. It now states the order out loud: both approvals
(2026-09-09T22:49:36Z, 2026-09-10T01:54:56Z) predate the signature
(~17:2xZ), and the enrolment merge predates both (codexFactory
`4c0053c3`, 2026-09-07T21:16:37Z), so the signature ratifies approvals
already given. That is the record's own § 0.2 reading, said in the
second place a reader meets it rather than left to be inferred.

Two measured corrections found while re-reading the API for these:
ruleset 22655338's name is `xFactory Tier-1 main protection (require PR
+ 1 approval)` and was quoted truncated in both files, and its bypass
list is recorded alongside 22655341's; and the org carries exactly THREE
active rulesets, so the record now says the two-ruleset enumeration is
complete and names the third (22655344 `Copilot Auto-Review All PRs`,
`non_fast_forward` + `copilot_code_review`, no `pull_request` rule) as
bearing on nothing here.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Close three form gaps against the precedent this record names as its form

The record claims codexFactory
`records/2026-09-04-gate-rules-packaged-contract-floor-widening.md` as
the form it reproduces. Read against that record, three elements were
missing, and Brett Heap's word was that "the record's own form governs
how the signature is written" — so the form is the obligation.

1. `missing_required_seat: refused` was not addressed at all. It is the
   strongest objection available against a record with no seats in it,
   the charter carries it beside the disposition clause
   (`failure_semantics.missing_required_seat: refused`, read at
   `gate-rules.yaml` today), and the precedent's own § 7.4 treats being
   silent about it as the defect: "with no convening run there was no
   seat to be missing from one. A future act that needs seats is not
   licensed by this record to skip them." That answer is reproduced
   rather than paraphrased, and no wider licence is claimed. Beside it,
   § 0.1 now records THE GROUNDS for disposing this act directly — for
   this act and not as a general precedent, which is the form § 7.4 put
   them in.

2. The signature did not name the signatory's capacity. The precedent
   signs "by Brett Heap (repository owner, convener)"; the capacity was
   in this record's header but not in the block a reader quotes. It is
   now on the `Signed:` line.

3. The dispositions NOT taken were not enumerated. New § 5.1 puts all
   four branches — ADMIT taken, ADMIT AS AMENDED not taken, REFUSE not
   taken, PARK FOR LIAISON not reached because
   `failure_semantics.split_vote: park_for_liaison` needs a split and
   with no seat returns there is none. Both charter clauses were read
   from `gate-rules.yaml` rather than recalled.

No fact, figure or verdict changed. The one reference the new § 5.1
made ambiguous — "the dated form 5.1, 5.2 and 5.5 already use", which
means `tasks.md`'s boxes — now says so.

`openspec validate --strict` clean at the pinned CLI (1.12.0, content
address verified); doc-health's 100-finding set is byte-for-byte what
`origin/main` reports, so the record adds none.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Prove box 3.2's tick by enumerating the timeline, and answer its § 2.7 precondition

§ 3.2 is the one box this work ticks, and its clause is "no human
click" — a claim about an ABSENCE, which is only proven by enumerating
what IS there. It was argued instead from the ruleset bypass lists. The
timeline API now supplies the direct proof, read on 2026-09-10.

Every event on codexFactory #325 between opening (01:32:58Z) and merge
(01:55:14Z): `committed`; `auto_merge_enabled` by `openxfactory[bot]` at
01:33:02Z; `commented` by `github-actions[bot]` 01:33:22Z; `commented`
by `sonarqubecloud[bot]` 01:54:32Z; `reviewed` (5161853361,
`codexfactory[bot]`, APPROVED, 01:54:56Z); `merged` and `closed` by
`openxfactory[bot]` 01:55:14Z. Four actors, every one a Bot. The one
human login on the pull request is `brettheap`, first at 02:13:57Z —
eighteen minutes AFTER the merge — and only in `referenced` /
`cross-referenced` events, which are the side effect of linking the pull
request from elsewhere and not acts upon it.

The same read-out answers the one precondition this box carries and had
been passing over. § 3.1's 2026-09-07 note says "§ 3.2's unattended
merge additionally waits on § 2.7", and § 2.7 is unticked. What § 2.7
asks is that auto-merge BE ARMED; the `auto_merge_enabled` event proves
it was, four seconds after opening, under the successor packet § 2.7's
own note names. The arming is a fact about the world; § 2.7's box is a
claim about what THIS packet performed, and it performed none of it — so
the box stays unticked because the act was a successor's, not because
the arming is absent.

Also precise now: "both org rulesets" reads "both approval-bearing org
rulesets", the org having three.

BOXES RE-JUDGED AGAINST THEIR OWN LITERAL TEXT, NOTHING CHANGED:
§ 4.2 requires the figure "over at least three consecutive cycles" and
two merged cycles exist (#302 parked and was closed), so it stays open.
§ 5.3 and § 5.4 are group-5 owner's-act boxes and this file's head rule
is that "an agent may not tick an owner's-act box at all", so both stay
unticked with their acts carried in dated notes. The ask to the owner is
one line: tick 5.3 and 5.4.

`openspec validate --change … --strict` clean at the pinned CLI;
doc-health 100 findings, byte-for-byte `origin/main`'s set.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 11, 2026
…ct README's stale "only tick" sentence

Two Copilot review threads on PR #943:
(a) tasks.md 1.5.a cited extend-merge-master-envelope-to-floor-bot-lanes
    box 4.2 as requiring "the third consecutive unattended cycle", but
    4.2's own text only requires a third consecutive cycle's per-cycle
    human cost to be measured (it counts codexFactory #314 despite its
    one hand-dispatched leg). 1.5.a now quotes 4.2 verbatim and states
    what is measured, over how many cycles, and what counts as a cycle,
    so the two gates are literally the same gate. The section-3 intro's
    echo of the same criterion is updated in lockstep (same file, same
    box). 1.5.b is untouched.
(b) The README OpenSpec Records row still said this change's only tick
    anywhere was the mirror amendment's box 4.3 (true of the filing,
    PR #910, alone) after the ratifying diff (this PR, #943) also ticked
    tasks.md 1.1-1.3 locally. The row now attributes 4.3's tick to PR
    #910 by name and states the local 1.1-1.3 ticks and the 1.5 hold.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 11, 2026
…not restate box 4.2 as if it already carried one

The prior fix-round commit (26a272b) resolved Copilot's first tasks.md
thread by making 1.5.a quote parent box 4.2 verbatim "so the two gates are
the same gate" -- but box 4.2 only requires three consecutive MEASURED
cycles (it counts codexFactory #314 toward its three despite #314's one
hand-dispatched approval leg). Brett Heap's ratified selection said "the
third UNATTENDED codexFactory cycle" -- stricter than box 4.2. Making the
two gates literally identical silently dropped the unattended condition:
a third hand-dispatched cycle would have satisfied 1.5.a as it stood.
Copilot caught this immediately on the new head, in four more threads
(README.md:549, design.md:285, review/ratification-2026-09-11.md:91,
tasks.md:103) plus one pre-existing, unrelated thread on proposal.md:29.

THE FIX, the same criterion in every place that states it:

Sub-box 1.5.a holds until a third consecutive measured cycle exists (box
4.2's own count -- codexFactory #314 and #325 are the first two) AND that
third cycle is itself fully unattended: opened by openxfactory[bot],
approved by the merge-master App, and merged by app/openxfactory, with
ZERO human acts on it -- no workflow_dispatch, no click, no admin merge --
evidenced by the PR number, the merge sha, the approval URL, and the
absence of any human event on its timeline. #314 counts toward box 4.2's
three but does NOT itself satisfy the unattended condition, on its one
hand-dispatched approval leg; #325 does, carrying no human act at all.

Applied in all five places named across the four threads:
- tasks.md 1.5.a: rewritten with the criterion above; box 4.2 is quoted
  only to show what it does NOT require, and the added condition is
  stated as this box's own, layered on top. Section 3's intro echo
  (same file) updated in lockstep so the file does not contradict itself
  between the box and its own section header, as the prior round did for
  the previous wording.
- design.md D-3 "Amended at ratification" item 1: restated so the heading
  and body agree that the unattended condition is this amendment's own
  addition, not something box 4.2 already carries.
- review/ratification-2026-09-11.md: the same criterion, replacing the
  sentence that called box 4.2 itself "the THIRD consecutive unattended
  codexFactory cycle".
- README.md OpenSpec Records row (two sentences, lines ~544 and ~565):
  summarised in the same terms -- "a third cycle, itself fully
  unattended" -- rather than attributing the unattended condition to box
  4.2's own count.
- proposal.md "What is NOT proposed": the "No ratification ... every
  document is Status: draft" bullet is now prefixed "At filing
  (2026-09-10, PR #910):" and gains one sentence, "Ratified with
  amendment 2026-09-11 -- see review/ratification-2026-09-11.md.", per
  the fifth thread (proposal.md:29). The bullet is kept, not deleted.

The ratification record's RULED form is unchanged: Status: ratified,
one Ratified: citation line.

GATES, RUN ON THIS COMMIT.
- OPENSPEC_TELEMETRY=0 openspec validate
  admit-review-lane-repin-to-merge-approval-envelope --strict ->
  "Change 'admit-review-lane-repin-to-merge-approval-envelope' is valid".
- OPENSPEC_TELEMETRY=0 openspec validate --all --strict -> 97 passed, 3
  failed (100 items). Verified IDENTICAL on origin/main (fa94dfb) via a
  side-by-side worktree run: same 97/3 split, same three failing items
  (change/disposition-codexfactory-declared-renames,
  change/disposition-codexfactory-floor-relocation-retitle,
  spec/repo-boundary-governance) -- pre-existing, unrelated to this diff.
- python3 -m pytest -q tests/doc-health -p no:cacheprovider -> 1689
  passed, 7 warnings (unrelated tarfile DeprecationWarning), 381.76s.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 11, 2026
…e contradicts; the counted unit is box 4.2's, the codexFactory merge alone

Copilot review thread (PRRT_kwDOTAvnrs6hVWih, tasks.md:116, posted 03:52:30Z
on head e88687a): 1.5.a's "What counts as a cycle" sentence defined a cycle
as "one codexFactory regeneration pull request merging, paired with its
openxFactory re-pin half" -- but the parent's own box 3.4
(extend-merge-master-envelope-to-floor-bot-lanes/tasks.md) records that the
re-pin lane's last pull request is #764 (merged 2026-09-07) and "no
bot/review-lane-repin pull request has been opened since", so the
2026-09-09/10 cycles (#314, #325) have no re-pin artifact of "that same
cycle" at all. 1.5.a nevertheless counted #314 and #325 as its first two
under the pairing definition it stated, which its own cited evidence does
not support.

THE FIX, as directed: remove the pairing requirement rather than stop
counting #314/#325 -- the unit is exactly what the parent's box 4.2 counts,
quoted in the same box one sentence earlier: "merges per advance of the
pinned core". One codexFactory regeneration pull request merging IS one
cycle; no paired openxFactory re-pin pull request is required or implied.
The rewritten sentence cites box 3.4's own no-re-pin-artifact finding
directly, so the box states why #314/#325 still validly count rather than
leaving the reader to take it on faith. The "Evidence needed to tick"
sentence's "the approval URL for that cycle's re-pin advance" -- the same
pairing assumption smuggled into the evidence list -- is corrected to "the
merge-master App's approval URL on that same pull request", matching the
"approved by the merge-master App" condition already stated earlier in the
box.

UNTOUCHED, on purpose: the amendment's unattended-on-top-of-4.2 strengthening
(the qualifying third cycle must itself be bot-opened, App-approved,
app-merged, zero human acts; #314 counts toward box 4.2's three but is not
unattended, on its hand dispatch; #325 is) -- that is the prior fix-round's
(e88687a) correct resolution of Copilot's earlier threads and this round
does not touch it. Checked design.md's D-3 note, review/ratification-
2026-09-11.md and the README row for the same "paired"/"re-pin half"
wording: none of the three restates a cycle-counting unit at all (each just
says "a third consecutive [...] cycle" without defining "cycle"), so none
needed edit -- grep confirms zero remaining "paired"/"re-pin half" hits
anywhere in the packet or README.md. proposal.md:119 and .openspec.yaml:31
keep their own "the openxFactory re-pin half was driver-produced by hand"
sentence unedited: that is a true historical narration of one specific
cycle (#325 codexFactory + #883 openxFactory, the "why now" figure that
justified filing this packet, comment 5618883586) and never asserted the
1.5.a pairing requirement in the first place.

The ratification record's RULED form is unchanged: Status: ratified, one
Ratified: citation line.

GATES, RUN ON THIS COMMIT.
- OPENSPEC_TELEMETRY=0 openspec validate
  admit-review-lane-repin-to-merge-approval-envelope --strict ->
  "Change 'admit-review-lane-repin-to-merge-approval-envelope' is valid".
- OPENSPEC_TELEMETRY=0 openspec validate --all --strict -> 97 passed, 3
  failed (100 items); the three failures (change/disposition-codexfactory-
  declared-renames, change/disposition-codexfactory-floor-relocation-
  retitle, spec/repo-boundary-governance) are the same pre-existing,
  unrelated set the prior fix-round (e88687a) verified identical to
  origin/main.
- python3 -m pytest -q tests/doc-health -p no:cacheprovider -> 1689 passed,
  7 warnings (unrelated tarfile DeprecationWarning), 403.71s.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 11, 2026
…ENT: realization held until the third unattended cycle and the unrecorded-class fix are observed (#943)

* Ratify admit-review-lane-repin-to-merge-approval-envelope WITH AMENDMENT (Brett Heap, 2026-09-11 ~01:15Z, selection "Ratify with amendment")

RULING. Brett Heap, openxFactory repository owner, first-hand, in session,
2026-09-11T01:15Z (approx.). A SELECTION, NOT A TYPED SENTENCE: presented
with the lane's multi-choice question, he chose the option "Ratify with
amendment", whose text read: "Ratify the text now; hold realization until
the third unattended codexFactory cycle is measured and the
unrecorded-class fix is observed on a live approval." Recorded on
openxFactory #745 (the CLAIMED comment,
#745 (comment))
— this selection has no separate codexFactory #232 posting, unlike the
earlier filing word. Recorded in review/ratification-2026-09-11.md.

WHAT FLIPPED.
- proposal.md: Status: draft -> ratified; added a Ratified: citation line
  (approver + date + record path). The stale "RATIFICATION IS OWED"-style
  prose ("THE WORD AUTHORIZED THE FILING, NOT THE CONTENT...", "UNTIL THIS
  PROPOSAL IS RATIFIED, N-1 STANDS...", "NOTHING IN THIS PACKET DISTURBS
  EITHER RULING...") corrected in place to say ratification happened and
  what it changed, on the accept-sequenced-after-header-line 208f88d
  precedent.
- design.md: Status: draft -> ratified; added a self-citing Ratified by:
  line; D-3 gains an "Amended at ratification" subsection stating the two
  held preconditions verbatim; D-1 through D-8 otherwise STAND AS
  RECOMMENDED.
- tasks.md: lead paragraph updated to record the ruling; 1.1, 1.2, 1.3
  ticked with dated RULED annotations quoting the disposition; 1.4 left
  unticked with a "stand as recommended" note (not named individually by
  the word, per the accept-sequenced-after-header-line 0.4/0.5 precedent);
  1.5 rewritten as the amended gate with two evidence sub-boxes (1.5.a the
  third unattended cycle, 1.5.b codeXfactory/codexFactory PR #369 observed
  fixed on a live approval); Section 3's heading and lead note the
  additional hold.
- .openspec.yaml: origin.approved_by / origin.approved_on added beside the
  existing drafting-only proposed_by, per add-drafted-proposal-origin's
  "approval is a pure ADDITION" rule.
- README.md: the OpenSpec Records active-changes row moved DRAFT ->
  RATIFIED WITH AMENDMENT, citing the record; the now-stale "filing is not
  ratifying" / "UNTIL THIS PROPOSAL IS RATIFIED" sentences corrected in
  place.
- New: review/ratification-2026-09-11.md — Status: ratified, Kind: report,
  Decision date, Ratifier, and exactly one Ratified: citation line (matched
  to disposition-codexfactory-floor-relocation-retitle's and
  accept-sequenced-after-header-line's form); records the selection, the
  three acts in one selection, what is ratified (D-1..D-8, N-1 re-opened
  toward N-1(b)), what this ratification does NOT do (no realization, no
  merge), the order of events, and citations.

THE AMENDMENT, ENCODED EXACTLY. D-3's own recommendation (land the
enrolment INERT) is NOT reversed. What is added: REALIZATION (tasks.md
Section 3 -- the envelope entry, the sole_candidate() replacement, the
witness edit) is HELD, beyond this packet's own Section 4 preconditions,
until BOTH:
  1.5.a the third consecutive unattended codexFactory cycle is measured
        (extend-merge-master-envelope-to-floor-bot-lanes tasks.md box 4.2;
        two of three measured as of this ruling: codexFactory #314 ->
        b08958ae, #325 -> df42f803);
  1.5.b the "Candidate class: unrecorded" rendering defect
        (extend-merge-master-envelope-to-floor-bot-lanes
        review/gate-rules-council-admitting-record-2026-09-10.md Section
        3.5) is fixed (codeXfactory/codexFactory PR #369) AND observed
        fixed on one live approval.

GATES, RUN ON THIS COMMIT (pinned CLI @fission-ai/[email protected], per
contracts/openspec-cli-pin.yaml).
- OPENSPEC_TELEMETRY=0 openspec validate
  admit-review-lane-repin-to-merge-approval-envelope --strict -> "Change
  ... is valid", exit 0.
- OPENSPEC_TELEMETRY=0 openspec validate --all --strict -> 98 passed, 2
  failed (100 items), exit 1 -- IDENTICAL before/after via git-stash on
  this same tree; the two failures (add-chain-attestation,
  add-composed-view-authoring) are pre-existing and unrelated.
- python3 scripts/doc-health.py --single-repo . --family
  ratified-provenance / --family status-validity: zero findings naming
  this packet in either family (a first pass found ONE -- the checker
  reads only the first PHYSICAL line after "Ratified:" for its
  approver/date/path floor, and this packet's own line-wrap had pushed "by
  Brett Heap" past line one; fixed by keeping the approver clause on line
  one, matching the two precedent files' shape).
- python3 scripts/doc-health.py --single-repo . (full sweep, all
  families): 32 critical, 5 error, 47 warning, 16 info, IDENTICAL
  before/after via git-stash on this same tree ("New regressions vs
  previous report: 0" both times).
- python3 -m pytest -q tests/doc-health -p no:cacheprovider -> 1689
  passed, 7 warnings.

NOTHING IS REALIZED BY THIS RATIFICATION. No envelope byte, no workflow, no
test, no ruleset, no floor, no pin byte moves, in this commit. Every box in
tasks.md Section 3 stays unticked and -- by the amendment -- may not be
started by an agent until 1.5.a and 1.5.b both tick. This commit does not
merge the pull request; the merge follows on a separate landing act under
this repository's Rule 6.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Sonnet 5 <[email protected]>

* Fix-round: align 1.5.a with parent box 4.2's literal criterion; correct README's stale "only tick" sentence

Two Copilot review threads on PR #943:
(a) tasks.md 1.5.a cited extend-merge-master-envelope-to-floor-bot-lanes
    box 4.2 as requiring "the third consecutive unattended cycle", but
    4.2's own text only requires a third consecutive cycle's per-cycle
    human cost to be measured (it counts codexFactory #314 despite its
    one hand-dispatched leg). 1.5.a now quotes 4.2 verbatim and states
    what is measured, over how many cycles, and what counts as a cycle,
    so the two gates are literally the same gate. The section-3 intro's
    echo of the same criterion is updated in lockstep (same file, same
    box). 1.5.b is untouched.
(b) The README OpenSpec Records row still said this change's only tick
    anywhere was the mirror amendment's box 4.3 (true of the filing,
    PR #910, alone) after the ratifying diff (this PR, #943) also ticked
    tasks.md 1.1-1.3 locally. The row now attributes 4.3's tick to PR
    #910 by name and states the local 1.1-1.3 ticks and the 1.5 hold.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Sonnet 5 <[email protected]>

* Fix-round: 1.5.a must add an unattended condition ON TOP of box 4.2, not restate box 4.2 as if it already carried one

The prior fix-round commit (26a272b) resolved Copilot's first tasks.md
thread by making 1.5.a quote parent box 4.2 verbatim "so the two gates are
the same gate" -- but box 4.2 only requires three consecutive MEASURED
cycles (it counts codexFactory #314 toward its three despite #314's one
hand-dispatched approval leg). Brett Heap's ratified selection said "the
third UNATTENDED codexFactory cycle" -- stricter than box 4.2. Making the
two gates literally identical silently dropped the unattended condition:
a third hand-dispatched cycle would have satisfied 1.5.a as it stood.
Copilot caught this immediately on the new head, in four more threads
(README.md:549, design.md:285, review/ratification-2026-09-11.md:91,
tasks.md:103) plus one pre-existing, unrelated thread on proposal.md:29.

THE FIX, the same criterion in every place that states it:

Sub-box 1.5.a holds until a third consecutive measured cycle exists (box
4.2's own count -- codexFactory #314 and #325 are the first two) AND that
third cycle is itself fully unattended: opened by openxfactory[bot],
approved by the merge-master App, and merged by app/openxfactory, with
ZERO human acts on it -- no workflow_dispatch, no click, no admin merge --
evidenced by the PR number, the merge sha, the approval URL, and the
absence of any human event on its timeline. #314 counts toward box 4.2's
three but does NOT itself satisfy the unattended condition, on its one
hand-dispatched approval leg; #325 does, carrying no human act at all.

Applied in all five places named across the four threads:
- tasks.md 1.5.a: rewritten with the criterion above; box 4.2 is quoted
  only to show what it does NOT require, and the added condition is
  stated as this box's own, layered on top. Section 3's intro echo
  (same file) updated in lockstep so the file does not contradict itself
  between the box and its own section header, as the prior round did for
  the previous wording.
- design.md D-3 "Amended at ratification" item 1: restated so the heading
  and body agree that the unattended condition is this amendment's own
  addition, not something box 4.2 already carries.
- review/ratification-2026-09-11.md: the same criterion, replacing the
  sentence that called box 4.2 itself "the THIRD consecutive unattended
  codexFactory cycle".
- README.md OpenSpec Records row (two sentences, lines ~544 and ~565):
  summarised in the same terms -- "a third cycle, itself fully
  unattended" -- rather than attributing the unattended condition to box
  4.2's own count.
- proposal.md "What is NOT proposed": the "No ratification ... every
  document is Status: draft" bullet is now prefixed "At filing
  (2026-09-10, PR #910):" and gains one sentence, "Ratified with
  amendment 2026-09-11 -- see review/ratification-2026-09-11.md.", per
  the fifth thread (proposal.md:29). The bullet is kept, not deleted.

The ratification record's RULED form is unchanged: Status: ratified,
one Ratified: citation line.

GATES, RUN ON THIS COMMIT.
- OPENSPEC_TELEMETRY=0 openspec validate
  admit-review-lane-repin-to-merge-approval-envelope --strict ->
  "Change 'admit-review-lane-repin-to-merge-approval-envelope' is valid".
- OPENSPEC_TELEMETRY=0 openspec validate --all --strict -> 97 passed, 3
  failed (100 items). Verified IDENTICAL on origin/main (fa94dfb) via a
  side-by-side worktree run: same 97/3 split, same three failing items
  (change/disposition-codexfactory-declared-renames,
  change/disposition-codexfactory-floor-relocation-retitle,
  spec/repo-boundary-governance) -- pre-existing, unrelated to this diff.
- python3 -m pytest -q tests/doc-health -p no:cacheprovider -> 1689
  passed, 7 warnings (unrelated tarfile DeprecationWarning), 381.76s.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Sonnet 5 <[email protected]>

* Fix-round: 1.5.a drops the re-pin pairing requirement its own evidence contradicts; the counted unit is box 4.2's, the codexFactory merge alone

Copilot review thread (PRRT_kwDOTAvnrs6hVWih, tasks.md:116, posted 03:52:30Z
on head e88687a): 1.5.a's "What counts as a cycle" sentence defined a cycle
as "one codexFactory regeneration pull request merging, paired with its
openxFactory re-pin half" -- but the parent's own box 3.4
(extend-merge-master-envelope-to-floor-bot-lanes/tasks.md) records that the
re-pin lane's last pull request is #764 (merged 2026-09-07) and "no
bot/review-lane-repin pull request has been opened since", so the
2026-09-09/10 cycles (#314, #325) have no re-pin artifact of "that same
cycle" at all. 1.5.a nevertheless counted #314 and #325 as its first two
under the pairing definition it stated, which its own cited evidence does
not support.

THE FIX, as directed: remove the pairing requirement rather than stop
counting #314/#325 -- the unit is exactly what the parent's box 4.2 counts,
quoted in the same box one sentence earlier: "merges per advance of the
pinned core". One codexFactory regeneration pull request merging IS one
cycle; no paired openxFactory re-pin pull request is required or implied.
The rewritten sentence cites box 3.4's own no-re-pin-artifact finding
directly, so the box states why #314/#325 still validly count rather than
leaving the reader to take it on faith. The "Evidence needed to tick"
sentence's "the approval URL for that cycle's re-pin advance" -- the same
pairing assumption smuggled into the evidence list -- is corrected to "the
merge-master App's approval URL on that same pull request", matching the
"approved by the merge-master App" condition already stated earlier in the
box.

UNTOUCHED, on purpose: the amendment's unattended-on-top-of-4.2 strengthening
(the qualifying third cycle must itself be bot-opened, App-approved,
app-merged, zero human acts; #314 counts toward box 4.2's three but is not
unattended, on its hand dispatch; #325 is) -- that is the prior fix-round's
(e88687a) correct resolution of Copilot's earlier threads and this round
does not touch it. Checked design.md's D-3 note, review/ratification-
2026-09-11.md and the README row for the same "paired"/"re-pin half"
wording: none of the three restates a cycle-counting unit at all (each just
says "a third consecutive [...] cycle" without defining "cycle"), so none
needed edit -- grep confirms zero remaining "paired"/"re-pin half" hits
anywhere in the packet or README.md. proposal.md:119 and .openspec.yaml:31
keep their own "the openxFactory re-pin half was driver-produced by hand"
sentence unedited: that is a true historical narration of one specific
cycle (#325 codexFactory + #883 openxFactory, the "why now" figure that
justified filing this packet, comment 5618883586) and never asserted the
1.5.a pairing requirement in the first place.

The ratification record's RULED form is unchanged: Status: ratified, one
Ratified: citation line.

GATES, RUN ON THIS COMMIT.
- OPENSPEC_TELEMETRY=0 openspec validate
  admit-review-lane-repin-to-merge-approval-envelope --strict ->
  "Change 'admit-review-lane-repin-to-merge-approval-envelope' is valid".
- OPENSPEC_TELEMETRY=0 openspec validate --all --strict -> 97 passed, 3
  failed (100 items); the three failures (change/disposition-codexfactory-
  declared-renames, change/disposition-codexfactory-floor-relocation-
  retitle, spec/repo-boundary-governance) are the same pre-existing,
  unrelated set the prior fix-round (e88687a) verified identical to
  origin/main.
- python3 -m pytest -q tests/doc-health -p no:cacheprovider -> 1689 passed,
  7 warnings (unrelated tarfile DeprecationWarning), 403.71s.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 21, 2026
…ured from the API (#1127)

Lane: openxfactory-2 (openXfactory-2)

**THE WORD, verbatim: "do 1 and 2, claim 5"** — Brett Heap, 2026-09-21T20:24:51Z, in session to lane `openxfactory-2` (display `openXfactory-2`), recorded on openxFactory [#745](#745 (comment)) (comment 5767008640). **Item 1 is this box**: measure the THIRD consecutive cycle for `extend-merge-master-envelope-to-floor-bot-lanes` § 4.2 and record it.

**THE RESULT: THE THIRD CYCLE EXISTS, IT WAS FULLY UNATTENDED, AND THE BOX TICKS.** The brief allowed for the opposite outcome — that `floor-regeneration` had reported "nothing owed" hourly since 2026-09-10T17:22Z and there had been no third cycle, in which case the box stays open with a dated "still two" annotation. That is not what the API says: the lane owed nothing until **2026-09-18**, and then ran.

## The measurement — codexFactory half, three consecutive cycles

| # | pull request → merge | merged at | merged by | human acts |
|---|---|---|---|---|
| 1 | [#314](codeXfactory/codeXfactory#314) → `b08958ae` | 2026-09-09T23:27:22Z | `openxfactory[bot]` | **ONE** — `brettheap` re-dispatched the approval leg (run `34407492987`, `run_attempt` **2**, `triggering_actor` `brettheap`). The 2026-09-10 note's "one hand dispatch", now verified independently |
| 2 | [#325](codeXfactory/codeXfactory#325) → `df42f803` | 2026-09-10T01:55:14Z | `openxfactory[bot]` | **NONE** |
| 3 | [#491](codeXfactory/codeXfactory#491) → `b21f0100` | 2026-09-18T22:50:17Z | `openxfactory[bot]` | **NONE** |

**Cycle 3 in full.** codexFactory #491, head `floor/bot-regeneration` at `2e45de457b543e14edbfc9188b7f007696ed7c73`, author `openxfactory[bot]`, base `main`, opened 2026-09-18T22:23:53Z, merged 26 min 24 s later, changing exactly one path — `floor/openxfactory-review-authority-floor.yaml` (+4 −3). Auto-merge enabled by `openxfactory[bot]` three seconds after opening. Every timeline actor a bot (`openxfactory[bot]`, `github-actions[bot]`, `sonarqubecloud[bot]`, `codexfactory[bot]`), no human among them. All four head runs at `run_attempt` 1, `triggering_actor` `openxfactory[bot]`, on `pull_request`/`pull_request_target`. Approving evaluation run [`35403220985`](https://github.com/codeXfactory/codexFactory/actions/runs/35403220985) (`check_suite`, `triggering_actor` `openxfactory[bot]`) submitted review `5253277461` as `codexfactory[bot]` at 22:50:04Z.

**The decisive negative: every one of the 128 `floor-regeneration` runs in codexFactory since 2026-09-10 fired on the `schedule` event, and NOT ONE on `workflow_dispatch`.** No approval leg was hand-dispatched anywhere in the window covering cycles two and three. (A scheduled run renders `triggering_actor: brettheap` because GitHub attributes cron to the workflow's last committer; the `event` is `schedule` and it is not a human act. Stated out loud because the field invites the opposite reading.)

**Consecutive, proved rather than assumed.** The only commit on codexFactory `main` touching `floor/openxfactory-review-authority-floor.yaml` since 2026-09-10T02:00Z is `2e45de45` (#491's own). The only other `floor/bot-regeneration` pull request in the eight-day gap is **#382**, box 3.3's constructed negative control — authored by `brettheap`, titled "NEVER MERGE", closed unmerged. No cycle was skipped, parked, or human-merged between #325 and #491.

## The before/after figure

**BEFORE, re-measured the same way rather than quoted forward:** codexFactory #248 (`7f147070`), #254 (`307d38f1`), #265 (`aced582b`), #273 (`4b12ba83`) were each merged by `brettheap`, and so was each paired openxFactory re-pin — #732 (`9ffc6252`), #747 (`d5a549e4`), #764 (`8d92bfaf`). #273 → `4b12ba83` and #764's title *"Advance the pinned decision core to `4b12ba83…`"* are one matched pair, which is what makes the pairing a measurement. **Two human merges per advance of the pinned core, one per repository.**

**AFTER — human MERGES per advance: ZERO**, across all three cycles and, as of cycle three, in both repositories. **Human ACTS per advance: ONE**, and it is the openxFactory re-pin half's **approving review** — the half decision N-1's recommended scope deliberately left under a human word.

Cycle three is the first cycle in which that half ran as a bot pull request at all, so it is the first whose figure is readable end to end: openxFactory [#1122](#1122), head `bot/review-lane-repin` at `7fd34286`, author `openxfactory[bot]`, titled *"Advance the pinned decision core to `b21f010013fa51960c77377a8582943435b6db32`"* — **#491's own merge sha, which is what ties the two halves into ONE cycle rather than two coincidences** — opened 2026-09-18T23:24:43Z with auto-squash enabled by the bot, **APPROVED by `brettheap` at 2026-09-19T00:53:32Z** after waiting 1 h 28 min 49 s, merged by `openxfactory[bot]` **five seconds after that approval** at 2026-09-19T00:53:37Z, merge `38f826c2`. `contracts/review-lane-pin.yaml:60` on `main` now reads `core_commit: "b21f010013fa51960c77377a8582943435b6db32"` — the cycle is closed end to end.

**The cost fell from two human merges to one human approving review, and the button itself is now bot-pressed in both repositories.** Cycles one and two have no re-pin artifact of their own (§ 3.4's standing finding); their pin advance was folded into hand-authored openxFactory #922, authored *and* merged by `brettheap` 2026-09-10T21:55:20Z. That is why the end-to-end figure is measured over one cycle while the **admitted** lane's own half — all this packet changed — is measured over three, which is what the box's text asks for.

## Two things this hands other boxes — named, not performed

1. **#491's approval record renders `Candidate class: openxfactory-floor-regeneration` in full**, with the kill-switch sentence beside it. The `unrecorded` rendering that § 3.1 and the council record's **R-7** stay open on is **FIXED on the live approval path**. § 3.1 is not this box's to tick and is left open for its own author to read the run.
2. The sibling packet `admit-review-lane-repin-to-merge-approval-envelope` was RATIFIED WITH AMENDMENT holding realization until *"the third unattended codexFactory cycle is measured and the unrecorded-class fix is observed on a live approval"*. **Both preconditions are met by the evidence above.** Recorded for that packet's author rather than acted on here. Its enrolment is still absent from openxFactory `.github/merge-approval-envelope.yml` (sole candidate remains `expected_head_ref: intents/rolling`) — which is *why* #1122 needed the human review, so the reading is consistent rather than merely compatible.

Also superseded: `amend-kill-switch-to-declared-test-companion`'s premise that no bot cycle exists to observe ("nothing owed" since 2026-09-10T17:22Z) was true when written and is not any more. Named, not acted on.

## What this pull request changes

**One file, 135 insertions, 1 deletion:** `openspec/changes/extend-merge-master-envelope-to-floor-bot-lanes/tasks.md`.

- § 4.2 ticked `[x]` with a dated **2026-09-21** annotation carrying the whole measurement.
- A dated **2026-09-21** superseding section appended at the end, stating the 2026-09-10 addendum table's row `| § 4.2 human cost after | OPEN | two consecutive cycles measured; the box requires three |` as **history** and giving its current state as **TICKED**.

**A JUDGMENT, STATED RATHER THAN BURIED.** The brief directed the summary table row to be edited. That row exists in exactly one place in the repository — `tasks.md:830` — and it sits inside a table the file's own rule opens with: *"APPENDED, NOT A REWRITE."* Editing a dated record in place would break the discipline every prior act in this file kept. So the row is **superseded by a later dated section** — the same form PR #927's superseding paragraph and the 2026-09-11 sections used, and for the same reason. Nothing dated is rewritten.

**The checklist state after this PR:** open by their own text — 3.1, 3.4, 3.6, 4.1, 4.4 (`grep -n '^- \[ \]'` confirms exactly these five). § 4.2 leaves that list; 29 boxes ticked. **The packet is NOT archived** — § 4.4 is separately open by its own text and this PR does not touch it, and § 4.1's evidence set is not assembled while 3.1, 3.4 and 3.6 stand open.

## Validation, all run in the foreground on this head

| command | result |
|---|---|
| `OPENSPEC_TELEMETRY=0 openspec validate extend-merge-master-envelope-to-floor-bot-lanes --strict` | **valid** |
| `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` | **106 passed, 1 failed** (107 items). The one failure is `add-chain-attestation` (`signed-execution-chain/spec.md`, a MODIFIED block omitting a scenario) — pre-existing on `origin/main` and untouched by this PR, whose diff is one file in a different change directory. Note for the record: COMMON.md expects *two* pre-existing failures; `add-composed-view-authoring` is no longer among the active changes, so only one remains |
| `python3 scripts/proposal-support.py . verify` | **proposal support verification ok** |
| `python3 scripts/validate-sequenced-after.py . --ledger-diff` | **per-change sweep ledger consistent with the corpus (222 rows)**; 44 active + 178 archived; deepest declared chain 4 hops |
| `python3 scripts/doc-health.py --single-repo . --family modified-block-currency` | **exit 0**, 12 findings, all `severity=info class=contested`, **0 naming this packet** — all pre-existing in other change packets. This PR adds no spec delta, so it cannot move this family |

Lands under Rule 6 on Brett Heap's landing word when the eight required checks are green and Copilot is clean.

refs #745

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

## Summary by Sourcery

Complete the § 4.2 measurement by documenting three consecutive API-verified cycles and the resulting reduction in human intervention.

Enhancements:
- Record the third consecutive post-change cycle and confirm the per-cycle human cost decreased from two human merges to zero, with one approving review remaining in the end-to-end cycle.

Chores:
- Mark checklist item § 4.2 complete while preserving dated historical entries through an appended superseding record.
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.

Posture family follow-up: whitespace-only reduced_reason passes all five gates (fresh-eyes F1)

2 participants