Repository navigation
The surface merged and ran green on main, so the broker's four requirements reach canon - #405
Conversation
…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]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
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-brokerentry from Active changes to Archived changes inREADME.md. - Promote four ADDED-only
ideation-dashboardrequirements intoopenspec/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.yamlprovenance).
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.
| (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]>
There was a problem hiding this comment.
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_argvbuildsintake|mint|revoke|listand flags inscripts/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]>
There was a problem hiding this comment.
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
| #### 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 |
…provider-broker # Conflicts: # README.md
What this is
The archive of
add-model-provider-broker, plus the verification record thatearns 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'scontent 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 settingssurface 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 anon-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, whichthis is not. So
target_release: nonecannot downgrade a real surface, andthe 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 branchcommits test as ancestors of
origin/main(git merge-base --is-ancestor):c172d865,449a0649,02815866,91e3a0e9,0c131981— the follow-upslanded 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
0c131981pytest-suiteSUCCESS (run33022209136) +wallet-validationSUCCESS (run33022209188)7eee092dpytest-suiteSUCCESS (run33029559727) +wallet-validationSUCCESS (run33029559670)bb7d7ae8pytest-suiterun33023028983,success, uncancelledd3e140eapytest-suiterun33031366342,success, 2026-08-27T01:50:11Zd3e140ea(the merge of PR #398) descends frombb7d7ae8and carries allthree 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-terminologyarchiver assessed it — name the run, then test whether it carries the code.
The cancellation artifact, named rather than papered over.
pytest-suite.ymldeclaresconcurrency: pytest-suite-${{ github.ref }}withcancel-in-progress: true, so main cancels its own predecessors as itadvances. Between
d3e140eaand main HEAD,78ffb7f1andf9457d6fare bothcancelledfor exactly that reason, and the run on7b7447dawasin_progressat verification time. None of them reported a test failure. Theworkflow carries no paths filter and runs
pytest tests/ -q -m "not postgres", sotests/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 0across the three broker test files.openspec validate --all --strictgreen 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 15tasks 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.3and2.6in thesections above it); this record cites it rather than re-deriving it.
GATE MET.
Requirement-map diff
The delta carries
## ADDED Requirementsonly — 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.
ideation-dashboardThe 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-dashboardHAS moved since the delta was authored, but adelta 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 archivereported+ 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 thecatalog 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 newrequirements 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-dashboardblock, and noneoverlaps this change's ADDED set:
add-doxchat-model-intakedoxBench model catalog and provider boundaryadd-nightly-dashboard-refreshRuntime snapshot fetch with baked fallback and displayed freshnessadd-composed-view-authoringComposed views are read-only with a repository jumpThe two archives commute.
add-doxchat-model-intakeis 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 archiveDELETING.openspec.yamlinstead ofmoving 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-archiveHEADblob (confirmed bydiffagainstgit show HEAD:…), and git recordedit as a 100% rename. No restoration by blob id was needed. CLI:
openspec1.2.0, the version CI pins.
The
ad_hocorigin it carries is unmutated: idopenxFactory:adhoc:2026-08-08-add-model-provider-broker,approved_byBrett2026-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 58in a pristine clone of the same base commit
7b7447da. Zero new, zerogone. 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.
git diff --cached --statinspected for foreignentries before committing.
Two residuals, named rather than buried
target_release: noneis outside the field's declared vocabulary.Realization axis declaration admits
implementedor a named aggregationrelease, 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 contractbundle". The field is in practice read as "which contract bundle does this
cut?", for which
noneis honest. A corpus habit, not this packet's slip —recorded, history left as written.
three skips in the local run are
test_openprofiler_broker_e2e.pyself-skipping because
openprofiler-brokeris not on PATH — they skip thesame 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 notblock 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