Skip to content

docs: redact the convener's addresses outside ideation/ to role placeholders (Q1 prose + Q3 archived records, dispositioned) - #786

Merged
brettheap merged 3 commits into
mainfrom
docs/redact-addresses-outside-ideation
Sep 8, 2026
Merged

brettheap merged 3 commits into
mainfrom
docs/redact-addresses-outside-ideation

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: provenance-autonomous-merge

The ruling

Brett Heap ruled Q0[A] Q1[A] Q2[A] Q3[A] at 2026-09-08T03:36Z, via the
interactive multi-choice walkthrough, on the decision sheet
/home/brett/session-prompts/redaction-outside-ideation-decision-2026-09-07.md
("openxFactory repo-wide redaction OUTSIDE ideation/, gate on the PUBLIC
flip"). The sheet counts everything on main that carries one of the
convener's four addresses outside ideation/, which PR #771 (757d029a)
already redacted inside ideation/.

This PR implements Q1 and Q3 only. Q2[A] — the promoted
lifecycle-notebook-projection scenario, examples/notebook-projection-hosting.yaml
and the three tests/notebooklm/ fixtures — is a separate governed change
being authored in parallel; none of those five files is touched here.

Placeholders are the ones already in the tree from #771, not the sheet's
shorthand:

address placeholder
the convener's managed Workspace identity <convener-workspace-identity>
the convener's personal mailbox (both spellings — one mailbox) <convener-personal-mailbox>
the operating party's declared hosting account <service-account-identity>

The sheet abbreviated the third as <service-account>; 757d029a actually
wrote <service-account-identity> inside ideation/, and the tree is kept
self-consistent so one grep finds every placeholder.

Q0 residual — the history still carries the bytes

Redaction is at HEAD only, by ruling. The git history is not rewritten and
must not be:
every consumer pins openxFactory by commit and digest (MedxSoft,
LedgerxFactory, codexFactory, the aggregation), so a filter-repo rewrite or a
fresh-history republish would invalidate every one of those pins the same way
the already-refused fork would. The public flip publishes the full history
either way; this PR removes the addresses from browse, search and
clone-at-HEAD. Q0[A] accepts that residual, and the sheet says to record it in
the flip step of the runbook.

Files (address LINES before -> after; occurrences in brackets)

Q1 — prose (8 files, 37 lines, 38 occurrences)

file before after
README.md 3 [3] 0
docs/lifecycle-notebook-projection.md 3 [3] 0
docs/notebook-projection-migration-evidence-2026-08-24.md 10 [11] 0
docs/notebook-projection-migration-runbook.md 3 [3] 0
docs/notebook-projection-retirement-runbook-step8.md 5 [5] 0
docs/notebooklm-sync-open-item.md 9 [9] 0
examples/lifecycle-notebook-workspaces.yaml (comments only) 2 [2] 0
scripts/nlm_auth.py (docstring only) 2 [2] 0

Q3 — archived records (9 files, 42 lines, 45 occurrences)

file before after
openspec/changes/archive/2026-08-31-add-notebook-projection-identity/.openspec.yaml 4 [4] 0
…-add-notebook-projection-identity/proposal.md 6 [6] 0
…-add-notebook-projection-identity/design.md 3 [3] 0
…-add-notebook-projection-identity/tasks.md 20 [22] 0
…-add-notebook-projection-identity/specs/lifecycle-notebook-projection/spec.md 1 [1] 0
…-add-notebook-projection-identity/review/ratification-2026-08-23.md 2 [2] 0
…-add-notebook-projection-identity/review/retirement-gate-clearance-2026-08-26.md 4 [5] 0
openspec/changes/archive/2026-08-31-add-notebook-hosting-credential-custody/.openspec.yaml 1 [1] 0
…-add-notebook-hosting-credential-custody/proposal.md 1 [1] 0

New (2 files) — review/redaction-disposition-2026-09-07.md in each of the
two archived changes.

19 files changed. No Q2 file. Nothing under ideation/.

Three judgment calls inside the redaction

  • Backticks. A bare <placeholder> in Markdown prose renders as an unknown
    HTML tag and vanishes, so every prose placeholder is backticked (as ideation: redact the convener's addresses to role placeholders #771 has
    them); inside fenced command/code blocks the placeholder is bare, because the
    surrounding text is not Markdown.
  • Two minimal rephrasings, both in the archived tasks.md § 4.7, where the
    sentence's whole point was the dotted/undotted Gmail retry and both spellings
    now share one placeholder: "the undotted spelling of the same mailbox" and
    "the same mailbox undotted". The measurement each sentence records is
    unchanged. Everywhere two DIFFERENT addresses are contrasted (Workspace
    identity granted vs personal mailbox refused) the two distinct placeholders
    keep the contrast legible.
  • scripts/nlm_auth.py changes docstring prose only. The harness reads the
    real address from the vault; no code path moves.

Q3 — why an archived change is edited at all

docs/document-lifecycle.md treats an archived OpenSpec change and a
record-status document as immutable evidence, so this is a dispositioned
exception
, not a silent edit:

  1. A dated disposition record in each archived change —
    review/redaction-disposition-2026-09-07.md — stating what was redacted
    (per-file line and occurrence counts; the addresses are named by ROLE in the
    record, since spelling them out would put back at HEAD exactly what the act
    removes), why (the public flip; Brett's Q3[A] of 2026-09-08T03:36Z; lane
    provenance-autonomous-merge), that the redaction is the only content
    change, that the original bytes remain at
    543d47a96970d48b1c988e2293927c800bb1ff08 (origin/main at the branch
    point) and in every commit before it, and that the ratification of
    2026-08-23 and the retirement-gate clearance of 2026-08-26 are unaffected.
  2. One header line per touched archived file, placed right after its
    front-matter / Status: header block so no lifecycle-header reader moves: a
    # comment in .openspec.yaml, a one-line blockquote in the Markdown
    files, reading REDACTED 2026-09-07: email addresses -> role placeholders per review/redaction-disposition-2026-09-07.md; original bytes at 543d47a9. No
    file had to be left without one.
  3. docs/notebook-projection-migration-evidence-2026-08-24.md is a Q1 file but
    also carries Status: record, so it takes the same one-line note pointing at
    the disposition record.

One deliberate, temporary divergence: the archived delta's
- **AND** … bullet now names the placeholder while the promoted
openspec/specs/lifecycle-notebook-projection/spec.md still names the real
account — that is Q2's change, landing separately. promotion-fidelity
compares requirement and scenario TITLES, not body bullets, so the divergence
raises no finding; measured, not assumed (see below).

No health/dispositions.yaml entry is offered, and none would help. That
file resolves as ctx.agg_root / "health" / "dispositions.yaml" — it lives in
the AGGREGATION repository, not here — and record-immutability reads no
dispositions at all, so nothing in this repository could suppress that family.
The in-repo disposition records are the mechanism the ruling names.

Verification (all from the worktree root)

1. git grep -n -E 'xFactor001@opensoft\.one|brettheap@gmail\.com|brett\.heap@farheap\.com|brett\.heap@gmail\.com'

Lists ONLY the five Q2 files and nothing else:

examples/notebook-projection-hosting.yaml            (18 lines)
openspec/specs/lifecycle-notebook-projection/spec.md (1 line, l.459)
tests/notebooklm/test_nlm_auth.py                    (2 lines)
tests/notebooklm/test_sync_notebooklm_books.py       (11 lines)
tests/notebooklm/test_validate_hosting.py            (8 lines)

The same grep with those five paths excluded exits 1 (no match).

2. OPENSPEC_TELEMETRY=0 openspec validate --all --strict

✗ change/disposition-codexfactory-declared-renames
Totals: 100 passed, 1 failed (101 items)

Byte-identical to the baseline taken on the same tree before any edit —
100 passed / 1 failed, the same pre-existing disposition-codexfactory-declared-renames
failure. (The sheet's "98 passed / 1 failed" was measured on an earlier tree;
the item count has since grown to 101.)

3. doc-health

CI runs python3 openxFactory/scripts/doc-health.py --repo-root . from the
aggregation root (.github/workflows/doc-health-reusable.yml), which has no
counterpart in a single-repo worktree, so this was run the way a PR self-gates:
python3 scripts/doc-health.py --single-repo . --family <f>, once per family,
against the SAME tree before and after the edits.

22 of 23 families measured both ways (release-tag-publication exceeds a
foreground budget on any tree, before or after; notebook-projection-drift needs
live `nlm` auth and is skipped in CI too).

baseline: 91 findings      after: 91 findings

NEW:  severity=info family=staged-candidate-aging path=(drafts)
      rule="draft age distribution days: min=0 max=62 n=75"
GONE: severity=info family=staged-candidate-aging path=(drafts)
      rule="draft age distribution days: min=1 max=62 n=75"

That is one INFO trend row whose number moved because two draft documents
were touched today (min draft age 1 -> 0 days); the finding KEY is identical,
so nothing arrives and nothing vanishes. No other family moves — including
record-immutability, whose four CRITICAL findings are unchanged:
docs/notebook-projection-migration-evidence-2026-08-24.md was already one
of the four on main before this PR, so its finding persists rather than
arrives, and the family reads the governed corpus (contracts/, docs/,
examples/, ideation/, templates/) and not openspec/changes/, so the
archived record set is outside its scope.

4. pytest

The full tests/ tree does not finish in a foreground budget (unrelated to this
PR — tests/ideation-dashboard alone runs past 560s), so it was taken in
subsets, all green:

tests/doc-health tests/notebooklm tests/sequenced_after tests/openspec_cli_pin tests/proposal-support
  -> 2158 passed, 7 warnings, 39 subtests passed in 233.61s

tests/document_catalog tests/ideation_routing      -> 86 passed in 2.55s
tests/ideation_dashboard                           -> 74 passed in 32.36s
tests/clearing                                     -> 203 passed in 31.44s
tests/ (alphabetical, first pass)                  -> 678 passed, 338 deselected, 1 error in 184.46s
tests/ideation-dashboard                           -> reached ~85%, zero failures, then hit the budget

The one error in the first pass was environmental and is now gone: a fresh
git worktree has no submodules, so tests/clearing refused on the missing
pinned openXwallet reader (git submodule update --init openXwallet, then 203
passed).

5. git diff --stat origin/main...HEAD — 19 files: the 17 Q1+Q3 files plus
the 2 new disposition records. No Q2 file, nothing under ideation/, and no
health/dispositions.yaml change (see above for why none applies).

Rule 6: touches openspec/changes/ — the lane posts LANDING/LANDED at merge; not for merge without Brett's word.

brettheap and others added 3 commits September 8, 2026 00:21
… ruled 2026-09-08)

