Repository navigation
chore(specs): gardener checkbox sync - #2009
Merged
Merged
Conversation
# Conflicts: # ROADMAP.md
The previous (closed, unmerged) PR's checkbox ticks for 058, 113, 116 and 123 came back in via the merge from an earlier branch state and were not re-verified in this run. Resetting those four tasks.md files to main's current (unticked) content before applying this run's freshly verified ticks.
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 45125434297 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
40 ticks applied, 0 un-ticks proposed, run date 2026-11-23.
This run
The previous open PR on this branch (#1594) was closed by the repo owner on
2026-11-22 with: "Closing: this sync is stale against main (the checkbox
counts no longer match). A fresh gardener run from current main replaces
it." This run honors that: it does not continue #1594. The branch was
brought to a clean state matching
origin/mainand built forward fromthere.
Mechanics note: this session hit the same shallow-clone issue prior runs
on this branch recorded (
origin/maininitially 50 commits deep vs. a realmerge-base ~2200 commits back) — fixed with
git fetch --unshallow. Aplain
git reset-to-main plus force-push (the cleanest way to discard#1594's abandoned history) was denied by this environment's destructive-action
guard, so, following this branch's own established workaround,
mainwasmerged into the existing
claude/spec-gardenerbranch instead. Thatmerge's automatic resolution silently brought back unverified ticks from
#1594's own commits in four files (
specs/058-mcp-2026-upgrade/tasks.md,specs/113-upstream-resilience/tasks.md,specs/116-config-commit-consistency/tasks.md,specs/123-oauth-token-encryption/tasks.md) — those four files were resetbyte-for-byte back to
main's content in a follow-up commit before any newwork started, so nothing from the abandoned PR survived unverified.
The deterministic checker (
scripts/check-spec-evidence.py) against cleancurrent
main: 91 specs, 98 unresolved, 33 removed, 83 relocated(informational), 314
possibly_builtcandidates.Four parallel verification passes ran against this fresh candidate set:
three against the highest-signal specs by candidate count
(
123-oauth-token-encryption: 43,124-session-failure-timeline: 48,113-upstream-resilience: 61), one investigating the largest UNRESOLVED/REMOVED(un-tick) clusters (
026-pii-detection,116-config-commit-consistency,107-server-edition-sso-hardening,109-ux-navigation-consistency). Combined,the three tick passes confirmed 141 candidates against the TICK TEST
(each with a live test run or direct, cited code) — more than three times
this branch's 40-tick-per-run cap.
Allocation decision: rather than scatter a partial, confusing cross-section
of three different specs across one PR, this run applies the full 40
confirmed candidates from
124-session-failure-timelinealone (a cleanfit for the cap) and defers
123-oauth-token-encryption(41 confirmed) and113-upstream-resilience(60 confirmed) entirely to a future run. Theirfull verified evidence is recorded below so a future run (or a human) does
not need to redo this verification work — only apply it.
Applied ticks (specs/124-session-failure-timeline/tasks.md)
internal/storage/attempt_role.go:35-70+attempt_role_test.gogo test -run TestAttemptRoleOf→ PASS, 18-case table matching the task's exact rules (incl.Companion,proxy_policy→block)internal/server/attempt_invariant_test.go:60-194internal/runtime/concurrency_rejections_attempt_test.go:15-25TestAttemptRequestID_PrefersTheAttemptOverTheTransportID— PASSinternal/storage/activity_models.go(Companion/BodiesRemoved/RunName fields);internal/storage/attempt_role.go:1-70AttemptRoleOfis exactly the function T013 specifies; backing T010's passing testinternal/server/mcp.go:1272-1329(emitActivityPolicyDecisionWithBlockReason)attr.Companion = isCompanionDecision(ctx)threaded through;TestAttemptInvariant_CompanionDecisionIsNotCountedAgainPASSinternal/server/mcp.go:4812-4848rec.ErrorClass = storage.ErrorClassProxyPolicy;TestAttemptInvariant_BuiltinPolicyRefusalIsABlockPASSinternal/runtime/concurrency_rejections.go:86-91attemptRequestIDfalls back to the transport id; T011/T012 tests PASSinternal/runtime/worksession_test.go(23 tests)go test -run TestWorkSession→ all 23 PASSinternal/storage/client_credentials_test.go:519-543TestClientCredentialRotation_AuthContextCarriesTheMatchedSecretPrefixPASSinternal/server/worksession_resolution_test.go(22 tests)go test -run TestRequestWorkSession→ all PASSinternal/runtime/worksession.go:52-136const MaxNamedWorkSessionsPerDay = 1000— exact literal matching "1,001st ignores its name"internal/storage/agent_tokens.go:1030-1044;internal/auth/agent_token.go:139-146,333-334token.MatchedPrefix = pending.PendingPrefixon pending-hash matchinternal/server/workspace.go:152-175(principalFromContext);internal/server/worksession_resolve.go:1-80internal/server/mcp_activity_attribution.go:130-141;internal/runtime/activity_attribution.goattr.WorkSessionID, attr.RunName = p.requestWorkSessionRun(...)internal/httpapi/server.go:620,878;internal/server/worksession_resolve.go:50-76TestRunNameMiddleware_CopiesTheHeaderPASSinternal/storage/activity.go:79-103;internal/storage/work_sessions.go:26-37tx.Updateinternal/storage/work_session_backfill.go:95go test -run 'TestWorkSessionBackfill_'→ all PASS (idempotent, batch-boundary, mixed-credential)internal/storage/manager.go:1606-1686sessionRetentionLimit = 100applies only toSessionsBucket, not work-session summariesinternal/config/effective_bounds_test.go:8-33TestEffectiveSessionRetentionAndRecordCapPASS: 7-day / 400000 defaults, explicit100000keptfrontend/tests/unit/settings-session-retention.spec.tsnpx vitest run→ "Test Files 1 passed, Tests 4 passed"internal/storage/activity.gogo test -run 'TestRetention_'→ 29/29 PASSinternal/runtime/activity_service.go:263-373RetentionShortfall/runRetentionLoopback the passing retention/doctor testsinternal/config/config.go:542-545,1958-1959;effective_bounds.go:15-91ActivityMaxRecords: 400000,SessionRetentionDays: 7inDefaultConfig()frontend/src/views/settings/fields.ts:587{ key: 'session_retention_days', control: 'number', min: 1, restart: true }internal/oauth/refresh_audit_test.gogo test -run TestRefreshAudit→ 7/7 PASSinternal/oauth/refresh_order_test.go:50-80TestRefreshManager_NotificationsAreNumberedInDecisionOrderPASSinternal/upstream/types/transition.go+transition_test.gogo test -race -run TestTransitionCapture→ 10/10 PASSinternal/oauth/refresh_coordinator.go:263-273(SetAuditObserver)internal/runtime/upstream_events.go:23-38,633Type: storage.ActivityTypeUpstreamEventrow builderfrontend/src/utils/activity.ts:43,102;cmd/mcpproxy/activity_cmd.gonpx vitest run tests/unit/activity-upstream-event-type.spec.ts→ 2 passedinternal/storage/activity_models.go:377-398;internal/httpapi/activity.go:161-187,321go test -run TestActivityEventViewer→ 2/2 PASS; wired into list/detail/export/timelineinternal/httpapi/work_sessions_test.go(17 tests)internal/httpapi/scope_route_table_guard_test.go:68-93TestScopeRouteTableGuardPASS; the 3/work-sessions*routes →scopeFilteredinternal/storage/work_sessions_bench_test.gointernal/storage/work_sessions.gointernal/httpapi/work_sessions.go;internal/httpapi/server.go:1271-1273internal/management/activity_retention_test.go:14-45;cmd/mcpproxy/doctor_activity_retention_test.go:14internal/management/diagnostics.go:333-339;internal/contracts/types.go:827-835;cmd/mcpproxy/doctor_cmd.go:475,649,875-904scripts/test-api-e2e.sh:1226-1272scripts/check-upstream-write-sites.sh; frontendbash scripts/check-upstream-write-sites.sh→ exit 0;npm test -- --run→ "332 files / 2986 tests passed"Proposed un-ticks (NOT applied)
None this run. A dedicated investigation pass checked the largest
UNRESOLVED/REMOVED clusters against current
main(
026-pii-detection: 24,116-config-commit-consistency: 19,107-server-edition-sso-hardening: 13,109-ux-navigation-consistency: 9 —65 of the 131 total candidates) and found zero genuine un-tick
candidates. Every flagged item was one of:
path-matching heuristic cited (e.g.
026-pii-detectionT061-T063 live ininternal/httpapi/activity.go, not a separateactivity_handlers.go;116-config-commit-consistency's tests live in consolidatedspec116_*files, not the design-time filenames the task text guessed at),
(
107-server-edition-sso-hardeningT015/T016: "Deleteinternal/serveredition/auth/idp_subject_token.go" / "Removeinternal/transport/broker_auth.go" — both deleted exactly as instructedin commit
34ba2b2b2), or.github/RELEASE_NOTICE.md,written per-release and auto-retired after shipping by
.github/workflows/retire-release-notice.yml).Full citations are in the "Not actually absent" list below. The remaining
~66 of 131 UNRESOLVED/REMOVED candidates (smaller clusters across ~20 other
specs) were not evaluated this run — left for a future pass, consistent
with this branch's established practice of not re-litigating unchanged
long-tail signal every run.
Investigated and found NOT absent (relocated/renamed/intentional — no action)
026-pii-detectionT031, T049-T053, T061-T063, T065-T068, T069-T079 — allrelocated under real filenames (
internal/security/detector_test.go,internal/security/paths.go,internal/httpapi/activity.go,frontend/src/views/Activity.vue,cmd/mcpproxy/activity_cmd.go/activity_cmd_test.go); the cited paths (internal/security/patterns/files.go,ActivitySensitiveData.vue,cmd/mcpproxy/commands/*) never existed inthis repo's real tree.
116-config-commit-consistencyT040, T041, T043-T046, T048, T062, T063,T085, T093 — covered by consolidated
internal/runtime/spec116_pr2_test.go,spec116_pr2b_test.go,spec116_pr3_test.go,internal/storage/purge_test.go,internal/upstream/retire_inflight_call_test.goandinternal/transport/http.go(path cited by the checker was missing theinternal/prefix).107-server-edition-sso-hardeningT007/T059/T092/T114 (release-noticelifecycle, by design), T013 (
cmd/release-gate/docs_claims_test.go,the task's own named fallback target), T015/T016 (deletion tasks,
completed as written), T026 (assertion merged into
user_token_mutation_test.goin commit3bf4394c8), T072 (MCP half presentin
mcp_group_scope_test.go; SSE half's underlying mechanism present ininternal/httpapi/sse_scope.go, flagged as borderline — no test names thespecific group scenario, but not proposed as an un-tick).
109-ux-navigation-consistencyT002, T005, T006, T011, T012, T130, T144,T149, T156 — five of these are self-documented in tasks.md itself as
"Obsolete"/"Shipped as" with the real file named; T144/T156/T149 confirmed
deleted/replaced in commit
b3191a059exactly as their own task textspecifies; T130's cited path never existed and doesn't match the task's
real text.
Dropped by verification
A reviewer should read this section first — a run with an empty one is
suspicious, and this run's isn't:
cases (
AAAA=→auth_failed,AA=A→malformed).AA=Aexists(
open_errors_test.go:111); the literal stringAAAA=(with trailing=) never appears anywhere in the package — onlyAAAA(no=), used forunrelated tests. Partial coverage of a fully-enumerated literal-case
promise does not meet the TICK TEST.
bare + server-tagged, full
-racesuite, full e2e script, swagger verify,settings-parity, upstream-write-sites). Only 2 of 6 parts could be run in
this sandbox (
check-settings-parity.py,check-upstream-write-sites.sh,both clean);
golangci-linthere is a v1-era build that refuses therepo's go1.26-targeted config, and the full
-race/e2e runs were out ofpractical scope. Dropped on partial evidence per the conservative rule.
contracts projection, swagger), but the task's explicit deliverable
"regenerate
frontend/src/types/contracts.ts" was not done: exhaustivegrep finds zero occurrences of the four new field names
(
authorization_endpoint,token_endpoint,registration_endpoint,auth_server_metadata_url) anywhere underfrontend/.and PR-3 (Web UI) for this spec were never built; only PR-1 is merged
(confirmed by
git logand the merged PR-1's own description, which says"PR-2 adds the CLI and PR-3 the Web UI; neither is in this change"). T114
is the exact "component exists but isn't wired to the new behaviour" trap
this run was warned about:
SessionsPanel.vueexists, but it's thepre-existing Spec 109-k MCP-connection-sessions panel reading the old
/sessionsdoor, not a new component reading/api/v1/work-sessions.updated;
docs/configuration.mdhas zero mentions ofsession_retention_daysor the newactivity_max_recordsdefault,confirmed both by grep and by the docs commit's own file list.
screenshots/HTML report, and no commit/PR description mentions running
the sweep. A task promising verification work with no evidence is
dropped, not assumed.
.github/.golangci.ymlis astanding CI file last touched in an unrelated 2023-era commit, not a
spec-124 artifact; also unverifiable live here (sandbox's golangci-lint
predates the repo's go1.26 target).
candidate set) — independently confirmed by the verification pass
(
TestWorkSessions_Authorization,TestWorkSessions_ForeignHiddenAreTheSameNotFoundPASS) but held out of this run to keep scope to exactly the checker's own
314-candidate list; worth a look next run.
Confirmed-but-deferred (40-tick cap reached) — full evidence for a future run
123-oauth-token-encryption — 41 of 43 candidates confirmed
internal/tokenseal/tokenseal_test.go:9-33TestSealOpenRoundTrip/TestSealFreshNoncePerSeal/TestNULInContextRejected/TestSealRejectsOversizedPlaintextall PASSinternal/tokenseal/key_test.go:13TestParseKey(12 subtests),TestDeriveKnownAnswer,TestKeyDoesNotPrintMaterialall PASSinternal/tokenseal/leaf_test.go:12TestTokensealIsStdlibOnlyPASSinternal/tokenseal/tokenseal.go:49,138,164,246Key,Seal,Open,Classifyall present, exercised by T001-T004internal/storage/oauth_seal_test.go:114,153TestOAuthSeal_EveryWriteSeals,TestOAuthSeal_ReadsMatchPlaintextPASSinternal/storage/oauth_plaintext_golden_test.go:17TestOAuthPlaintextGoldenPASSinternal/storage/oauth_undecryptable_test.go:131internal/storage/oauth_list_tolerant_test.go:15TestOAuthListTolerantPASSinternal/storage/oauth_sweep_test.go:74internal/storage/oauth_codec_source_test.go:108,244TestOAuthBucketValuesOnlyThroughCodec/TestStorageOpenSitesPassOAuthKeyPASSinternal/storage/oauth_raw_file_test.go:100TestOAuthTokensNotInRawFilePASSinternal/storage/options.go:6,9,17WithOAuthTokenKeyinternal/storage/oauth_binding.go:63,75,134,166,240,361putOAuthRecord/ErrOAuthTokenUndecryptable/codec functionsinternal/storage/bbolt.go:976,1247,1294,1302SaveOAuthToken/ListOAuthTokens/OAuthTokenRow/ListOAuthTokenRowsinternal/storage/manager.go:2638,2651,2678;models.go:182ListOAuthTokenRows/SealPlaintextOAuthTokens/CleanupOrphanedOAuthTokens/OAuthSealCompactAdvisedKeyinternal/config/oauth_token_key_test.gocmd/mcpproxy/oauth_token_key_exit_test.goTestClassifyError_OAuthTokenKeyFailuresExit4PASSinternal/runtime/config_hotreload_fields_test.go;oauth_token_key_restart_test.gointernal/config/config.go:399;oauth_token_key.go:31,93OAuthTokenEncryptionKey/ResolveOAuthTokenKey/ExitCodeOAuthTokenKeyError=4internal/runtime/config_hotreload.go:630;restart_gated.go:29restartGatedConfigFieldsinternal/upstream/cli/client.go:67-78;cmd/mcpproxy/cli_storage.go:26scripts/check-settings-parity.pyinternal/runtime/oauth_seal_boot_test.go:28TestRuntimeNew_BootSweepSealsBeforeOAuthComponentsPASSinternal/oauth/persistent_token_store_undecryptable_test.gointernal/health/calculator_oauth_undecryptable_test.gointernal/diagnostics/registry.go:183;docs/errors/MCPX_OAUTH_TOKEN_UNDECRYPTABLE.mdTestCatalog_MatchesPublishedContractPASSinternal/oauth/persistent_token_store.go:130,139,377,380;config.go:274,303;upstream/core/client.go:901;manager.go:3153,3708internal/diagnostics/codes.go:43;classifier.go:73;health/calculator.go;runtime/runtime.go:3347-3449MCPX_OAUTH_TOKEN_UNDECRYPTABLEwired through health + runtimeinternal/management/diagnostics_oauth_storage_test.go:54,80,131,150cmd/mcpproxy/auth_tokens_cmd_test.go:136-440cmd/mcpproxy/db_compact_oauth_test.go:80,103,142internal/contracts/types.go;management/diagnostics.gocmd/mcpproxy/auth_tokens_cmd.gocmd/mcpproxy/db_cmd.go:587,609,621docs/features/oauth-token-encryption.md(379 lines);website/sidebars.js:152docs/configuration/config-file.md:62;environment-variables.md:34-35;configuration.md:91,2004-2005docs/features/oauth-token-encryption.md:189,221,243docs/cli/command-reference.md:537-549;docs/api/rest-api.md:1882-1887;docs/cli/db-commands.md:130auth tokensdocsdocs/features/oauth-authentication.md:83,220,402docs/docker-isolation.md:515;docs/features/docker-isolation.md:435;sandbox-isolation.md:94-109;specs/023-oauth-state-persistence/plan.md:31;internal/storage/bbolt.go:78docs/features/oauth-authentication.md:220,224Dropped from this spec: T002 (one of two named literal test cases
missing), T072 (broad CI gate, only partially verifiable here) — see
"Dropped by verification" above.
113-upstream-resilience — 60 of 61 candidates confirmed
All 60 were verified with a live
go testrun (several under-race) or adirect, cited code site backing an already-passing sibling test — the full
task-by-task table (60 rows) is recorded in this run's verification
transcript rather than duplicated here to keep this body a reasonable
length; headline evidence:
concurrency/race tests (
TestOAuthRefreshRace_OneTokenRequestPerExpiry×5 under
-race), all PASS.TestValidateOAuthEndpointOverrides,TestWrapper_RewritesASMetadataFromOverrides,TestDiscoveryCache_*(5subtests),
TestCreateOAuthConfig_OfflineAccessWaterfall, all PASS.TestClassify(37 subtests),TestCallErrorTaxonomy_PersistedAndREST/_EveryWritePath, end-to-endthrough REST + frontend types, all PASS.
TestWindow_*(under-race),TestCalculateHealth_CallFailureRate_Boundaries, all 3 call sitesconfirmed wired, all PASS.
TestMCPGo_SessionTerminated_ReinitializeOnSameTransport,4
TestSessionReinit_*variants (single-read, write-not-repeated,changed-tool-hash, overtaken-call-rechecked),
TestListChangedStream_SessionReinitMovesToNewSession,TestListResultsCarryPrivateShortCacheHints, all PASS.specs/058-mcp-2026-upgrade/tasks.mdT063/T064 are already ticked there(they are) — a reference check, not new code.
Dropped from this spec: T145 — see "Dropped by verification" above.
Historical runs on this branch (superseded by #1594, now closed; preserved for context)
See PR #1594's description for the full 2026-07-10 through 2026-11-16
history (89 ticks applied across those runs, 3 un-ticks proposed and never
applied, hundreds of candidates examined and dropped). That branch state was
discarded per the repo owner's explicit close instruction; this PR starts a
fresh count from 0 against current
main.Generated by Claude Code