Skip to content

TOOLS-154: add resource configuration import and export - #189

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

averycrespi merged 1 commit into
avery/tools-153-bundle-config-clifrom
avery/tools-154-resource-config-ui

Conversation

@averycrespi

Copy link
Copy Markdown
Owner

Context

TOOLS-154 is PR 6/7 in the ordered TOOLS-149..155 stack. It targets #188 (avery/tools-153-bundle-config-cli, immutable creation base d0440e3e1c49a5e2354f5d5df3b2ac770b8468b0), not main. This exposes the existing v2 create-only resource contract in the browser; System Configuration and bulk UI remain TOOLS-155.

Changes

  • Add Import beside Create for all eight keyed resource kinds, with one bounded paste/file flow, online preview, intended fields, typed dependencies, setup requirements and explicit confirmation. Preserve raw numeric tokens and atomically revalidate through the existing backend owner; existing/reserved keys conflict even identically.
  • Add adjacent Copy config / Download config tasks and immutable-key facts to resource details. Reuse the shared clipboard/download, session, origin and mutation owners; fence stale publication and never automatically replay uncertain import.
  • Offer optional stable keys in seven ordinary create forms, omitting blank keys for backend generation. MCP servers retain their existing required immutable namespace as their key. Internal IDs and ID-based URLs remain unchanged.
  • Separate committed configuration from credential provisioning and activation/readiness. Keep editable input after known rejection, invalidate stale approval on new input/file selection, and visibly freeze held validation/import or uncertain outcomes.
  • Update operator/design/test documentation, source-derived capability metadata, canonical backend-validated browser fixtures, complete mocked/real Chromium regression owners and deterministic generated assets.

Review Notes

Create-only seeding is not update/synchronization. No remapping, dependency traversal, implicit grants/expiry, grouped exports, skip-identical mode or bulk page is added. Schema-supported secret values, runtime, history and installation authority do not transfer; authored nonsecret strings still require inspection before sharing.

Real browser qualification exposed two narrow prerequisites included in the full independent review: restore native confirmation focus synchronously rather than from a late close event, and fence asynchronous full-header observations before collector teardown. Failing-before/passing-after evidence is retained; Origin checks and failed-read qualification are not weakened.

Independent review covered the entire incremental d0440e3e..6dd7cdc6 change (37 files): complete, no material findings or blocking evidence gaps. Hosted exact-head qualification remains mandatory before ready promotion. No merge, deployment, predecessor edits or installed-service/client changes are included.

Test Plan

  • npm run ui:test-dev: 201 passed; frontend typecheck, root formatting, production build, exact generated verification, supply-chain checks and npm audit passed.
  • npm run ui:test-browser: all 41 owners passed, 2,996 captures plus 54 continuations, no inventory gaps. Actual desktop/narrow light/dark images were inspected, including pending, rejected, uncertain, copy-failure and credential/activation states.
  • make -C agent-gateway test-browser: all four real Chromium evidence leaves passed. Final affected resource-import owner passed again on final source, covering auth/CSRF/Origin, persistence, post-preview conflict, no implicit grant, copy/download, missing material, failed activation and preview/dialog accessibility.
  • Race-enabled full API/contract/configdefinition packages passed, including all eight strict public-v2 browser fixtures; full configimport integration, selected security suite, applicable documentation guards and make test-ci passed.
  • Mandatory make -C agent-gateway verify and normal pre-commit hooks passed with zero lint issues. Complete outgoing history and actual commit metadata secret scans passed; exact PR metadata is qualified separately before publication.
  • Full unsuppressed govulncheck: zero affected symbols/imported vulnerable packages. Module-only GO-2026-6866/6860 remain disclosed for unused x/net/html; no suppression or dependency upgrade was used.
  • Promotion requires all target-applicable exact-head hosted CI, including real Docker qualification and stable Required. Local adapters and mocked UI do not replace that evidence or qualify installed hosts.

Reuse create-only v2 definitions across the resource UI while keeping credential setup and activation separate from committed configuration.

Keep request publication and dialog focus inside their existing owners, and qualify each resource entry with real-contract fixtures.
@averycrespi
averycrespi marked this pull request as ready for review November 7, 2026 19:54
@averycrespi
averycrespi added this pull request to stack #191 November 14, 2026 02:42
@averycrespi
averycrespi merged commit c3b3998 into main Nov 14, 2026
36 of 38 checks passed
@averycrespi
averycrespi deleted the avery/tools-154-resource-config-ui 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