Lane: provenance-autonomous-merge

Brett Heap ruled Q1[A] on the redaction-outside-ideation decision sheet
(2026-09-08T03:36Z, interactive walkthrough): ahead of openxFactory going
public, redact the four real addresses in prose OUTSIDE ideation/ to the same
role placeholders PR #771 (757d029) used inside ideation/.

- [email protected]  -> `<convener-workspace-identity>`
- [email protected]     -> `<convener-personal-mailbox>`
- [email protected]    -> `<convener-personal-mailbox>`
- [email protected] -> `<service-account-identity>`

37 lines over 8 files, meaning preserved sentence by sentence. Placeholders are
backticked wherever they sit in prose (a bare `<...>` token would render as an
unknown HTML tag and vanish) and bare inside fenced command/code blocks, where
the surrounding text is not Markdown.

scripts/nlm_auth.py changes DOCSTRING PROSE ONLY — the harness reads the real
address from the vault and no code path moves.

docs/notebook-projection-migration-evidence-2026-08-24.md is a `record`
document; it carries a one-line REDACTED note pointing at the disposition
record, and it already fires the pre-existing `record-immutability` finding
(4 such records on main, this one among them) rather than a new one.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…anges, dispositioned (Q3, ruled 2026-09-08)

Lane: provenance-autonomous-merge

