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
A localized 404 RECORD_NOT_FOUND is cacheable by default but carries no Vary: Accept-Language #37828
Filing gate: ① (a contract review finding outside its PR's diff) · Source: fleet (PR #37813 contract review 7210823764, S1; card #37737 item 6)
What happens
404 RECORD_NOT_FOUND, raised by GET /data/:object/:id (packages/metadata-protocol/src/protocol-data-crud.ts:1016), carries a userMessage in the caller's Accept-Language (packages/core/src/utils/record-not-found.ts:75). It sends no Vary: Accept-Language. A 404 is cacheable by default (RFC 9110 §15.1), so a shared cache can serve one caller's language to another.
PR #37813 adds Vary: Accept-Language to the ten localized 501s in runtime, which answers #37737 item 6 for those only. This card carries the rest of item 6.
Expected
Every localized refusal that is cacheable by default carries Vary: Accept-Language. Today that is the 404 above; the card checks whether any other cacheable status (410, 405, 414, 421, 451) carries a localized message.
Done when
404 RECORD_NOT_FOUND sends Vary: Accept-Language, through both senders (the Hono adapter and the dispatcher plugin), appended to any existing Vary.
A test pins the header on the 404.
Any other default-cacheable localized refusal found is covered the same way, or listed on this card.
Grade: area:ux · bug · reach: a shared cache in front of a multi-language deployment · evidence: read (the two lines above), not run
Suggested-grade: p3
Size: S
Related: #37737, PR #37813, #37811.
Triage: lands in area:ux · domain:server · Bug · p2 · pm:queue · size S; rationale: a shared cache can serve one caller's localized 404 message to a caller in another language. That is user-facing wrong-language text, and UX has no p3 for user-facing defects, so p3 → p2, the same grade as sibling #37811. Recorded 2026-11-27T06:20Z.
Claim: PM loop round 1
Session: session_01L9qibyUSf2nKJWW6qBemSU
Thread session: session_01L9qibwVNfkx9x3mC2c7mUP
Account: os-tesla
Branch: claude/project-thread-9iznh0
Worktree: objectstack-issue-37828
Domain: server
Area: o3-ux (area:ux, a seat card thread under the ux zone's own cap)
Seat: repo:objectstack#3
File surface:
packages/types: one shared predicate plus a dedupe-append Vary helper.
Three call sites: rest crud-routes by-id catch (the RestServer exit the card did not name, measured), adapters/honothrownJson, runtime dispatcher-pluginerrorResponseBase.
Pins in the existing harness files; one .changeset/*.md (types, rest, hono, runtime patch, as PR fix(runtime): a 501 answered in the request's language says it varies by Accept-Language, and the inbound automation hooks' Japanese 501 says 自動化 #37813).
Seat ruling on scope: the language header is added whenever the answer carries a userMessage, at any status, with no table of cacheable statuses. Stop on breach and explain in the report.
Container & model: S, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high, reason: the thread session serves effort high
Clause-②: yes (widening)
Metadata-protocol: none
Responsibility: every error answer that carries a localized userMessage varies on the request language, at all three exits, so a cache cannot hand one language's message to another. The new @objectstack/types export is a public widening, so TIER_DEFAULT review is owed.
Thread-read: none
Premise: holds, measured on a fresh showcase boot at origin/main 815e882. A by-id miss answers 404 RECORD_NOT_FOUND with userMessage in en / zh-CN / ja-JP, and Vary is only Origin, Accept-Encoding. Full report: /mnt/project-files/card-37828/pre-claim-report-815e882b.md.
Serial constraints cleared: none — no open PR touches these files
{
"issue": 37828,
"status": "done",
"branch": "claude/project-thread-9iznh0",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38114",
"session": "session_01L9qibwVNfkx9x3mC2c7mUP",
"premise_still_valid": true,
"summary": "An error answer whose body carries a userMessage now sends Vary: Accept-Language at the three exits that render one: RestServer's /data read catches (GET /data/:object/:id, the production exit measured on a showcase boot, and GET /data/:object), @objectstack/hono thrownJson (catch-all and auth-mount arms), and runtime dispatcher-plugin errorResponseBase. @objectstack/types gains LOCALIZED_ANSWER_VARY and answerVariesByLanguage(body), which read the flat and the nested envelope alike. Per the seat ruling the rule is status-agnostic. Each exit appends the token in its host's append form, so Origin and Accept-Encoding stay. Patch changeset on four packages, Clause-② yes (widening), Metadata-protocol none.",
"tests": "Premise at 815e882b on a showcase boot: 404 RECORD_NOT_FOUND with userMessage in en/zh-CN/ja-JP, vary: Origin, Accept-Encoding. After the fix, same boot recipe: vary: Accept-Language, Origin, Accept-Encoding; OBJECT_NOT_FOUND 404 (no userMessage) unchanged. New pins, one top-level describe per exit in its existing harness: rest data-record-read-malformed-query-door.test.ts 17/17; hono hono-thrown-message-disclosure.test.ts 11/11; runtime dispatcher-plugin.declared-user-message.test.ts 23/23. Ablation through ablation-replace.mjs on the committed fix, each exit's header line deleted, restore blob == HEAD and git diff HEAD empty: rest 4 failed | 13 passed, hono 3 failed | 8 passed, runtime 2 failed | 21 passed, controls green in each. Package suites under the lock: types 42 files / 963 tests, hono 14 / 262, rest 432 / 8978 passed + 351 skipped, runtime 655 / 12316 passed + 25 skipped, all exit 0. typecheck exit 0 on all four; eslint exit 0 on the eight touched files.",
"gates": "Local derived set at 214577c9: dispatch-gates --ran reconciles 72 derived, 72 run, every one recorded exit 0, 0 NOT MEASURED, 0 unrun. First pass: check:test-source-alias red on the edited runtime suite, fixed with a module-top import '@objectstack/metadata'; check-plugin-teardown-shape --self-test exit 3 until commit 621a4876 was fetched, then exit 0. CI on 214577c9: in_progress at report time.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — fleet-write pr_create stroke (POST /repos/objectstack-ai/objectstack/pulls + POST issues/38114/assignees), and this os-dev-report comment (POST issues/37828/comments via post-stamped.mjs)",
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": [
"carrier: seat · noted, not filed — answers a dispatcher domain catches itself and renders through HttpDispatcher.errorFromThrown can carry a userMessage and leave as result.response without this header; outside the claimed surface (PR acceptance notes)"
]
}
Follow-up · 2026-11-28T03:01Z: the HttpDispatcher.errorFromThrown exit that PR #38114 does not cover (its body, "Not covered, for the seat to judge") is carried by #38123. L1-a routed it there. PR #38114 still closes this card.
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ux · domain:server · Bug · p2 · pm:queue · size S; rationale: a shared cache can serve one caller's localized
404message to a caller in another language. That is user-facing wrong-language text, and UX has no p3 for user-facing defects, so p3 → p2, the same grade as sibling #37811. Recorded 2026-11-27T06:20Z.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibwVNfkx9x3mC2c7mUPAccount:
os-teslaBranch:
claude/project-thread-9iznh0Worktree:
objectstack-issue-37828Domain:
serverArea:
o3-ux(area:ux, a seat card thread under the ux zone's own cap)Seat:
repo:objectstack#3File surface:
packages/types: one shared predicate plus a dedupe-appendVaryhelper.crud-routesby-id catch (the RestServer exit the card did not name, measured),adapters/honothrownJson, runtimedispatcher-pluginerrorResponseBase..changeset/*.md(types, rest, hono, runtime patch, as PR fix(runtime): a 501 answered in the request's language says it varies by Accept-Language, and the inbound automation hooks' Japanese 501 says 自動化 #37813).Seat ruling on scope: the language header is added whenever the answer carries a
userMessage, at any status, with no table of cacheable statuses. Stop on breach and explain in the report.Container & model:
S,mode:thread,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate",effort: high, reason: the thread session serves effort highClause-②: yes (widening)
Metadata-protocol: none
Responsibility: every error answer that carries a localized
userMessagevaries on the request language, at all three exits, so a cache cannot hand one language's message to another. The new@objectstack/typesexport is a public widening, so TIER_DEFAULT review is owed.Thread-read: none
Premise: holds, measured on a fresh showcase boot at origin/main 815e882. A by-id miss answers 404
RECORD_NOT_FOUNDwithuserMessagein en / zh-CN / ja-JP, andVaryis onlyOrigin, Accept-Encoding. Full report:/mnt/project-files/card-37828/pre-claim-report-815e882b.md.Serial constraints cleared:
none — no open PR touches these filesobjectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibwVNfkx9x3mC2c7mUP
os-dev-report
{ "issue": 37828, "status": "done", "branch": "claude/project-thread-9iznh0", "pr": "https://github.com/objectstack-ai/objectstack/pull/38114", "session": "session_01L9qibwVNfkx9x3mC2c7mUP", "premise_still_valid": true, "summary": "An error answer whose body carries a userMessage now sends Vary: Accept-Language at the three exits that render one: RestServer's /data read catches (GET /data/:object/:id, the production exit measured on a showcase boot, and GET /data/:object), @objectstack/hono thrownJson (catch-all and auth-mount arms), and runtime dispatcher-plugin errorResponseBase. @objectstack/types gains LOCALIZED_ANSWER_VARY and answerVariesByLanguage(body), which read the flat and the nested envelope alike. Per the seat ruling the rule is status-agnostic. Each exit appends the token in its host's append form, so Origin and Accept-Encoding stay. Patch changeset on four packages, Clause-② yes (widening), Metadata-protocol none.", "tests": "Premise at 815e882b on a showcase boot: 404 RECORD_NOT_FOUND with userMessage in en/zh-CN/ja-JP, vary: Origin, Accept-Encoding. After the fix, same boot recipe: vary: Accept-Language, Origin, Accept-Encoding; OBJECT_NOT_FOUND 404 (no userMessage) unchanged. New pins, one top-level describe per exit in its existing harness: rest data-record-read-malformed-query-door.test.ts 17/17; hono hono-thrown-message-disclosure.test.ts 11/11; runtime dispatcher-plugin.declared-user-message.test.ts 23/23. Ablation through ablation-replace.mjs on the committed fix, each exit's header line deleted, restore blob == HEAD and git diff HEAD empty: rest 4 failed | 13 passed, hono 3 failed | 8 passed, runtime 2 failed | 21 passed, controls green in each. Package suites under the lock: types 42 files / 963 tests, hono 14 / 262, rest 432 / 8978 passed + 351 skipped, runtime 655 / 12316 passed + 25 skipped, all exit 0. typecheck exit 0 on all four; eslint exit 0 on the eight touched files.", "gates": "Local derived set at 214577c9: dispatch-gates --ran reconciles 72 derived, 72 run, every one recorded exit 0, 0 NOT MEASURED, 0 unrun. First pass: check:test-source-alias red on the edited runtime suite, fixed with a module-top import '@objectstack/metadata'; check-plugin-teardown-shape --self-test exit 3 until commit 621a4876 was fetched, then exit 0. CI on 214577c9: in_progress at report time.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — fleet-write pr_create stroke (POST /repos/objectstack-ai/objectstack/pulls + POST issues/38114/assignees), and this os-dev-report comment (POST issues/37828/comments via post-stamped.mjs)", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: seat · noted, not filed — answers a dispatcher domain catches itself and renders through HttpDispatcher.errorFromThrown can carry a userMessage and leave as result.response without this header; outside the claimed surface (PR acceptance notes)" ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Follow-up · 2026-11-28T03:01Z: the
HttpDispatcher.errorFromThrownexit that PR #38114 does not cover (its body, "Not covered, for the seat to judge") is carried by #38123. L1-a routed it there. PR #38114 still closes this card.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Closed-card tidy · 2026-11-28T05:54Z: the card closed when its PR merged;
pm:dispatchedcomes off.fix(runtime): a 501 answered in the request's language says it varies…
fix(rest,hono,runtime): a refusal carrying a userMessage says it vari…