Skip to content

TOOLS-151: add atomic online configuration import - #186

Merged
averycrespi merged 1 commit into
avery/tools-150-config-v2from
avery/tools-151-online-config-import
Nov 14, 2026
Merged

averycrespi merged 1 commit into
avery/tools-150-config-v2from
avery/tools-151-online-config-import

Conversation

@averycrespi

@averycrespi averycrespi commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Context

TOOLS-151 is PR 3/7 in the ordered TOOLS-149..155 stack, based on #185 (avery/tools-150-config-v2, creation base 61a3394d44e3b3cf9e056c187f5852b2094c6fe3), not main. Portable v2 definitions can now be previewed and created on a running installation; setup is initialize, start, then online import.

Changes

  • Add administrator-only v2 preview/import operations with strict input, explicit typed keys/dependencies and native domain/capacity validation. Revalidate and create exactly the submitted graph in one authority-gated SQL/audit transaction; existing/reserved keys conflict even identically.
  • Preserve expired/duplicate grants, deleted targets, permanent reservations and exact policy values while generating fresh local IDs/facts. Credentials remain unset; no token, secret material, OAuth authority, implicit dependency or default grant is imported.
  • Separate acknowledged configuration commit from normal postcommit activation. Missing credentials/startup failures remain visible without rolling back configuration; uncertain acknowledgments never trigger replay.
  • Preserve inactive Git grant targets without inventing repository rows, with schema 27 migration/startup/trigger enforcement. Retire v1 export/import and init --from, retaining ordinary init/resume and historical evidence/fences without cleanup or replay. Align the existing export CLI and owning documentation; successor CLI/browser controls are not included.

Review Notes

The keyless seeded routing profile may initialize once only while untouched (revision 1, empty origins, no historical stopped-import receipt). Even empty initialization consumes eligibility; edits/reset/repetition conflict. Omission remains untouched. Native credential limits remain 1,024 retained rows / 256 live rows, independently of key-only reservations.

Independent incremental review covered AC1–8 and all 92 changed files: complete, no blockers or blocking gaps. One nonblocking defensive CLI suggestion remains visible: MCP constraint object/tool-scope checks could be stronger when validating a malformed server response. The normal backend exporter validates those constraints before emission.

Historical initialization inputs/receipts and old activation fences remain evidence, not live import authority. No schema downgrade, automatic reconciliation/update/skip-identical mode, installed-resource adoption, merge or deployment is included.

Test Plan

Passed locally with explicit unchanged-state evidence reuse:

  • Complete race-enabled unit/integration/harness/material/demo/security/nonbrowser-E2E owners, plus current affected pure/online-import/CLI/real-binary cases after wire hardening. Includes late real-SQL rollback, concurrent conflicts, lost commit acknowledgment/reopen, full/per-kind roundtrips, capacities, deleted/reserved targets, no implicit grants and actual postcommit startup failure.
  • make -C agent-gateway verify, normal commit hooks and formatting; full incremental history and commit-metadata secret scans.
  • Frontend 190 Node tests, pinned checkout-local Chromium development-browser owner, typecheck, deterministic assets, generated/development contracts, supply-chain verification and npm audit 0. No authored UI/static content changed.
  • Unsuppressed govulncheck: 0 affected symbols/imported packages; two unused x/net package advisories remain reported, without suppression or broad upgrade.

Original root aggregate attempts failed on legacy fixture/help references and README concision; repairs plus affected/remaining disjoint owners passed. Those failures remain retained rather than relabeled aggregate success. Exact-head target-applicable hosted CI, including real Docker qualification and Required, gates promotion; predecessor CI and local Docker adapters do not substitute. No local Docker or live-host qualification is claimed.

Fresh exact-head CI run 42374551741, attempt 2, passed all 19 required owners including real Docker and Required for ae849366b9eeb3e096d00c4dc68dea94fcbb9b61. The original attempt failed in unchanged TestIngressConcurrencyFourAuditWaitWorkload/debug: an optional-history incident reported SQLite BUSY/read before the final acknowledgment. One inspected, failed-test-only diagnostic rerun and its dependent gate passed; the original failing and passing logs remain retained. The actual contending statement/owner is unproven, and no production runtime repair is claimed.

Create explicit keyed graphs on running instances and retire initialization-only import while preserving historical evidence.
@averycrespi
averycrespi marked this pull request as ready for review November 7, 2026 13:42
@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-151-online-config-import 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