Skip to content

035 PR-3: frozen assignments and retry identity - #1296

Merged
brettheap merged 27 commits into
mainfrom
035-phase3-assignments
Oct 11, 2026
Merged

brettheap merged 27 commits into
mainfrom
035-phase3-assignments

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: codexfactory-2 (codeXfactory-2)

035 PR-3: frozen assignments and retry identity

This is Phase 3 of specs/035-renew-resolved-council-protocol, User Story 2 (a): one immutable assignment per required seat, in roster order, plus retry identity. The family stays dormant and unregistered until Phase 7.

Tasks, T035–T041 (all ticked)

  • T035. tests/council_convening/test_assignments.py, written first: E4 and E5 shapes and order; the set checks; duplicates and shared holders; digest recomputation; the ruled ceiling; permitted_operations; and retry identity and once-per-pin as E2 step A3.
  • T036. The assignment vectors, 66, built by the committed builder tests/council_convening/assignment_vectors.py. The coverage floor rises to add FR-005, FR-006 and SC-002.
  • T037. check on a snapshot recomputes its digest and its assignment set, and refuses a zero-seat snapshot.
  • T038. convening-snapshot.schema.yaml (E4) and seat-assignment.schema.yaml (E5), with the 21600-second ceiling at $defs/lifetime_ceiling_seconds, and the seven Phase 3 refusal codes (41 in all).
  • T039. scripts/council_convening/assignments.py.
  • T040. Retry identity runs inside the admission order, right after E2 step 2, under one admission corpus handler. check dispatches snapshots and assignments.
  • T041. The quickstart is recorded in evidence.md § Phase 3. This PR opens ready rather than draft, on the lane coordinator's instruction.

Brett Heap's rulings this PR encodes (first-hand, transcript times)

  • OPEN-1, "600 s challenge, 6 h assignment (Recommended)" (2026-10-08T19:24:21Z). An assignment lives more than 0 and at most 21600 seconds. That is the contract ceiling, which verification and the corpus use.
  • "Refuse at freeze (Recommended)" (2026-10-11T00:19:34Z). E4 step 7 refuses a holder.binding_ref repeated across seats, after any repeated principal_ref, under the existing assignment_shared_holder.
    • Every fixture holder and every vector now has one binding per seat.
    • What E12's cap of 16 bindings allows: at most 16 − k seats per convening, where k counts the configured bindings none of its seats holds. That is 15 while the commission binding is its own instance, and 16 only if one seat's holder runs under the commission binding itself.
  • "Each path sorts alone (Recommended)" (2026-10-11T00:19:34Z) confirms Phase 2's rename reading. Phase 3 needed no change.
  • "Same rule, in PR-3 (Recommended)" (2026-10-11T00:19:34Z). A consumed rule_touched_paths is bytewise sorted and unique, and E2 step 2 refuses any other as convening_malformed. The snapshot half applies it to its embedded record.

PR-2's delta review N1 is also applied: two provider-interface.md consumer-impact rows, and the fact_sources sentence in the E2 schema.

Readings, not rulings (recorded in evidence.md § Phase 3 and as dated notes)

  1. value_not_canonicalizable sits after E4 step 3 and before step 4. Two vectors pin it.
  2. An identical retry derives convening_id and snapshot_digest, the digest of the whole returned snapshot. A fresh admission derives neither (conformance-corpus § derived).
  3. An absent environment.issued.live_snapshots means the consumer holds no live snapshot. It is the one oracle with a default.
  4. The 54 snapshot-half vectors are shared, because 049 T015b implements the provider half of these encodings. The 12 retry vectors are consumer-only. The owner can overrule this at review.
  5. assignments carries no maxItems, and an assignment's protocol is not a const, so no named refusal is shadowed.
  6. The ceiling lives in the contract's $defs, and a test pins the module constant to it.

Departures from the independent pre-review's fix list

  • An unsound live snapshot is a vector input error: ERROR [council-convening-schema], exit 1. The fix list asked for exit 2, but validator-cli.md keeps exit 2 for harness and dependency failures, and Phase 2's reading 8 handles oracle data this way.
  • check names council-convening-schema beside snapshot_malformed and assignment_malformed, as validator-cli.md says.
  • M1 digests the whole returned snapshot, not only its assignment_id list.
  • M3 re-runs only the embedded record's rules: E2's structural rules and its offline roster rules. The rest of E2's order is the admission that ran before the snapshot was written.

