Skip to content

The surface merged and ran green on main, so the broker's four requirements reach canon - #405

Merged
brettheap merged 4 commits into
mainfrom
change/archive-model-provider-broker
Aug 27, 2026
Merged

brettheap merged 4 commits into
mainfrom
change/archive-model-provider-broker

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

What this is

The archive of add-model-provider-broker, plus the verification record that
earns it. The change was ratified 2026-08-26, built and merged as PR #392, and
its consumer landed as PR #401 / contract-v1.45. Nothing about the packet's
content changes here — this pass verifies the gate, diffs the requirement map
against canon as it stands TODAY, and promotes.

The gate, on the code surface rather than on the target

The proposal declares a non-empty code_surface (dashboard settings
surface for model-provider bindings, the token-minting broker seam, ONE
server-side provider client, the honest unavailable posture, the narrowed
structural provider boundary, tests) with target_release: none.

release-realization's Realization archive gate opens "A change with a
non-empty code surface SHALL NOT archive until realization evidence
exists" — the antecedent is the surface. The archive-on-landing path lives in
Realization axis declaration and is keyed to code_surface: none, which
this is not. So target_release: none cannot downgrade a real surface, and
the prior verifier's ruling to that effect is confirmed rather than
re-litigated. Merged-plus-green applies, and both halves were verified.

(a) MERGED — yes

PR #392 merged 2026-08-26T23:21:12Z as main bb7d7ae8. All five branch
commits test as ancestors of origin/main (git merge-base --is-ancestor):
c172d865, 449a0649, 02815866, 91e3a0e9, 0c131981 — the follow-ups
landed inside #392's branch, which is why one merge carries five commits.

Each declared surface element resolves to a file present at main 7b7447da:
doxbench_binding.py (557), doxbench_install.py (339), doxbench_provider.py
(906), cli.py (2328), serve.py (6734), test_model_provider_broker.py
(1325), test_openprofiler_broker_e2e.py (408), test_provider_boundary.py
(274). Eight of eight.

(b) GREEN — yes, and named

Where Sha Evidence
PR #392 head 0c131981 pytest-suite SUCCESS (run 33022209136) + wallet-validation SUCCESS (run 33022209188)
PR #401 head (the consumer) 7eee092d pytest-suite SUCCESS (run 33029559727) + wallet-validation SUCCESS (run 33029559670)
main — the merge commit itself bb7d7ae8 pytest-suite run 33023028983, success, uncancelled
main — last uncancelled green run d3e140ea pytest-suite run 33031366342, success, 2026-08-27T01:50:11Z