Brett Heap ruled Q3[A] on the redaction-outside-ideation decision sheet
(2026-09-08T03:36Z, interactive walkthrough): a DATED immutability-exception
disposition plus in-place redaction, rather than leaving 17 personal-address
lines browsable at HEAD when openxFactory goes public.

document-lifecycle treats an archived change and a `record` document as
immutable evidence, so the exception is recorded rather than taken silently:

- NEW `review/redaction-disposition-2026-09-07.md` in each of the two archived
  changes — what was redacted (per-file line and occurrence counts), why, that
  it is the only content change, where the original bytes are
  (543d47a, openxFactory origin/main at the
  branch point), and that the ratification and the retirement-gate clearance
  are unaffected.
- ONE added header line per touched file, after its front-matter/`Status:`
  block: a `#` comment in `.openspec.yaml`, a one-line blockquote in the
  Markdown files, naming the disposition record and that commit.

42 address lines over 9 files. No requirement, scenario, tick, count, date or
ruling moves. `tasks.md` § 4.7's dotted/undotted retry keeps its measurement
by naming "the same mailbox undotted" — both Gmail spellings are one mailbox
and share one placeholder.

The archived delta's `- **AND** …` bullet now names the placeholder while the
PROMOTED spec still names the real account: that is Q2[A], a separate governed
change, and `promotion-fidelity` compares requirement and scenario TITLES, so
the temporary divergence raises no finding (measured, per family, before and
after).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Lane: provenance-autonomous-merge

