Repository navigation
docs(drive): consolidate-clis decision record — designs and rulings since shaping (TML-3172) - #29917
wmadden-electric wants to merge 16 commits into
Conversation
…TML-3173, TML-3174) Complete implementation designs with exact signatures, file-by-file change plans, lint enforcement, and test plans. Ambiguity sections pending operator ruling before dispatch. Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…ML-3174) All twelve design ambiguities ruled: recommendations adopted. Both slices dispatch as a single implement unit each, followed by independent review and PR-open. Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…174) Operator ruling: the effect-resolution failure kind and per-operation preflight were scar tissue from a transient upstream issue; broken trees surface as pipeline failures with a diagnostic message. Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Error foundation donated by prisma/prisma (StructuredError, Result, CliStructuredError + envelope, plus cause support); success envelope donated by the Compute conventions; adoption by duplication now, shared-package extraction as a follow-up slice. Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
… (TML-3181) Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…po (TML-3180, TML-3181) Zero-dependency package colocated with the host/contract owner; acyclic at the artifact level; folds into the Phase 1a contract work. Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…TML-3181) Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Luan's v2 of the target-experience doc, with the Service naming decision applied throughout. Spec/plan reconciled: service group rename, auth token subgroup, emulator question resolved (@prisma/dev is the existing PPG-local package; decoupling off the critical path). Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
|
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (12)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…artial) Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…iminator (TML-3181) No catch-all failure codes: user-surfaced errors are structured where raised; a non-structured error at a boundary is a bug. Operation results consolidate onto the shared Result shape. Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
… control API Refs: TML-3172 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
… on recs for 3, 5, 6 Ruling 1 goes further than the recommended option: OperationFailure is deleted outright — no alias, no derived kind helper; signatures name CliStructuredError and executionDiagnostics is retyped. Ruling 2 was delegated (DEV.TARGET_UNSUPPORTED at origin). Ruling 4 takes option (a). The operator directed implementation to start now, so 3, 5, and 6 proceed on their recommendations pending ruling. Refs: TML-3181 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
… base type Operator directive: one error base type and one result type on #29919. The Result type already holds; this addendum makes MigrationToolsError extend CliStructuredError, renames details to meta, rewrites the predicate without the name check, and deletes the boundary mapper. Refs: TML-3180 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…ed; reconstruction audited and made normative Refs: TML-3181 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…lug sweep ordered Refs: TML-3181 Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
Closing unmerged per the operator's close-out ruling: the project's durable decisions are extracted to ADR 245 (#29925) in prisma/prisma and ADR-0043/0044 in composer (merged with prisma/composer#205); the Drive working artifacts (designs, addendums, rulings log) are discarded with this branch. |
…r on results (prisma#29925) Extracts the durable decisions from the consolidate-clis (TML-3172) Drive project into a repo ADR, so the project's working artifacts (decision-record branch, PR prisma#29917) can be discarded rather than merged. Records: errors structured at origin with no catch-all codes; `envelope.code` as the only machine-branching surface (explicit-code `errorRuntime`, no `meta.code`); the shared `Result` shape with the single `ok` discriminator; and the `MigrationToolsError` collapse into `CliStructuredError`. All already implemented on main via prisma#29919 and prisma#29911; composer's siblings are its ADR-0043/0044 (merged in prisma/composer#205). 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added an architecture decision record documenting standardized structured errors and explicit, machine-readable error codes. * Clarified consistent operation result handling through a single success/failure indicator. * Documented unified error hierarchies, preserved error causes, direct error propagation, and guidance for maintaining error references. * Updated the architecture decision record index to include the new guidance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
The shaping PR #29909 was squash-merged within minutes of opening; the project's subsequent decision-record commits kept landing on its closed branch. This PR recovers them onto
main: the exhaustive implementation designs for slices 1b (control-client seam, TML-3173) and 1c (Composer programmatic API, TML-3174) with their dispatch plans and post-review amendments, the shared CLI base-types design (TML-3180/TML-3181: error foundation donated by this repo, success envelope by the Compute conventions, duplicate-now/extract-to-a-zero-deps-package-in-prisma-cli later), and v2 of the consolidated command-tree doc with the App→Service naming decision applied.All content was operator-reviewed as it accumulated; this PR is the durable record landing where reviewers can see it.
Refs: TML-3172
🤖 Generated with Claude Code