Skip to content

Merge-approval envelope: the custody candidate may write ideation/cross-reference.yaml (ruling D-10 a) - #830

Merged
brettheap merged 1 commit into
mainfrom
fix/envelope-custody-admits-the-register
Sep 9, 2026
Merged

brettheap merged 1 commit into
mainfrom
fix/envelope-custody-admits-the-register

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

Realizes ruling D-10 (a) (Brett Heap, 2026-09-09, #656): the intent-rolling-custody candidate of the merge-approval envelope may write the ideation cross-reference REGISTER, ideation/cross-reference.yaml, alongside the two record trees. Refs #656.

Defect

Approval run 34309524696 parked the first real apply through the intent plane (commit e970dfec on intents/rolling: register +10, one gate-action record, one gate-intent record) on failed_condition: path_allowlist — paths outside allowlist [...]: ['ideation/cross-reference.yaml']. Every applied dispose-possible writes the register by construction (doc_health.derive_possibles.apply_disposition), so as written the envelope could approve refusals but never an apply; D-3's autonomous merge was unreachable.

Change

  • .github/merge-approval-envelope.yml: path_allowlist gains the exact file ideation/cross-reference.yaml (third entry beside ideation/dashboard/intents/** and ideation/dashboard/gate-records/**); every other candidate field is byte-identical (expected_author: openxfactory[bot], head intents/rolling, base main, require_all_checks: true, check_exclusions: [merge-master-approval]). The operator note is rewritten to state the apply lane's three write surfaces and to name what stays refused — ideation/cross-reference.md (the generated projection the lane never writes), change directories, docs, code.
  • tests/review_lane_pin/test_review_lane_caller.py: the pinned allowlist expectation is now exactly the three entries; the refused-ground and widened-allowlist controls still catch openspec/changes/** and anything wider; three new tests use the pinned core's own glob dialect (scripts/scope_globs.py:path_matches) as the harness — the register admitted and its .md projection refused; the real e970dfec three-file set admitted; the same set plus the projection parks.

Proof

  • python3 -m pytest -q tests/review_lane_pin — 169 passed, 2 skipped (re-run by the orchestrator on this head).
  • Mutation-proved by the author before commit: removing the register entry reds the new admission test; widening to admit the projection reds the refusal test.
  • This PR was authored by a subagent terminated by an org-level access change immediately after committing; the orchestrator pushed the commit unchanged after inspecting the diff and re-running the pinned tests. No independent verifier pass ran (none could start); CI is the independent check.

Not in this PR

No workflow, ruleset or CODEOWNERS change; ideation/cross-reference.md stays outside the autonomy by design.

This PR asks for Brett's word; it is not being merged by its author.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KNXDpP7Q2bKF8KTMGfFUjt

…ss-reference.yaml (ruling D-10 a)

Approval run 34309524696 parked the real apply commit e970dfe on
path_allowlist: the intent-rolling-custody lane's own write to
ideation/cross-reference.yaml (derive_possibles.apply_disposition updates
the register on every applied disposition) was not enrolled alongside the
two record trees. Brett Heap ruled D-10 (a) on #656, 2026-09-09: the
register is a third surface the apply lane writes by construction, so it
belongs inside the same autonomy.

path_allowlist gains the exact file ideation/cross-reference.yaml; every
other candidate field stays byte-identical. The operator note is rewritten
to describe the apply lane's three write surfaces and to name what stays
refused (ideation/cross-reference.md, the generated Markdown projection
the apply lane never writes).

tests/review_lane_pin/test_review_lane_caller.py: the pinned allowlist
expectation moves to the exact three entries; the standing refused-ground
and widened-allowlist mutation controls still catch openspec/changes/**
and anything wider. Three new tests, using the pinned core's own mirrored
glob dialect (scripts/scope_globs.py:path_matches) as the harness: the
register is admitted and its .md projection is not; the real e970dfe
three-file set evaluates admitted; the same set plus the projection still
parks. Mutation-proved by hand (removing the register entry, and by
widening to admit the projection) before this commit.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KNXDpP7Q2bKF8KTMGfFUjt
Copilot AI lite review requested due to automatic review settings September 9, 2026 06:11

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

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.

🔵 Needs a closer look

It modifies a security-critical merge-approval allowlist/envelope, which warrants final human verification even though the change is narrowly scoped and test-covered.

Pull request overview

Updates the merge-approval envelope so the intent-rolling-custody candidate can legally write the ideation cross-reference register (ideation/cross-reference.yaml), aligning the autonomy boundary with what the intent apply lane writes.

Changes:

  • Expand .github/merge-approval-envelope.yml path_allowlist to include ideation/cross-reference.yaml.
  • Update the review-lane pin tests to expect the 3-entry allowlist and add dialect-level allowlist evaluation tests using scripts/scope_globs.py:path_matches.
File summaries
File Description
.github/merge-approval-envelope.yml Adds ideation/cross-reference.yaml to the candidate path_allowlist and updates operator note to document the third write surface and the refused .md projection.
tests/review_lane_pin/test_review_lane_caller.py Pins the allowlist to three entries and adds tests that evaluate real changed-path sets against the allowlist using the mirrored glob dialect.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

@brettheap
brettheap merged commit 202c170 into main Sep 9, 2026
10 checks passed
brettheap added a commit that referenced this pull request Sep 9, 2026
…tory in a file this slice owns, so this slice respells it

MAIN MOVED A FOURTH AND FIFTH TIME while this reconciliation ran — `#830`
(*"Merge-approval envelope: the custody candidate may write
ideation/cross-reference.yaml (ruling D-10 a)"*) and `#176` (the bot's
`intents/rolling`). Clean merge: no conflict.

ONE NEW OCCURRENCE, ASSIGNED AND RESPELLED. #830 added a comment to
`tests/review_lane_pin/test_review_lane_caller.py:90` naming where the
`path_allowlist` glob dialect's authority lives:

    # (`opensoft/codexFactory` `scripts/merge_master/envelope.py`) lives in a
    # sibling submodule this repository does not vendor.

RENAME class — it is a LIVE pointer at the repository the transfer moves, in
a machine surface this slice owns, and the same file already declares
`PINNED_REPOSITORY = "codeXfactory/codexFactory"` at `:175`. Leaving it would
have put the two spellings four lines of purpose apart in one module.
Respelled.

Measured `82c9f059` -> `7681e409`: this is the ONLY occurrence that moved
(main 412 -> 413). `git grep -i 'opensoft/codexFactory'` over every B1-owned
surface is EMPTY again.

Validators at this merge:
- `pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q`
  -> 626 passed, 2 skipped, 48 subtests passed
- `openspec validate --all --strict` -> 101 passed / 3 failed, all three
  pre-existing at `origin/main@7681e40`, measured there
- `validate-sequenced-after.py . --ledger-diff` -> consistent, 189 rows
- doc-health `--single-repo .` -> critical+error set BYTE-IDENTICAL to the
  same run at `origin/main@7681e40` (10 critical / 9 error / 57 warning)
- freeze check -> EMPTY

Lane: provenance-autonomous-merge
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 9, 2026
…th time (#830, #176), clean

`#830` (merge-approval envelope, ruling D-10 (a)) and `#176` (the bot's
`intents/rolling`) touch none of this slice's surfaces. #830's one new
`opensoft/codexFactory` occurrence is in
`tests/review_lane_pin/test_review_lane_caller.py`, which is B1's file and
respelled there. Clean merge.

Validators at this merge:
- `pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q`
  -> 624 passed, 2 skipped, 48 subtests passed
- `openspec validate --all --strict` -> 101 passed / 3 failed, all three
  pre-existing at `origin/main@7681e40`
- `validate-sequenced-after.py . --ledger-diff` -> consistent, 189 rows
- doc-health `--single-repo .` -> critical+error set BYTE-IDENTICAL to
  `origin/main@7681e40`
- freeze check -> EMPTY

This pull request stays HUMAN-ONLY to merge.

Lane: provenance-autonomous-merge
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 9, 2026
…th time (#830, #176), clean, transient still exactly seven

`#830` (merge-approval envelope, ruling D-10 (a)) and `#176` (the bot's
`intents/rolling`) touch none of this slice's surfaces. #830's one new
`opensoft/codexFactory` occurrence is in
`tests/review_lane_pin/test_review_lane_caller.py`, which is B1's file.

RE-MEASURED at the new base:
- doc-health `--single-repo .` -> 10 critical, **16 error**, 57 warning,
  16 info. Named diff against the same run at `origin/main@7681e40`
  (9 error): the delta is EXACTLY the seven `release-inventory-drift` ERRORs
  this slice's respellings cause —
  `contracts/hermes-runtime/README.md`,
  `contracts/hermes-runtime/fixtures/domain-regression-inventory.yaml`,
  the three `contracts/hermes-runtime/fixtures/regression/` negatives,
  `docs/terminology-and-repo-topology.md`,
  `docs/xfactory-domain-factory-model.md` — nothing in any other family, and
  nothing that stood on main disappeared. With the pre-existing
  `docs/contract-versioning-policy.md` the family reports EIGHT, as task 7.5
  predicts; the bundle cut discharges all eight.
- `pytest tests/hermes_runtime_contracts/test_domain_regression.py -q`
  -> 35 passed
- `scripts/validate-hermes-runtime-contracts.py` -> pass (51 contracts,
  32 schemas, 110 fixtures, 17 requirements, 85 scenarios, 439 tests
  collected)
- `pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q`
  -> 624 passed, 2 skipped, 48 subtests passed
- `openspec validate --all --strict` -> 101 passed / 3 failed, all three
  pre-existing at `origin/main@7681e40`
- `validate-sequenced-after.py . --ledger-diff` -> consistent, 189 rows
- freeze check -> EMPTY

Lane: provenance-autonomous-merge
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 9, 2026
…1/5.2 ticked on the D-2 evidence) (#832)

Path A PR-5, the last of the 2026-09-06 plan memo's sequence, on Brett Heap's word "merge pr-5 when green" (2026-09-09). Authority: his ruling of 2026-09-05T23:38Z "rule path A, 4.5 is a deferred successor" (#656) and ruling D-2 (the live exercise).

- tasks.md: § 4.4 / § 5.1 / § 5.2 ticked on the D-2 evidence (three `- [ ]` heads removed, every ratified sentence kept byte-identical); § 4.5 untouched as a DEFERRED SUCCESSOR (#714 → 3d1b8cc).
- Archived WITH promotion via `scripts/proposal-support.py . archive --date 2026-09-09` under the pinned @fission-ai/[email protected] (never a bare `openspec archive`); origin retained (declaration unchanged since da1b0e9); six frozen files R100.
- Promoted: `openspec/specs/ideation-intent-plane/spec.md` NEW (7 requirements / 11 scenarios, every block byte-identical to the archived delta) and `openspec/specs/document-lifecycle/spec.md` 18 → 19 requirements ("Gates happen on main"); the new capability's `## Purpose` written by this act (no SHALL; replaces the CLI's TBD stub). openspec/specs 60 → 61; floor regeneration OWED (GRACED covered-pending 1, `created_by_candidate`), `contracts/review-lane-floor-snapshot.yaml` deliberately not edited here.
- README OpenSpec Records row → archived; sweep-ledger row re-seeded with the tool (`--seed-ledger --moved-by '#832'`, one line moved); no thirteenth archive-date disposition.
- Evidence (merged + green): #718 d179cc0, #727 07624d5, #735 6d3237e, xFactory #304 b2db7e47, #313 ddd19650, #345 90435875, #781 450bb60, #808 2ef7d8c, #814 c991c0f, #816 8924230, xFactory #362 119280a8, #830 202c170, xFactory #369 c2313277; D-2 live exercise: act B refusal 36d07ec, act A apply e970dfe, first autonomous merge #176 → 7681e40 (codexfactory[bot] APPROVED 2026-09-09T06:37:22Z).
- Copilot round 1: one factual finding taken (a missing "where" in Purpose); two wording findings answered and resolved.

Refs #656 (stays OPEN). Rule 6 LANDING window observed.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012LiNG5Ume1boEfxSNeCmpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants