Skip to content

The broker topic's fragment follows its contract out of staging - #489

Merged
brettheap merged 4 commits into
mainfrom
change/promote-worker-enrollment-broker-docs
Aug 29, 2026
Merged

brettheap merged 4 commits into
mainfrom
change/promote-worker-enrollment-broker-docs

Conversation

@brettheap

@brettheap brettheap commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

What moved

The FULL promotion of the worker-enrollment-broker staging topic into its
active change's supporting docs — pure bookkeeping debt. One file moved, via
scripts/proposal-support.py transition (never by hand), which rewrote the
header to Status: draft + Proposed by: add-worker-enrollment-broker and
re-pointed its proposal link from ../../../openspec/... to ../proposal.md:

ideation/staging/worker-enrollment-broker/worker-enrollment-broker.md
→ openspec/changes/add-worker-enrollment-broker/supporting-docs/worker-enrollment-broker.md

The topic folder held that one file and nothing else, so remaining_paths in
the generated manifest is [] and the folder is gone. Per the maintenance rule
at the top of staging/INDEX.md, a full promotion DELETES the row and the
detail section rather than editing them: both are deleted here (row plus the
67-line detail section), and the pointer moves to ideation/README.md's
"Active proposals promoted from staging" list, carrying forward the substance
the detail section held — the D1–D10 adoptions, the deliberate heartbeat
exclusion, and where the remaining realization work actually sits.

Why now

The topic's contract phase was realized and released at contract-v1.29
(seven schemas, 11 valid / 27 intended-invalid fixtures, the canonical
validator) a month ago, and the fragment never followed it out of staging. The
standing location-conformance error on this path WAS the unexecuted move —
the checker had been reporting the debt correctly the whole time. The program
itself is live elsewhere and untouched by this: the broker service is merged
(its PRs #1 2026-07-27, #2 2026-07-28), Omnigent-Install PR #40 is the live
gate, and OpsxFactory tasks 8.1/8.2 are Brett's.

Two back-references that would have dangled are re-pointed rather than left:
staging/INDEX.md's "see the topic below" inside the worker-host-app detail,
and worker-host-app.md's resolved-decision citation — which cited the Staging
id, not a path, so it keeps the id as the origin id and gains the promoted
location beside it.

Doc-health, before and after

Single-repo run, --as-of 2026-08-28. Baseline re-measured at origin/main
3cebf83 after main moved seven commits under this branch and was merged in,
so both sides read the same tree shape.

Before (main 3cebf83) After (this head)
Headline 4 critical, 7 error, 30 warning, 14 info 4 critical, 6 error, 28 warning, 14 info
location-conformance 3 error 2 error
staged-candidate-aging 3 warning 2 warning
staged-topic-template 27 warning 26 warning

Exactly three findings resolved and zero new (line-by-line diff of the
ranked-plan rows, not just the totals):

  • location-conformance — the target: "staged material already cites proposal
    add-worker-enrollment-broker".
  • staged-candidate-aging — "staged topic untouched 33 days"; one fewer topic.
  • staged-topic-template — the promoted fragment's outline-template warning
    leaves with the fragment. Same single cause as the other two: the file is no
    longer under ideation/staging/.

No other family moved. proposal-origin stays at 0 by design and was checked
before the move, not assumed: its git-tree probe resolves origin.path at the
manifest's recorded source_revision (where the folder still exists), and its
staging-header linkage check runs only while the folder is present, so a
completed promotion skips it. The packet's declared origin in .openspec.yaml
matches the transition source exactly, so the tool left the origin block alone.

Checks

  • pytest tests/doc-health tests/proposal-support tests/ideation_routing tests/document_catalog -q — 1455 passed, 2 subtests passed.
  • openspec validate --all --strict — 81 passed, 0 failed.
  • proposal-support.py verify add-worker-enrollment-broker — ok.
  • validate-ideation-cross-reference.py — clean on the real index; its only 3 errors are pre-existing fixture-schema errors on main, untouched here.

The census the first CI run caught

This branch's first CI run failed one test —
tests/doc-health/test_sentinel_vocabulary.py, assert 67 == 66, with 7624
passing around it. Not a defect and not a flake: a transition writes a
supporting-docs/manifest.yaml whose source_revision is a declared
proposal-support-manifest pin site, so every full promotion moves that
count by one, by design
. The 67th site is this promotion's own manifest,
verdict pass, ancestor of origin/main. Only the site count moves — the
member count stays 23, and lost/uncovered/vanished/arrived are
untouched.

Worth recording because of why it reached CI rather than the local run:
pc.verify reads the committed tree, so a promotion's pre-commit test run
cannot see its own new manifest and passes green. The bump is committed here
with that trap written into the comment, so the next promotion recognises it on
sight instead of re-diagnosing it.

The one side effect

Editing worker-host-app.md to fix its back-reference resets that topic's
own aging clock
. It was not in the aging warnings before this (it sits under
the threshold), so no finding moves either way — but the clock restarts, and
that topic was deliberately DEFERRED WITH GATE NAMED on 2026-08-28 by
settle-aging-staging-topics, whose ruling is explicit that a deferral is a
schedule, not a standing, and that the topic keeps ageing. Flagging it so the
reset is a recorded consequence rather than a surprise later.

Not done, deliberately

ideation/cross-reference.yaml still lists the old staged path as a cluster
member, and is not touched here. It is a generated source of truth whose
regeneration is the CI readiness scorer (scripts/doc_health/ideation_readiness.py,
a two-phase LLM worker that doc-health-reusable.yml commits), which re-derives
membership from the live corpus and will drop the path on its next run.
render-ideation-cross-reference.py only projects YAML → Markdown, and it
reproduces the committed .md byte-identically from the unchanged YAML, so
there is nothing for it to regenerate; re-running the superseded
bootstrap-ideation-cross-reference.py would have destroyed the 32-entry
possibles_register and the scored tiers. Hand-editing is refused by the file's
own header. Nothing gates on the stale member — the validator does not flag it.

tasks.md has no box for this move: 1.12 is the proposal-time close-out
("staging INDEX + topic file readiness updated to Proposed as…"), already
ticked and accurate for what it recorded. Nothing was ticked or added to a
ratified packet.

One cross-packet note for the reviewer

openspec/changes/clean-doc-health-floor/proposal.md names this exact row in
its proof — "…/worker-enrollment-broker.md cites add-worker-enrollment-broker,
also ACTIVE, and is likewise unmoved" — as the live-corpus half of its "the
exemption is not blindness" argument. That packet is merged but not yet
archived, and nothing here edits it: the sentence is a true record of that
packet's own diff, and rewriting another session's proof text is not this lane's
business. Worth knowing only because that change's archive gate is a single-repo
run "whose severity counts move by exactly the amount § What was measured
predicts" — after this lands, location-conformance reads 2, not the 3 it
measured against, so its close-out re-measures rather than matches. The row it
left firing fired correctly; this PR pays the debt underneath it.

🤖 Generated with Claude Code

…, so the broker topic promotes in full

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 29, 2026 01:58

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

Pull request overview

This PR completes a full promotion of the worker-enrollment-broker staged topic into the add-worker-enrollment-broker change’s supporting docs, removing the corresponding staging index entry and re-pointing references to the promoted fragment.

Changes:

  • Adds the promoted fragment under openspec/changes/add-worker-enrollment-broker/supporting-docs/ along with a transition manifest and source snapshot.
  • Updates staging documentation to remove the promoted topic’s row/detail section and redirect the remaining cross-reference to the new supporting-docs location.
  • Updates ideation/README.md to list the promoted proposal under “Active proposals promoted from staging” and updates worker-host-app to cite the promoted fragment location.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
openspec/changes/add-worker-enrollment-broker/supporting-docs/worker-enrollment-broker.md Adds the promoted staging fragment as change supporting documentation.
openspec/changes/add-worker-enrollment-broker/supporting-docs/source-snapshots/worker-enrollment-broker.md Captures a snapshot of the original staged source for provenance.
openspec/changes/add-worker-enrollment-broker/supporting-docs/manifest.yaml Records the scripted transition metadata (paths, shas, origin, timestamp).
ideation/staging/worker-host-app/worker-host-app.md Re-points the resolved decision citation to the promoted fragment path while retaining the origin id.
ideation/staging/INDEX.md Removes the fully-promoted topic’s row/detail section and redirects the remaining in-place reference.
ideation/README.md Adds the promoted proposal to the “Active proposals promoted from staging” list with preserved context.

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

Comment on lines +89 to +91
1. Broker home: repo + hosting target (container app? AKS alongside the
QA cluster? owner per per-domain conventions) + its own credential
custody and rotation story.
brettheap and others added 2 commits August 28, 2026 22:10
Copilot AI review requested due to automatic review settings August 29, 2026 02:21

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.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Suppressed comments (1)

openspec/changes/add-worker-enrollment-broker/supporting-docs/worker-enrollment-broker.md:90

  • Typo: “owner per per-domain conventions” has a duplicated “per”.

1. Broker home: repo + hosting target (container app? AKS alongside the
   QA cluster? owner per per-domain conventions) + its own credential

Comment on lines +914 to +916
# topic was promoted in full. Only the SITE count moves: the member count is
# unchanged because the class already had 24 other manifests in it, and
# `lost`/`uncovered`/`vanished`/`arrived` are untouched. Note this test cannot
Comment thread ideation/README.md
Comment on lines +392 to +396
- [add-worker-enrollment-broker](../openspec/changes/add-worker-enrollment-broker/proposal.md)
— raised, RATIFIED and phase-1 REALIZED 2026-07-26 (the contract family
registered at `contract-v1.29`) as the FULL promotion of the
`worker-enrollment-broker` staged topic, whose row and detail section leave
[staging/INDEX.md](staging/INDEX.md) with this pointer. It ADDS the neutral
Copilot AI review requested due to automatic review settings August 29, 2026 02:26

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.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.

Suppressed comments (1)

tests/doc-health/test_sentinel_vocabulary.py:919

  • Hard-coding the total pin-site count (len(report.results) == 67) will make this test fail on every future full promotion (each transition adds another supporting-docs/manifest.yaml with a pinned source_revision). This turns the test into routine churn rather than a regression signal; consider asserting a lower bound (or dropping the exact-count assertion) while keeping the “no site is classified twice” and lost/uncovered/vanished/arrived invariants.
    # 67, not the 66 this census landed with. A `proposal-support.py transition`
    # writes a `supporting-docs/manifest.yaml` carrying a `source_revision`, and
    # that key is a declared `proposal-support-manifest` pin site — so EVERY full
    # promotion moves this number by one, by design. The 67th is
    # `add-worker-enrollment-broker`'s, written when the `worker-enrollment-broker`
    # topic was promoted in full. Only the SITE count moves: the member count is
    # unchanged because the class already had 24 other manifests in it, and
    # `lost`/`uncovered`/`vanished`/`arrived` are untouched. Note this test cannot
    # see an uncommitted manifest — `pc.verify` reads the committed tree — so a
    # promotion's own pre-commit run passes and CI is where the count lands.
    assert len(report.results) == 67

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