Repository navigation
test(profiles): parity, acceptance checks, docs and release notes (Spec 108-l) - #1456
Merged
Merged
Conversation
…table (Spec 108-l)
…h one golden (Spec 108-l)
…n index (Spec 108-l)
…eb and macOS (Spec 108-l)
… config changes (Spec 108-l)
…otes; pin sweep list and docs (Spec 108-l)
Deploying mcpproxy-docs with
|
| Latest commit: |
af765ad
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4d08ced6.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://108-l-profiles-v3-parity-doc.mcpproxy-docs.pages.dev |
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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 36878978999 --repo smart-mcp-proxy/mcpproxy-go
|
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.yamlare unchanged.What changes for users
unannotated_hiddenreads "Unannotated — classify" (was "hidden") andtool_approvalreads "Needs review" (was "Awaiting approval", a name Spec 109 retired); macOS no longer showsserver_not_in_profileandserver_in_scopeas 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.anonymous_profileor editing a profile is now reported inchanged_fieldsand applied immediately. Before, it answered "No configuration changes detected" withapplied_immediately: false.contracts.tsgainsErrorCodeConnectInProgressandErrorCodeCredentialSuperseded, which existed incontract.gobut were missing from the generator.features/profilesrewritten for v3 (policy fields, decision order, what a caller sees, resolution table, the binding guard, management tools, upgrading and the downgrade preconditionrequire_mcp_auth: truebefore running a pre-108 binary), newcli/profile-commands,configuration/config-file,features/connect-clients,features/agent-tokens,api/rest-apievents. The repo-rootdocs/cli-management-commands.mdkeeps a pointer instead of a duplicate.docs/development/release-gate.mdlists all five sweep specs./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
TestProfilesV3ParityMatrixMatchesSpecand...Resolves(REST routes in swagger, MCP operations and arguments in theprofilesschema, Web and macOS identifiers in source, named tests exist, each with mutation checks),TestParity108CLICellsResolve(helper process over--help-json),TestContractEnumsGoldenandTestContractEnumsCoverEveryConstant(go/ast walk),TestProfilesV3LabelsCoverEnums,TestProfilesV3RefusalParitywith_MCPand_CLI(onerefusals.json),TestProfilesV3Acceptance_Check1..5plus..._Check2_CLIListsBlockedRecordandTestProfilesV3AcceptanceIndexResolves(acceptance-checks.json),TestSC006ActivityRecordSets(independent reference filter over 64 combinations) andTestSC006CLIRecordSets,TestDetectConfigChanges_ProfilesV3Fields,TestWebUISweepSpecListIsComplete,TestSpec108DocsPublished.profiles-parity-matrix,profiles-enums-labels,sc006-activity-recordset. XCTest:ParityMatrixTests,ProfilesEnumsLabelsTests,SC006RecordSetTests.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
DetectConfigChangessilent aboutprofilesandanonymous_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
servers-profile-select, which is not on main yet. The matrix carries onepending: "109-l"cell, allowlisted inp108PendingAllowlist; once 109-l lands the resolver logs that it resolves and the entry should be deleted.cmd/generate-types/main.gowas touched (two constants) although the plan assigned the generator to 109-m; the edit is two adjacent lines.require_mcp_authis also missing fromDetectConfigChanges; it is not a 108 field, so it is left for a follow-up issue./profiles/activein the next minor.