Skip to content

test(profiles): parity, acceptance checks, docs and release notes (Spec 108-l) - #1456

Merged
github-actions[bot] merged 10 commits into
mainfrom
108-l-profiles-v3-parity-docs
Oct 1, 2026
Merged

github-actions[bot] merged 10 commits into
mainfrom
108-l-profiles-v3-parity-docs

Conversation

@Dumbris

@Dumbris Dumbris commented Oct 1, 2026

Copy link
Copy Markdown
Member

Spec 108-l closes the Profiles v3 work (specs/108-profiles-v3, tasks T121 to T127): it turns the parity matrix, the enum and label tables, the six audit acceptance checks and SC-006 into automated checks, publishes the user docs and writes the release notes. There is no new route, flag or MCP argument, so the frozen tool-surface goldens and oas/swagger.yaml are unchanged.

What changes for users

  • Web UI and macOS: the words for why a tool is hidden now agree on both. unannotated_hidden reads "Unannotated — classify" (was "hidden") and tool_approval reads "Needs review" (was "Awaiting approval", a name Spec 109 retired); macOS no longer shows server_not_in_profile and server_in_scope as the same "Server not in scope", and uses the Web wording for the credential, profile, global gate and server state reasons. The macOS Activity caller label now reads "work-readonly · locked by credential" like the Web chip (it read "work-readonly (pin)"), and the Home sessions table shows the same source words. The binding mode word comes from one helper on each surface.
  • Settings, Anonymous callers (Web and macOS), PATCH /config, config file edits: saving anonymous_profile or editing a profile is now reported in changed_fields and applied immediately. Before, it answered "No configuration changes detected" with applied_immediately: false.
  • Generated types: contracts.ts gains ErrorCodeConnectInProgress and ErrorCodeCredentialSuperseded, which existed in contract.go but were missing from the generator.
  • Docs (live after deploy at docs.mcpproxy.app): features/profiles rewritten for v3 (policy fields, decision order, what a caller sees, resolution table, the binding guard, management tools, upgrading and the downgrade precondition require_mcp_auth: true before running a pre-108 binary), new cli/profile-commands, configuration/config-file, features/connect-clients, features/agent-tokens, api/rest-api events. The repo-root docs/cli-management-commands.md keeps a pointer instead of a duplicate. docs/development/release-gate.md lists all five sweep specs.
  • Release notes (CHANGELOG, Unreleased): Breaking: connect no longer writes the admin key and the downgrade precondition. Deprecations: /api/v1/profiles/active, token create --profile-pin, activity --agent. Features: profiles v3 policy, client bindings, anonymous_profile, tokens, attribution and filters, the explainer.

Audit findings and spec requirements closed here

P1 (deprecation announced, parity row 25 checked), P2 (parity rows 1 to 6 mechanically checked, CLI reference published), P3 (config reference), P4 (credential change, upgrade and downgrade documented), P5 (source words agree, SC-006 proven), P6 (SC-006, sweep list), P7 (legacy scope documented), H2 (Viewing chip row checked). FR-051, FR-052, SC-001, SC-006, SC-010 (documentation).

Tests added

  • Go: TestProfilesV3ParityMatrixMatchesSpec and ...Resolves (REST routes in swagger, MCP operations and arguments in the profiles schema, Web and macOS identifiers in source, named tests exist, each with mutation checks), TestParity108CLICellsResolve (helper process over --help-json), TestContractEnumsGolden and TestContractEnumsCoverEveryConstant (go/ast walk), TestProfilesV3LabelsCoverEnums, TestProfilesV3RefusalParity with _MCP and _CLI (one refusals.json), TestProfilesV3Acceptance_Check1..5 plus ..._Check2_CLIListsBlockedRecord and TestProfilesV3AcceptanceIndexResolves (acceptance-checks.json), TestSC006ActivityRecordSets (independent reference filter over 64 combinations) and TestSC006CLIRecordSets, TestDetectConfigChanges_ProfilesV3Fields, TestWebUISweepSpecListIsComplete, TestSpec108DocsPublished.
  • vitest: profiles-parity-matrix, profiles-enums-labels, sc006-activity-recordset. XCTest: ParityMatrixTests, ProfilesEnumsLabelsTests, SC006RecordSetTests.
  • Goldens: specs/108-profiles-v3/parity-matrix.json, acceptance-checks.json, internal/profile/testdata/contract/{enums,labels,refusals}.json, internal/httpapi/testdata/sc006_activity_recordsets.json.

Red first: the enum and label goldens, the parity matrix, the acceptance tests, SC-006 and the docs guards had no file to read and failed. Real differences found: the two missing generated error codes, the label drift above (vitest and XCTest red before the word changes), and DetectConfigChanges silent about profiles and anonymous_profile (the hot-reload test was red). The refusal parity was already green on the base (the texts are single-sourced) and now pins them.

Deviations from the plan, and follow-ups

  • Parity row 19, Web (Servers filter by profile) is Spec 109-l's servers-profile-select, which is not on main yet. The matrix carries one pending: "109-l" cell, allowlisted in p108PendingAllowlist; once 109-l lands the resolver logs that it resolves and the entry should be deleted.
  • cmd/generate-types/main.go was touched (two constants) although the plan assigned the generator to 109-m; the edit is two adjacent lines.
  • require_mcp_auth is also missing from DetectConfigChanges; it is not a 108 field, so it is left for a follow-up issue.
  • Merge the 108 and 109 parity checkers into one once both have landed. Remove /profiles/active in the next minor.
  • T126 (the live run of the six checks on one instance across all surfaces) is left for the lead against the exact head; its automated half is T126a.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

macOS Activity Tool calls view with status=blocked now includes
policy_decision in its type set, matching the Web UI (Spec 108-j): a profile
refusal is persisted as policy_decision/blocked, so the default view hid
exactly the rows client=cursor&status=blocked asks for.

The SC-006 seed now stores every blocked row as a policy_decision and the
golden carries calls_view_type for blocked combinations; REST is asserted to
list the refusals with the widened type and none without it. The macOS replay
asserts the type sent, and ScopeFilterTests covers the widening directly. The
Check 2 acceptance index points macOS at those tests instead of the sessions
test.

F2.1 (medium): fixed.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: 108-l-profiles-v3-parity-docs

Available Artifacts

  • archive-darwin-amd64 (31 MB)
  • archive-darwin-arm64 (28 MB)
  • archive-linux-amd64 (18 MB)
  • archive-linux-arm64 (17 MB)
  • archive-windows-amd64 (31 MB)
  • archive-windows-arm64 (27 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (26 MB)
  • installer-dmg-darwin-arm64 (24 MB)
  • smart-mcp-proxymcpproxy-goSXCQYV.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 36878978999 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved (Model B): Paperclip review verdicts = ACCEPT and qa-gate green at this head SHA. Arming auto-merge; GitHub merges when all required checks pass.

@github-actions
github-actions Bot merged commit bbf8016 into main Oct 1, 2026
76 of 81 checks passed
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