The mapping tables spelled the four addresses out, which put back at HEAD
exactly what the act removes. Both records now name them by role.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 8, 2026 05:02

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

🟡 Changes recommended

A few operational/runbook snippets now present redaction placeholders as literal expected output or literal config values, which can mislead operators and trigger incorrect manual steps.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR implements the Q1 + Q3 ruling to redact the convener’s email addresses outside ideation/ by replacing them with the same role placeholders introduced in PR #771, while also recording disposition evidence for the otherwise-immutable archived OpenSpec change packets.

Changes:

  • Redacts convener/hosting-account email addresses in top-level prose and operational docs (README + docs/ + examples/ comments + scripts/nlm_auth.py docstring).
  • Redacts the same addresses inside two archived OpenSpec change record sets, adding a one-line per-file redaction note.
  • Adds a dated redaction disposition record to each affected archived change packet to document and justify the immutability exception.
File summaries
File Description
README.md Replaces referenced addresses with role placeholders in the archived-changes narrative.
docs/lifecycle-notebook-projection.md Redacts referenced identities in projection documentation.
docs/notebook-projection-migration-evidence-2026-08-24.md Redacts identities in a Status: record report and adds a redaction header note.
docs/notebook-projection-migration-runbook.md Redacts identities in the migration runbook prose/steps.
docs/notebook-projection-retirement-runbook-step8.md Redacts identities in retirement runbook steps and expected-output guidance.
docs/notebooklm-sync-open-item.md Redacts identities in operational guidance, including “expect” lines and a JSON-edit snippet.
examples/lifecycle-notebook-workspaces.yaml Redacts identities in YAML comments describing migration/retirement history.
scripts/nlm_auth.py Redacts identities in docstring prose describing profile metadata behavior.
openspec/changes/archive/2026-08-31-add-notebook-projection-identity/.openspec.yaml Adds redaction header and replaces addresses with placeholders in archived packet metadata.
openspec/changes/archive/2026-08-31-add-notebook-projection-identity/proposal.md Adds redaction header and redacts addresses in archived proposal prose.
openspec/changes/archive/2026-08-31-add-notebook-projection-identity/design.md Adds redaction header and redacts identities in archived design record.
openspec/changes/archive/2026-08-31-add-notebook-projection-identity/tasks.md Adds redaction header and redacts identities throughout the archived task record.
openspec/changes/archive/2026-08-31-add-notebook-projection-identity/specs/lifecycle-notebook-projection/spec.md Adds redaction header and redacts a scenario bullet in the archived delta spec.
openspec/changes/archive/2026-08-31-add-notebook-projection-identity/review/ratification-2026-08-23.md Adds redaction header and redacts identities in archived ratification record.
openspec/changes/archive/2026-08-31-add-notebook-projection-identity/review/retirement-gate-clearance-2026-08-26.md Adds redaction header and redacts identities in archived clearance record.
openspec/changes/archive/2026-08-31-add-notebook-projection-identity/review/redaction-disposition-2026-09-07.md New disposition record documenting the archived-packet redaction exception and counts.
openspec/changes/archive/2026-08-31-add-notebook-hosting-credential-custody/.openspec.yaml Adds redaction header and redacts the hosting account in archived packet metadata.
openspec/changes/archive/2026-08-31-add-notebook-hosting-credential-custody/proposal.md Adds redaction header and redacts the hosting account in archived proposal prose.
openspec/changes/archive/2026-08-31-add-notebook-hosting-credential-custody/review/redaction-disposition-2026-09-07.md New disposition record documenting the archived-packet redaction exception and counts.
Review details

