Skip to content

lifecycle-notebook-projection: the hosting identity is a configured value, not a literal (redaction after the PUBLIC flip) - #946

Merged
brettheap merged 1 commit into
mainfrom
change/redact-notebook-hosting-identity-literal
Sep 11, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/redact-notebook-hosting-identity-literal

Conversation

@brettheap

@brettheap brettheap commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Lane: provenance-autonomous-merge

DO NOT MERGE — Brett Heap's separate word gates the merge. This PR is the redaction act only.

Brett Heap (convener), through the interactive multi-choice walkthrough, verbatim: "Redact the xFactor001 service-account line now".

The finding

The Phase 7 pre-flight found one live Workspace service-account address still standing in a promoted capability spec — the third bullet of lifecycle-notebook-projection's scenario An operating party declares the company account. opensoft/openxFactory became PUBLIC at 2026-09-09T21:58:08Z with that line in the tree.

The hunk

 #### Scenario: An operating party declares the company account
 - **WHEN** an install's intake declares operator-hosted and names a Google Workspace user account in the operating party's own domain
 - **THEN** the declaration is valid, and every book, alias and session notebook of that install is created under the named account
-- **AND** Opensoft's own install is such a declaration, naming `<the address>`
+- **AND** the operating party's own install is such a declaration, naming the CONFIGURED HOSTING IDENTITY it resolves at run time rather than an address written into this repository

(The removed value is shown in role terms here on purpose — a pull request that reprinted it to argue for removing it would have removed nothing.)

The ruling it discharges, and whose wording this is

Q2 of ~/session-prompts/redaction-outside-ideation-decision-2026-09-07.md, option [A], ruled 2026-09-08T03:36Z: the hosting identity becomes a configured value rather than an address written into this repository. The governed packet carrying that ruling is adopt-configured-notebook-hosting-identity (Status: ratified 2026-09-08, "Ratify 783 and merge", PR #783).

The replacement bullet is not this PR's wording. It is lifted verbatim from that packet's own ## MODIFIED Requirements block at openspec/changes/adopt-configured-notebook-hosting-identity/specs/lifecycle-notebook-projection/spec.md, so canon now states exactly what the block states. No new mechanism is invented — the packet's prescribed shape is role terms plus run-time resolution, and the resolver it specifies (env var → workspace config → UNDECLARED, refusing when configuration resolves to the shipped example) is already built and green on main: tasks 2.1–2.6, Group 3, Group 4 and 6.1/6.2 are ticked.

Why by hand, when task 1.1 says "by the archive act, never by hand"

Because the ordering that rule protected has been spent. Task 5.4 gated the public flip on no live identity remaining in the public tree; the flip did not wait. Task 1.1 exists to stop canon and the delta drifting apart, and this commit does the opposite of drift — it moves canon onto the delta's own text. The archive act still applies the block wholesale; for this one bullet it becomes a no-op rather than a conflict.

Task 1.2's "expect exactly ONE info finding" will read zero at the archive. That is 1.2 behaving as written: canon moved, and the block owes a re-read — which will find it moved toward the block.

The packet's archive act keeps every other task. Nothing here ticks a box. Group 5 (Brett's operator ceremony moving the live record to installs/hermes-install), 6.3, 6.4, 6.5 and 6.6 are untouched and still owed. tasks.md is deliberately not edited.

The second file is forced, not chosen — and measured, not assumed

Making the block carry every unit canon states removes its modified-block-currency info carriage finding. tests/doc-health/test_modified_block_currency_self_gate.py compares _LEDGER_SUBJECTS with == and never <=, so the now-stale row reds the required pytest-suite check. The gate failed on exactly that assertion before the row was retired:

1 named subject(s) NO LONGER reported
[('adopt-configured-notebook-hosting-identity', 'lifecycle-notebook-projection',
  "The projection's hosting identity is declared at install")]

The gate's own WHAT-TO-DO prescribes the remedy — "update the named subjects in this module, in the same commit, saying which subject moved and why" — so the row is retired with a note in the file's established style, and the movement narrative records it. The row's original note said it "retires when the packet archives and its block is promoted"; here the second half discharges without the first, and the note says so.

Measurements, before and after against baseline 96b4835b

check before after
openspec validate --all --strict 97 passed / 3 failed 97 passed / 3 failed, failing set byte-identical
doc-health modified-block-currency 10 info 9 info, zero lines naming this change at any path (was 1)
doc-health notebook-projection-drift 0 0
doc-health promotion-fidelity 0 0 (titles only; no title moves)
pytest tests/doc-health/ tests/notebooklm/ — 1940 passed, 40 subtests
pytest -k "lifecycle or notebook or redact" — 509 passed, 1 skipped

