Skip to content

TOOLS-153: add bundle configuration CLI transfer - #188

Merged
averycrespi merged 1 commit into
avery/tools-152-resource-config-clifrom
avery/tools-153-bundle-config-cli
Nov 14, 2026
Merged

averycrespi merged 1 commit into
avery/tools-152-resource-config-clifrom
avery/tools-153-bundle-config-cli

Conversation

@averycrespi

Copy link
Copy Markdown
Owner

Context

TOOLS-153 is PR 5/7 in the single ordered TOOLS-149..155 stack. It targets #187 (avery/tools-152-resource-config-cli, immutable creation base 0cacc61ad23be42d17dc7fffdd4ba1768cb4132c), not main. This adds bundle CLI transfer to the existing version-two backend/resource surfaces; frontend TOOLS-154/155 remain separate successors.

Changes

  • Add top-level import --file PATH / --file - for existing version-two bundles or individual definitions. Keep export config as the sole whole-gateway export spelling; resource-specific imports remain exactly one matching definition.
  • Reuse the resource CLI's public controlclient, credential selection, strict input, confirmation and one-shot transport. --dry-run calls backend read-only validation and displays every creation/reservation, typed dependency and credential/activation requirement. Actual import requires --confirm and atomically revalidates the explicit graph.
  • Validate complete result inventory before output; retain JSON or human results, separate committed configuration from material/runtime readiness, preserve useful filesystem causes and actionable conflict/reference guidance, and never replay uncertain mutations. Successful config preview/import responses use the existing portable-document size bound without relaxing ordinary response/error limits.
  • Finalize initialize, start, online import, then separate credential provisioning/readiness guidance. Correct reservation-receipt validation to accept the backend's fresh local reservation IDs; only keyless routing omits its ID. Update the exact new-leaf stopped fixture and help/documentation inventories without weakening their checks.

Review Notes

Create-only transfer is not synchronization: no update, remapping, dependency traversal, implicit grants, skip-identical or export filters/subgraphs. Existing/reserved submitted keys conflict even identically. Git routing retains its narrowly eligible untouched-seed-only initialization rule. Whole export retains deleted targets, reservations and expired/duplicate grants without resurrection or expiry renewal; supported secret values, history, runtime and installation authority never transfer. Authored strings are preserved, so keep files private and inspect accidental secrets before sharing. A failed output write can leave partial output; inspect keys/status after uncertain acknowledgment instead of reimporting.

Independent full incremental review precedes publication. All required exact-head target-applicable hosted CI, including real Docker qualification and stable Required, gates ready promotion. No merge, deployment, predecessor edits, installed-client/service changes or successor implementation is included.

Test Plan

  • Full race-enabled CLI package passed: file/stdin, complete mixed inventories, resource-only contracts, no-confirm, strict v2, native completions/help, malformed/incomplete results, >1 MiB preview, short output, actionable file failures and lost-response/error no replay.
  • Real-binary full-gateway source-to-fresh-running-target roundtrip passed across all kinds, deleted targets/reservations, expired duplicate MCP/HTTP/Git grants, lexical numbers, explicit ordinary default grant, missing credentials and separately observed startup failure. Existing/submitted dependency, post-preview race, dangling/reserved conflict and no-partial-state assertions passed, alongside resource roundtrip/export and complete stopped-CLI matrix.
  • Complete controlclient/contract/acceptance and configimport/configexport integration race packages plus relevant composition guards passed. Mandatory make -C agent-gateway verify, normal commit hooks, formatting and make test-ci passed.
  • Full unsuppressed govulncheck: zero affected/imported vulnerabilities; two unused x/net/html module advisories GO-2026-6866/6860 remain disclosed. Full outgoing incremental history and actual commit metadata secret scans passed. Exact PR request/actual metadata is scanned separately before qualification.
  • No authored UI/static, dependency, CI or build-definition changes. No local real-Docker/native-host/browser adoption evidence is claimed; complete hosted exact-head CI remains mandatory.

Create explicit portable graphs through the public online control boundary, keeping preview and configuration commit separate from material and activation.
@averycrespi
averycrespi marked this pull request as ready for review November 7, 2026 16:11
@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-153-bundle-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