Repository navigation
docs: plan provider setup follow-up on unified providers - #1440
Conversation
jhrozek
left a comment
There was a problem hiding this comment.
Docs-only plan PR reviewed via a devils-advocate design critique (adapted from pr-review-toolhive for this repo's ADR/acceptance-plan process, since there's no code to review). Design and scope are solid: the four scenarios are well-bounded, the CLI/precedence/credential claims check out against ADR 0333 and the merged unified-provider plan, and docs/lint (ADR numbering, citation validity, lifecycle checks) passes clean. Three process/wording nits below, none of which touch the design itself — approving with those as follow-up comments.
| @@ -0,0 +1,141 @@ | |||
| # ADR 0332 — Mecatui local provider enrollment preserves existing credential custody | |||
|
|
|||
| - Status: Superseded proposal — never accepted; superseded by [ADR 0333](0333-unified-provider-configuration-and-mecatui-provider-commands.md) and merged PR #1448 | |||
There was a problem hiding this comment.
docs/adr/template.md fixes Status to exactly Proposed | Accepted | Superseded, with the supersession pointer on its own dedicated Superseded by: line ("the only edit a frozen ADR takes"). This rewrites Status itself into free text instead. Worth conforming to the canonical fields:
| - Status: Superseded proposal — never accepted; superseded by [ADR 0333](0333-unified-provider-configuration-and-mecatui-provider-commands.md) and merged PR #1448 | |
| - Status: Superseded | |
| - Superseded by: [ADR 0333](0333-unified-provider-configuration-and-mecatui-provider-commands.md) (merged as PR #1448); this proposal itself was never accepted |
Non-blocking — cosmetic, but it keeps docs/lint/future ADR tooling able to treat Status as a closed enum.
| [ADR 0333](../adr/0333-unified-provider-configuration-and-mecatui-provider-commands.md) | ||
| and the [unified-provider contract](unified-provider-configuration-and-mecatui-provider-commands.md) | ||
| supersede the unmerged ADR 0332/prototype. Their authority follows merged ancestry even where | ||
| historical metadata still says proposed. This plan replaces its earlier proposal in full; |
There was a problem hiding this comment.
This plan's "Bounded" classification (no new ADR needed) leans entirely on ADR 0333 already being a settled, accepted decision — but docs/adr/0333-unified-provider-configuration-and-mecatui-provider-commands.md line 3 still literally reads Status: Proposed, even though its own acceptance plan is landed and PR #1448 is merged. Per ADR 0306, "merging the PR is the acceptance event," so that flip appears to have just been missed.
Non-blocking for this PR, but worth flipping ADR 0333's Status to Accepted in this PR or immediately after — otherwise this plan's classification is standing on a proposal that self-reports as unaccepted.
| not ADR 0332's superseded Linux/lock design. | ||
|
|
||
| **Acceptance:** | ||
| - AC4.1: Linux and macOS regressions cover unsafe symlink/special-file leaves (including FIFO substitution without blocking), canonical-parent replacement during mutation, private ownership/modes, same-directory temporary replacement, cancellation and final snapshot mismatch. Repair any demonstrated bypass of the existing checks at the shared writer; no write or cleanup may escape the validated parent via a substituted link. Conventional home aliases remain supported. No sidecar lock/retry protocol, recursive parent creation, or platform regression is introduced. |
There was a problem hiding this comment.
AC4.1 enumerates specific, checkable regression scenarios (symlink/special-file leaves, FIFO substitution, canonical-parent replacement, ownership/modes, same-directory replacement, cancellation, snapshot mismatch) but then appends an open-ended catch-all: "Repair any demonstrated bypass of the existing checks at the shared writer." That's a task, not an observable behavior — there's no way for a TDD worker or ac-trace to know when it's satisfied beyond the named list.
Non-blocking, but consider dropping the catch-all clause or scoping it to a specific enumerated bypass class.
dd85726 to
9b28a79
Compare
Co-authored-by: mecatl <[email protected]>
Record the authorized read-only status and default-selection amendment; keep upstream enrollment and token mutation out of scope. Co-Authored-By: Astra <[email protected]>
Co-Authored-By: Mecatl <[email protected]>
9b28a79 to
dfd0134
Compare
Stage: Plan / Interface
Reconciles this existing PR #1440 after merged PR #1448. The canonical implementation baseline is
fdbd369c50c804ee391457a666d7471f53ec6069; this amended plan head is9b15e85b768cd55084c311c5611820b7c801228f.docs/acceptance/mecatui-local-provider-setup.md, human-reviewed/v2, proposed; four scenarios, eleven newly named AC proofs.Remaining scope
Preserved contract / deliberate exclusions
Keep
mecatui providersand the current flat setup/add/login/logout/set-default/remove commands, unifiedproviders.NAMEauthentication schema, configured credential custody, and startup--api-key-file. No per-command file flags, oldllmforms, new store/schema/protocol/engine API, automatic startup, or nested action menu.Add still normally chains login; logout removes only credentials; remove still permits removal of the selected custom default after combined confirmation, with no automatic replacement default. Existing OIDC status/store inspection and add cancellation cleanup remain intact.
History and scope
Normal merge of current main into the existing plan branch; no rebase, force push, or history rewrite. Previous tips are preserved in merge ancestry and local archival refs. Relative to current main, this PR changes only the acceptance plan, its index, the superseded-proposal annotation on ADR 0332, and its index. Accepted ADR 0333 decision text is untouched. No runtime follow-up code is implemented here.
Verification
task docs: passed; strict link gate reports no broken links/anchors, ambiguous links, or unreachable/orphan documents.git diff --check: passed; no generated/lockfile drift.task lint: passed in all seven modules. Offline demo: passed.task test: root suite failed onlyTestCrossProcessLeaseExpiryTakeoveratinternal/app/lease_exclusion_test.go:243; its one-second lease expired before the test's assumed pre-expiry assertion under suite load. Five isolated race-enabled repeats passed. Runtime/test code is byte-identical to main; this timing-sensitive baseline failure is triaged, not silently fixed in a documentation/preparation step. Task stopped before sibling-module tests; full-suite green is not claimed.9b15e85b768cd55084c311c5611820b7c801228f, monitored to completion withgh pr checks --watch(exit 0). Applicable docs, site, domain, docs-only tests, lint and advisory checks passed; non-applicable runtime jobs were skipped, not claimed as runtime verification.Tracking: implementation PR #1441. No issue-closing relationship.