The three pre-existing openspec failures (disposition-codexfactory-declared-renames, disposition-codexfactory-floor-relocation-retitle, spec/repo-boundary-governance) are unrelated and untouched.

What the sweep found, and what it deliberately left

git grep "[email protected]" over the tree returns nothing outside specs/03*/evidence/, whose sixteen hits are dated doc-health evidence records quoting the finding as it read on its date. Rewriting a dated evidence record to describe a later tree would falsify it — the same reasoning task 6.2 applied when it left docs/notebook-projection-migration-evidence-2026-08-24.md alone. Also left alone: tests/notebooklm/test_validate_hosting.py's secret_ref: xfactor001-password, a synthetic fixture naming a binding, not an address.

One receipt this cannot suppress, stated rather than hidden

The carriage finding is contested, so its disappearance re-emits through report.uncited_resolutions as an uncited-resolution ERROR naming the still-active path. That is an aggregation artifact — health/dispositions.yaml resolves under ctx.agg_root, which is None on the --single-repo self-gate a pull request runs — so no file in this repository could suppress it and none is offered. It is the same mechanical shadow the 2026-08-31 add-notebook-projection-identity retirement records in that same file. The citation is this change id and Brett's ruling.

Lane collision

adopt-configured-notebook-hosting-identity has no governing issue (.openspec.yaml origin is kind: ad_hoc, a decision sheet) and no open PR, and its owning lane is this same lane — PR #783 and the proposal front-matter both carry Lane: provenance-autonomous-merge. CLAIMED posted on codeXfactory/codexFactory#279. Sibling search clean: no open openxFactory PR touches openspec/specs/lifecycle-notebook-projection/spec.md.

🤖 Generated with Claude Code

Summary by Sourcery

Redact the hard-coded service-account identity from the public lifecycle notebook projection and align its doc-health tracking with the configured hosting-identity requirement.

Bug Fixes:

  • Replace the published notebook projection's hard-coded hosting address with a runtime-configured hosting identity.
  • Retire the stale modified-block currency ledger entry for the hosting-identity requirement and document its redaction-related resolution.

Tests:

  • Update doc-health self-gate expectations and audit text for the reduced carriage ledger.

…alue, not a literal (redaction after the PUBLIC flip)

Brett Heap (convener), through the interactive multi-choice walkthrough,
verbatim: "Redact the xFactor001 service-account line now".

THE FINDING. The Phase 7 pre-flight found one live Workspace service-account
address still standing in a PROMOTED capability spec — the third bullet of
`lifecycle-notebook-projection`'s scenario *An operating party declares the
company account*. `opensoft/openxFactory` became PUBLIC at
2026-09-09T21:58:08Z with that line in the tree.

THE RULING IT DISCHARGES. Q2 of the redaction sheet
`~/session-prompts/redaction-outside-ideation-decision-2026-09-07.md`, option
[A], ruled 2026-09-08T03:36Z: the hosting identity becomes A CONFIGURED VALUE
rather than an address written into this repository. The governed packet
carrying that ruling is `adopt-configured-notebook-hosting-identity`
(Status: ratified 2026-09-08, "Ratify 783 and merge").

THE WORDING IS THE PACKET'S OWN, NOT THIS COMMIT'S. The replacement bullet is
lifted VERBATIM from that packet's `## MODIFIED Requirements` block at
`openspec/changes/adopt-configured-notebook-hosting-identity/specs/lifecycle-notebook-projection/spec.md`,
so canon now states exactly what the block states. No new mechanism is
invented: the packet's shape is role terms plus run-time resolution, and the
resolver it prescribes (env var, then workspace config, then UNDECLARED) is
already built and green on main — tasks 2.1-2.6 and Groups 3, 4 and 6.1/6.2
are ticked.

WHY BY HAND, WHEN TASK 1.1 SAYS "BY THE ARCHIVE ACT, NEVER BY HAND". Because
the ordering that rule protected has been spent. Task 5.4 gated the public
flip on no live identity remaining in the public tree; the flip did not wait.
1.1 exists to stop canon and the delta drifting apart, and this commit does
the opposite of drift — it moves canon ONTO the delta's own text. The archive
act still applies the block wholesale; for this one bullet it is now a no-op
rather than a conflict. Task 1.2's "expect exactly ONE info finding" will read
ZERO at the archive, which is 1.2 behaving as written: canon moved, and the
block owes a re-read that will find it moved toward the block.