What it unblocks

  • 049: T012 (retry identity), T015b (the provider half of the snapshot and assignment encodings), and T016b (the public assignment shape).
  • 025: FR-005 to FR-007.

Phase 5's retry-vector edits (A1 bindings and two more vectors) are not imported. Phase 5 reconciles them with the builder after this lands.

Gates at the head (cbc0f45b8)

  • tests/council_convening: 1096 passed.
  • Self-test: exit 0, 350/350 vectors, 41/41 refusal codes, 1/1 finding codes, and 9/9 requirements (FR-001 to FR-006, FR-011, SC-001, SC-002).
  • generate --check and the builder's --check: byte-for-byte.
  • Corpus: 350 vectors and an agreement set of 322.
    • By area: assignment 66, foundation 133, resolution 151.
    • Index: sha256:ed3e362dcd3ea77a619c5b109b27c0fa8978b2abfededea1ae40c2088d8f387c, unpublished.
  • Pinned OpenSpec CLI: 114 passed, 1 failed (115). The one failure is add-chain-attestation's accepted exception.
  • Doc-health, single repo with submodules: 31 critical, 26 error, 76 warning, 21 info, and 0 regressions. The finding set is identical to base origin/main at 33d2a56a9.
  • Scope diff (governance/review-authority, openXwallet, openspec/changes/renew-resolved-council-protocol): empty.
  • The full suite runs as the required pytest-suite check.

Lands on Brett Heap's word "merge PR-3 when green" (2026-10-09T01:38:36Z), once CI and the delta review pass.

🤖 Generated with Claude Code

brettheap and others added 27 commits October 9, 2026 01:42
Write tests/council_convening/test_assignments.py before any Phase 3
implementation: the E4 snapshot and E5 assignment shapes and the E4 order;
one assignment per seat in roster order (extra, missing, reordered and
same-count wrong seat refused as assignment_set_mismatch, as is an assignment
whose convening members differ); duplicate assignment_id; shared holder;
convening_digest recomputation; the ruled 21600-second ceiling (OPEN-1) at,
above, at zero and below zero; permitted_operations as one of three lists;
and retry identity over live snapshots (E2 step A3): identical canonical
bytes return the same snapshot, a different record for the same
(protocol, council_id, subject_pin) is convening_conflict, another pin is not
a conflict, and once-per-pin never pre-empts an identical retry.

Red by construction: scripts.council_convening.assignments does not exist.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Move the E2, E4 and E5 builders out of test_assignments.py into
tests/council_convening/assignment_fixtures.py, so the T035 tests and the
T037 check cases describe one well-formed snapshot. The helper imports no
implementation module, so the red state is unchanged.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, partial)

Expected outcomes authored before any implementation, at boundary
admission with inputs.snapshot and selected_protocol, applies_to
[consumer]: the accept cases (two and three seats), the four OPEN-1
ceiling vectors (21600 s accepted; 21601, zero and negative refused as
assignment_malformed), permitted_operations (two one-operation accepts,
four refusals), snapshot_malformed, assignment_malformed,
digest_construction_mismatch, assignment_set_mismatch (extra, missing,
reordered, same-count wrong seat, and four convening-member differences),
assignment_duplicate, assignment_shared_holder, and six two-defect vectors
pinning each adjacent step of the E4 order.

WIP: not yet reconciled with Phase 2's E2 record schema and derived form;
the retry-identity vectors and the index regeneration are still to come.
Red, local only, not pushed.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ents

Phase 3 builds on Phase 1's records, classification, corpus and generate
modules and its validator.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…035 on Phase 1's Outcome

T037 extends tests/council_convening/test_validator_cli.py: check on a
snapshot recomputes its convening_digest and its assignment set, and refuses
a digest that does not recompute, a reordered set and an assignment above
the 21600-second ceiling; check on a lone assignment checks its shape and
says what needs its snapshot; check on a commission record reports retry
identity and once-per-pin as not offline-checkable.

T035 now drives the whole E4 order through snapshot_outcome, which returns
Phase 1's records.Outcome, and adds the selection rows: a replacement
snapshot under a legacy selection is protocol_not_selected; offline it is
judged under the replacement rules; a legacy snapshot offline is routed.

Red, stage A (Phase 1 merged): 15 failed, 235 passed, 1 error; every
failure is an absent Phase 3 name or file. Not pushed.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…038, T039)

T038 contracts/council-convening/convening-snapshot.schema.yaml (E4) and
seat-assignment.schema.yaml (E5). The assignment lifetime ceiling is the
contract maximum Brett Heap ruled for OPEN-1 on 2026-10-08, "600 s
challenge, 6 h assignment (Recommended)": 21600 seconds, declared as
$defs/lifetime_ceiling_seconds so the reference implementation reads it from
the contract. permitted_operations is one of exactly three lists. Neither
schema checks a condition that has its own named refusal: the snapshot's
assignments are an array of objects, and an assignment's protocol is a
protocol_id, so assignment_set_mismatch fires where E4 step 5 says.

T039 scripts/council_convening/assignments.py: snapshot_outcome (the whole
E4 order from classification, as records.Outcome), check_snapshot (E4
steps 2 to 7), check_assignment (E5 and the ceiling), and retry_identity
(E2 step A3): equal xfc-jcs-sha256-1 canonical bytes return the live
snapshot unchanged; a different record for (protocol, council_id,
subject_pin) is convening_conflict; the identical test runs over every live
snapshot before once-per-pin runs over any.

The refusal_code extension waits for Phase 2's merge, which rewrites the
same enumeration.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…an assignment (T040, part)

scripts/council_convening/corpus.py registers admission with two input
roles: inputs.snapshot runs the E4 order through
assignments.snapshot_outcome; inputs.record, the commission record's E2
admission order with retry identity at step A3, is Phase 2's handler, into
which T040 inserts retry identity once Phase 2 is merged.

scripts/validate-council-convening.py: the snapshot and seat-assignment
kinds are landed. check on a snapshot runs E4 steps 2 to 7, every one of
them offline, and notes the recomputed digest and assignment set; check on
a lone assignment runs E5 and the ceiling, and notes the set checks as not
offline-checkable.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…T036)

Twelve admission vectors with inputs.record and
environment.issued.live_snapshots, applies_to [consumer], each built on
Phase 2's admission accept environment: an identical retry returns the live
snapshot (derived convening_id), also after a governed source changed at the
tip and after the live head moved; once-per-pin never pre-empts an identical
retry; a different record for the same (protocol, council_id, subject_pin)
is convening_conflict, including one differing only in candidate.pull_number
or candidate.subject_path; the same council at another pin and another
council at the same pin admit fresh; convening_malformed precedes the
conflict; the conflict precedes secret_bearing_fact and the head read.

T035 gains the drift pairs: each drift vector refuses with its drift code
without its live snapshot and returns the snapshot with it.

Refusal expectations are now derived_origin hand; computed digests stay
generated. Red until Phase 2 merges and T040 inserts A3. Not pushed.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ents

Phase 3 builds on Phase 2's commission record, its admission order and
resolution vectors, and Phase 1's review fixes carried inside it
(a1375ac).

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	scripts/validate-council-convening.py
#	tests/council_convening/test_validator_cli.py
…ndler (T040)

scripts/council_convening/resolution.py: E2 step A3 runs at admission right
after step 2, through assignments.retry_identity over the oracle's live
snapshots (environment.issued.live_snapshots; an absent issued is a
consumer holding none). An identical retry returns the live snapshot and
no later step runs, so tip and head drift cannot refuse it; a different
record for the same (protocol, council_id, subject_pin) is
convening_conflict. A returned snapshot adds its convening_id to the
derived values; a fresh admission has none. Offline, check names the rule
as not checkable. From Phase 5, binding (A1) runs before A3.

scripts/council_convening/corpus.py: admission is registered once, for its
two input roles, the commission record (resolution, now with the issued
oracle) and the snapshot half (E4).

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ated index (T036, T038)

contracts/council-convening/shared-definitions.schema.yaml: refusal_code
gains the seven Phase 3 codes, in data-model order: snapshot_malformed,
digest_construction_mismatch, assignment_malformed, assignment_set_mismatch,
assignment_duplicate, assignment_shared_holder, convening_conflict.

scripts/council_convening/generate.py: COVERAGE_FLOOR adds FR-005, FR-006
and SC-002; conformance/index.json regenerated over the 47 assignment
vectors (307 in all). The gate's requirements assertion names the new
floor.

The pins that named a Phase 3 member as not yet landed move to Phase 4's:
the later-phase refusal-code vector and corpus test (assignment_unknown),
the kind-not-landed check case (the registration challenge), and the
unhandled-boundary case (registration). The landed counts are six family
schemas, 41 refusal codes and nine requirements; the landed areas add
assignment, consumer-only at admission.

Self-test: 307/307 vectors adjudicated, 41/41 refusal codes, 1/1 finding
codes, 9/9 requirements, corpus reproduced byte for byte.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ents

Phase 1's last fix round: a nested $schema or $id is refused at load, and
two Sonar security fixes in the validator and the gate.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	contracts/council-convening/conformance/index.json
#	specs/035-renew-resolved-council-protocol/evidence.md
#	tests/council_convening/test_validator_cli.py
…eadings (T041, part)

The two red runs (stage A: 15 failed, 235 passed, 1 error; stage B: 27
failed, 928 passed), the 47 assignment vectors, T038 to T040 by commit, the
six readings this phase takes and does not present as ruled, and the Phase 1
defect the T035 trailing-newline cases found. The quickstart record
follows.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR-1 (#1284) landed; origin/035-phase1-foundation is deleted, so the
earlier phases now arrive through main.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Green at the pushed code:
- tests/council_convening: 967 passed.
- Self-test: 308/308 vectors, 41/41 refusal codes, 1/1 finding codes,
  9/9 requirements.
- generate --check: byte-for-byte.
- Pinned OpenSpec CLI: 113 passed, 1 failed (the accepted exception).
- Doc-health (submodules initialized): 31/26/59/20 at both base and
  head, 0 regressions. At this commit it read 31/26/59/21: the
  release-tag-publication family could consult the published refs
  and reported its one pre-existing finding, on a file this branch
  does not touch.
- tests/doc-health: 2157 passed.
- The PR scope diff is empty.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ents

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	contracts/council-convening/conformance/index.json
#	specs/035-renew-resolved-council-protocol/evidence.md
#	tests/council_convening/test_validator_cli.py
…lative

Line 205 named the shared openxFactory checkout by a host-absolute path.
It now names it relative to the aggregation root, as the worktree path
beside it already was. Other phases take the fix by merge.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The independent pre-review of c0e77e1 (READY AFTER FIXES) raised
M1-M4 and L1-L7 and asked for four readings to be pinned. This commit
holds the tests and the vectors only. Red with the implementation as it
stood: 42 failed and 1043 passed. 41 of the failures are this round's
cases; the 42nd is the merge's semantic conflict below, fixed here.

- L6: the area's builder is committed, tests/council_convening/
  assignment_vectors.py. Every vector under vectors/assignment/ is its
  output byte for byte, and the 12 retry vectors are pinned as copies of
  Phase 2's admission-accept-conditional-seat-not-held. Rebuilt against
  0cf5b87, whose `rules` oracle now declares `fact_sources`.
- One line re-keys every holder's binding_ref: holder_binding_ref in
  assignment_fixtures.py. M2, the shared binding, is held for Brett and
  unchanged.
- M1: an identical retry also derives `snapshot_digest`, the digest of
  the whole returned snapshot. A fresh admission derives neither it nor
  `convening_id`.
- M2: the once-per-pin vector drops convening-0000. Snapshots for two
  other keys are listed before the identical one. Two live snapshots with
  one key are a harness error.
- M3: the embedded record's E2 step 2 structural rules and the offline
  roster rules of steps 11 and 12 are snapshot_malformed. 7 vectors, an
  accept with a held conditional seat, and an order vector. A zero-seat
  snapshot never passes `check`.
- M4: asg-set-member-convening-digest-differs-refuse.
- L1: lifetime accepts at 1 s and 3600 s.
- L2: an unsound live snapshot is a harness error, reported as a vector
  input error with exit 1, never a traceback.
- L3: a lone assignment takes the canonicalizability pre-check.
- Reading 1: two vectors pin value_not_canonicalizable after E4 step 3
  and before step 4.
- Reading 4: the 49 snapshot-half vectors are shared. The 12 retry
  vectors stay consumer-only.
- check names council-convening-schema beside snapshot_malformed and
  assignment_malformed, as validator-cli.md says.
- Merge conflict: Phase 2's fix round made test_check_names_no_offline_
  rule_as_not_checkable compare the skipped set exactly. ORACLE_RULES
  now names E2 step A3's skipped rule, which Phase 3 adds.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Green: tests/council_convening 1086 passed, and the self-test adjudicates
343/343 vectors.

- M3: `resolution.structural_rules` and `resolution.roster_rules` are
  extracted from E2 step 2 and steps 11-12, unchanged in behaviour.
  `assignments.check_snapshot` runs both over the embedded record inside
  step 2, as snapshot_malformed naming `convening.<member>`.
- M1: an identical retry derives `snapshot_digest`, the digest of the
  whole returned snapshot, beside `convening_id`.
- M2 and L2: `VectorOracles.live_snapshots` requires every live
  snapshot to pass E4 steps 2-7, and no two to share a convening key.
  Otherwise it raises HarnessError, which the corpus reports as a vector
  input error. The oracle takes the run's schemas.
- L3: `assignments.check_lone_assignment` runs E5, then the
  canonicalizability pre-check; `check` uses it for a lone assignment.
- `check` names council-convening-schema beside snapshot_malformed and
  assignment_malformed (validator-cli.md).

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each pre-review reading the round settles is now a dated note, written as
a reading the owner can overrule, not a ruling.

- data-model E4. M3: snapshot_malformed covers the embedded record's E2
  step 2 structural rules and the offline roster rules of steps 11-12.
  Reading 1: value_not_canonicalizable sits after step 3 and before
  step 4. L7: why `assignments` carries no maxItems.
- conformance-corpus. Reading 3: an absent `issued.live_snapshots`
  means no live snapshot, the one default beside "absent, not empty".
  M1: `convening_id` and `snapshot_digest` on a returned snapshot, and
  neither on a fresh admission. M2 and L2: the live snapshots are sound,
  one per key. Reading 4: the snapshot half is shared.
- The snapshot schema's description names step 2's new rules.
- The family README lists the two Phase 3 schemas (L5), in the form of
  Phase 5's row.
- tasks.md: T035-T041 ticked.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ents

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- L4: the snapshot half's first count is corrected to 5 accept, 30
  refuse.
- Each reading records what the round did to it. Reading 4 is revised
  as a reading the owner can overrule.
- The fix round: the merges, their one semantic conflict, red 42 failed
  and 1043 passed, green 1086 passed, each finding's change, and the
  round's departures from its fix list. Those are L2's exit 1, the
  schema finding beside malformed refusals, M1's whole-snapshot digest,
  and M3's scope. M2 is held for Brett Heap.
- Quickstart steps 1-5 at e16030b:
  - tests/council_convening: 1087 passed;
  - self-test: 343/343 vectors, 41/41 refusal codes, 1/1 finding codes,
    9/9 requirements;
  - corpus: 343 vectors, agreement set 315;
  - pinned OpenSpec: 113 passed, 1 failed (the accepted exception);
  - doc-health: 31/26/59/21 at head and at base 79e957e, with the
    same findings;
  - scope diff: empty.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…signments

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Red with the implementation as it stood: 17 failed, 1079 passed, every
failure one of these cases or the self-test and corpus cases that
report its vectors.

- "Refuse at freeze (Recommended)" (M2). Every holder takes one binding
  per seat: holder_binding_ref's one line. The area was rebuilt from the
  builder: the multi-seat snapshot vectors and the retry vectors' live
  snapshots. test_a_shared_binding_is_not_a_shared_holder is flipped to
  test_a_binding_shared_across_seats_is_assignment_shared_holder. Three
  new vectors: asg-shared-binding-refuse (distinct principals),
  asg-order-duplicate-before-shared-binding-refuse, and
  asg-order-shared-principal-before-shared-binding-refuse. Both repeats
  in the last are assignment_shared_holder, so it pins the pair's code,
  and a unit test pins that the principal is named first.
- "Same rule, in PR-3 (Recommended)". rule_touched_paths is bytewise
  sorted and unique at E2 step 2. Two commission vectors, permuted and
  repeated, are copied from commission-accept-unclassed-rule-facts-held
  with the consumed and the authoritative list arranged alike, so only
  step 2 can refuse them. Two snapshot-half vectors test the same rule
  in an embedded record. Phase 2's test_rule_touched_paths_compare_in_
  order, reading 6's test, is superseded by
  test_rule_touched_paths_are_sorted_and_unique_at_step_2.
- "Each path sorts alone (Recommended)" confirms Phase 2's rename
  reading. Nothing in Phase 3 changes.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- "Refuse at freeze (Recommended)": E4 step 7 checks every repeated
  holder.principal_ref, then every repeated holder.binding_ref. Both are
  assignment_shared_holder, so the refusal vocabulary is unchanged.
- "Same rule, in PR-3 (Recommended)": E2 step 2's structural rules
  refuse a consumed rule_touched_paths that is not strictly ascending
  bytewise, as convening_malformed. The snapshot half runs the same
  rules over its embedded record, so it refuses such a list as
  snapshot_malformed.

Self-test: 350/350 vectors adjudicated, 41/41 refusal codes.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- "Refuse at freeze (Recommended)". Amended: data-model E4 step 7 and
  E5's holder row, and step 7 of the snapshot schema's description. A
  provider-interface consumer-impact row too. E4 step 7 gives the seat
  count E12's cap of 16 bindings now allows: at most 16 - k seats, k the
  configured bindings none of the convening's seats holds. So 15 while
  the commission binding is its own instance; 16 only if a seat's holder
  runs under the commission binding itself.
- "Same rule, in PR-3 (Recommended)". Amended: data-model E2 step 2,
  E2's consumed_facts row, E3's rule_facts row, and the E2 schema's
  list of structural rules.
- PR-2 delta review N1. Two consumer-impact rows: the projection's
  declared fact_sources, carried unchanged; sorted, unique path lists
  on both the gather side and the authoritative read. The E2 schema's
  fact_sources description says fact_source_mismatch also covers
  inequality with the projection.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- § Phase 3: PR-2's landing (33d2a56) and its merge; the three
  rulings of 2026-10-11T00:19:34Z and the N1 docs. The seat-count
  arithmetic E12 now gives. Red, 17 failed and 1079 passed; then green.
- Quickstart at f543128:
  - tests/council_convening: 1096 passed;
  - self-test: 350/350 vectors, 41/41 refusal codes;
  - corpus: 350 vectors, agreement set 322;
  - pinned OpenSpec: 114 passed, 1 failed (the accepted exception);
  - doc-health: 31/26/76/21 at head and at base origin/main
    33d2a56, the same findings;
  - scope diff: empty.
- § Phase 2: reading 6 is marked superseded for rule_touched_paths,
  and the rename reading is marked confirmed by "Each path sorts alone
  (Recommended)".

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>

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

Sorry, we are unable to review this pull request

The GitHub API does not allow us to fetch diffs exceeding 20000 lines

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: codexfactory-2 (codeXfactory-2)

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: codexfactory-2 (codeXfactory-2)

LANDING — lane codeXfactory-2, session 8d6bf418-cc06-45d9-9406-2374935c6c72, 2026-10-11T01:19:02Z, PR #1296 into opensoft/openxFactory main — on Brett Heap's word verbatim "merge PR-3 when green". Rule 6 window open; other lanes hold merges into opensoft/openxFactory main until LANDED or 30 minutes.

@brettheap
brettheap merged commit 978e9cb into main Oct 11, 2026
15 checks passed
@brettheap
brettheap deleted the 035-phase3-assignments branch October 11, 2026 01:19
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: codexfactory-2 (codeXfactory-2)

LANDED — lane codeXfactory-2, 2026-10-11T01:19:22Z, PR #1296 → 978e9cb (opensoft/openxFactory main, merged 2026-10-11T01:19:17Z). Rule 6 window closed. feature 035 PR-3, Phase 3 frozen assignments and retry identity (T035-T041): convening snapshot and seat assignment shapes, the 21600 s ceiling (OPEN-1), retry identity, E4 step 7 refusing a repeated binding_ref (ruled 2026-10-11T00:19:34Z), rule_touched_paths sorted and unique (ruled the same time); pre-review READY AFTER FIXES then delta review READY TO LAND at cbc0f45.

brettheap added a commit that referenced this pull request Oct 11, 2026
Takes #1295 and #1296, which landed after the 33d2a56 merge, so the landing
merge CI validates is the tree that lands. Neither touches a release file:
contracts/manifest.yaml, contracts/releases/, contracts/CHANGELOG.md and
contracts/README.md are unchanged, no contract-v4.1 inventory member moved,
and no submodule gitlink moved.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 11, 2026
… the head that lands (change task 2.7)

main moved to 978e9cb (#1295, #1296) after the section was written, and
0d37508 merged it in. Section 11 now lists all three merges, adds the
0d37508 column (every gate 0, inventory rebuild byte-identical,
verify-commit PASS, release-tag-gate on the recreated merge tree 1609bed1
with no error and no warning, doc-health the cb9b27f set, tests/factory-mcp
108 passed), and states the head that lands (0d37508 plus the record)
and how CI judges a later merge of main before landing.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 11, 2026
PR-3 (#1296) at the head under delta review. It carries Brett Heap's
rulings of 2026-10-11T00:19:34Z (E4 step 7 also refuses a binding_ref
repeated across seats, as assignment_shared_holder; holder_binding_ref per
seat; rule_touched_paths sorted and unique at E2 step 2), and main at
33d2a56, where PR-2 (#1294) landed.

Resolutions:
- provider-interface.md § Consumer impacts: Phase 3's three dated rows,
  then Phase 4's key-transport row.
- evidence.md: Phase 3's new section on the rulings and PR-2's landing
  closes § Phase 3, then § Phase 5 and § Phase 4. Every line of both sides
  is kept, except 2 lines in Phase 3's own section that Phase 3 rewrote.
- index.json: regenerated; the signing vectors' bytes did not move.

refusal_code still holds exactly one copy of each code, 85 in all; the
gate grep keeps FR-009. Self-test exit 0: 519/519 vectors, 85/85, 1/1,
13/13, generator reproduced. generate --check exit 0.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 11, 2026
…into the Phase 5 binding branch

PR-2 and PR-3 have landed. This merge takes main's code and corpus as
landed, and Phase 5's own files:

- resolution.py: the order keeps A4 after step 5, then PR-2's
  `declared = _council_and_class(...)`;
- the README keeps PR-3's snapshot row and Phase 5's corpus and binding
  rows; the two test files keep both sides; evidence.md is main's,
  followed by § Phase 5;
- every vector under vectors/assignment and vectors/resolution that main
  carries is main's, byte for byte. The retry vectors are PR-3's builder
  output, and Phase 2's admission vectors are PR-2's. Phase 5's binding
  is NOT yet on them: the next commits re-author Phase 2's through
  scratch author_admission_vectors.py and regenerate the retry vectors
  from the builder (`tests/council_convening/assignment_vectors.py`),
  never by hand. At this commit the self-test reports those vectors as
  identity-map-missing, as expected;
- openXwallet moves to main's pin 815b86cef (#1290).

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 11, 2026
…ration

PR-2 (#1294, 33d2a56) and PR-3 (#1296, 978e9cb) landed; their branches
are deleted, so main is the source for Phases 2 and 3 from here on. Main
also brings #1287, #1288, #1295 and #1289.

Resolution:
- resolution.py: the admission order keeps Phase 5's A4
  (`_workflow_revision`) and Phase 2's final step 9, which reads the
  `declared` projection entry `_council_and_class` returns.
- The invocation-directory check takes main's separator-terminated prefix
  (the PR-1 follow-up) and keeps the mode name, so `select` says so.
- The family README gains Phase 3's snapshot and assignment row beside
  Phase 5's binding row; the corpus contract's `issued` row carries both
  Phase 4's `public_key` amendment and Phase 3's live-snapshot soundness
  note.
- evidence.md: Phase 3's final records go at the end of § Phase 3, before
  § Phase 4 (as merged from 03cb77e) and § Phase 6.
- Tests: Phase 3's final assignment-area docstring (snapshot half shared,
  retry vectors the consumer's) inside Phase 6's all-areas test; Phase 3's
  pre-review `check` tests kept beside Phase 4's and Phase 5's.
- refusal_code is unchanged: 92 codes, one copy each of binding_unresolved
  and broker_capability_insufficient, at Phase 4's position.
- The conformance index is regenerated: 641 vectors.

Lane: codexfactory-2 (codeXfactory-2)
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.

1 participant