Suppressed comments (2)

scripts/nlm_auth.py:293

  • This comparison example implies the stored value is the literal placeholder; the stored value is the real declared email (redacted in repo prose). Clarifying avoids suggesting operators should ever see <service-account-identity> in their on-disk profile metadata.
    Address comparison is CASE-INSENSITIVE and keeps the STORED spelling on a
    match — `<service-account-identity>` as recorded from the vault vs a
    lower-cased scrape must not read as two accounts (the sync compares

docs/notebooklm-sync-open-item.md:315

  • This snippet now sets metadata.json’s email to the literal placeholder, which would cause a mismatch against the real declared hosting identity (and could trigger refusal/--force behavior). The redaction should be clearly labeled as “substitute the real value”, so no one pastes it verbatim.
   p = pathlib.Path.home() / ".notebooklm-mcp-cli/profiles/company/metadata.json"
   m = json.loads(p.read_text())
   m["email"] = "<service-account-identity>"
   p.write_text(json.dumps(m, indent=2) + "\n")
  • Files reviewed: 19/19 changed files
  • Comments generated: 3
  • Review effort level: Lite

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

```bash
nlm login switch company
nlm auth status # expect [email protected]
nlm auth status # expect <service-account-identity>

```bash
nlm login profile list # expect: company: [email protected]
nlm login profile list # expect: company: <service-account-identity>
Comment thread scripts/nlm_auth.py
Comment on lines 281 to 283
has been false since 2026-08-24: the `company` profile records
`[email protected]`, set from the vault-held username precisely so the
`<service-account-identity>`, set from the vault-held username precisely so the
sync could check it.
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDING — lane provenance-autonomous-merge, session f1356e27-665d-4119-b47e-a5e66efdce00, 2026-09-08T12:28:27Z, PR #786 into openxFactory main

Brett Heap (convener), verbatim "Merge 786 now", 2026-09-08T12:28:27Z (interactive walkthrough; rulings Q0[A] Q1[A] Q3[A] on ~/session-prompts/redaction-outside-ideation-decision-2026-09-07.md). Registered-green: 9/9 pass, 0 pending at cd3134d. Lane: provenance-autonomous-merge

@brettheap
brettheap merged commit e8021fe into main Sep 8, 2026
10 checks passed
@brettheap
brettheap deleted the docs/redact-addresses-outside-ideation branch September 8, 2026 12:28
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDED — lane provenance-autonomous-merge, 2026-09-08T12:28:35Z, PR #786 → e8021fe

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