d3e140ea (the merge of PR #398) descends from bb7d7ae8 and carries all
three broker modules and all three broker test files; it is itself an ancestor
of this branch's base. Assessed the way the add-omnigent-domain-terminology
archiver assessed it — name the run, then test whether it carries the code.

The cancellation artifact, named rather than papered over.
pytest-suite.yml declares concurrency: pytest-suite-${{ github.ref }} with
cancel-in-progress: true, so main cancels its own predecessors as it
advances. Between d3e140ea and main HEAD, 78ffb7f1 and f9457d6f are both
cancelled for exactly that reason, and the run on 7b7447da was
in_progress at verification time. None of them reported a test failure. The
workflow carries no paths filter and runs pytest tests/ -q -m "not postgres", so tests/ideation-dashboard/ is inside every green run named.

Direct re-run in the fresh clone at main, so the gate does not rest on CI
alone: 99 passed, 3 skipped, exit 0 across the three broker test files.
openspec validate --all --strict green there at 77/77 before the archive.

Standing clauses: no managed-subject deployment (correlation clause N/A); no
supporting-docs/ (support-bundle clause has nothing to bundle); 15 of 15
tasks ticked. Per-task verdicts are NOT redone here — PR #392's finisher
verified all fifteen and wrote the record into that PR body (the eleven build
tasks in its "The tick audit" table, 0.1/0.2/0.3 and 2.6 in the
sections above it); this record cites it rather than re-deriving it.

GATE MET.

Requirement-map diff

The delta carries ## ADDED Requirements only — no MODIFIED, no REMOVED —
so the thin-delta hazard (archive replaces a MODIFIED block wholesale, silently
dropping scenarios a thin restatement omitted) has no surface in this
change
. Compared by scenario SET, never by title.

Capability Requirements before after Scenarios before after
ideation-dashboard 95 99 444 453

The four promoted requirements: broker-minted token (2 scenarios), the narrowed
provider boundary (2), bindings-and-no-surviving-token (3), honest refusal (2).

No canon repair was needed, and that was measured rather than assumed.
Promoted ideation-dashboard HAS moved since the delta was authored, but a
delta that MODIFIES nothing cannot go stale against a moving canon. All four
ADDED titles were tested for collision against the 95 promoted titles: 0
collisions
. All 95 pre-existing requirement bodies were sha256-hashed before
and after the archive: 95/95 byte-identical, 0 titles lost. openspec archive reported + 4 added, ~ 0, - 0, → 0, which agrees.

The block a careless reading would expect to be MODIFIED — canon's doxBench model catalog and provider boundary — is correctly untouched: it governs the
catalog and the browser, and already carries "an adapter that reaches a hosted
provider SHALL obtain its credential through the ratified broker lane"
(promoted by add-doxbench-editing-phase-b, 02a71d6e). The four new
requirements narrow a SOURCE-STRUCTURAL invariant that lives in the test suite,
not in that promoted block. Compatible, not competing.

Archive-order fact, per the amendment precedent

Three other active changes MODIFY an ideation-dashboard block, and none
overlaps this change's ADDED set:

Active change MODIFIED block Overlaps
add-doxchat-model-intake doxBench model catalog and provider boundary no
add-nightly-dashboard-refresh Runtime snapshot fetch with baked fallback and displayed freshness no
add-composed-view-authoring Composed views are read-only with a repository jump no

The two archives commute. add-doxchat-model-intake is the near neighbour;
its four ADDED titles are disjoint from these four, and its MODIFIED
restatement currently reproduces canon's 11 scenarios with none dropped and
one added
(12) — a correct thick delta. Because this change modifies nothing,
archiving it first leaves that restatement valid byte-for-byte and no amendment
is owed in either direction.

The dotfile

The known defect — openspec archive DELETING .openspec.yaml instead of
moving it, which under Origin retention at archive would destroy the very
provenance that rule protects — did not bite on this run. The file is
present in the archived folder at blob
e5fe1dd697e18e51af040494f7b4cc58a6c31b75, byte-identical to the pre-archive
HEAD blob (confirmed by diff against git show HEAD:…), and git recorded
it as a 100% rename. No restoration by blob id was needed. CLI: openspec
1.2.0, the version CI pins.

The ad_hoc origin it carries is unmutated: id
openxFactory:adhoc:2026-08-08-add-model-provider-broker, approved_by Brett
2026-08-25 ("admit the three remaining packets"), approved_on: 2026-08-25.

Checks

  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict — green, 76/76
    (77 before; the archived change leaves the active set).
  • python3 scripts/doc-health.py --single-repo . — 58 findings, versus 58
    in a pristine clone of the same base commit 7b7447da. Zero new, zero
    gone.
    Normalized on the repo-name token, the two outputs differ in exactly
    one place: canon share moves 30.1% → 30.2% (194675 → 195604 canon words), the
    direction a promotion should move it.
  • Staged by explicit pathspec; git diff --cached --stat inspected for foreign
    entries before committing.

Two residuals, named rather than buried

  1. target_release: none is outside the field's declared vocabulary.
    Realization axis declaration admits implemented or a named aggregation
    release, and offers no third value. Counted rather than asserted: five of
    the 26 other active changes spell it the same way, and others spell it
    implementation_pending / repository-bootstrap / "next additive contract
    bundle". The field is in practice read as "which contract bundle does this
    cut?", for which none is honest. A corpus habit, not this packet's slip —
    recorded, history left as written.
  2. The real-binary end-to-end coverage is point-in-time, not standing. All
    three skips in the local run are test_openprofiler_broker_e2e.py
    self-skipping because openprofiler-broker is not on PATH — they skip the
    same way on the runner. So the standing green proves the seam's behaviour
    against a fake that speaks the declared contract; that openProfiler's
    declaration and its program agree was measured once, in task 2.6's build
    session against the binary built from openProfiler d0538c31. It does not
    block the gate — the declared surface is this repository's, and this
    repository's surface ran green — but a green badge should not be read as
    implying more than it covers.

Full record:
openspec/changes/archive/2026-08-27-add-model-provider-broker/review/archive-verification-2026-08-27.md.

🤖 Generated with Claude Code

…ements reach canon

`add-model-provider-broker` declares a NON-EMPTY code surface, so under
`release-realization` it archives only on merged-plus-green realization
evidence. Its `target_release: none` does not change that: the gate's
antecedent is the code surface, and the archive-on-landing path is keyed to
`code_surface: none`, which this is not. Both halves verified honestly in a
fresh clone at main `7b7447da`.

MERGED — PR #392 landed 2026-08-26 as `bb7d7ae8`; all five branch commits
(`c172d865`, `449a0649`, `02815866`, `91e3a0e9`, `0c131981`) test as
ancestors of main, and all eight declared surface files resolve at
`7b7447da`. The follow-ups landed inside #392's branch, which is why one
merge carries five commits.

GREEN — `pytest-suite` and `wallet-validation` both SUCCESS on #392's head
`0c131981`, and again on consumer PR #401's head `7eee092d`, which exercises
the same three modules plus the intake. On main itself the merge commit
`bb7d7ae8` carries its OWN uncancelled green push run (`33023028983`), and
the last uncancelled green main run — `d3e140ea`, run `33031366342` —
descends from it and carries all three broker modules and all three broker
test files. The cancelled main runs either side are the
`pytest-suite-${{ github.ref }}` concurrency group cancelling itself as main
advances, not reds; the workflow carries no paths filter and runs
`pytest tests/`, so the broker tests are inside every run named. Re-run
directly in the fresh clone: 99 passed, 3 skipped, exit 0.

PROMOTION IS ADDED-ONLY. The delta carries no MODIFIED block, so the
thin-delta hazard has no surface and no canon restatement was owed — measured,
not assumed: all four ADDED titles tested for collision against the 95
promoted titles and none collided. `ideation-dashboard` moves 95 -> 99
requirements and 444 -> 453 scenarios, and all 95 pre-existing bodies were
sha256-hashed before and after: 95/95 byte-identical.

ARCHIVE ORDER, recorded per the amendment precedent. Three other active
changes MODIFY an `ideation-dashboard` block; none overlaps this change's
ADDED set. `add-doxchat-model-intake` is the near neighbour and its
restatement of `doxBench model catalog and provider boundary` reproduces
canon's 11 scenarios with none dropped and one added — still valid after this
archive, so the two commute and no amendment is owed either way.

`.openspec.yaml` MOVED intact rather than being deleted — blob `e5fe1dd6`
before and after, so the known archive defect did not bite and no restoration
by blob id was needed. `openspec validate --all --strict` green at 76/76;
`doc-health.py --single-repo` returns 58 findings against 58 in a pristine
clone of the same base, zero new, with only the canon-share metric moving
(30.1% -> 30.2%).

Two residuals are named in the verification record rather than buried:
`target_release: none` is outside the field's declared vocabulary (five other
active changes spell it the same way), and the real-`openprofiler-broker`
end-to-end coverage is point-in-time from task 2.6's build session, since
those three tests self-skip wherever the binary is absent.

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

