Skip to content

TOOLS-152: add resource configuration CLI import and export - #187

Merged
averycrespi merged 1 commit into
avery/tools-151-online-config-importfrom
avery/tools-152-resource-config-cli
Nov 14, 2026
Merged

averycrespi merged 1 commit into
avery/tools-151-online-config-importfrom
avery/tools-152-resource-config-cli

Conversation

@averycrespi

@averycrespi averycrespi commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Context

TOOLS-152 is PR 4/7 in the ordered TOOLS-149..155 stack, based on #186 (avery/tools-151-online-config-import, creation base ae849366b9eeb3e096d00c4dc68dea94fcbb9b61), not main. This adds resource-specific CLI surfaces to the existing version-two backend; bundle CLI and frontend work remain separate successors.

Changes

  • Add import/export beneath agent, MCP server/grant, HTTP credential/grant, and Git credential/repository/grant namespaces. Import accepts exactly one matching definition, resolves only existing dependencies, requires --confirm, and provides backend read-only --dry-run creation/binding/credential/activation previews. File and --file - input use the public control client only.
  • Export the backend single-resource version-two JSON directly to stdout by stable key, with stderr diagnostics, finite strict response validation, scoped input/transport bounds, short-write handling, typed failures and no automatic replay. Add the narrow authenticated public adapter for the existing ExportResource service, without a second format or private CLI domain access.
  • Add optional explicit keys to ordinary creates, leave omitted key generation to the backend, and display keys alongside local IDs. Existing get/update/delete addressing remains ID-based; MCP namespace remains its key.
  • Keep acknowledged configuration creation distinct from activation, missing credentials, client trust and upstream readiness. Preserve strict object-or-null/exact-tool MCP constraint response checks from the predecessor's retained defensive-validation finding, with empty-stdout malformed-export regressions.

Review Notes

Create-only transfer is not synchronization: no updates, skip-identical, key remapping, dependency traversal, implicit resources/grants or grouped exports. Exports retain authored strings, so keep files private and inspect accidental secrets before sharing. A failed stdout write can leave a partial file; an uncertain mutation acknowledgment is not rollback evidence or permission to replay.

Independent review covered the full 39-file incremental diff and AC1–6: complete, no material findings or blocking gaps. Exact-head target-applicable hosted CI, including real Docker qualification and stable Required, gates promotion. No merge, deployment, installed-service/client adoption, automatic restack or successor implementation is included.

Test Plan

  • Focused race-enabled CLI/controlclient/contract/API/help and transport tests: all eight resource namespaces, strict wrong-kind/bundle refusal, no-confirm/no-submission, dry-run vs creation, explicit/omitted keys, typed auth/conflict/lost-response no replay, scoped bounds and malformed/short export output.
  • Real-binary cross-instance resource roundtrip, backend dry-run inventory equality, existing/missing dependency binding, live/deleted-reserved key conflicts, generated/explicit keys and committed/pending activation with unset credentials.
  • Complete unit, harness, material, demo and security owners passed. Original integration/E2E aggregate attempts failed only on exact source-guard declarations and new dynamically discovered import fixture/confirmation setup; targeted repairs passed, with all unchanged passing batches retained. Original failed aggregates are not represented as exit-zero reruns.
  • make -C agent-gateway verify, normal commit hooks, repository CI guards/formatting, full incremental Git history and actual commit-metadata secret scans passed. Full unsuppressed Go vulnerability scan: zero affected symbols/imported packages; two unused x/net/html module advisories remain disclosed without suppression or broad upgrade.
  • No authored UI/static, dependency, CI or build-definition changes. No local Docker/live-host evidence is claimed.

Fresh exact-head CI run 42384049049, attempt 1, passed all 19 required target-applicable owners, including real Docker qualification, Linux/macOS integration and stable Required, for 0cacc61ad23be42d17dc7fffdd4ba1768cb4132c. No CI repair, diagnostic rerun or assertion weakening was needed.

@averycrespi
averycrespi marked this pull request as ready for review November 7, 2026 15:14
@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-152-resource-config-cli 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