Skip to content

035 PR-2: agree on membership before work - #1294

Merged
brettheap merged 26 commits into
mainfrom
035-phase2-membership
Oct 11, 2026
Merged

brettheap merged 26 commits into
mainfrom
035-phase2-membership

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: codexfactory-2 (codeXfactory-2)

What this delivers

This is Speckit feature 035, Phase 2, "User Story 1: agree on membership before work". It covers tasks T024–T034 of specs/035-renew-resolved-council-protocol/tasks.md, on the ratified renew-resolved-council-protocol (#1267), over PR-1 (#1284, landed as 9a272c6db).

The family stays dormant and unregistered: it has no contracts/manifest.yaml row and no release until Phase 7, and nothing in it selects or activates a protocol.

  • The predicate registry (T028). predicate-registry.schema.yaml and the closed instance predicate.registry.yaml hold exactly the ruled identifiers:

    • changed_paths_intersect, over pr_facts;
    • rule_touches_security_posture, over rule_facts.

    These are Brett Heap's OPEN-5 identifiers, "Keep the existing names (Recommended)". The schema states the bounds, the entry-count completeness rule and the pattern grammar. refusal_code grows by the 29 Phase 2 codes, from 5 to 34.

  • The commission record (T029). council-convening.schema.yaml, kind xfactory_council_convening, follows data-model E2 and is closed at every depth.

  • The reference implementation (T030, T031). predicates.py and resolution.py are written from data-model E2/E3 and research R5–R9 only, with no code copied from codexFactory (R4). They cover:

    • E2 steps 1–13 at commission and admission;
    • every provenance check and roster composition;
    • the injected oracle interface (R8);
    • the secret check through importlib of the provider's own SECRET_PATTERNS (R9);
    • convening_digest.
  • Wiring (T032).

    • corpus.py registers the commission and admission handlers.
    • check runs E2's offline rules and names every oracle-dependent rule not checkable offline, never passed.
    • The gate asserts the predicate-registry note and the raised floor.
  • The resolution corpus (T026). It holds 149 hand-authored vectors:

    Boundary Applies to Vectors
    commission producer and consumer 133
    commission producer only 4
    admission consumer only 12

    16 accept and 133 refuse. Every one of the 29 Phase 2 codes is some vector's refusal. The multi-defect vectors pin each adjacent pair of E2 steps. A shared commission vector is also run through admission, as a consumer runs it, and disagreement is a harness error. The coverage floor rises to FR-001–FR-004, FR-011 and SC-001.

  • T033, the secret floor. The gap was measured over every tracked file at de7091515, and the widening is filed as Widen the secret detector floor (SECRET_PATTERNS) to the producer's detectors, or record why not — 035 T033 follow-up (R9) #1282, with the pre-review's addendum. SECRET_PATTERNS is not widened here.

What it unblocks

  • 049 (codexFactory, the producer): T003 (a corpus to pin), T010 (payload shape, refusal mapping and order), T011 (the gate-rules candidate as subject_path), T011b (the POST body's provider half, with 025), T012 (the head-race half) and T013.
  • 025 (xFactory-Hermes-Install, the consumer): FR-001–FR-004, at a reviewed commit.

Brett Heap's two rulings, folded in (2026-10-09T17:35:34Z, both the recommended option)

  • H1, "Bind it in PR-2 (Recommended)". Before this ruling, nothing bound which fact source a condition reads: the record alone chose it. A producer could point the gate-rules shape at rules/council-profile.yaml, write both held false, and drop the security seat with every check passing. Now:
    • each class and each unclassed council in the rule projection declares fact_sources;
    • step 9 refuses a record whose fact_sources differ from it, entry for entry and in order, as fact_source_mismatch, with no new code;
    • swapped-source vectors pin it, including the pre-review's probe, commission-refuse-fact-source-swapped-to-a-governed-file;
    • data-model E2/E3 and the corpus contract's rules oracle row carry dated amendments.
  • M3, "Sorted and unique (Recommended)". A consumed changed_paths is bytewise sorted and duplicate-free, and step 2 refuses any other as convening_malformed. Permutation and repetition vectors pin it.
    • A reading, for the lane to confirm. I read the ruling's gloss "a rename keeps its old-then-new pair" as: a rename contributes both its paths, and each takes its own sorted place. One sorted, flat list cannot also keep the pair adjacent and in old-then-new order. commission-accept-rename-new-path-sorts-first pins this reading.

The independent pre-review's fixes

Finding Fix
M1 Offline check names predicate_parameters_malformed (bare-directory evidence) as not checkable offline; it read authoritative facts and was silently skipped.
M2 Three vectors now pin the bare-directory rule's place in step 10. The evidence record's earlier claim for it is corrected in place.
L1 A listing entry must be a file directly inside the listing with one of its suffixes (step 2).
L2 An empty object for an unused contract is facts_unused: one resolution, one encoding.
L3 $parts secret vectors for sk-, the PEM header and class_inputs. All five floor detectors and all four scanned members are now probed.
L4 A source whose kind is not what is at its path is rule_digest_mismatch, no longer a harness error.
L5 Completeness requires entry count ≤ len(changed_paths) ≤ 2 × entry count.

Readings 2 and 3 are dated data-model notes now.

Vectors re-derived.

  • All 128 earlier vectors gain the projection's declared fact_sources, and no expected moved.
  • Two secret vectors (commission-refuse-secret-in-consumed-fact, commission-refuse-order-secret-before-candidate) insert their path at its sorted place. Their expectation is unchanged.
  • 21 vectors are new.

A JSON-path diff proving exactly this is recorded in evidence.md § Phase 2.

PR-1 review follow-ups

The final PR-1 review raised two LOW items, both folded in test-first:

  • check's invocation-directory rule compared strings. Run from /, base_dir + os.sep became //, and every path was refused. It now uses os.path.commonpath([base_dir, resolved]) == base_dir.
  • Regression tests cover a sibling sharing the prefix (base against base-other), which stays outside, and a run from /.

Disclosed outside the family

A doc-health pin-class NON_MEMBERS row for contracts/council-convening/conformance/vectors/** (scripts/doc_health/pin_class.py).

  • The vectors' governed revision values are synthetic, judged against each vector's injected governed_history. The pin sweep read them as 123 uncovered repository pins and 3 undeclared values, failing three doc-health tests that pass at Phase 1's base.
  • The row states its reason on the fixtures row's ground. The corpus is not hidden from the sweep with $parts, which exists for secrets only.
  • The standing census does not move. The pre-review found the row sound: it cannot hide a real pin.

Readings, not rulings

Where the data-model text leaves an order open, the reference implementation takes one reading, and a test or vector pins it, so that the producer and the consumer refine to one reading (R21).

  1. Step 5 runs its per-source checks source by source, in path order.
  2. Step 9: a fact source missing for a contract in use, or present for one not in use, is fact_source_mismatch, after step 8. This is now a dated note.
  3. Step 10 evaluates each condition first, condition_unevaluable and then the bare-directory rule over the authoritative facts, and only then compares consumed facts. This is now a dated note.
  4. Step 11 checks every held before any seat.
  5. Step 13 names the first read that is not the head, so a head that moved and came back still refuses.
  6. Consumed facts compare exactly. M3 now fixes the order of changed_paths, and the reading still stands for rule_touched_paths.
  7. A tree pattern d/** matches only paths strictly inside d/.
  8. Oracle data a vector does not carry is a harness error, never a pass or a refusal.
  9. Under M3, a rename's two paths each take their own sorted place, as described above.

Gates (py-bench Python 3.12.3, in this phase's worktree)

Measured at 57feb4aa7, with main a8ab30396 merged. The head is one evidence-only commit above it. Main has since moved to 85516e0de (#1287). That change only widens SKIP_DIRS in scripts/validate-domain-factory.py, leaves SECRET_PATTERNS untouched, and merges cleanly.

  • python3 -m pytest tests/council_convening tests/doc-health -q -m "not postgres" at 57feb4aa7, after merging main a8ab30396: 3113 passed (956 council-convening and 2157 doc-health).
  • tests/council_convening/test_gate_wiring.py: 13 passed. The gate's requirements grep carries the raised floor, (FR-001, FR-002, FR-003, FR-004, FR-011, SC-001), and fails closed.
  • python3 scripts/validate-council-convening.py: exit 0.
    • 282/282 vectors adjudicated.
    • 34/34 refusal codes probed, and 1/1 finding codes.
    • 6/6 requirements (FR-001–FR-004, FR-011, SC-001).
    • The generator reproduced the corpus byte for byte.
  • python3 -m scripts.council_convening.generate --check: no drift.
  • corpus: 282 vectors (foundation 133, resolution 149), agreement set 266, index sha256:baff57e60bf13a3faf1cebe651fe4e189ad1a912af7e41cba1fde8b64db55778 (unpublished until Phase 7).
  • python3 scripts/validate-openspec-cli-pin.py --all --strict: exit 0, Totals: 113 passed, 1 failed (114 items), 0 undispositioned. The one failure is add-chain-attestation's accepted exception.
  • python3 scripts/doc-health.py --single-repo .: exit 0, 31 critical, 26 error, 59 warning, 21 info, 0 regressions, and no finding on a Phase 2 path. The info above Phase 1's base is main's amend-factory-mcp-conformance-auth-profile: auth block with an RS256 baseline, M5 narrowed to error codes, per-domain error vocabularies (ratified) #1274.
  • Full suite: measured by CI's pytest-suite on this PR, as it was for PR-1, on the lane's instruction.
    • The last local attempt, at d0180cab3, ran into its 3600-second timeout at about 77% under shared-host load.
    • Local-only failures this branch has traced are environmental: factory-mcp, hermes-runtime-contracts and ideation-dashboard fail identically at Phase 1's base, and the shared submodule.* registrations were wiped and restored during the day.
  • Scope: git diff --name-only origin/main...HEAD -- governance/review-authority openXwallet openspec/changes/renew-resolved-council-protocol is empty.

The red runs are recorded in evidence.md § Phase 2:

  • tests first: 10 failed, 234 passed, 2 errors;
  • the fix round: 261 failed, 692 passed;
  • the PR-1 follow-ups: the two / cases.

Landing

Lands on Brett Heap's word 'merge PR-2 when green' (2026-10-09T01:28:37Z, lane log line 238). The lane lands it once every check passes, beside the pre-reviewer's delta check. This PR does not merge itself.

🤖 Generated with Claude Code

brettheap and others added 25 commits October 9, 2026 01:52
Failing tests, written before any Phase 2 implementation module:
test_predicates (T024) and test_resolution (T025). T026: 128 hand-authored
resolution vectors under contracts/council-convening/conformance/vectors/
resolution/, with expected outcomes and every convening_digest known answer
computed twice, independently: 112 shared commission vectors, 4 producer-only
head-drift vectors and 12 consumer-only admission vectors. Every one of the
29 Phase 2 refusal codes is probed, and the multi-defect vectors pin each
adjacent pair of E2 steps plus the per-source order of step 5.

Red: both modules fail at import; the Phase 1 package they extend is not
merged yet. Not pushed red.

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

T028: predicate-registry.schema.yaml and the closed instance
predicate.registry.yaml, per data-model E3 and research R5, with the
identifiers Brett Heap ruled for OPEN-5 on 2026-10-08, "Keep the existing
names (Recommended)": changed_paths_intersect over pr_facts and
rule_touches_security_posture over rule_facts. Closure is the validator's
rule, as the clearing register's is. The refusal_code extension waits for
Phase 1's shared-definitions.schema.yaml.

T029: council-convening.schema.yaml, kind xfactory_council_convening, per
data-model E2: closed at every depth, typing only what no semantic code
names, with consumed_facts closed per input contract by exactly the
registry's facts.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two cases changed only `expected_candidate`, which only the producer reads,
on a shared vector; the consumer-path consistency check then reports the
vector as malformed rather than adjudicating it. They now run as
producer-only vectors.

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

Account-swap checkpoint. Drafts written from data-model E2 and E3 only (R4),
before Phase 1 is on origin. They passed every Phase 2 test and all 128
resolution vectors (517 passed) in a scratch harness with stand-ins for
Phase 1's records, classification and corpus. They are NOT yet adapted to
Phase 1's real API (local 035-phase1-foundation 396ef5d): resolution's
`_schemas().check_record(...)` does not exist there (SchemaSet has
`errors(ref, instance)` and `validator(ref)`), and the classification and
corpus calls must be checked against it. This branch has no Phase 1 package
yet, so this commit does not import; keep it local until
origin/035-phase1-foundation is merged and the gates pass.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The commission and admission codes join the closed vocabulary in data-model
§ Refusal vocabulary order. The Phase 1 vector and test that probed a
not-yet-landed code move to a Phase 3 code, snapshot_malformed, keeping
their intent.

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

The drafts of f9ccaf9, adapted: shape is SchemaSet.errors over the
commission schema, every boundary takes its schema set and registry from
the corpus context, the classification outcome's status_read reaches the
registry-status rule, and the predicate registry's findings are (code,
message) pairs in the protocol registry's form. Written from data-model E2
and E3 only; no code is copied from codexFactory (R4).

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

corpus.py registers the two handlers. The validator prints the
predicate-registry note in the self-test, judges the predicate registry by
kind, and runs data-model E2's offline rules on a commission record, naming
every oracle-dependent rule as not checkable offline. The gate asserts the
new note and the raised floor, and its wiring test pins both.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
COVERAGE_FLOOR adds FR-002, FR-003, FR-004 and SC-001 to Phase 1's FR-001
and FR-011. The index is regenerated; no vector's bytes moved. The Phase 1
corpus-index tests that pinned the Phase 1 floor and counts now pin
Phase 2's, and the resolution area is asserted beside foundation.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
check passes a well-formed commission record on its offline rules, names
each of the 19 oracle-dependent rules as not checkable offline, and refuses
offline-checkable defects under their own codes; the predicate registry is
judged by kind; the self-test prints the predicate-registry note. The
pinned Phase 1 notes move to Phase 2's counts, and the not-landed-kind case
uses the Phase 3 snapshot kind.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The resolution vectors carry a governed `revision` (data-model E2 step 5)
whose value is synthetic: the history it must sit on is the vector's own
injected oracle, never this repository's refs. The pin-class sweep read the
123 commit-shaped values as uncovered pin sites and the 3 non-commit ones
(`main` and a twelve-character prefix, the mutable_rule_reference inputs)
as undeclared values, failing three doc-health tests that pass at the
Phase 1 base 396ef5d. The corpus is declared a non-member with its
reason, on the fixtures row's ground, rather than hidden from the sweep
with `$parts`, which exists for secrets only. The standing census does
not move.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1's PR-1 review fixes (B1, B2, M1, M2, the format allowlist, L3-L9,
the estate fingerprint spelling, the dialect fix) and its merge of main at
93d13d6. Three conflicts, each resolved by keeping both sides:

- council-convening-gate.yml: Phase 1's `([1-9][0-9]*)` backreference with
  Phase 2's raised floor (FR-001, FR-002, FR-003, FR-004, FR-011, SC-001);
- test_validator_cli.py: Phase 2's T027 section, then Phase 1's B2 and M2
  sections, both appended at the same place;
- conformance/index.json: regenerated by the generator over the merged
  corpus (260 vectors, 244 in the agreement set), not hand-merged.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The gate-wiring floor test now expects the `([1-9][0-9]*)` backreference
Phase 1 put in every coverage grep, so a `0/0` run fails there too. The
widened-predicate-registry case deep-copies the predicate it duplicates:
a shared sub-object was dumped as a YAML alias, which Phase 1's strict
loader (M2) refuses before closure is judged, so the case tested the
loader instead of the registry.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The red run and its reproduction, the 128 resolution vectors, eight
readings recorded as readings rather than rulings, the implementation by
commit, the pin-class declaration the full suite called for, the
secret-floor gap measured at de70915 with the script that measured it
(the follow-up is #1282), and quickstart steps 1-5 at d0ad97e: 864
council-convening tests, 260/260 vectors, an agreement set of 244, OpenSpec
113 passed with 1 accepted exception, doc-health 31/26/59/21 with 0
regressions and no finding on a Phase 2 path, the full suite's 12 failures
split into 3 of Phase 2's (fixed) and 9 that fail identically at the
Phase 1 base, and an empty scope check.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1's evidence record and ticked tasks (3672b4e), and its delta-review
and SonarCloud fixes (8f83b10): a nested `$schema`/`$id` refused at load,
and `check` reading only paths under the directory it was invoked from.
Three conflicts, each resolved by keeping both sides:

- evidence.md: both sides appended; Phase 1's sections first, then Phase 2's;
- test_validator_cli.py: the not-landed-kind case keeps Phase 2's snapshot
  kind and takes Phase 1's `cwd=tmp_path`;
- conformance/index.json: regenerated over the merged corpus, not hand-merged.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1's SonarCloud fix (8f83b10) has `check` refuse a path outside the
directory it was invoked from, so the Phase 2 cases, which write their
records under a temporary directory, now invoke the validator from it, as
Phase 1's own cases do. 100 of 100 validator-CLI tests pass on the merge.

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

Brett Heap ruled at 2026-10-09T17:35:34Z, both the recommended option: H1
"Bind it in PR-2 (Recommended)" and M3 "Sorted and unique (Recommended)".
Every expected outcome is written by hand before the implementation:

- H1: every projection class and the unclassed council declare their fact
  sources (all 128 vectors' `rules` oracle gains them; no expectation moves);
  swapped-source vectors, including the pre-review's probe, and a
  projection-order pair, refuse as fact_source_mismatch;
- M3: unsorted and repeated `changed_paths` are convening_malformed at
  step 2; a rename whose new path sorts first is accepted; two secret
  vectors are re-derived to insert their path at its sorted place;
- M1: offline `check` names the bare-directory rule as not checkable;
- M2: the bare-directory rule's place in step 10, three vectors;
- L1-L5: listing suffix and directness, an empty unused contract object,
  the floor's other detectors and the class_inputs member, a source of the
  wrong kind, and the entry-count tie on the path list.

Red: 261 failed, 692 passed (2026-10-09T17:50Z).

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

Brett Heap, 2026-10-09T17:35:34Z, both the recommended option:

- H1, "Bind it in PR-2 (Recommended)": a rule projection's class or
  unclassed council carries `fact_sources`, and step 9 refuses a record
  whose `fact_sources` differ, entry for entry and in order, as
  fact_source_mismatch; offline `check` names the comparison as not
  checkable offline;
- M3, "Sorted and unique (Recommended)": step 2 refuses a consumed
  `changed_paths` that is not strictly ascending bytewise.

The pre-review's fixes:

- M1: offline `check` names the bare-directory evidence rule as not
  checkable offline, so it is never passed there;
- L1: a listing entry must be a file directly inside the listing with one of
  its suffixes (step 2);
- L2: an object for an unused contract is facts_unused even when empty;
- L4: a source whose kind is not what the path holds is rule_digest_mismatch;
- L5: completeness requires entry count <= paths <= 2 x entry count.

One T027 case now inserts its secret path at its sorted place, as M3 needs.

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

The final PR-1 review's two LOW follow-ups, test-first. `check`'s
invocation-directory rule compared strings: run from `/`, `base_dir +
os.sep` was `//`, which no canonical path starts with, so every path was
refused. It now compares canonical paths with `os.path.commonpath`.
Regression tests: a sibling sharing the prefix (`base` against
`base-other`) stays outside, and a run from `/` reads a path under it, in
a subprocess and in process. Red before the fix: the two `/` cases failed
and the sibling case passed.

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

On Brett Heap's two rulings of 2026-10-09T17:35:34Z, labels verbatim:

- "Bind it in PR-2 (Recommended)": E2's `fact_sources` row and step 9, E3's
  projection (each class and unclassed council declares `fact_sources`), and
  the corpus contract's `rules` oracle row;
- "Sorted and unique (Recommended)": E2's `consumed_facts` row and step 2,
  and E3's `pr_facts` row.

Dated notes for the pre-review's readings and fixes: reading 2 (a missing or
extra fact source, step 9, after step 8), reading 3 (the bare-directory rule
inside step 10, over the authoritative facts), L1 (listing entries), L2 (an
empty unused contract object), L4 (a source of the wrong kind) and L5 (the
entry-count tie on the path list). The record schema's description names the
two new step-2 rules; its shape is unchanged.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The pre-review's findings and Brett Heap's two rulings of
2026-10-09T17:35:34Z as encoded, the reading of "a rename keeps its
old-then-new pair" stated as a reading, the PR-1 review follow-ups, the
#1282 addendum, every re-derived and added vector by a JSON-path diff, and
red (261 failed, 692 passed) then green (1085 passed). Reading 3's vector
claim is corrected in place, and readings 2 and 6 are annotated.

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

PR-1 landed as 9a272c6 at 2026-10-09T18:07:37Z, so `035-phase1-foundation`
is gone and this branch now takes main. No conflict: everything #1284
carries was already merged here at 8f83b10.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR-1 (#1284) landed in main as 9a272c6 at 2026-10-09T18:07:37Z and is
merged here (96e8843), which is when this phase's boxes may be ticked.
T033's follow-up is #1282. T034's PR-2 opens ready on the lane's word,
not as a draft, after its gates run.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main moved past PR-1 (#1284): #1290, group 6, consumes openXwallet at
xwallet-v1.0 under its nested openWallet chain, which moves the
`openXwallet` gitlink. No conflict; nothing in it touches this family.

Lane: codexfactory-2 (codeXfactory-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
At 57feb4a, over main a8ab303: 3113 passed across tests/council_convening
and tests/doc-health, the gate's floor pinned, 282/282 vectors and an
agreement set of 266, OpenSpec 113 passed with 1 accepted exception,
doc-health with no finding on a Phase 2 path, and an empty scope check. The
full suite is CI's `pytest-suite`, on the lane's instruction.

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.

SonarCloud failed #1294's required Security Rating on New Code with
`pythonsecurity:S8707` at `_read`'s `read_bytes`: the PR-1 follow-up's
`os.path.commonpath` is equivalent, but Sonar's taint analysis does not
recognize it as the sanitizer, so the argv-to-read flow reopened. The check
is the rule's compliant form again, in its order: `realpath`, then equal or
`startswith` a separator-terminated prefix, then use. The prefix is
`base_dir.rstrip(os.sep) + os.sep`, which is `/` at the root, so the
follow-up's `/` fix holds.

Test-first: a new test pins the form (red on `commonpath`), and the sibling
prefix and both `/` cases pass on the new form. tests/council_convening:
957 passed.

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

sonarqubecloud Bot commented Oct 9, 2026

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-11T00:22:36Z, PR #1294 into opensoft/openxFactory main — on Brett Heap's word verbatim "merge PR-2 when green". Rule 6 window open; other lanes hold merges into opensoft/openxFactory main until LANDED or 30 minutes.

@brettheap
brettheap merged commit 33d2a56 into main Oct 11, 2026
15 checks passed
@brettheap
brettheap deleted the 035-phase2-membership branch October 11, 2026 00:23
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: codexfactory-2 (codeXfactory-2)

LANDED — lane codeXfactory-2, 2026-10-11T00:24:00Z, PR #1294 → 33d2a56 (opensoft/openxFactory main, merged 2026-10-11T00:23:56Z). Rule 6 window closed. feature 035 PR-2, Phase 2 membership (T024-T034): rule projection, predicate registry, consumed and authoritative facts, fact sources bound per council (fact_source_mismatch), changed_paths bytewise sorted and unique; pre-review READY AFTER FIXES then delta review READY TO LAND at 79e957e; SonarCloud S8707 fixed; rulings 2026-10-09T17:35:34Z and 2026-10-11T00:19:34Z encoded.

brettheap added a commit that referenced this pull request Oct 11, 2026
…signments

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
Takes #1294 so the landing merge CI validates is the tree that lands.
#1294 touches no 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
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
…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