@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

Archives the add-model-provider-broker OpenSpec change into the dated archive, promotes its added ideation-dashboard requirements into canon, and updates the README index to reflect the archive alongside a recorded archive-gate verification.

Changes:

  • Move the add-model-provider-broker entry from Active changes to Archived changes in README.md.
  • Promote four ADDED-only ideation-dashboard requirements into openspec/specs/ideation-dashboard/spec.md.
  • Add the archived packet contents under openspec/changes/archive/2026-08-27-add-model-provider-broker/ (proposal, tasks, requirement delta, verification record, and .openspec.yaml provenance).

Reviewed changes

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

Show a summary per file
File Description
README.md Updates the lifecycle index to list add-model-provider-broker under Archived changes with verification link.
openspec/specs/ideation-dashboard/spec.md Promotes four new requirements/scenarios into canon.
openspec/changes/archive/2026-08-27-add-model-provider-broker/tasks.md Archives the implementation task record for the change.
openspec/changes/archive/2026-08-27-add-model-provider-broker/specs/ideation-dashboard/spec.md Archives the ADDED-only requirement delta that was promoted.
openspec/changes/archive/2026-08-27-add-model-provider-broker/review/archive-verification-2026-08-27.md Records archive-gate and requirement-map verification evidence for the archive.
openspec/changes/archive/2026-08-27-add-model-provider-broker/proposal.md Archives the ratified proposal content and metadata.
openspec/changes/archive/2026-08-27-add-model-provider-broker/.openspec.yaml Archives the packet’s machine-readable origin/provenance declaration.
Suppressed comments (1)

openspec/changes/archive/2026-08-27-add-model-provider-broker/review/archive-verification-2026-08-27.md:58

  • The quote here repeats the time-sensitive “openProfiler, unbuilt” wording; given the same record cites a merged openProfiler declaration and real-binary checks, prefer “external to this repository” (or similar) to keep the archive verification record non-stale.
section — "Depends on **openProfiler**, unbuilt … everything here is inert

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