THE PACKET'S ARCHIVE ACT KEEPS EVERY OTHER TASK. Nothing here ticks a box.
Group 5 (Brett's operator ceremony moving the live record to
`installs/hermes-install`), 6.3, 6.4, 6.5 and 6.6 are untouched and still owed,
and `tasks.md` is deliberately not edited by this commit.

THE SECOND FILE IS FORCED, NOT CHOSEN, AND IT IS MEASURED RATHER THAN ASSUMED.
Making the block carry every unit canon states removes its
`modified-block-currency` `info` carriage finding.
`tests/doc-health/test_modified_block_currency_self_gate.py` compares
`_LEDGER_SUBJECTS` with `==` and never `<=`, so the now-stale row reds the
required `pytest-suite` check: the gate failed on exactly that assertion
("1 named subject(s) NO LONGER reported") before the row was retired. The
gate's own WHAT-TO-DO prescribes the remedy — "update the named subjects in
this module, IN THE SAME COMMIT, saying which subject moved and why" — so the
row is retired with a note in the file's established style, and the movement
narrative records it.

MEASUREMENTS, taken before and after against baseline `96b4835b`:
  - `openspec validate --all --strict`: 97 passed / 3 failed BOTH SIDES, and
    the failing SET is byte-identical (`disposition-codexfactory-declared-
    renames`, `disposition-codexfactory-floor-relocation-retitle`,
    `spec/repo-boundary-governance` — all pre-existing, none touched here).
  - doc-health `--single-repo --family modified-block-currency`: 10 info -> 9,
    and zero lines naming this change at any path (was one). No other subject
    moved.
  - doc-health `notebook-projection-drift` and `promotion-fidelity`: zero
    findings both sides. `promotion-fidelity` compares titles only and no
    title moves.
  - `pytest tests/doc-health/ tests/notebooklm/`: 1940 passed, 40 subtests.
  - `pytest -k "lifecycle or notebook or redact"`: 509 passed, 1 skipped.
  - Sweep: `git grep -n "[email protected]"` over the tree returns
    nothing outside `specs/03*/evidence/`, whose sixteen hits are DATED
    doc-health evidence records quoting the finding as it read on its date.
    Rewriting a dated evidence record to describe a later tree would falsify
    it — the same reasoning task 6.2 applied to
    `docs/notebook-projection-migration-evidence-2026-08-24.md`, also left
    alone. `tests/notebooklm/test_validate_hosting.py`'s
    `secret_ref: xfactor001-password` is a synthetic fixture naming a binding,
    not an address, and is not touched.

ONE RECEIPT THIS CANNOT SUPPRESS, stated rather than hidden: the carriage
finding is `contested`, so its disappearance re-emits through
`report.uncited_resolutions` as an `uncited-resolution` ERROR naming the
still-active path. That is an AGGREGATION artifact — `health/dispositions.yaml`
resolves under `ctx.agg_root`, which is `None` on the `--single-repo` self-gate
a pull request runs — so no file in this repository could suppress it and none
is offered. It is the same mechanical shadow the 2026-08-31
`add-notebook-projection-identity` retirement records in that same file. The
citation is this change id and Brett's ruling.

Lane: provenance-autonomous-merge

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 11, 2026 02:41
@sourcery-ai

sourcery-ai Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

This redaction removes the live service-account address from the promoted lifecycle specification by adopting the already-ratified configured-hosting-identity wording, then updates the doc-health self-gate’s exact ledger and audit narrative to reflect that the finding disappeared because canon now matches the active packet.

File-Level Changes

Change Details Files
Replace the literal Workspace service-account identity in the promoted lifecycle projection with configured, runtime-resolved hosting-identity language.
  • Update the operating-party scenario to describe configuration-based identity resolution rather than naming a repository-stored address.
  • Preserve the packet’s prescribed replacement wording verbatim, without changing the existing resolver implementation.
openspec/specs/lifecycle-notebook-projection/spec.md
Retire the now-stale modified-block-currency ledger entry and update its exact-set self-gate documentation for the redaction path.
  • Remove the named carriage-finding row and document that canon moved onto the active packet’s modified-block text before archival.
  • Update the expected ledger size and explanatory assertion to account for nine subjects instead of ten.
  • Record the unavoidable uncited-resolution aggregation receipt while retaining the remaining ledger entries.
tests/doc-health/test_modified_block_currency_self_gate.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


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

@sonarqubecloud

Copy link
Copy Markdown

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

Unresolved disposition, workflow-lineage, and documentation consistency issues remain.

Pull request overview

Redacts the hard-coded hosting identity and updates the modified-block currency self-gate.

Changes:

  • Replaces the literal address with runtime-configured identity wording.
  • Retires the corresponding ledger subject and updates audit text.
File summaries
File Review summary
openspec/specs/lifecycle-notebook-projection/spec.md Moderate: add the required aggregation disposition and auditable workflow marker; update the stale README index.
tests/doc-health/test_modified_block_currency_self_gate.py Moderate: provide a machine-readable disposition or supported retirement path for the resulting uncited-resolution error.
Review details

Suppressed comments (4)

openspec/specs/lifecycle-notebook-projection/spec.md:459

  • This edit makes the prior modified-block-currency finding disappear while that family is centrally classified as contested; the normal runner therefore emits an uncited-resolution ERROR for the vanished path unless an aggregation-level disposition cites it. The PR does not add that disposition, so the next report can carry a new error even though the self-gate's direct family run is clean. Please coordinate the required aggregation disposition (or defer the finding's retirement until the archive act) instead of leaving this as an acknowledged error.
- **AND** the operating party's own install is such a declaration, naming the CONFIGURED HOSTING IDENTITY it resolves at run time rather than an address written into this repository

openspec/specs/lifecycle-notebook-projection/spec.md:459

  • This canon edit leaves the active-change index factually stale: README.md:751-778 still says the promoted spec contains the one live identity bullet and that the MODIFIED block carries every bullet except that one, while README.md:817-831 still says Group 1 and the last promoted address line remain for the archive act. Since this line removes that bullet before the packet archives, update the OpenSpec Records entry in the same change so the repository does not advertise the redacted address as still present or claim the work is archive-only.
- **AND** the operating party's own install is such a declaration, naming the CONFIGURED HOSTING IDENTITY it resolves at run time rather than an address written into this repository

openspec/specs/lifecycle-notebook-projection/spec.md:459

  • This changes promoted canon before the packet's archive act, while the lifecycle contract requires a ratified delta to reach openspec/specs/... when the change archives (openspec/specs/document-lifecycle/spec.md:609-614) and task 1.1 is still open. The active block also omits the old bullet without the reserved deletion marker required by openspec/specs/document-lifecycle/spec.md:751-756; the surrounding prose is not machine-readable marker syntax. Please record a redaction-safe exception/marker in the governing workflow before landing so this manual canon move has an auditable lineage.
- **AND** the operating party's own install is such a declaration, naming the CONFIGURED HOSTING IDENTITY it resolves at run time rather than an address written into this repository

tests/doc-health/test_modified_block_currency_self_gate.py:756

  • This knowingly accepts an uncited-resolution ERROR, but it is not merely an aggregation note: modified-block-currency is contested, and report.uncited_resolutions emits an ERROR when its prior finding disappears without a disposition. Removing this row therefore creates a new error on the next run that uses the prior report, while this change adds no machine-readable disposition or citation. Add the disposition in the aggregation scope or use a supported retirement path instead of treating the error as expected.
    # THE ONE RECEIPT THIS CANNOT SUPPRESS, stated rather than hidden. The
    # carriage finding is `contested`, so its DISAPPEARANCE re-emits through
    # `report.uncited_resolutions` as an `uncited-resolution` ERROR naming the
    # still-active path — the same mechanical shadow the 2026-08-31
    # `add-notebook-projection-identity` retirement above records. It is an
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • 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

Copy link
Copy Markdown
Contributor Author

LANDED — lane provenance-autonomous-merge, 2026-09-11T03:19:14Z, PR #946 → d67233a (merge commit, on Brett Heap's standing word "merge the redaction PR when green"; the APPROVED review on this PR is sourcery-ai's — Brett's word is the human authority). Not a Rule 6 window (openspec/specs/ + tests/, no openspec/changes/). The live service-account address is gone from the public tree; adopt-configured-notebook-hosting-identity's archive act now finds this bullet already in canon (a no-op, not a conflict).

Lane: provenance-autonomous-merge

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: provenance-autonomous-merge — notice to the owner of adopt-configured-notebook-hosting-identity: the xFactor001 service-account literal at lifecycle-notebook-projection/spec.md was redacted ahead of your archive act by PR #946 → d67233a (2026-09-11T03:19:14Z), on Brett Heap's word after openxFactory went PUBLIC 2026-09-09T21:58:08Z (your task 5.4 gate). Wording taken verbatim from your packet's MODIFIED block; the doc-health self-gate ledger row retired (10 → 9). Your archive act is a no-op for this bullet. Lane: provenance-autonomous-merge

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