Skip to content

TOOLS-149: add immutable configuration resource keys - #184

Merged
averycrespi merged 4 commits into
mainfrom
avery/tools-149-stable-resource-keys
Nov 14, 2026
Merged

averycrespi merged 4 commits into
mainfrom
avery/tools-149-stable-resource-keys

Conversation

@averycrespi

@averycrespi averycrespi commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Context

TOOLS-149 is the first PR in the ordered TOOLS-149..155 stack. Portable configuration needs durable resource keys without replacing installation-local authority IDs. This PR targets main from creation base 0f90d092a5c431aadb7e27c4ff126e48a059d786.

Changes

  • Add schema-26 permanent, immutable type-scoped reservations for agents, MCP/HTTP/Git grants, HTTP/Git credential definitions, and Git repositories. Backfill retained resources and tombstones without rewriting IDs, authority, relationships, secret ownership, revisions, or history.
  • Reuse MCP namespaces as server keys. Ordinary API creation accepts explicit keys or bounded generated names; default/approved grants and stopped import also reserve keys atomically. Deletion never frees a key.
  • Expose keys while preserving existing ID URLs, ETags, mutable names/descriptions, and omitted-key callers. Distinguish duplicate grants. Keep configuration format and ordinary CLI/browser authoring controls unchanged.
  • Update strict bundled frontend response decoders, synthetic fixtures, generated assets, and design/operator compatibility documentation.
  • Repair CI-only source-ownership admission for the exact schema-26 migration/coverage read, with 14 positive/negative guard fixtures. Synchronize browser fixtures with actual native-dialog closure and protocol history assertions with real persistence acknowledgments; production policies remain unchanged.

Review Notes

Independent primary review and focused confirmations for every corrective increment completed with no material findings or blocking gaps. Each checked candidate matches its committed/reviewed tree. Original failures and incomplete evidence reports remain retained alongside their explicit closures; no qualification waiver was used.

Migration does not invent historical keys for rows physically deleted before keys existed. Known retained tombstones receive durable keys. Schema downgrade is unsupported; strict API consumers should upgrade with the service.

A diagnostic WAL test normalizes its own sidecar permissions so the intended nonempty-WAL check is independent of host umask. Production path-safety validation is unchanged. Two exact gosec findings are public resource-type discriminator strings, documented with line-local dispositions; full lint/security coverage remains enabled.

Hosted protocol tests observed SQLite BUSY during optional history reads. The scoped fixtures now await committed observations before querying, while retaining all wire/history assertions. The exact contending SQLite statement was not reproduced locally; production BUSY bounds, operation-scoped pooling and best-effort/no-replay recovery remain unchanged. The browser regression retains a bounded 150-ms delayed-close experiment reproducing the original stale-edit race.

Test Plan

Passed locally, with unchanged-scope evidence reused explicitly:

  • Race-enabled owning authorization/server/storage/API/contract/resource-key suites and affected integration owners, including migration/reopen, collisions, immutability, deleted reservations, preserved graph, credentials, and ID-based API compatibility.
  • make -C agent-gateway verify and mandatory commit hooks.
  • Both affected protocol parents: 23 subcases repeated four times (92 case executions); full go test -race -tags=integration ./internal/httpproxy -count=1 passes.
  • npm run ui:test-dev (190 tests), npm run ui:typecheck, npm run format:check, frontend build, npm run ui:verify-generated, and npm run ui:verify-supply-chain.
  • npm run ui:test-browser (33 Chromium scenarios and complete capture inventory); representative desktop/narrow light/dark captures inspected.
  • make -C agent-gateway test-browser-accessibility and make -C agent-gateway test-security.
  • Unsuppressed go tool govulncheck ./...: no called/imported-package vulnerabilities; two required-module advisories are unreachable per scanner.
  • Full four-commit outgoing-history, corrective-delta and exact PR-metadata secret scans.

Fresh exact-head PR-event CI run 42353858705, attempt 1, passed all 19 required owners including real Docker qualification and Required for dd0af008b7c6335f62144e22a12b6994a6ba579b. Earlier red heads remain red; none substitutes for this result. No local Docker, installed-resource adoption, merge, or deployment claim.

@averycrespi
averycrespi marked this pull request as ready for review November 7, 2026 08:17
@averycrespi
averycrespi added this pull request to stack #191 November 14, 2026 02:42
@averycrespi
averycrespi merged commit c3b3998 into main Nov 14, 2026
19 checks passed
@averycrespi
averycrespi deleted the avery/tools-149-stable-resource-keys branch November 14, 2026 02:42
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.

1 participant