Skip to content

docs(drive): consolidate-clis decision record — designs and rulings since shaping (TML-3172) - #29917

Closed
wmadden-electric wants to merge 16 commits into
mainfrom
tml-3172-consolidate-clis-decision-record
Closed

wmadden-electric wants to merge 16 commits into
mainfrom
tml-3172-consolidate-clis-decision-record

Conversation

@wmadden-electric

Copy link
Copy Markdown
Contributor

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

wmadden-electric and others added 8 commits August 7, 2026 10:52
…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]>
@wmadden-electric
wmadden-electric requested a review from a team as a code owner August 7, 2026 08:53
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (12)
  • projects/consolidate-clis/cli-base-types.md is excluded by !projects/**
  • projects/consolidate-clis/cli-consolidation-plan.md is excluded by !projects/**
  • projects/consolidate-clis/plan.md is excluded by !projects/**
  • projects/consolidate-clis/slices/1b-control-client-seam/design.md is excluded by !projects/**
  • projects/consolidate-clis/slices/1b-control-client-seam/plan.md is excluded by !projects/**
  • projects/consolidate-clis/slices/1c-composer-programmatic-api/design.md is excluded by !projects/**
  • projects/consolidate-clis/slices/1c-composer-programmatic-api/plan.md is excluded by !projects/**
  • projects/consolidate-clis/slices/base-types-composer-adoption/design-addendum.md is excluded by !projects/**
  • projects/consolidate-clis/slices/base-types-composer-adoption/design.md is excluded by !projects/**
  • projects/consolidate-clis/slices/base-types-prisma-repairs/design-addendum.md is excluded by !projects/**
  • projects/consolidate-clis/slices/base-types-prisma-repairs/design.md is excluded by !projects/**
  • projects/consolidate-clis/spec.md is excluded by !projects/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro Plus

Run ID: e8a13470-4f8f-4815-a81b-690066065908

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

wmadden-electric and others added 8 commits August 7, 2026 10:57
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]>
@wmadden-electric

Copy link
Copy Markdown
Contributor Author

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.

@wmadden-electric
wmadden-electric deleted the tml-3172-consolidate-clis-decision-record branch August 7, 2026 15:32
Thegreatsura pushed a commit to Thegreatsura/prisma that referenced this pull request Aug 8, 2026
…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]>
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.

2 participants