P0005 (accept + execute): async-by-default-for-long-running-tools principle (NEW)#175
Merged
P0005 (accept + execute): async-by-default-for-long-running-tools principle (NEW)#175
Conversation
…nciple (NEW)
Acceptance:
- Flip docs/promotions/P0005 promotion_status: proposed -> accepted
- Update tags array ("proposed" -> "accepted")
- Fill Review Notes with operator decision (klappy, 2026-05-05)
Execution:
- canon/principles/async-by-default-for-long-running-tools.md (NEW): tier-2
- Frontmatter declares: derives_from partial-data-with-transparency,
vodka-architecture, axioms; complements partial-data-with-transparency
- Codifies the three-tool triad for any long-running MCP action:
<verb>(...), get_<verb>_status(id), cancel_<verb>(id)
- Latency budgets: submit <=5s p99; status <=1s median; notification <=1s median;
long-poll <=5s p99
- Action-side complement to partial-data-with-transparency-and-background-warm
(which is the read-side rule)
- Receipts: PTXprint v1.2 typesetting + AMS hosted /mcp
Last of 8 stuck proposals. Sweep complete:
P0009 (#167), P0001 (#168), P0008 (#169), P0007 (#170),
P0006 (#171), P0003 (#172), P0004 (#173), P0005 (this PR).
P0002 had already merged via #163->#165->#166.
Canon Quality —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does — last of the 8-proposal sweep
Combined acceptance + execution of promotion P0005 — adds a tier-2 principle doc codifying the async shape for long-running MCP tools.
Acceptance (1 file)
docs/promotions/P0005-async-by-default-for-long-running-tools.mdpromotion_status: proposed→accepted"proposed"→"accepted"accepted(2026-05-05)Execution (1 file, NEW)
canon/principles/async-by-default-for-long-running-tools.md(new tier-2 principle doc)tier: 2,audience: canon,status: activederives_from:partial-data-with-transparency-and-background-warm,vodka-architecture,values/axiomscomplements:partial-data-with-transparency-and-background-warmThe three-tool triad (the principle)
For any MCP action whose work could exceed ~5s wall-clock:
<verb>(...)— submit; returns identifier within ~5sget_<verb>_status(id)— pollcancel_<verb>(id)— cancellationNotification push is additive; polling stays the canonical floor.
Latency budgets
Receipts
submit_typeset/get_job_status/cancel_job(Worker →ctx.waitUntil(fetch())→ Container → DO state)/mcp:ams_send(wire-accept, not peer-receive) /ams_recv(long-poll) /ams_leave(cancel)✅ Sweep complete
canon/patterns/)All 8 previously-stuck
proposedpromotions now have acceptance + execution PRs open againstmain. Once these merge, the onlyproposed-status promotions left in the queue will be ones filed after this sweep started.DoD
promotion_statusflippedfrontmatter-schemaNote
Low Risk
Low risk documentation-only change that adds a new canon principle and marks the corresponding promotion as accepted; no runtime behavior is modified.
Overview
Promotes P0005 from proposed to accepted by updating its frontmatter/status and filling in review notes.
Adds a new tier-2 canon principle,
canon/principles/async-by-default-for-long-running-tools.md, codifying the submit-id + poll-status + cancel tool triad for actions that may exceed ~5s, along with recommended latency budgets and example “receipts”.Reviewed by Cursor Bugbot for commit e36fe25. Bugbot is set up for automated code reviews on this repo. Configure here.