Comment thread README.md Outdated
(Brett, in-session), built in the same round. doxBench has
a model seam and no model: there is no provider adapter in this repository
and none is implied, so every model-backed affordance refuses. Brett's
ruling names openProfiler — unbuilt — as the answer, which makes it a
bindings; a token-minting broker seam that shells out to
openProfiler; ONE server-side provider client behind it; the
honest unavailable posture; the narrowed structural provider
boundary; tests). openProfiler itself is OUT of scope and unbuilt.
…ing-time fact, so the promoted sentence now states the timeless reason

Canon and the archived delta move together so the promoted block stays
byte-identical to what the archive carries; the verification record's
verbatim proposal quote is left as the record it is, with a dating note
beneath it instead.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 27, 2026 03:37

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 4 out of 7 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

openspec/changes/archive/2026-08-27-add-model-provider-broker/specs/ideation-dashboard/spec.md:8

  • This requirement claims that if the broker’s surface changes “the configuration changes and no code does”, but the implementation records broker subcommands/flags in code (e.g., broker_operation_argv builds intake|mint|revoke|list and flags in scripts/ideation_dashboard/doxbench_provider.py:440+). Only the base invocation is configuration, while surface-vocabulary changes can require code updates, so the archived spec text should not assert code never changes.

### Requirement: Model capability is reached with a broker-minted token
The dashboard SHALL obtain model capability by invoking a configured credential BROKER to MINT a short-lived, scoped token, and SHALL then call the provider with that token directly. The broker SHALL NOT stand in the request path: it holds custody and issues, because a broker between the console and the provider adds a hop to every turn and to every chunk of a streamed one, which is the wrong place to spend latency in an interactive authoring surface.

The broker invocation SHALL be declared by configuration rather than written into code, because the broker (openProfiler) is external to this repository and a command line this repository cannot verify must not be frozen into it. When the broker's surface changes, the configuration changes and no code does.
…the published contract lives in code on both sides

The reconciliation made the subcommand and flag vocabulary the declared
contract the adapter deliberately encodes, so the promoted sentence now
names the real seam instead of promising that no code ever changes.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 27, 2026 04:02

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 4 out of 7 changed files in this pull request and generated 1 comment.

Suppressed comments (4)

Previously missed (1) — in code that hasn't changed since the last review.

README.md:1154

  • This line is significantly longer than the surrounding wrapped prose in the README index entry, which hurts readability (and looks like an accidental wrap regression). Consider splitting it to match the existing indentation/wrapping style in this section.
  ruling names openProfiler — external to this repository, and unbuilt at
  ruling time (its broker surface merged 2026-08-26) — as the answer, which makes it a
  credential BROKER, a shape `credential-contracts` already owns. The

openspec/specs/ideation-dashboard/spec.md:2417

  • Scenario step keywords in this spec section are bolded elsewhere (WHEN/THEN/AND). These newly added steps are not, which makes the section inconsistent and harder to skim. Please align the step formatting here with the surrounding requirements.
#### Scenario: A human sets an API key
- WHEN a key is entered in settings
- THEN it is passed to the broker's standard input and the dashboard stores only the returned reference
- AND the key appears in no response, no log line, no snapshot and no file in the checkout

openspec/specs/ideation-dashboard/spec.md:2435

  • The surrounding canonical spec uses bolded scenario step keywords (WHEN/THEN). These new scenarios are using plain "WHEN/THEN", which is inconsistent within this section. Please update to the established formatting.
#### Scenario: The broker fails
- WHEN the broker exits non-zero, times out, or returns unparseable output
- THEN the affordance reports that no token could be minted, distinctly from a model that answered with nothing

#### Scenario: A provider-shaped error never reaches the wire

openspec/specs/ideation-dashboard/spec.md:2402

  • These newly added scenarios are in the same section as other scenarios that bold their step keywords (WHEN/THEN). For consistency and scan-ability, please update these step bullets to match the established formatting in this spec section.
#### Scenario: A view cannot reach a provider
- WHEN any view module is inspected
- THEN it contains no provider endpoint, no provider SDK import, and no token

#### Scenario: A token never crosses to the browser

Comment on lines +2385 to +2391
#### Scenario: A model turn mints and calls
- WHEN a model-backed affordance dispatches a turn and a broker binding is configured
- THEN the dashboard invokes the declared broker command to mint a token, and calls the provider with it

#### Scenario: No binding is configured
- WHEN no broker binding exists
- THEN the existing `model_capability_unavailable` refusal is returned unchanged, and the human is told that no model provider is configured
Copilot AI review requested due to automatic review settings August 27, 2026 04:07
@brettheap
brettheap merged commit 12b866e into main Aug 27, 2026
3 checks passed
@brettheap
brettheap deleted the change/archive-model-provider-broker branch August 27, 2026 04:08

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 4 out of 7 changed files in this pull request and generated no new comments.

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