You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Print: the PDF a print attaches carries no print-origin marker, so an app that reacts to a print must key on the file name, which #36801 changed #38894
Filing gate ③ (maintainer-directed) · Source: maintainer — Irene chose 「先临时修好,同时提平台卡」 on the hotcrm project thread's decision card (2026-12-01T10:23Z), after hotcrm#2600's restart measured it (report: hotcrm#2600 comment 7307462531). · Type: Feature · Grade: left to objectstack triage.
Today
printRecordToFile attaches the rendered PDF to the record through the ordinary attach verb. The resulting sys_attachment row looks exactly like a file a person uploaded: nothing on it, and no event, says it came from a print. So an app flow that must react to "this record was printed" can only key on the file name.
HotCRM did exactly that: quote_print_presented (moves a Draft / In Review quote to Presented when it is printed) starts on file_name == "quote_print_page-" + record.parent_id + ".pdf", the pre-19 default name. #36801 (fix for #35049, in 19.0.0-next.3) now names a print with no filename from the record's display name (service-printdefaultPrintFilename), so on HotCRM main pinned to 19.0.0-next.3 printing a quote no longer presents it (measured: 0 flow runs, quote stays Draft). The naming change itself is right; what is missing is a stable way to recognise a print.
Ask
A print-origin signal an app can declare against, e.g. one of:
a field on the attachment the print writes (source: 'print' plus the print page name), readable in a record-triggered flow's start condition; or
a print event / trigger (record printed, with the page name) a flow can start on.
Who benefits: any app that changes state on a print (quotes presented, invoices issued, contracts sent) — today each must restate the platform's naming rule, which breaks whenever the default changes.
Interim on the HotCRM side (maintainer's choice): the flow keys on <quote name>.pdf until this ships; it misses names the platform sanitises.
Dedupe: searched print attachment origin marker, printRecordToFile source (open and closed): no hit on this mechanism. Related, closed: #35049 / #36801 (the filename change), #22270 (the print action that attaches the PDF).
Consumer: hotcrm src/revenue/flows/quote-print-presented.flow.ts switches to the signal once a pinned release carries it.
Triage: first-touch · grade: area:workflow · Feature · p2 · reach: any app whose automation must react to a print (HotCRM quote_print_presented today, on a temporary file-name fix) · evidence: measured (hotcrm#2600) · pm:queue. area:business is not a North Star area; the ask is an event/marker an automation keys on, so it maps to area:workflow.
Decision needed · 2026-12-01T16:03Z · the card asks for a print-origin signal and leaves its form open; the form is a new platform contract, so it is the maintainer's choice before dispatch. ⛔ Not a claim.
sys_attachment (packages/platform-objects/src/audit/sys-attachment.object.ts) has parent_object, parent_id, file_id, file_name, mime_type, size, uploaded_by, description, timestamps — no origin field.
service-print attaches through the ordinary attach verb (print-service.ts ~393, assertMayAttach), so a print row is indistinguishable from an upload.
The consumer's flow already starts on a sys_attachment insert with a file_name condition (hotcrm quote-print-presented.flow.ts, per the card), so a record-triggered flow on sys_attachment is the shape apps use today: option A changes only the condition it keys on.
Options
What an app author sees
Workload
A (recommended)
sys_attachment.source (select, print set by the print service; absent/upload otherwise) and print_page (the print page name). The existing insert-triggered flow keys on them; the file name is free to change.
1 PR: two platform-object fields, the print service writes them, docs; spec widening ⇒ contract review
B
A new flow trigger "record printed" (page name in the trigger context).
~2 PRs: a trigger kind in the spec, engine wiring, docs; no precedent for a service-emitted trigger kind in this repo measured
C
Nothing; apps key on the file name.
0; breaks again on the next naming change
Four axes: Real need — one named consumer measured broken (HotCRM, on a temporary file-name fix); the pattern (presented / issued / sent on print) is general. Long-term soundness — A records provenance as data on the row (auditable, reusable by other attachment producers later); B adds a capability kind to the trigger protocol. Keeps AI from writing it wrong — A gives a declared select an app condition can be checked against at publish; C leaves a string convention an author must restate. Startup focus — A is the smallest declared surface that removes the convention; B widens the trigger vocabulary for one event.
Governing text: AGENTS.md contract-first (a new platform-object field is a declared surface: spec, platform-objects, docs together); Clause-②: yes (widening) for A or B.
Maintainer ruling · 2026-12-02T06:08Z · on the decision 7316983599 and the follow-up survey in seat repo:objectstack@os-justin's session (Salesforce, Dynamics 365, Odoo, NetSuite, Zoho and ServiceNow: most generate-PDF actions download by default and archive only on an explicit "save to record").
The maintainer, verbatim: 「38894 改成下载。而且也不需要来源标记了是吗」 — answered yes in the session: with no attachment written, there is nothing to mark.
Ruled: the record-page "generate PDF" action downloads the PDF and writes no attachment.printRecordToFile / POST /api/v1/print/records stop archiving through the file-attachments service; the rendered PDF goes back to the caller as the download. No source / print_page marker (options A and D are not taken). This supersedes the archive half of #22270 (card ④ of #8346's ruling B′, "attaches the archived PDF to the record").
Consequences, stated for the record:
HotCRM's quote_print_presented flow keys on the attachment insert a print wrote; after this change a print writes no attachment, so that flow no longer fires on a print at all (today it fires only on the temporary file-name match). Moving a quote to Presented becomes an explicit act in HotCRM (an action or a field the user sets), not a side effect of printing — the consumer cards this on its side.
Anything that used the archived PDF afterwards (emailing it from a flow, finding it in the record's files) has no file to use. Measured in this repo: the print service has no in-repo caller besides its own HTTP route and the console's action; no automation node or flow uses it.
printRecordToFile's name and PrintedRecordFile (which returns attachmentId) change meaning: a contract change on a published service, so the build owes a contract-tier review, a changeset that says the archive is gone, and the print docs (content/docs/ui/print-pages.mdx) rewritten.
The card's ask changes from "a print-origin signal" to "generate PDF downloads, no archive"; the seat claims and dispatches it on this ruling.
Claim: PM loop round 1
Session: session_01QSeKYnrQ7UMtHofKQVjcH2
Account: os-justin
Branch: claude/issue-38894-print-download-only
Worktree: objectstack-issue-38894
Domain: domain:server
Seat: repo:objectstack@os-justin
File surface: packages/services/service-print/src/print-service.ts, packages/services/service-print/src/print-routes.ts, packages/services/service-print/src/print-door-member.ts, packages/services/service-print/README.md, packages/spec/src/contracts/print-door-service.ts (reason: only if the record-print result type lives there), content/docs/ui/print-pages.mdx, the console's record-print action wherever it reads the result (reason: the dev names the file; the download replaces the attachment toast) (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier), effort: high
Clause-②: yes (narrowing)
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7336681739
Premise: corrected 7336681739 (the maintainer ruled the print writes no attachment at all, so no print-origin marker is built; the record-page print downloads the PDF)
Serial constraints cleared: no in-flight claim names packages/services/service-print (check-handover --inflight, 2026-12-02T06:10Z).
{
"issue": 38894,
"status": "needs_decision",
"branch": "claude/issue-38894-print-download-only",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39076",
"head_sha": "f184414b5bfd71df55b27fe420503e92945df75b",
"session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
"premise_still_valid": true,
"summary": "Implemented per maintainer ruling 7336681739. The record print now downloads the PDF and writes no attachment and no source/print_page marker. IPrintService.printRecordToFile became printRecordToPdf and returns {pdf,size,filename,contentType}. assertMayAttach, attachFileAs, the FILES_DISABLED refusal and the service-storage dependency were removed. The READ check (plus re-probe) is the whole permission, so a reader who cannot edit can print. POST /api/v1/print/records and the print door member answer 200 application/pdf. Response headers: Content-Disposition attachment with an ASCII fallback plus RFC 5987 filename*, Cache-Control no-store, nosniff. Filenames over 255 characters are refused. The README, print-pages.mdx, the spec/runtime jsdoc and the authz matrix row now say download. A BREAKING changeset (fix!, FROM/TO, the HotCRM quote_print_presented line, one ADR-0087 runtime-export-retired marker) is included. Open decision: the action doors relay JSON only (a non-JSON 2xx gives 502). So a declared type:'api' print action gets a 502 until the console delivery path is chosen. This affects the showcase GenerateInvoicePdfAction (left unchanged) and the HotCRM Print Quote action. The route works for a browser that calls it directly. No console code was changed, because the smallest console handling depends on that choice. Fixes vs Part of: the PR body says Fixes #38894. If the seat splits the console-delivery half into its own card, switch it to Part of #38894.",
"tests": "At f184414b5b:\n- service-print pnpm test: 9 files / 139 passed. typecheck: exit 0.\n- runtime own-door-bridge.test.ts: 77 passed.\n- http-conformance hono-print-door.conformance.test.ts: 4 passed.\n- dogfood print-service-archive + named-page + door-impersonation: 3 files / 17 passed. They cover:\n - read-not-edit auditor prints;\n - nothing is written to sys_attachment or sys_file;\n - two prints write nothing;\n - an attacher prints and writes nothing;\n - an RLS-hidden reader is refused RECORD_NOT_FOUND/404.\n- dogfood print-service-render: SKIPPED (no built console), NOT MEASURED locally.\n- dogfood typecheck: exit 0 (--listFiles includes the changed tests).\n- Unit tests also cover the 200 PDF headers, the non-ASCII filename case, and that the door member is byte-identical to the mount.\n- Ablation 1 (sendPdf reverted to 201 JSON): rebuilt, mutated on disk; 4 failed in print-routes/door-member; restored to the HEAD blob.\n- Ablation 2 (files/edit gate re-added): 5 failed; restored.\n- The first ablation-2 attempt was a disclosed no-op: the replacement contained the anchor, so the tool refused. It was rerun with a marked variant.",
"gates": "Local:\n- dispatch-gates --commands (no paths) derived 135 families. All exited 0, with the exit code captured before any pipe. --ran reconciled all 135.\n- Three families were first NOT MEASURED, then rerun green:\n - check:skill-examples: exit 3, prereq; client-react built; then exit 0.\n - check:dual-build-cjs-loads: exit 3, prereq; studio/scenarios/service-segmenter/service-print built; then exit 0.\n - check:query-options-erasure: exit 124 from my own 280 s timeout; rerun at 560 s, exit 0.\n- eslint --no-inline-config on the changed TS files: exit 0.\n- check-platform-checklist --changed-from origin/main: exit 0.\n- check-nul-bytes / control-byte scan: clean.\n- Not run locally:\n - runtime typecheck (comment-only change);\n - check:skill-frame-freshness and check:dev-prereqs (not triggered);\n - test:repo (CI-owned).\nCI on PR #39076 head f184414b5b, read once at open: 28 check-runs, all in_progress or skipped, none concluded yet. NOT MEASURED at report time; the convergence read belongs to the seat.\nDogfood battery (opt-in) is skipped until the seat applies needs:dogfood-battery: the title carries ! and Clause-② has the (narrowing) arm.",
"files_touched": [
".changeset/38894-print-downloads-no-attachment.md",
"content/docs/ui/print-pages.mdx",
"packages/qa/dogfood/test/authz-conformance.matrix.ts",
"packages/qa/dogfood/test/print-door-impersonation.dogfood.test.ts",
"packages/qa/dogfood/test/print-service-archive.dogfood.test.ts",
"packages/qa/dogfood/test/print-service-named-page.dogfood.test.ts",
"packages/qa/dogfood/test/print-service-render.dogfood.test.ts",
"packages/runtime/src/domains/print.ts",
"packages/services/service-print/README.md",
"packages/services/service-print/package.json",
"packages/services/service-print/src/index.ts",
"packages/services/service-print/src/print-door-member.test.ts",
"packages/services/service-print/src/print-routes.test.ts",
"packages/services/service-print/src/print-routes.ts",
"packages/services/service-print/src/print-service-plugin.revoke-log.test.ts",
"packages/services/service-print/src/print-service-plugin.test.ts",
"packages/services/service-print/src/print-service-plugin.ts",
"packages/services/service-print/src/print-service.test.ts",
"packages/services/service-print/src/print-service.ts",
"packages/spec/src/contracts/print-door-service.ts",
"pnpm-lock.yaml"
],
"surface_breach": "Files outside the claimed surface, each forced by the change:\n- print-service-plugin.ts and its two tests (attachments wiring removed);\n- package.json and pnpm-lock.yaml (service-storage dependency dropped);\n- runtime domains/print.ts (jsdoc only);\n- the dogfood authz-conformance matrix row;\n- four dogfood print tests (they asserted the old attachment);\n- the changeset.\nThe claimed print-door-member.ts needed no source change; only its test changed.\nThe spec print-door-service.ts was edited for jsdoc only, although the result type lives in service-print and not in spec.\nNo console file was touched: see open_questions.",
"deviations": "- The dogfood closure build ran past the ~600 s foreground ceiling, and the harness moved it to the background. It finished exit 0, held the lock 380 s and waited 274 s. That reading was taken after it completed, not polled.\n- One no-op ablation attempt (disclosed in tests).\n- My own 280 s timeout produced a 124 on check:query-options-erasure; rerun green.\n- The pnpm install --offline lockfile refresh failed (ERR_PNPM_NO_OFFLINE_META). Used pnpm install --lockfile-only instead (3 lines removed).",
"mcp_calls": "0",
"api_writes": "2 — two fleet-write relay dispatches:\n1. pr_create, run 46832439311. The relay sent POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /issues/39076/assignees [os-justin].\n2. This os-dev-report comment, via post-stamped: POST /repos/objectstack-ai/objectstack/issues/38894/comments.\ngit push to claude/issue-38894-print-download-only is not counted. No labels were written: a changeset exists, so no skip-changeset; needs:dogfood-battery is the seat's.",
"classifier_refusals": [],
"open_questions": [
{
"question": "How does a declared type:'api' action deliver a file download? The REST and MCP action doors (forwardApiAction) answer 502 for a non-JSON 2xx. Since this PR, the print route answers the PDF itself, so the showcase GenerateInvoicePdfAction and HotCRM's Print Quote get a 502 through the door. The console client (ui app-shell apiActionDoor.ts sendApiActionThroughDoor / readApiActionDoorSuccess, called from useConsoleActionRuntime apiHandler and RecordDetailView) only reads a JSON success.",
"options": [
"A — Widen only the REST action door: a 2xx answer carrying Content-Disposition: attachment is relayed byte for byte, and the MCP door keeps refusing. The console door client then saves the blob as a download.\n - Touches runtime action-execution/action-dispatch, the REST/dispatcher action route, ui apiActionDoor.ts and its two callers, and the showcase action's successMessage.\n - Contract widening of the action door, Clause-② widening. Medium-large; one card plus a ui-repo PR.",
"B — Spec-level download declaration on the action (e.g. download: true, or a new action type) that the console reads to call the target outside the door.\n - Metadata-protocol added: authorable surface, liveness, docs and skills.\n - Largest; it also needs a runtime enforce leg.",
"C — A GET print route plus type:'url' new-tab navigation, using the browser's native download with the session cookie.\n - Needs a new route with a closed query-param set.\n - Bearer-only consoles and embedded hosts get no auth on a navigation.\n - Small-medium; weaker coverage.",
"D — The print answers base64 JSON so it passes through the door unchanged.\n - Contradicts the ruling's 'answer the PDF itself'.\n - About 33% size inflation, and the console must sniff the body.\n - Small but wrong shape."
],
"recommendation": "A, because the action door is the one place that turns any file-producing api action into a download. It needs no new authorable key (unlike B) and keeps bearer auth (unlike C). The 502 on the showcase and HotCRM actions is the cost of shipping this PR before A lands. The seat may prefer to hold the land until A is ready, or accept the gap with the route working directly."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · the Content-Disposition builder in print-routes.ts duplicates service-storage's, which is not exported; sharing it is a possible follow-up. Noted in the PR's Acceptance notes, not filed."
]
}
{
"issue": 38894,
"status": "done",
"branch": "claude/issue-38894-print-download-only",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39076",
"head_sha": "2125d139757fe3030f159474dfb3efc58741593d",
"session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
"premise_still_valid": true,
"summary": "Fix round on the failed contract review 7339311892 at f184414b5b. Code half of the ruling kept unchanged. MUST-FIX changeset: rewritten; it no longer says the record page's generate-PDF downloads, it adds an 'Apps that declare a print action' section naming the REST and MCP action doors' 502 for a non-JSON 2xx (showcase GenerateInvoicePdfAction, HotCRM Print Quote), the console direct-fetch road's success-with-no-file, the FROM -> TO for such an app, and that calling the route directly returns the PDF; BREAKING, both declaration lines, patch and the single ADR-0087 marker kept (check-adr-0087-registration exit 0). MUST-FIX PR body: NOT patched; proposed body at /tmp/claude-0/-home-user-objectstack/96353139-b75c-518e-b0e8-54f835f491d0/scratchpad/issue-38894/prbody.new.md (Part of #38894 with the open half named, speed-read bullets 1 and 3 consistent, readings at the new head, signed trailer as the last non-empty line). SHOULD-FIX lone surrogate: validateRequest refuses a request filename holding a lone UTF-16 surrogate VALIDATION_ERROR / 400 at step 3, before any mint or render, AND pdfContentDisposition is total (a lone surrogate becomes U+FFFD; safeFileBase does the same for a display value); pinned by 4 new tests, both halves ablated red. SHOULD-FIX stale texts: system-context.mdx row 47d, print-service-plugin.ts class jsdoc, the PRINT_RECORDS_ROUTE comment, print-route-ledger.ts row note, runtime route-ledger.ts print row note all corrected; print-pages.mdx also states the MCP 502, the direct-fetch silent success, and the filename refusals. SHOULD-FIX showcase: action jsdoc, successMessage, zh-CN successMessage, invoice-document.page.ts and invoice.object.ts comments corrected without touching wiring (label, target, body, enable.files unchanged). Merged origin/main twice (06d5dffb86, then 356b8744af), never force-pushed; PR still draft, auto-merge null.",
"tests": "At head 2125d13975: pnpm --filter @objectstack/service-print exec vitest run --maxWorkers=2 -> 9 files / 143 passed (139 + 4 new); service-print typecheck exit 0 (tsc --listFiles counts the 9 test files). Print dogfood (archive, named-page, impersonation, render) at e385bd27cf -> 3 files passed, 1 skipped; 17 passed, 8 skipped (render needs a built console: NOT MEASURED); head adds only a main merge (one changeset, one skills eval json), no print code. Review ablations re-run via ablation-replace.mjs, each restored to the HEAD blob with git diff HEAD empty: (1) sendPdf replaced by a 201 JSON answer -> 4 failed / 139 passed (3 print-routes, 1 print-door-member), matches the review; (2) files opt-in + an edit read re-added after the caller's read -> 3 failed / 140 passed in print-service.test.ts, matches the review's 3; the first attempt at (2) was a no-op refused by the tool (replacement contained the anchor) and was redone on a different anchor; (2b) an edit gate against the real engine on the dogfood stack, service-print rebuilt, marker ABLATION-2B proven present in dist then absent after the restore build -> print-service-archive 5 failed / 7 passed including 'a reader who can read the invoice but may not edit it prints it' (my variant is broader than the review's 1-red one). New ablations: lone-surrogate refusal removed -> 2 red (one per suite); header builder made partial -> 1 red (pdfContentDisposition throws).",
"gates": "Local subset narrowed to this round's delta, run at head 2125d13975, exits captured before any pipe: check:nul-bytes 0, check-adr-0087-registration --base origin/main 0 (first run red at 1 on a 'FROM:' line whose operand was an object literal; rephrased as a FROM -> TO label line, re-run 0), check-changeset-no-major 0, check-empty-changeset 0, check:changeset-fixed 0, check:doc-authoring 0, check:i18n-coverage 0, check:route-ledger-census 0, check:system-context-census 0, check:route-envelope 0, check:issue-citations 0, check-issue-citations 0, check-closing-keyword-parity 0, check:keyed-text-bounds 0, check:examples-live-imports 0, check:test-source-alias 0, check:doc-anchors 0, docs-audit check-affected-docs 0, check-drift-comment 0, check-doc-route-spelling --advisory 0, check:error-status-conformance 0, check:engine-double-contract 0, check:docs-spec-enumerations 0; check:published-readme-exports exit 3 PREREQUISITE NOT MET (client-react, scenarios, service-segmenter, studio unbuilt) = NOT MEASURED. dispatch-gates --ran: 115 of 139 derived families unrun locally = declared narrowing, left to CI. PR check-runs at 2125d13975 not yet read (pushed this round): NOT MEASURED, CI is the reading.",
"mcp_calls": "0",
"api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/38894/comments (this report, via post-stamped). git push x2 to claude/issue-38894-print-download-only (e385bd27cf, 2125d13975; not REST). PR body NOT patched (seat's).",
"classifier_refusals": [],
"open_questions": [
{
"question": "Unchanged and still with the maintainer: how a declared type:'api' action delivers a file download (options A-D in the PR body and the earlier report). This round does not choose one.",
"options": [
"A REST action door relays a 2xx Content-Disposition: attachment answer byte for byte; console saves the blob",
"B spec-level download declaration on the action",
"C GET print route opened as type:'url'",
"D base64 JSON answer"
],
"recommendation": "A, as before; note Content-Disposition is not in DEFAULT_CORS_EXPOSE_HEADERS"
},
{
"question": "The runtime route-ledger.ts note change ships in @objectstack/runtime, which the changeset frontmatter does not name. It is in the fixed group with service-print, so the patch bump moves it. Add '@objectstack/runtime': patch explicitly?",
"options": [
"A leave as is (fixed group)",
"B add the runtime line"
],
"recommendation": "A, because the fixed group versions them together and the note is prose"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — printPageUrl calls encodeURIComponent on object, recordId and page before the mint; a lone surrogate there would throw, but each is reached only after the page and the record were found by that exact string, so no public door reached it (no reach measured)",
"carrier: seat (review nits) · not dispatched this round: nit 1 (binary-tail payload is valid UTF-8), nit 2 (no dispatcher end-to-end PDF test), nit 4 (stale dogfood control), nit 5 (check-route-envelope.mjs comment names sendOk), nit 7; nit 3 incidentally closed (255 accepted, 256 refused now pinned); nit 6 partly (print-pages now says no declared console action delivers the download)"
]
}
Claim amendment (claim 7336726260 on this card, seat repo:objectstack@os-justin)
File surface: as claimed, plus the files PR #39076 touches beyond it, each needed for the change the PR declares and each read by the contract review (record 7340755868):
Print service:packages/services/service-print/src/{print-service-plugin,print-route-ledger,index}.ts, packages/services/service-print/package.json (the dropped service-storage dependency), and the tests beside the claimed files.
Runtime:packages/runtime/src/domains/print.ts and packages/runtime/src/route-ledger.ts (ledger notes).
Dogfood: the print dogfood files under packages/qa/dogfood/test/ and authz-conformance.matrix.ts.
Showcase:examples/app-showcase/src/{ui/actions,ui/pages/invoice-document.page,data/objects/invoice.object,system/translations/index}.ts (texts only; the action's wiring is unchanged).
check-handover.mjs --inflight over the full list names one real overlap: content/docs/permissions/system-context.mdx with #39081's claim. The PR is held for the maintainer's download-delivery ruling. Whichever of the two lands second merges origin/main and resolves that file; the others are the shared lockfile, package.json and changeset globs.
Maintainer ruling · 2026-12-02T11:30Z · on the delivery question in os-dev-report 7338187928 (open_questions[0], options A–D), explained to the maintainer in seat repo:objectstack@os-justin's session.
The maintainer, verbatim: 「38894 A」. Separately, PR #39076 was taken out of the merge queue ("39076 已经移除队列").
What is ruled (option A). A declared type: 'api' action delivers a file through the action door.
The REST action door (forwardApiAction: packages/runtime/src/action-execution.ts / action-dispatch.ts, the REST/dispatcher action route) relays, byte for byte, a 2xx answer that carries Content-Disposition: attachment, with its content type and disposition.
The MCP door keeps refusing a non-JSON answer.
The console's door client saves that answer as a download: ui/packages/app-shell/src/utils/apiActionDoor.ts and its callers useConsoleActionRuntime.tsx and RecordDetailView.tsx.
No new authorable key, so options B and C are not taken. No base64 relay, so option D is not taken.
Consequences, stated for the record.
This widens the action door's answer set (Clause-②: yes (widening)), so it owes a review by surface.
The showcase GenerateInvoicePdfAction and HotCRM's Print Quote stop answering 502 once both halves are on main.
Claim: PM loop round 2 (the delivery half; the service half is PR #39076, held out of the queue)
Session: session_01QSeKYnrQ7UMtHofKQVjcH2
Thread session: session_01QSeKYpEYuQLqepCv5Ubf9g
Account: os-justin
Branch: claude/issue-38894-action-door-download
Worktree: objectstack-issue-38894-door (in the thread's container)
Domain: domain:server
Seat: repo:objectstack@os-justin
File surface: packages/runtime/src/action-execution.ts, packages/runtime/src/action-dispatch.ts, the REST/dispatcher action-route file the dev names, and tests beside them; ui/packages/app-shell/src/utils/apiActionDoor.ts, ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx, and tests beside them; the spec declaration of the action door's answer, only if one exists; content/docs/ui/print-pages.mdx and the action-door docs page; new conformance or dogfood test files named for #38894; the changeset (stop on breach; explain in the report). ⛔ Not ui/packages/app-shell/src/views/RecordDetailView.tsx (#39083's claim).
Container & model: L, mode:cloud (runtime plus the ui workspace; one card one container, the seat container already runs a build-heavy dev), model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier), effort: high
Clause-②: yes (widening)
Metadata-protocol: none
Ruling-ref: 7344041246 — maintainer 「38894 A」 on the question in 7338187928
Responsibility: the REST action door (forwardApiAction, packages/runtime/src/action-execution.ts ~2187–2351) turns a 2xx non-JSON target answer into its own 502, and the console door client (apiActionDoor.ts) reads JSON only | the print route answers the PDF itself once PR #39076 lands | apps with a declared type: 'api' print action (showcase GenerateInvoicePdfAction, HotCRM Print Quote)
Thread-read: 7344041246
Premise: holds (origin/main, 2026-12-02T11:32Z: the 502 rule is at action-execution.ts:2187, :2267, :2351; sendApiActionThroughDoor lives in ui/packages/app-shell/src/utils/apiActionDoor.ts)
Serial constraints cleared: check-handover --inflight (2026-12-02T11:32Z) names #39083 on RecordDetailView.tsx, which is excluded from this surface; the dev stops and reports if the fix needs it. It also names #39084 on a bare index.ts, which is not on this surface. Landing order: this half lands before PR #39076.
{
"issue": 38894,
"status": "done",
"branch": "claude/issue-38894-action-door-download",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39141",
"head_sha": "aac199fe693633751266108703bbf3dfb68e1125",
"session": "session_01QSeKYpEYuQLqepCv5Ubf9g",
"served_tier": "opus, effort high (get_session); matches the dispatch tier",
"premise_still_valid": true,
"summary": "Implemented the delivery half on maintainer ruling 7344041246, built from origin/main a533126f without #39076. forwardApiAction now takes answers.relayAttachment, and action-dispatch.ts passes it only for door 'rest'. With it, a target's 2xx answer that carries Content-Disposition: attachment is relayed byte for byte, as a Web Response in HttpDispatcherResult.result. It keeps the status plus Content-Type, Content-Disposition, Cache-Control and X-Content-Type-Options as the target sent them, and the credential-rotation headers keep their existing rule. The file is buffered under a 32 MiB bound (API_FORWARD_ATTACHMENT_MAX_BYTES): a declared length over it is refused unread, a counted body is cancelled once it passes, and over the bound answers the door's 502. Every other non-JSON 2xx, MCP run_action, and the host door dispatchAction keep the 502. The new helpers live in the sibling module action-forward-attachment.ts, because action-execution.ts is over 1,000 lines. The standalone server's four /actions mounts in dispatcher-plugin.ts now write a Response via sendWebResponse, after the security headers; createHonoApp already passed a Response through. In the console, apiActionDoor.ts saves a door file answer as a download (Blob, object URL, anchor download, click, revoke). The name comes from filename* (RFC 5987), then filename, then 'download'. If Content-Disposition is unreadable cross-origin, a non-JSON door 2xx counts as the relayed file. The direct-fetch road in useConsoleActionRuntime.tsx now saves an attachment instead of reporting an empty success. RecordDetailView.tsx was not edited; its door road gets the fix through the shared functions. The spec does not declare the door's answer set, so no spec change.",
"tests": "Head aac199fe.\n- Runtime api-action-forward.test.ts: 100 passed (9 new in describe [#38894]). It covers byte and header relay, 201 plus rotation, the inline and bare PDF 502, non-2xx with an attachment header as the refusal, the 409/403 refused caller with the target never called, the MCP 502, and the bound.\n- http-conformance action-door-attachment-38894.conformance.test.ts: 6 passed, on HonoServerPlugin + createDispatcherPlugin over a socket and on createHonoApp. Its typecheck exits 0, after rebuilding plugin-audit, whose stale dist lacked .d.ts.\n- app-shell useConsoleActionRuntime.apiActionDoor-27611.test.tsx: 20 passed (6 new). type-check (source and tsconfig.test.json) exits 0. runtime tsc --noEmit exits 0.\n- Ablations via ablation-replace.mjs, each restored to its HEAD blob with git diff HEAD empty:\n 1. relayAttachment:false at the REST door: 3 failed / 97 passed.\n 2. The dispatcher-plugin Response branch removed, runtime rebuilt, marker ABLATION_38894_T proven in dist: the self-hosted attachment pin failed, 1 failed / 5 passed. After the restore build, the marker is proven absent from dist with a clean tree.\n 3. The console isDoorFileAnswer branch disabled: 3 failed / 17 passed.\n- The first attempt at ablation 2 was a no-op: the tool refused it because the replacement contained the anchor. It was redone on another anchor.",
"gates": "Local, exits captured before any pipe.\n- dispatch-gates --commands (no paths, tree 1c34291d) derived 108 families. dispatch-gates --ran: 108 derived, 107 run, 1 NOT-MEASURED, 0 UNRUN, exit 0.\n- NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET (27 packages without dist). CI reads it.\n- Reruns to exit 0:\n - check-plugin-teardown-shape --self-test (exit 3 on a shallow fixture commit, fetched);\n - spec check:skill-examples (exit 3, client-react unbuilt, built);\n - ui vitest scripts/ (124 at my own 280 s cap; 172 files passed);\n - check:query-options-erasure and check:type-check-debt (124 at my cap, rerun to 0);\n - check:slot-lookup (exit 1, a real finding: an 'as any' around the conformance rig's slot lookup; fixed in aac199fe, then 0).\n- Rerun at the final content, all exit 0: cross-package-test-inputs, test-source-alias, nul-bytes, swallow-census-controls, refd-timer-probe, undeclared-dep-imports, route-envelope, issue-citations, doc-authoring, error-status-conformance, wildcard-fallthrough, engine-double-contract.\n- eslint --no-inline-config on the changed TS files: 0 errors.\n- CI on #39141 head aac199fe, read once after open: 27 check-runs, 20 in_progress, 7 skipped (opt-in and queue jobs), none failed. NOT MEASURED at report time; the seat reads convergence. mergeable_state blocked (draft), not dirty.",
"line_budget": "12 files, +930 / -26. Non-test source: runtime +244/-19, app-shell +141/-3. Tests +517/-3. Docs and changeset +28/-1. Under the 3,000-line human-review line.",
"files_changed": [
".changeset/38894-action-door-delivers-attachment.md",
"content/docs/ui/actions.mdx",
"content/docs/ui/print-pages.mdx",
"packages/qa/http-conformance/src/action-door-attachment-38894.conformance.test.ts",
"packages/runtime/src/action-dispatch.ts",
"packages/runtime/src/action-execution.ts",
"packages/runtime/src/action-forward-attachment.ts",
"packages/runtime/src/dispatcher-plugin.ts",
"packages/runtime/src/domains/api-action-forward.test.ts",
"ui/packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime.apiActionDoor-27611.test.tsx",
"ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx",
"ui/packages/app-shell/src/utils/apiActionDoor.ts"
],
"surface_breach": "packages/runtime/src/action-forward-attachment.ts is a new sibling module that the claimed surface did not list. os-dev rule 3 forces it: action-execution.ts is 7,686 lines, so new helpers go in a sibling file and the original only gains calls. packages/runtime/src/dispatcher-plugin.ts is the REST/dispatcher action-route file this report names: its four /actions mounts. No other breach. RecordDetailView.tsx and packages/spec were not touched.",
"deviations": "- The card-thread checkout was the primary clone. The worktree guard hook refused edits there, so I moved it to a detached HEAD, deleted the local platform branch (it still pointed at a533126f, with no commits), and built the worktree with dev-worktree.sh --no-probe on the same branch name from origin/main.\n- Two foreground commands outran the ~600 s ceiling, and the harness moved them to the background: the gate batch for lines 86-108 (each command capped at 280 s) and one pnpm check:slot-lookup run (missing timeout). Both were read only after they completed, never polled.\n- My first ui closure build passed --concurrency=2 through to tsup and failed (exit 1); it was rerun with --workspace-concurrency=2, exit 0.\n- Commits carry the AGENTS.md model-free trailer pair, not the harness's model-named Co-Authored-By line.\n- No showcase rig was added (open_questions[1]).",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay dispatches.\n1. pr_create, run 46892106969: POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/39141/assignees [os-justin]. The read-back was byte-identical: 12322 bytes.\n2. This os-dev-report, via post-stamped: POST /repos/objectstack-ai/objectstack/issues/38894/comments.\ngit push to claude/issue-38894-action-door-download (6 pushes) is not REST. No labels were written: a changeset exists.",
"classifier_refusals": [
{
"command": "rm -f $D/rerun.tsv; for c in ...; do timeout 280 bash -c \"$c\" ...; done",
"reason": "built-in safety check: a shell -c script that runs rm could not be checked for dangerous removals",
"mode": "cloud",
"human_turn_before": "no",
"resend": "passed — rerun without rm, truncating the file from python instead"
}
],
"open_questions": [
{
"question": "Once both halves land, PR #39076's texts become false: its changeset section 'Apps that declare a print action — the gap until console download delivery lands', the showcase GenerateInvoicePdfAction jsdoc paragraph 'This action does not deliver the PDF yet', and its print-pages.mdx paragraph saying the doors relay JSON answers only. #39076 must also resolve a conflict in print-pages.mdx's 'Print from the console' section when it merges main. The showcase successMessage ('The invoice was printed to PDF.' / '发票已打印为 PDF。') stays true, so it was not touched.",
"options": [
"A — #39076's fix round after this lands rewrites those three texts and resolves the conflict",
"B — leave them for a docs-only follow-up"
],
"recommendation": "A, because #39076 must merge main anyway (landing order) and those sentences would ship false otherwise"
},
{
"question": "The showcase rig was not added. The GenerateInvoicePdfAction-through-the-door assertion holds only once #39076 is on main (on this branch the print route answers 201 JSON), and it needs a print engine (Chromium plus a built console) that the print dogfood render suite itself skips locally.",
"options": [
"A — #39076, after it merges this, adds a dogfood case that runs the showcase action through /api/v1/actions and asserts application/pdf + attachment",
"B — no end-to-end print rig; rely on the transport conformance pins here plus #39076's route pins"
],
"recommendation": "A, on #39076's branch where both halves meet"
},
{
"question": "RecordDetailView.tsx lines 2198-2206 (on main a533126f), its own direct fetch for an undeclared or off-origin api click on a record page, still reads a file answer as res.json() -> {} and reports success with no file. The door road there is fixed through the shared functions. The file is claimed by #39083.",
"options": [
"A — after #39083 lands, a one-hunk follow-up inserts the same 'if (isAttachmentAnswer(res)) { await saveAttachmentAnswer(res); ... }' before line 2204",
"B — #39083's owner folds it in"
],
"recommendation": "A, a 6-line change mirroring useConsoleActionRuntime.tsx"
},
{
"question": "Content-Disposition is not in DEFAULT_CORS_EXPOSE_HEADERS. A cross-origin console cannot read the file name and falls back to the non-JSON content-type rule and the name 'download'.",
"options": [
"A — expose Content-Disposition in the CORS defaults (its own card; security-adjacent header policy)",
"B — accept the fallback name for cross-origin consoles"
],
"recommendation": "A as its own card; same-origin consoles (the default) are unaffected"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — a file answer gives resultDialog / onSuccess.navigate ${result.*} / outcomeMessages no result (data undefined); the action.zod describes say 'the target call's response body', which a file is not. Recorded in the PR's Acceptance notes."
]
}
{
"issue": 38894,
"status": "done",
"round": "fix round on contract review 7348470636 (FAIL at 8a889082)",
"branch": "claude/issue-38894-action-door-download",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39141",
"head_sha": "291a2c6f9eb7a07f3ab03cd2896e9cf78813ecd7",
"session": "session_01QSeKYpEYuQLqepCv5Ubf9g",
"served_tier": "opus, effort high; matches the dispatch tier",
"premise_still_valid": true,
"summary": "M1 took the review's first fix, (a). The REST door relays only isRelayableAttachmentAnswer: a 2xx with a body, a Content-Disposition of type attachment, and a non-JSON Content-Type (application/json and +json excluded). So a JSON answer under attachment, such as the data export's format=json, keeps the JSON path exactly as on main. The console's isAttachmentAnswer applies the same rule, so a JSON answer is read as data on both roads. S2 took the first option: 204/205 are decided before the audit row, never reach the relay, and take main's JSON path (null body -> 200 success), so nothing throws. The console never saves a 204/205 either. S1: changeset line 16 now says every non-2xx answer is the target's refusal under its own status. M1 texts: the changeset, the forwardApiAction docblock and the actions.mdx api row now say non-JSON attachment, and that a JSON answer stays JSON whatever its disposition. Clause-② stays yes (widening). N1: code is asserted on the over-bound 502 (EXTERNAL_SERVICE_ERROR) and on the conformance 403 (PERMISSION_DENIED). N2: the ordering claim is dropped, because the default security headers set no Cache-Control. The self-hosted conformance boot now runs the default security headers and pins that CSP and X-Frame-Options ride the relayed file. N3: the object URL is revoked OBJECT_URL_REVOKE_DELAY_MS (10 s) after the click, pinned with fake timers. N4: one copy is removed (the read's own buffer is the Response body); sendWebResponse's two copies remain, because that file is outside the surface. N5: print-pages.mdx now says the route above answers JSON, which the action reads as data, and states the file relay as the door's general behaviour. The PR body was updated (issue_patch, signed trailer).",
"tests": "Head 291a2c6f.\n- runtime api-action-forward.test.ts: 103 passed (3 new). Runtime typecheck (tsc + check:test-typecheck): exit 0.\n- http-conformance action-door-attachment-38894.conformance.test.ts: 8 passed (the JSON-under-attachment case on both transports is new); its typecheck: exit 0.\n- app-shell door test: 21 passed (1 new; the revoke pin was reworked). type-check: exit 0.\n- eslint --no-inline-config: 0 errors and no warning on an added line.\n- Fix-round ablations via ablation-replace.mjs, each restored to its HEAD blob with git diff HEAD empty:\n 1. The runtime JSON guard removed: 2 failed / 101 passed.\n 2. The runtime null-body guard removed: 2 failed / 101 passed; the 204 pin fails with TypeError: Response constructor: Invalid response status code 204.\n 3. The console JSON guard removed: 1 failed / 20 passed.\n- Disclosed: the first run of ablation 2 had a JSON content type on the 204 pin, so the JSON guard masked it (1 failed, the table only). The pin now uses a PDF type, and the run in item 2 is the reading.",
"gates": "At 291a2c6f, dispatch-gates --commands derived 108 families (the same set as round 1). --ran: 108 derived, 107 run, 1 NOT-MEASURED, 0 UNRUN, exit 0.\n- NOT MEASURED: check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET (workspace packages unbuilt). CI reads it.\n- pnpm --dir ui exec vitest run scripts/ was OOM-killed (exit 1) while sharing the box, then rerun alone: exit 0, 172 files passed.\n- CI on 291a2c6f at report time: 56 success, 13 skipped, 2 queued, 0 failed. mergeable_state unstable (checks pending), not dirty. Convergence is the seat's read.",
"line_budget": "This round: +110 / -28 over 8 files. PR total: 12 files, about +1040 / -55.",
"files_changed_this_round": [
".changeset/38894-action-door-delivers-attachment.md",
"content/docs/ui/actions.mdx",
"content/docs/ui/print-pages.mdx",
"packages/qa/http-conformance/src/action-door-attachment-38894.conformance.test.ts",
"packages/runtime/src/action-execution.ts",
"packages/runtime/src/action-forward-attachment.ts",
"packages/runtime/src/dispatcher-plugin.ts",
"packages/runtime/src/domains/api-action-forward.test.ts",
"ui/packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime.apiActionDoor-27611.test.tsx",
"ui/packages/app-shell/src/utils/apiActionDoor.ts"
],
"deviations": "- dev-worktree.sh refused because the local branch existed after the round-1 worktree removal (it sat at the remote tip 8a889082). I attached a worktree to it with git worktree add; main was not merged.\n- One ablation pin was weaker than intended on its first run (see tests).\n- One OOM kill on a gate, rerun alone.",
"mcp_calls": "0",
"api_writes": "2 this round, both via the fleet-write relay. (1) issue_patch on #39141's body, run 46918358390, 14050 bytes read back identical. (2) This report, post-stamped: POST /issues/38894/comments. Six git pushes. Round 1's two writes are not recounted.",
"classifier_refusals": [],
"open_questions": [
{
"question": "N4: the standalone transport still copies a relayed file twice in sendWebResponse (forwarded-door-fallback.ts:105). That file is outside this card's surface.",
"options": [
"A leave as is (32 MiB bound, about 3x transient)",
"B a follow-up that streams or reuses the buffer in sendWebResponse"
],
"recommendation": "A; the bound caps it, and the JSON path's unbounded res.text() is the larger exposure"
}
],
"security_findings": "none",
"out_of_scope_findings": []
}
{
"issue": 38894,
"status": "done",
"round": "merge origin/main into PR #39076 after PR #39141 merged (0fff9ae00b), and reconcile the texts",
"branch": "claude/issue-38894-print-download-only",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39076",
"head_sha": "3510e8a666f1249b078b59c568dffee19e06831d",
"merge_commit": "a0a9d69912b68e62fc6aabfecfa6e2dd972be69d",
"session": "session_01QSeKYnxn6m1nQaRrNvdiLw",
"served_tier": "opus (get_session: session_context.model opus, last_served_model claude-opus-5-5), effort high; matches the dispatch tier",
"premise_still_valid": true,
"summary": "K was 39 (landing-k MERGE MAIN FIRST), so I merged origin/main with scripts/pm/os-regen-merge.sh. The merge is a0a9d699: no conflict, no os-regen path taken from main. After a build, spec check:generated reported all 14 generated artifacts up to date, so there is no regeneration commit. The PR's delta against main is the same 28 files as before. #39141's implementation body is intact at the head: isRelayableAttachmentAnswer and saveAttachmentAnswer have the same counts at origin/main and HEAD. Reconciliation commit 3510e8a6: every text that described the 502 window now says what happens on main: a declared type:'api' print action sent through the REST action door delivers the PDF with its Content-Disposition: attachment, and the console saves it. Each text still states that MCP run_action answers a file 502. Texts changed: the changeset (banner, the 'Apps that declare a print action' section and its FROM -> TO), print-pages.mdx (the stale 502 paragraph and main's now-wrong 'the route above answers JSON' paragraph, merged into one), both route-ledger notes, the print-service-plugin jsdoc and the showcase action's jsdoc. One end-to-end pin was added to #39141's conformance suite, on both transports. It composes the real PrintServicePlugin, whose route is mounted for real. A declared print action shaped like the showcase's (recordIdParam plus bodyExtra) goes through POST /api/v1/actions/... and answers 200 with the PDF bytes and the route's own Content-Disposition: attachment, Content-Type, no-store and nosniff. The pin also checks that the print service received exactly the assembled request, as the caller. Only printRecordToPdf is replaced, because no browser runs in that suite. The PR body was patched through the relay (issue_patch, signed trailer): the first line says the delivery half landed, the speed-read bullets say the 502 window is closed, the open-decision note became 'decided and landed', and the readings are at the new head. No code behaviour changed. The PR is not draft, and auto-merge is null; I touched neither.",
"files_changed_this_round": [
".changeset/38894-print-downloads-no-attachment.md (+5/-5)",
"content/docs/ui/print-pages.mdx (+7/-15)",
"examples/app-showcase/src/ui/actions/index.ts (+4/-5, jsdoc)",
"packages/qa/http-conformance/src/action-door-attachment-38894.conformance.test.ts (+64/-2)",
"packages/runtime/src/route-ledger.ts (+1/-1, note)",
"packages/services/service-print/src/print-route-ledger.ts (+1/-1, note)",
"packages/services/service-print/src/print-service-plugin.ts (+4/-4, jsdoc)"
],
"line_budget": "Non-merge delta (a0a9d699..3510e8a6): 7 files, +86 / -33. PR total vs main: 29 files.",
"tests": "At 3510e8a6, under os-verify-lock:\n- http-conformance action-door-attachment-38894 + hono-print-door: 2 files / 14 passed. The 2 new tests (one per transport) are 'a declared print action answers the print route's PDF as an attachment'; the verbose run shows the self-hosted case passed and the print door mounted.\n- http-conformance typecheck (tsc + check:test-typecheck): exit 0.\n- service-print vitest: 9 files / 143 passed; typecheck exit 0.\n- runtime route-ledger.conformance + own-door-bridge + api-action-forward: 3 files / 193 passed.\n- showcase test/invoice-generate-pdf-action.test.ts: 4 passed. The first run failed to load because @objectstack/connector-mcp was unbuilt; it passed after building the showcase's dependency closure.\n- spec check:generated: all 14 up to date.\n- No ablation: the reconciliation changes no tested behaviour (texts plus one added pin).",
"gates": "dispatch-gates --commands at 3510e8a6: 139 families derived from the change set (29 paths vs merge base 0fff9ae00). Local subset, narrowed to this round's delta (changeset, docs, ledgers, test file): 24 commands, all exit 0. They were check-adr-0087-registration, check-empty-changeset, check-changeset-no-major, changeset-fixed, doc-authoring, doc-anchors, docs-section-name, doc-route-spelling --advisory, issue-citations (both forms), doc-frontmatter, docs-single-h1, docs-redirects, check-affected-docs, route-ledger-census, route-envelope, cross-package-test-inputs, test-source-alias, undeclared-dep-imports, refd-timer-probe, nul-bytes, role-word, closed-ceremony-text and examples-live-imports. --ran: 139 derived, 24 run, 0 NOT-MEASURED, 115 UNRUN. That is a declared narrowing, read by CI below.\nCI at 3510e8a6 (check-runs, read 17:20Z): 81 runs, 70 success, 11 skipped, 0 failed, 0 pending. Green among them: Lint & Repo Gates, Build Core, Test Core and all 12 shards, every Test UI shard, Lint UI, Build & E2E UI, Live E2E UI, Governed Surface Queue Guard, both Check Changeset runs, Dogfood Regression Gate, and Dogfood battery (opt-in) with shards 1/3, 2/3 and 3/3. mergeable_state clean.",
"mcp_calls": "0",
"api_writes": "3 relay strokes. (1) issue_patch on #39076's body via fleet-write/dispatch.mjs, request fw-20261202T164102Z-08c419, run 46928989613 success. The dispatcher exited 6 (UNCONFIRMED within 90 s) because the Actions queue was backed up; I did not resend, and the read-back is identical to the sent body. (2) This report via post-stamped.mjs, request fw-20261202T172122Z-53a4a9: no run, nothing written. (3) The resend of this report. Plus 2 git pushes (a0a9d699, 3510e8a6).",
"classifier_refusals": [],
"open_questions": [
{
"question": "With #39141 merged, this PR is the last half of the card. Its first line still reads 'Part of #38894', which is the landing record's spelling. Should it close the card on merge?",
"options": ["A switch the first line to 'Fixes #38894' (seat's issue_patch)", "B keep 'Part of' and close the card by hand after landing"],
"recommendation": "A, because no half of the ruling stays open once this lands; it is the seat's call, so I left the line as it was."
}
],
"security_findings": "none",
"out_of_scope_findings": [],
"deviations": "- dev-worktree.sh would refuse, because the local branch already existed in the shared checkout. I detached the shared checkout and attached ../objectstack-issue-38894 to the branch with git worktree add.\n- The first build (turbo, under os-verify-lock) ran with run_in_background instead of in the foreground. It completed with exit 0 (50 tasks), and its output was read before anything depended on it.\n- Observed, not acted on: an APPROVED review by os-zhuang at a0a9d699, the merge commit (pr-state). The PR was already out of draft when this round started; I did not change draft, auto-merge or the queue.\n- The conformance file is #39141's, outside this card's claimed surface; the dispatch named it for the pin.\n- This report's first relay request, fw-20261202T172122Z-53a4a9 (17:21Z, HTTP 204), never got a run in 60 minutes while later requests ran, and the card showed no comment from it. I resent once after reading both. If the first request ever lands, it is a duplicate of this comment."
}
Both are merged, so the card's ask is done: a print no longer attaches an unmarked PDF to the record.
Follow-ups: #39179 (review follow-ups of PR #39076, nits 1–12). It includes item 8, the one console road that still reports success with no file, so closing this card drops nothing.
Status: assignee cleared; the card closes as completed in the next stroke, which also takes pm:dispatched off.
Activity
objectstack-fleet commentedon Dec 1, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: first-touch · grade:
area:workflow· Feature · p2 · reach: any app whose automation must react to a print (HotCRMquote_print_presentedtoday, on a temporary file-name fix) · evidence: measured (hotcrm#2600) ·pm:queue.area:businessis not a North Star area; the ask is an event/marker an automation keys on, so it maps toarea:workflow.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Decision needed · 2026-12-01T16:03Z · the card asks for a print-origin signal and leaves its form open; the form is a new platform contract, so it is the maintainer's choice before dispatch. ⛔ Not a claim.
维护者速读
sys_attachment加两个字段:来源(source,打印时写print)和打印页名(print_page)。应用的流程照现在的方式在附件新增时触发,条件改成source == 'print' && print_page == '…',不再依赖文件名。Measured (origin/main)
sys_attachment(packages/platform-objects/src/audit/sys-attachment.object.ts) hasparent_object,parent_id,file_id,file_name,mime_type,size,uploaded_by,description, timestamps — no origin field.service-printattaches through the ordinary attach verb (print-service.ts~393,assertMayAttach), so a print row is indistinguishable from an upload.sys_attachmentinsert with afile_namecondition (hotcrmquote-print-presented.flow.ts, per the card), so a record-triggered flow onsys_attachmentis the shape apps use today: option A changes only the condition it keys on.Options
sys_attachment.source(select,printset by the print service; absent/uploadotherwise) andprint_page(the print page name). The existing insert-triggered flow keys on them; the file name is free to change.Four axes: Real need — one named consumer measured broken (HotCRM, on a temporary file-name fix); the pattern (presented / issued / sent on print) is general. Long-term soundness — A records provenance as data on the row (auditable, reusable by other attachment producers later); B adds a capability kind to the trigger protocol. Keeps AI from writing it wrong — A gives a declared select an app condition can be checked against at publish; C leaves a string convention an author must restate. Startup focus — A is the smallest declared surface that removes the convention; B widens the trigger vocabulary for one event.
Governing text: AGENTS.md contract-first (a new platform-object field is a declared surface: spec, platform-objects, docs together);
Clause-②: yes (widening)for A or B.objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Maintainer ruling · 2026-12-02T06:08Z · on the decision 7316983599 and the follow-up survey in seat repo:objectstack@os-justin's session (Salesforce, Dynamics 365, Odoo, NetSuite, Zoho and ServiceNow: most generate-PDF actions download by default and archive only on an explicit "save to record").
The maintainer, verbatim: 「38894 改成下载。而且也不需要来源标记了是吗」 — answered yes in the session: with no attachment written, there is nothing to mark.
Ruled: the record-page "generate PDF" action downloads the PDF and writes no attachment.
printRecordToFile/POST /api/v1/print/recordsstop archiving through the file-attachments service; the rendered PDF goes back to the caller as the download. Nosource/print_pagemarker (options A and D are not taken). This supersedes the archive half of #22270 (card ④ of #8346's ruling B′, "attaches the archived PDF to the record").Consequences, stated for the record:
quote_print_presentedflow keys on the attachment insert a print wrote; after this change a print writes no attachment, so that flow no longer fires on a print at all (today it fires only on the temporary file-name match). Moving a quote to Presented becomes an explicit act in HotCRM (an action or a field the user sets), not a side effect of printing — the consumer cards this on its side.printRecordToFile's name andPrintedRecordFile(which returnsattachmentId) change meaning: a contract change on a published service, so the build owes a contract-tier review, a changeset that says the archive is gone, and the print docs (content/docs/ui/print-pages.mdx) rewritten.The card's ask changes from "a print-origin signal" to "generate PDF downloads, no archive"; the seat claims and dispatches it on this ruling.
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Claim: PM loop round 1
Session:
session_01QSeKYnrQ7UMtHofKQVjcH2Account:
os-justinBranch:
claude/issue-38894-print-download-onlyWorktree:
objectstack-issue-38894Domain:
domain:serverSeat:
repo:objectstack@os-justinFile surface:
packages/services/service-print/src/print-service.ts,packages/services/service-print/src/print-routes.ts,packages/services/service-print/src/print-door-member.ts,packages/services/service-print/README.md,packages/spec/src/contracts/print-door-service.ts(reason: only if the record-print result type lives there),content/docs/ui/print-pages.mdx, the console's record-print action wherever it reads the result (reason: the dev names the file; the download replaces the attachment toast) (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier),effort: highClause-②: yes (narrowing)
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7336681739
Premise: corrected 7336681739 (the maintainer ruled the print writes no attachment at all, so no print-origin marker is built; the record-page print downloads the PDF)
Serial constraints cleared: no in-flight claim names
packages/services/service-print(check-handover --inflight, 2026-12-02T06:10Z).objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
os-dev-report
{ "issue": 38894, "status": "needs_decision", "branch": "claude/issue-38894-print-download-only", "pr": "https://github.com/objectstack-ai/objectstack/pull/39076", "head_sha": "f184414b5bfd71df55b27fe420503e92945df75b", "session": "session_01QSeKYnrQ7UMtHofKQVjcH2", "premise_still_valid": true, "summary": "Implemented per maintainer ruling 7336681739. The record print now downloads the PDF and writes no attachment and no source/print_page marker. IPrintService.printRecordToFile became printRecordToPdf and returns {pdf,size,filename,contentType}. assertMayAttach, attachFileAs, the FILES_DISABLED refusal and the service-storage dependency were removed. The READ check (plus re-probe) is the whole permission, so a reader who cannot edit can print. POST /api/v1/print/records and the print door member answer 200 application/pdf. Response headers: Content-Disposition attachment with an ASCII fallback plus RFC 5987 filename*, Cache-Control no-store, nosniff. Filenames over 255 characters are refused. The README, print-pages.mdx, the spec/runtime jsdoc and the authz matrix row now say download. A BREAKING changeset (fix!, FROM/TO, the HotCRM quote_print_presented line, one ADR-0087 runtime-export-retired marker) is included. Open decision: the action doors relay JSON only (a non-JSON 2xx gives 502). So a declared type:'api' print action gets a 502 until the console delivery path is chosen. This affects the showcase GenerateInvoicePdfAction (left unchanged) and the HotCRM Print Quote action. The route works for a browser that calls it directly. No console code was changed, because the smallest console handling depends on that choice. Fixes vs Part of: the PR body says Fixes #38894. If the seat splits the console-delivery half into its own card, switch it to Part of #38894.", "tests": "At f184414b5b:\n- service-print pnpm test: 9 files / 139 passed. typecheck: exit 0.\n- runtime own-door-bridge.test.ts: 77 passed.\n- http-conformance hono-print-door.conformance.test.ts: 4 passed.\n- dogfood print-service-archive + named-page + door-impersonation: 3 files / 17 passed. They cover:\n - read-not-edit auditor prints;\n - nothing is written to sys_attachment or sys_file;\n - two prints write nothing;\n - an attacher prints and writes nothing;\n - an RLS-hidden reader is refused RECORD_NOT_FOUND/404.\n- dogfood print-service-render: SKIPPED (no built console), NOT MEASURED locally.\n- dogfood typecheck: exit 0 (--listFiles includes the changed tests).\n- Unit tests also cover the 200 PDF headers, the non-ASCII filename case, and that the door member is byte-identical to the mount.\n- Ablation 1 (sendPdf reverted to 201 JSON): rebuilt, mutated on disk; 4 failed in print-routes/door-member; restored to the HEAD blob.\n- Ablation 2 (files/edit gate re-added): 5 failed; restored.\n- The first ablation-2 attempt was a disclosed no-op: the replacement contained the anchor, so the tool refused. It was rerun with a marked variant.", "gates": "Local:\n- dispatch-gates --commands (no paths) derived 135 families. All exited 0, with the exit code captured before any pipe. --ran reconciled all 135.\n- Three families were first NOT MEASURED, then rerun green:\n - check:skill-examples: exit 3, prereq; client-react built; then exit 0.\n - check:dual-build-cjs-loads: exit 3, prereq; studio/scenarios/service-segmenter/service-print built; then exit 0.\n - check:query-options-erasure: exit 124 from my own 280 s timeout; rerun at 560 s, exit 0.\n- eslint --no-inline-config on the changed TS files: exit 0.\n- check-platform-checklist --changed-from origin/main: exit 0.\n- check-nul-bytes / control-byte scan: clean.\n- Not run locally:\n - runtime typecheck (comment-only change);\n - check:skill-frame-freshness and check:dev-prereqs (not triggered);\n - test:repo (CI-owned).\nCI on PR #39076 head f184414b5b, read once at open: 28 check-runs, all in_progress or skipped, none concluded yet. NOT MEASURED at report time; the convergence read belongs to the seat.\nDogfood battery (opt-in) is skipped until the seat applies needs:dogfood-battery: the title carries ! and Clause-② has the (narrowing) arm.", "files_touched": [ ".changeset/38894-print-downloads-no-attachment.md", "content/docs/ui/print-pages.mdx", "packages/qa/dogfood/test/authz-conformance.matrix.ts", "packages/qa/dogfood/test/print-door-impersonation.dogfood.test.ts", "packages/qa/dogfood/test/print-service-archive.dogfood.test.ts", "packages/qa/dogfood/test/print-service-named-page.dogfood.test.ts", "packages/qa/dogfood/test/print-service-render.dogfood.test.ts", "packages/runtime/src/domains/print.ts", "packages/services/service-print/README.md", "packages/services/service-print/package.json", "packages/services/service-print/src/index.ts", "packages/services/service-print/src/print-door-member.test.ts", "packages/services/service-print/src/print-routes.test.ts", "packages/services/service-print/src/print-routes.ts", "packages/services/service-print/src/print-service-plugin.revoke-log.test.ts", "packages/services/service-print/src/print-service-plugin.test.ts", "packages/services/service-print/src/print-service-plugin.ts", "packages/services/service-print/src/print-service.test.ts", "packages/services/service-print/src/print-service.ts", "packages/spec/src/contracts/print-door-service.ts", "pnpm-lock.yaml" ], "surface_breach": "Files outside the claimed surface, each forced by the change:\n- print-service-plugin.ts and its two tests (attachments wiring removed);\n- package.json and pnpm-lock.yaml (service-storage dependency dropped);\n- runtime domains/print.ts (jsdoc only);\n- the dogfood authz-conformance matrix row;\n- four dogfood print tests (they asserted the old attachment);\n- the changeset.\nThe claimed print-door-member.ts needed no source change; only its test changed.\nThe spec print-door-service.ts was edited for jsdoc only, although the result type lives in service-print and not in spec.\nNo console file was touched: see open_questions.", "deviations": "- The dogfood closure build ran past the ~600 s foreground ceiling, and the harness moved it to the background. It finished exit 0, held the lock 380 s and waited 274 s. That reading was taken after it completed, not polled.\n- One no-op ablation attempt (disclosed in tests).\n- My own 280 s timeout produced a 124 on check:query-options-erasure; rerun green.\n- The pnpm install --offline lockfile refresh failed (ERR_PNPM_NO_OFFLINE_META). Used pnpm install --lockfile-only instead (3 lines removed).", "mcp_calls": "0", "api_writes": "2 — two fleet-write relay dispatches:\n1. pr_create, run 46832439311. The relay sent POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /issues/39076/assignees [os-justin].\n2. This os-dev-report comment, via post-stamped: POST /repos/objectstack-ai/objectstack/issues/38894/comments.\ngit push to claude/issue-38894-print-download-only is not counted. No labels were written: a changeset exists, so no skip-changeset; needs:dogfood-battery is the seat's.", "classifier_refusals": [], "open_questions": [ { "question": "How does a declared type:'api' action deliver a file download? The REST and MCP action doors (forwardApiAction) answer 502 for a non-JSON 2xx. Since this PR, the print route answers the PDF itself, so the showcase GenerateInvoicePdfAction and HotCRM's Print Quote get a 502 through the door. The console client (ui app-shell apiActionDoor.ts sendApiActionThroughDoor / readApiActionDoorSuccess, called from useConsoleActionRuntime apiHandler and RecordDetailView) only reads a JSON success.", "options": [ "A — Widen only the REST action door: a 2xx answer carrying Content-Disposition: attachment is relayed byte for byte, and the MCP door keeps refusing. The console door client then saves the blob as a download.\n - Touches runtime action-execution/action-dispatch, the REST/dispatcher action route, ui apiActionDoor.ts and its two callers, and the showcase action's successMessage.\n - Contract widening of the action door, Clause-② widening. Medium-large; one card plus a ui-repo PR.", "B — Spec-level download declaration on the action (e.g. download: true, or a new action type) that the console reads to call the target outside the door.\n - Metadata-protocol added: authorable surface, liveness, docs and skills.\n - Largest; it also needs a runtime enforce leg.", "C — A GET print route plus type:'url' new-tab navigation, using the browser's native download with the session cookie.\n - Needs a new route with a closed query-param set.\n - Bearer-only consoles and embedded hosts get no auth on a navigation.\n - Small-medium; weaker coverage.", "D — The print answers base64 JSON so it passes through the door unchanged.\n - Contradicts the ruling's 'answer the PDF itself'.\n - About 33% size inflation, and the console must sniff the body.\n - Small but wrong shape." ], "recommendation": "A, because the action door is the one place that turns any file-producing api action into a download. It needs no new authorable key (unlike B) and keeps bearer auth (unlike C). The 502 on the showcase and HotCRM actions is the cost of shipping this PR before A lands. The seat may prefer to hold the land until A is ready, or accept the gap with the route working directly." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · the Content-Disposition builder in print-routes.ts duplicates service-storage's, which is not exported; sharing it is a possible follow-up. Noted in the PR's Acceptance notes, not filed." ] }objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
os-dev-report
{ "issue": 38894, "status": "done", "branch": "claude/issue-38894-print-download-only", "pr": "https://github.com/objectstack-ai/objectstack/pull/39076", "head_sha": "2125d139757fe3030f159474dfb3efc58741593d", "session": "session_01QSeKYnrQ7UMtHofKQVjcH2", "premise_still_valid": true, "summary": "Fix round on the failed contract review 7339311892 at f184414b5b. Code half of the ruling kept unchanged. MUST-FIX changeset: rewritten; it no longer says the record page's generate-PDF downloads, it adds an 'Apps that declare a print action' section naming the REST and MCP action doors' 502 for a non-JSON 2xx (showcase GenerateInvoicePdfAction, HotCRM Print Quote), the console direct-fetch road's success-with-no-file, the FROM -> TO for such an app, and that calling the route directly returns the PDF; BREAKING, both declaration lines, patch and the single ADR-0087 marker kept (check-adr-0087-registration exit 0). MUST-FIX PR body: NOT patched; proposed body at /tmp/claude-0/-home-user-objectstack/96353139-b75c-518e-b0e8-54f835f491d0/scratchpad/issue-38894/prbody.new.md (Part of #38894 with the open half named, speed-read bullets 1 and 3 consistent, readings at the new head, signed trailer as the last non-empty line). SHOULD-FIX lone surrogate: validateRequest refuses a request filename holding a lone UTF-16 surrogate VALIDATION_ERROR / 400 at step 3, before any mint or render, AND pdfContentDisposition is total (a lone surrogate becomes U+FFFD; safeFileBase does the same for a display value); pinned by 4 new tests, both halves ablated red. SHOULD-FIX stale texts: system-context.mdx row 47d, print-service-plugin.ts class jsdoc, the PRINT_RECORDS_ROUTE comment, print-route-ledger.ts row note, runtime route-ledger.ts print row note all corrected; print-pages.mdx also states the MCP 502, the direct-fetch silent success, and the filename refusals. SHOULD-FIX showcase: action jsdoc, successMessage, zh-CN successMessage, invoice-document.page.ts and invoice.object.ts comments corrected without touching wiring (label, target, body, enable.files unchanged). Merged origin/main twice (06d5dffb86, then 356b8744af), never force-pushed; PR still draft, auto-merge null.", "tests": "At head 2125d13975: pnpm --filter @objectstack/service-print exec vitest run --maxWorkers=2 -> 9 files / 143 passed (139 + 4 new); service-print typecheck exit 0 (tsc --listFiles counts the 9 test files). Print dogfood (archive, named-page, impersonation, render) at e385bd27cf -> 3 files passed, 1 skipped; 17 passed, 8 skipped (render needs a built console: NOT MEASURED); head adds only a main merge (one changeset, one skills eval json), no print code. Review ablations re-run via ablation-replace.mjs, each restored to the HEAD blob with git diff HEAD empty: (1) sendPdf replaced by a 201 JSON answer -> 4 failed / 139 passed (3 print-routes, 1 print-door-member), matches the review; (2) files opt-in + an edit read re-added after the caller's read -> 3 failed / 140 passed in print-service.test.ts, matches the review's 3; the first attempt at (2) was a no-op refused by the tool (replacement contained the anchor) and was redone on a different anchor; (2b) an edit gate against the real engine on the dogfood stack, service-print rebuilt, marker ABLATION-2B proven present in dist then absent after the restore build -> print-service-archive 5 failed / 7 passed including 'a reader who can read the invoice but may not edit it prints it' (my variant is broader than the review's 1-red one). New ablations: lone-surrogate refusal removed -> 2 red (one per suite); header builder made partial -> 1 red (pdfContentDisposition throws).", "gates": "Local subset narrowed to this round's delta, run at head 2125d13975, exits captured before any pipe: check:nul-bytes 0, check-adr-0087-registration --base origin/main 0 (first run red at 1 on a 'FROM:' line whose operand was an object literal; rephrased as a FROM -> TO label line, re-run 0), check-changeset-no-major 0, check-empty-changeset 0, check:changeset-fixed 0, check:doc-authoring 0, check:i18n-coverage 0, check:route-ledger-census 0, check:system-context-census 0, check:route-envelope 0, check:issue-citations 0, check-issue-citations 0, check-closing-keyword-parity 0, check:keyed-text-bounds 0, check:examples-live-imports 0, check:test-source-alias 0, check:doc-anchors 0, docs-audit check-affected-docs 0, check-drift-comment 0, check-doc-route-spelling --advisory 0, check:error-status-conformance 0, check:engine-double-contract 0, check:docs-spec-enumerations 0; check:published-readme-exports exit 3 PREREQUISITE NOT MET (client-react, scenarios, service-segmenter, studio unbuilt) = NOT MEASURED. dispatch-gates --ran: 115 of 139 derived families unrun locally = declared narrowing, left to CI. PR check-runs at 2125d13975 not yet read (pushed this round): NOT MEASURED, CI is the reading.", "mcp_calls": "0", "api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/38894/comments (this report, via post-stamped). git push x2 to claude/issue-38894-print-download-only (e385bd27cf, 2125d13975; not REST). PR body NOT patched (seat's).", "classifier_refusals": [], "open_questions": [ { "question": "Unchanged and still with the maintainer: how a declared type:'api' action delivers a file download (options A-D in the PR body and the earlier report). This round does not choose one.", "options": [ "A REST action door relays a 2xx Content-Disposition: attachment answer byte for byte; console saves the blob", "B spec-level download declaration on the action", "C GET print route opened as type:'url'", "D base64 JSON answer" ], "recommendation": "A, as before; note Content-Disposition is not in DEFAULT_CORS_EXPOSE_HEADERS" }, { "question": "The runtime route-ledger.ts note change ships in @objectstack/runtime, which the changeset frontmatter does not name. It is in the fixed group with service-print, so the patch bump moves it. Add '@objectstack/runtime': patch explicitly?", "options": [ "A leave as is (fixed group)", "B add the runtime line" ], "recommendation": "A, because the fixed group versions them together and the note is prose" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — printPageUrl calls encodeURIComponent on object, recordId and page before the mint; a lone surrogate there would throw, but each is reached only after the page and the record were found by that exact string, so no public door reached it (no reach measured)", "carrier: seat (review nits) · not dispatched this round: nit 1 (binary-tail payload is valid UTF-8), nit 2 (no dispatcher end-to-end PDF test), nit 4 (stale dogfood control), nit 5 (check-route-envelope.mjs comment names sendOk), nit 7; nit 3 incidentally closed (255 accepted, 256 refused now pinned); nit 6 partly (print-pages now says no declared console action delivers the download)" ] }objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Claim amendment (claim 7336726260 on this card, seat repo:objectstack@os-justin)
File surface: as claimed, plus the files PR #39076 touches beyond it, each needed for the change the PR declares and each read by the contract review (record 7340755868):
packages/services/service-print/src/{print-service-plugin,print-route-ledger,index}.ts,packages/services/service-print/package.json(the droppedservice-storagedependency), and the tests beside the claimed files.packages/runtime/src/domains/print.tsandpackages/runtime/src/route-ledger.ts(ledger notes).packages/qa/dogfood/test/andauthz-conformance.matrix.ts.examples/app-showcase/src/{ui/actions,ui/pages/invoice-document.page,data/objects/invoice.object,system/translations/index}.ts(texts only; the action's wiring is unchanged).content/docs/permissions/system-context.mdx(row 47d).pnpm-lock.yaml(three removed lines).check-handover.mjs --inflightover the full list names one real overlap:content/docs/permissions/system-context.mdxwith #39081's claim. The PR is held for the maintainer's download-delivery ruling. Whichever of the two lands second mergesorigin/mainand resolves that file; the others are the shared lockfile,package.jsonand changeset globs.objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Maintainer ruling · 2026-12-02T11:30Z · on the delivery question in os-dev-report 7338187928 (
open_questions[0], options A–D), explained to the maintainer in seat repo:objectstack@os-justin's session.The maintainer, verbatim: 「38894 A」. Separately, PR #39076 was taken out of the merge queue ("39076 已经移除队列").
What is ruled (option A). A declared
type: 'api'action delivers a file through the action door.forwardApiAction:packages/runtime/src/action-execution.ts/action-dispatch.ts, the REST/dispatcher action route) relays, byte for byte, a 2xx answer that carriesContent-Disposition: attachment, with its content type and disposition.ui/packages/app-shell/src/utils/apiActionDoor.tsand its callersuseConsoleActionRuntime.tsxandRecordDetailView.tsx.Consequences, stated for the record.
Clause-②: yes (widening)), so it owes a review by surface.GenerateInvoicePdfActionand HotCRM's Print Quote stop answering 502 once both halves are onmain.mainhas the 502 gap. fix(service-print)!: the record print downloads the PDF and stores no attachment #39076 stays out of the queue until then, and the card stayspm:dispatched.objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Claim: PM loop round 2 (the delivery half; the service half is PR #39076, held out of the queue)
Session:
session_01QSeKYnrQ7UMtHofKQVjcH2Thread session:
session_01QSeKYpEYuQLqepCv5Ubf9gAccount:
os-justinBranch:
claude/issue-38894-action-door-downloadWorktree:
objectstack-issue-38894-door(in the thread's container)Domain:
domain:serverSeat:
repo:objectstack@os-justinFile surface:
packages/runtime/src/action-execution.ts,packages/runtime/src/action-dispatch.ts, the REST/dispatcher action-route file the dev names, and tests beside them;ui/packages/app-shell/src/utils/apiActionDoor.ts,ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx, and tests beside them; the spec declaration of the action door's answer, only if one exists;content/docs/ui/print-pages.mdxand the action-door docs page; new conformance or dogfood test files named for #38894; the changeset (stop on breach; explain in the report). ⛔ Notui/packages/app-shell/src/views/RecordDetailView.tsx(#39083's claim).Container & model:
L,mode:cloud(runtime plus the ui workspace; one card one container, the seat container already runs a build-heavy dev),model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier),effort: highClause-②: yes (widening)
Metadata-protocol: none
Ruling-ref: 7344041246 — maintainer 「38894 A」 on the question in 7338187928
Responsibility: the REST action door (
forwardApiAction,packages/runtime/src/action-execution.ts~2187–2351) turns a 2xx non-JSON target answer into its own 502, and the console door client (apiActionDoor.ts) reads JSON only | the print route answers the PDF itself once PR #39076 lands | apps with a declaredtype: 'api'print action (showcaseGenerateInvoicePdfAction, HotCRM Print Quote)Thread-read: 7344041246
Premise: holds (origin/main, 2026-12-02T11:32Z: the 502 rule is at
action-execution.ts:2187,:2267,:2351;sendApiActionThroughDoorlives inui/packages/app-shell/src/utils/apiActionDoor.ts)Serial constraints cleared:
check-handover --inflight(2026-12-02T11:32Z) names #39083 onRecordDetailView.tsx, which is excluded from this surface; the dev stops and reports if the fix needs it. It also names #39084 on a bareindex.ts, which is not on this surface. Landing order: this half lands before PR #39076.objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYpEYuQLqepCv5Ubf9g
os-dev-report
{ "issue": 38894, "status": "done", "branch": "claude/issue-38894-action-door-download", "pr": "https://github.com/objectstack-ai/objectstack/pull/39141", "head_sha": "aac199fe693633751266108703bbf3dfb68e1125", "session": "session_01QSeKYpEYuQLqepCv5Ubf9g", "served_tier": "opus, effort high (get_session); matches the dispatch tier", "premise_still_valid": true, "summary": "Implemented the delivery half on maintainer ruling 7344041246, built from origin/main a533126f without #39076. forwardApiAction now takes answers.relayAttachment, and action-dispatch.ts passes it only for door 'rest'. With it, a target's 2xx answer that carries Content-Disposition: attachment is relayed byte for byte, as a Web Response in HttpDispatcherResult.result. It keeps the status plus Content-Type, Content-Disposition, Cache-Control and X-Content-Type-Options as the target sent them, and the credential-rotation headers keep their existing rule. The file is buffered under a 32 MiB bound (API_FORWARD_ATTACHMENT_MAX_BYTES): a declared length over it is refused unread, a counted body is cancelled once it passes, and over the bound answers the door's 502. Every other non-JSON 2xx, MCP run_action, and the host door dispatchAction keep the 502. The new helpers live in the sibling module action-forward-attachment.ts, because action-execution.ts is over 1,000 lines. The standalone server's four /actions mounts in dispatcher-plugin.ts now write a Response via sendWebResponse, after the security headers; createHonoApp already passed a Response through. In the console, apiActionDoor.ts saves a door file answer as a download (Blob, object URL, anchor download, click, revoke). The name comes from filename* (RFC 5987), then filename, then 'download'. If Content-Disposition is unreadable cross-origin, a non-JSON door 2xx counts as the relayed file. The direct-fetch road in useConsoleActionRuntime.tsx now saves an attachment instead of reporting an empty success. RecordDetailView.tsx was not edited; its door road gets the fix through the shared functions. The spec does not declare the door's answer set, so no spec change.", "tests": "Head aac199fe.\n- Runtime api-action-forward.test.ts: 100 passed (9 new in describe [#38894]). It covers byte and header relay, 201 plus rotation, the inline and bare PDF 502, non-2xx with an attachment header as the refusal, the 409/403 refused caller with the target never called, the MCP 502, and the bound.\n- http-conformance action-door-attachment-38894.conformance.test.ts: 6 passed, on HonoServerPlugin + createDispatcherPlugin over a socket and on createHonoApp. Its typecheck exits 0, after rebuilding plugin-audit, whose stale dist lacked .d.ts.\n- app-shell useConsoleActionRuntime.apiActionDoor-27611.test.tsx: 20 passed (6 new). type-check (source and tsconfig.test.json) exits 0. runtime tsc --noEmit exits 0.\n- Ablations via ablation-replace.mjs, each restored to its HEAD blob with git diff HEAD empty:\n 1. relayAttachment:false at the REST door: 3 failed / 97 passed.\n 2. The dispatcher-plugin Response branch removed, runtime rebuilt, marker ABLATION_38894_T proven in dist: the self-hosted attachment pin failed, 1 failed / 5 passed. After the restore build, the marker is proven absent from dist with a clean tree.\n 3. The console isDoorFileAnswer branch disabled: 3 failed / 17 passed.\n- The first attempt at ablation 2 was a no-op: the tool refused it because the replacement contained the anchor. It was redone on another anchor.", "gates": "Local, exits captured before any pipe.\n- dispatch-gates --commands (no paths, tree 1c34291d) derived 108 families. dispatch-gates --ran: 108 derived, 107 run, 1 NOT-MEASURED, 0 UNRUN, exit 0.\n- NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET (27 packages without dist). CI reads it.\n- Reruns to exit 0:\n - check-plugin-teardown-shape --self-test (exit 3 on a shallow fixture commit, fetched);\n - spec check:skill-examples (exit 3, client-react unbuilt, built);\n - ui vitest scripts/ (124 at my own 280 s cap; 172 files passed);\n - check:query-options-erasure and check:type-check-debt (124 at my cap, rerun to 0);\n - check:slot-lookup (exit 1, a real finding: an 'as any' around the conformance rig's slot lookup; fixed in aac199fe, then 0).\n- Rerun at the final content, all exit 0: cross-package-test-inputs, test-source-alias, nul-bytes, swallow-census-controls, refd-timer-probe, undeclared-dep-imports, route-envelope, issue-citations, doc-authoring, error-status-conformance, wildcard-fallthrough, engine-double-contract.\n- eslint --no-inline-config on the changed TS files: 0 errors.\n- CI on #39141 head aac199fe, read once after open: 27 check-runs, 20 in_progress, 7 skipped (opt-in and queue jobs), none failed. NOT MEASURED at report time; the seat reads convergence. mergeable_state blocked (draft), not dirty.", "line_budget": "12 files, +930 / -26. Non-test source: runtime +244/-19, app-shell +141/-3. Tests +517/-3. Docs and changeset +28/-1. Under the 3,000-line human-review line.", "files_changed": [ ".changeset/38894-action-door-delivers-attachment.md", "content/docs/ui/actions.mdx", "content/docs/ui/print-pages.mdx", "packages/qa/http-conformance/src/action-door-attachment-38894.conformance.test.ts", "packages/runtime/src/action-dispatch.ts", "packages/runtime/src/action-execution.ts", "packages/runtime/src/action-forward-attachment.ts", "packages/runtime/src/dispatcher-plugin.ts", "packages/runtime/src/domains/api-action-forward.test.ts", "ui/packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime.apiActionDoor-27611.test.tsx", "ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx", "ui/packages/app-shell/src/utils/apiActionDoor.ts" ], "surface_breach": "packages/runtime/src/action-forward-attachment.ts is a new sibling module that the claimed surface did not list. os-dev rule 3 forces it: action-execution.ts is 7,686 lines, so new helpers go in a sibling file and the original only gains calls. packages/runtime/src/dispatcher-plugin.ts is the REST/dispatcher action-route file this report names: its four /actions mounts. No other breach. RecordDetailView.tsx and packages/spec were not touched.", "deviations": "- The card-thread checkout was the primary clone. The worktree guard hook refused edits there, so I moved it to a detached HEAD, deleted the local platform branch (it still pointed at a533126f, with no commits), and built the worktree with dev-worktree.sh --no-probe on the same branch name from origin/main.\n- Two foreground commands outran the ~600 s ceiling, and the harness moved them to the background: the gate batch for lines 86-108 (each command capped at 280 s) and one pnpm check:slot-lookup run (missing timeout). Both were read only after they completed, never polled.\n- My first ui closure build passed --concurrency=2 through to tsup and failed (exit 1); it was rerun with --workspace-concurrency=2, exit 0.\n- Commits carry the AGENTS.md model-free trailer pair, not the harness's model-named Co-Authored-By line.\n- No showcase rig was added (open_questions[1]).", "mcp_calls": "0", "api_writes": "2 — fleet-write relay dispatches.\n1. pr_create, run 46892106969: POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/39141/assignees [os-justin]. The read-back was byte-identical: 12322 bytes.\n2. This os-dev-report, via post-stamped: POST /repos/objectstack-ai/objectstack/issues/38894/comments.\ngit push to claude/issue-38894-action-door-download (6 pushes) is not REST. No labels were written: a changeset exists.", "classifier_refusals": [ { "command": "rm -f $D/rerun.tsv; for c in ...; do timeout 280 bash -c \"$c\" ...; done", "reason": "built-in safety check: a shell -c script that runs rm could not be checked for dangerous removals", "mode": "cloud", "human_turn_before": "no", "resend": "passed — rerun without rm, truncating the file from python instead" } ], "open_questions": [ { "question": "Once both halves land, PR #39076's texts become false: its changeset section 'Apps that declare a print action — the gap until console download delivery lands', the showcase GenerateInvoicePdfAction jsdoc paragraph 'This action does not deliver the PDF yet', and its print-pages.mdx paragraph saying the doors relay JSON answers only. #39076 must also resolve a conflict in print-pages.mdx's 'Print from the console' section when it merges main. The showcase successMessage ('The invoice was printed to PDF.' / '发票已打印为 PDF。') stays true, so it was not touched.", "options": [ "A — #39076's fix round after this lands rewrites those three texts and resolves the conflict", "B — leave them for a docs-only follow-up" ], "recommendation": "A, because #39076 must merge main anyway (landing order) and those sentences would ship false otherwise" }, { "question": "The showcase rig was not added. The GenerateInvoicePdfAction-through-the-door assertion holds only once #39076 is on main (on this branch the print route answers 201 JSON), and it needs a print engine (Chromium plus a built console) that the print dogfood render suite itself skips locally.", "options": [ "A — #39076, after it merges this, adds a dogfood case that runs the showcase action through /api/v1/actions and asserts application/pdf + attachment", "B — no end-to-end print rig; rely on the transport conformance pins here plus #39076's route pins" ], "recommendation": "A, on #39076's branch where both halves meet" }, { "question": "RecordDetailView.tsx lines 2198-2206 (on main a533126f), its own direct fetch for an undeclared or off-origin api click on a record page, still reads a file answer as res.json() -> {} and reports success with no file. The door road there is fixed through the shared functions. The file is claimed by #39083.", "options": [ "A — after #39083 lands, a one-hunk follow-up inserts the same 'if (isAttachmentAnswer(res)) { await saveAttachmentAnswer(res); ... }' before line 2204", "B — #39083's owner folds it in" ], "recommendation": "A, a 6-line change mirroring useConsoleActionRuntime.tsx" }, { "question": "Content-Disposition is not in DEFAULT_CORS_EXPOSE_HEADERS. A cross-origin console cannot read the file name and falls back to the non-JSON content-type rule and the name 'download'.", "options": [ "A — expose Content-Disposition in the CORS defaults (its own card; security-adjacent header policy)", "B — accept the fallback name for cross-origin consoles" ], "recommendation": "A as its own card; same-origin consoles (the default) are unaffected" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — a file answer gives resultDialog / onSuccess.navigate ${result.*} / outcomeMessages no result (data undefined); the action.zod describes say 'the target call's response body', which a file is not. Recorded in the PR's Acceptance notes." ] }objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYpEYuQLqepCv5Ubf9g
os-dev-report
{ "issue": 38894, "status": "done", "round": "fix round on contract review 7348470636 (FAIL at 8a889082)", "branch": "claude/issue-38894-action-door-download", "pr": "https://github.com/objectstack-ai/objectstack/pull/39141", "head_sha": "291a2c6f9eb7a07f3ab03cd2896e9cf78813ecd7", "session": "session_01QSeKYpEYuQLqepCv5Ubf9g", "served_tier": "opus, effort high; matches the dispatch tier", "premise_still_valid": true, "summary": "M1 took the review's first fix, (a). The REST door relays only isRelayableAttachmentAnswer: a 2xx with a body, a Content-Disposition of type attachment, and a non-JSON Content-Type (application/json and +json excluded). So a JSON answer under attachment, such as the data export's format=json, keeps the JSON path exactly as on main. The console's isAttachmentAnswer applies the same rule, so a JSON answer is read as data on both roads. S2 took the first option: 204/205 are decided before the audit row, never reach the relay, and take main's JSON path (null body -> 200 success), so nothing throws. The console never saves a 204/205 either. S1: changeset line 16 now says every non-2xx answer is the target's refusal under its own status. M1 texts: the changeset, the forwardApiAction docblock and the actions.mdx api row now say non-JSON attachment, and that a JSON answer stays JSON whatever its disposition. Clause-② stays yes (widening). N1: code is asserted on the over-bound 502 (EXTERNAL_SERVICE_ERROR) and on the conformance 403 (PERMISSION_DENIED). N2: the ordering claim is dropped, because the default security headers set no Cache-Control. The self-hosted conformance boot now runs the default security headers and pins that CSP and X-Frame-Options ride the relayed file. N3: the object URL is revoked OBJECT_URL_REVOKE_DELAY_MS (10 s) after the click, pinned with fake timers. N4: one copy is removed (the read's own buffer is the Response body); sendWebResponse's two copies remain, because that file is outside the surface. N5: print-pages.mdx now says the route above answers JSON, which the action reads as data, and states the file relay as the door's general behaviour. The PR body was updated (issue_patch, signed trailer).", "tests": "Head 291a2c6f.\n- runtime api-action-forward.test.ts: 103 passed (3 new). Runtime typecheck (tsc + check:test-typecheck): exit 0.\n- http-conformance action-door-attachment-38894.conformance.test.ts: 8 passed (the JSON-under-attachment case on both transports is new); its typecheck: exit 0.\n- app-shell door test: 21 passed (1 new; the revoke pin was reworked). type-check: exit 0.\n- eslint --no-inline-config: 0 errors and no warning on an added line.\n- Fix-round ablations via ablation-replace.mjs, each restored to its HEAD blob with git diff HEAD empty:\n 1. The runtime JSON guard removed: 2 failed / 101 passed.\n 2. The runtime null-body guard removed: 2 failed / 101 passed; the 204 pin fails with TypeError: Response constructor: Invalid response status code 204.\n 3. The console JSON guard removed: 1 failed / 20 passed.\n- Disclosed: the first run of ablation 2 had a JSON content type on the 204 pin, so the JSON guard masked it (1 failed, the table only). The pin now uses a PDF type, and the run in item 2 is the reading.", "gates": "At 291a2c6f, dispatch-gates --commands derived 108 families (the same set as round 1). --ran: 108 derived, 107 run, 1 NOT-MEASURED, 0 UNRUN, exit 0.\n- NOT MEASURED: check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET (workspace packages unbuilt). CI reads it.\n- pnpm --dir ui exec vitest run scripts/ was OOM-killed (exit 1) while sharing the box, then rerun alone: exit 0, 172 files passed.\n- CI on 291a2c6f at report time: 56 success, 13 skipped, 2 queued, 0 failed. mergeable_state unstable (checks pending), not dirty. Convergence is the seat's read.", "line_budget": "This round: +110 / -28 over 8 files. PR total: 12 files, about +1040 / -55.", "files_changed_this_round": [ ".changeset/38894-action-door-delivers-attachment.md", "content/docs/ui/actions.mdx", "content/docs/ui/print-pages.mdx", "packages/qa/http-conformance/src/action-door-attachment-38894.conformance.test.ts", "packages/runtime/src/action-execution.ts", "packages/runtime/src/action-forward-attachment.ts", "packages/runtime/src/dispatcher-plugin.ts", "packages/runtime/src/domains/api-action-forward.test.ts", "ui/packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime.apiActionDoor-27611.test.tsx", "ui/packages/app-shell/src/utils/apiActionDoor.ts" ], "deviations": "- dev-worktree.sh refused because the local branch existed after the round-1 worktree removal (it sat at the remote tip 8a889082). I attached a worktree to it with git worktree add; main was not merged.\n- One ablation pin was weaker than intended on its first run (see tests).\n- One OOM kill on a gate, rerun alone.", "mcp_calls": "0", "api_writes": "2 this round, both via the fleet-write relay. (1) issue_patch on #39141's body, run 46918358390, 14050 bytes read back identical. (2) This report, post-stamped: POST /issues/38894/comments. Six git pushes. Round 1's two writes are not recounted.", "classifier_refusals": [], "open_questions": [ { "question": "N4: the standalone transport still copies a relayed file twice in sendWebResponse (forwarded-door-fallback.ts:105). That file is outside this card's surface.", "options": [ "A leave as is (32 MiB bound, about 3x transient)", "B a follow-up that streams or reuses the buffer in sendWebResponse" ], "recommendation": "A; the bound caps it, and the JSON path's unbounded res.text() is the larger exposure" } ], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnxn6m1nQaRrNvdiLw
os-dev-report
{ "issue": 38894, "status": "done", "round": "merge origin/main into PR #39076 after PR #39141 merged (0fff9ae00b), and reconcile the texts", "branch": "claude/issue-38894-print-download-only", "pr": "https://github.com/objectstack-ai/objectstack/pull/39076", "head_sha": "3510e8a666f1249b078b59c568dffee19e06831d", "merge_commit": "a0a9d69912b68e62fc6aabfecfa6e2dd972be69d", "session": "session_01QSeKYnxn6m1nQaRrNvdiLw", "served_tier": "opus (get_session: session_context.model opus, last_served_model claude-opus-5-5), effort high; matches the dispatch tier", "premise_still_valid": true, "summary": "K was 39 (landing-k MERGE MAIN FIRST), so I merged origin/main with scripts/pm/os-regen-merge.sh. The merge is a0a9d699: no conflict, no os-regen path taken from main. After a build, spec check:generated reported all 14 generated artifacts up to date, so there is no regeneration commit. The PR's delta against main is the same 28 files as before. #39141's implementation body is intact at the head: isRelayableAttachmentAnswer and saveAttachmentAnswer have the same counts at origin/main and HEAD. Reconciliation commit 3510e8a6: every text that described the 502 window now says what happens on main: a declared type:'api' print action sent through the REST action door delivers the PDF with its Content-Disposition: attachment, and the console saves it. Each text still states that MCP run_action answers a file 502. Texts changed: the changeset (banner, the 'Apps that declare a print action' section and its FROM -> TO), print-pages.mdx (the stale 502 paragraph and main's now-wrong 'the route above answers JSON' paragraph, merged into one), both route-ledger notes, the print-service-plugin jsdoc and the showcase action's jsdoc. One end-to-end pin was added to #39141's conformance suite, on both transports. It composes the real PrintServicePlugin, whose route is mounted for real. A declared print action shaped like the showcase's (recordIdParam plus bodyExtra) goes through POST /api/v1/actions/... and answers 200 with the PDF bytes and the route's own Content-Disposition: attachment, Content-Type, no-store and nosniff. The pin also checks that the print service received exactly the assembled request, as the caller. Only printRecordToPdf is replaced, because no browser runs in that suite. The PR body was patched through the relay (issue_patch, signed trailer): the first line says the delivery half landed, the speed-read bullets say the 502 window is closed, the open-decision note became 'decided and landed', and the readings are at the new head. No code behaviour changed. The PR is not draft, and auto-merge is null; I touched neither.", "files_changed_this_round": [ ".changeset/38894-print-downloads-no-attachment.md (+5/-5)", "content/docs/ui/print-pages.mdx (+7/-15)", "examples/app-showcase/src/ui/actions/index.ts (+4/-5, jsdoc)", "packages/qa/http-conformance/src/action-door-attachment-38894.conformance.test.ts (+64/-2)", "packages/runtime/src/route-ledger.ts (+1/-1, note)", "packages/services/service-print/src/print-route-ledger.ts (+1/-1, note)", "packages/services/service-print/src/print-service-plugin.ts (+4/-4, jsdoc)" ], "line_budget": "Non-merge delta (a0a9d699..3510e8a6): 7 files, +86 / -33. PR total vs main: 29 files.", "tests": "At 3510e8a6, under os-verify-lock:\n- http-conformance action-door-attachment-38894 + hono-print-door: 2 files / 14 passed. The 2 new tests (one per transport) are 'a declared print action answers the print route's PDF as an attachment'; the verbose run shows the self-hosted case passed and the print door mounted.\n- http-conformance typecheck (tsc + check:test-typecheck): exit 0.\n- service-print vitest: 9 files / 143 passed; typecheck exit 0.\n- runtime route-ledger.conformance + own-door-bridge + api-action-forward: 3 files / 193 passed.\n- showcase test/invoice-generate-pdf-action.test.ts: 4 passed. The first run failed to load because @objectstack/connector-mcp was unbuilt; it passed after building the showcase's dependency closure.\n- spec check:generated: all 14 up to date.\n- No ablation: the reconciliation changes no tested behaviour (texts plus one added pin).", "gates": "dispatch-gates --commands at 3510e8a6: 139 families derived from the change set (29 paths vs merge base 0fff9ae00). Local subset, narrowed to this round's delta (changeset, docs, ledgers, test file): 24 commands, all exit 0. They were check-adr-0087-registration, check-empty-changeset, check-changeset-no-major, changeset-fixed, doc-authoring, doc-anchors, docs-section-name, doc-route-spelling --advisory, issue-citations (both forms), doc-frontmatter, docs-single-h1, docs-redirects, check-affected-docs, route-ledger-census, route-envelope, cross-package-test-inputs, test-source-alias, undeclared-dep-imports, refd-timer-probe, nul-bytes, role-word, closed-ceremony-text and examples-live-imports. --ran: 139 derived, 24 run, 0 NOT-MEASURED, 115 UNRUN. That is a declared narrowing, read by CI below.\nCI at 3510e8a6 (check-runs, read 17:20Z): 81 runs, 70 success, 11 skipped, 0 failed, 0 pending. Green among them: Lint & Repo Gates, Build Core, Test Core and all 12 shards, every Test UI shard, Lint UI, Build & E2E UI, Live E2E UI, Governed Surface Queue Guard, both Check Changeset runs, Dogfood Regression Gate, and Dogfood battery (opt-in) with shards 1/3, 2/3 and 3/3. mergeable_state clean.", "mcp_calls": "0", "api_writes": "3 relay strokes. (1) issue_patch on #39076's body via fleet-write/dispatch.mjs, request fw-20261202T164102Z-08c419, run 46928989613 success. The dispatcher exited 6 (UNCONFIRMED within 90 s) because the Actions queue was backed up; I did not resend, and the read-back is identical to the sent body. (2) This report via post-stamped.mjs, request fw-20261202T172122Z-53a4a9: no run, nothing written. (3) The resend of this report. Plus 2 git pushes (a0a9d699, 3510e8a6).", "classifier_refusals": [], "open_questions": [ { "question": "With #39141 merged, this PR is the last half of the card. Its first line still reads 'Part of #38894', which is the landing record's spelling. Should it close the card on merge?", "options": ["A switch the first line to 'Fixes #38894' (seat's issue_patch)", "B keep 'Part of' and close the card by hand after landing"], "recommendation": "A, because no half of the ruling stays open once this lands; it is the seat's call, so I left the line as it was." } ], "security_findings": "none", "out_of_scope_findings": [], "deviations": "- dev-worktree.sh would refuse, because the local branch already existed in the shared checkout. I detached the shared checkout and attached ../objectstack-issue-38894 to the branch with git worktree add.\n- The first build (turbo, under os-verify-lock) ran with run_in_background instead of in the foreground. It completed with exit 0 (50 tasks), and its output was read before anything depended on it.\n- Observed, not acted on: an APPROVED review by os-zhuang at a0a9d699, the merge commit (pr-state). The PR was already out of draft when this round started; I did not change draft, auto-merge or the queue.\n- The conformance file is #39141's, outside this card's claimed surface; the dispatch named it for the pin.\n- This report's first relay request, fw-20261202T172122Z-53a4a9 (17:21Z, HTTP 204), never got a run in 60 minutes while later requests ran, and the card showed no comment from it. I resent once after reading both. If the first request ever lands, it is a duplicate of this comment." }objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Landed · PR #39076 · merged
516105671cby the maintainer (2026-12-02T21:55Z) · read 2026-12-02T22:03Zsweep-closed-cards --pr 39076Part of #38894; nothing closed by the merge, so the seat closes this card by handDelivered, under ruling 7344041246:
200,application/pdf,attachment) and stores nothing. Read access is the whole permission. The verb isprintRecordToPdf.Follow-ups: #39179 (
review follow-ups of PR #39076, nits 1–12). It includes item 8, the one console road that still reports success with no file, so closing this card drops nothing.Status: assignee cleared; the card closes as completed in the next stroke, which also takes
pm:dispatchedoff.objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Closed as completed 2026-12-02T22:05Z; close-out 1 comment above.