Skip to content

feat(dogfood): ADR-0060 D5 — flow trigger-type conformance ledger (4th surface)#2110

Merged
xuyushun441-sys merged 1 commit into
mainfrom
feat/flow-trigger-conformance-ledger
Jun 21, 2026
Merged

feat(dogfood): ADR-0060 D5 — flow trigger-type conformance ledger (4th surface)#2110
xuyushun441-sys merged 1 commit into
mainfrom
feat/flow-trigger-conformance-ledger

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

ADR-0060 (#2103) D5 in action — extend the conformance-ledger pattern to a fourth surface, on the same checkLedger helper.

Why flow triggers

A Flow.type declares how a flow is triggered. A declared trigger type with no runtime that fires it = a flow that's authorable but never runs — the flow-shaped #1887, and flows are heavily AI-authored.

What

One row per Flow.type enum value, all enforced with their runtime + a proof:

  • record_change → trigger-record-change · api → trigger-api · schedule → trigger-schedule
  • autolaunched → engine subflow/programmatic start · screen → builtin screen executor + suspended-run store (server runs, resumes on UI input)

The ratchet re-discovers the Flow.type enum from flow.zod.ts and fails the build if a new flow type is added with no runtime. Verified to bite.

The pattern holds

Four surfaces now share one helper — authz / expression / validation-rule / flow-trigger — proving ADR-0060 D5: a new surface is a filled-in table, not a re-derived discipline. Full build 75/75 · dogfood 137. dogfood-private → no changeset.

🤖 Generated with Claude Code

…h surface)

The fourth instance of the reusable conformance-ledger pattern, on the same
checkLedger helper. A `Flow.type` declares HOW a flow is triggered; a declared
trigger type with no runtime that fires it is authorable-but-inert — the
flow-shaped #1887, and flows are heavily AI-authored. One row per Flow.type enum
value (record_change / api / schedule / autolaunched / screen), all enforced with
their runtime trigger/executor + a proof. The ratchet re-discovers the enum from
flow.zod.ts and fails the build if a new flow type is added with no runtime.

Proves the ADR-0060 pattern extends to a fourth surface as a filled-in table.
dogfood-private, no changeset. Full build 75/75, dogfood 137; ratchet verified.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 21, 2026 7:49am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

No hand-written docs reference the 1 changed package(s). ✅

@xuyushun441-sys
xuyushun441-sys merged commit f352b2f into main Jun 21, 2026
17 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the feat/flow-trigger-conformance-ledger branch June 21, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants