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
Upload adapter: a byte upload the storage refuses with a definitive 4xx (403 expired signature, 413 too large) is re-sent whole up to three more times, so the user waits ~3.5 s longer for the same error #38270
Filing gate: ① (a) out-of-scope finding from the #38163 card thread (PR #38237), graded by the L1-a review (7238125504) and re-read by the seat on origin/main. Source: fleet.
Grading: area:ux · domain:ui · Bug · p3 · reach: every console file upload through createObjectStackUploadAdapter that the storage refuses. The upload still fails with the right error, but only after the whole file is sent three more times and about 3.5 s of back-off pass. On a large file over a slow link that is real bandwidth and time. Nothing is stored wrongly.
Dedupe: "uploadWithProgress retry 4xx", "upload retry 413" → none.
ui/packages/data-objectstack/src/upload-adapter.tsuploadWithProgress (~200-235) catches every failure of the byte PUT, including res.ok === false and the XHR path's status refusal, and retries up to maxRetries (default 3) with 500 ms × 2^n back-off. A definitive refusal cannot succeed on retry.
Triage: lands in ui/packages/data-objectstack/src/upload-adapter.ts · area:ux · domain:ui · Bug · p3 → p2 · pm:queue · size XS. Rationale: uploadWithProgress retries every failure except an abort, up to three times, so a definitive storage 4xx (expired signature, 413) re-sends the whole file three more times and about 3.5 s of back-off passes before the right error shows. That is a feedback problem, and the UX rule has no p3, so the fleet p3 (bot-set) rises to p2. Same module precedent: #38163 (area:ux · domain:ui).
Path: none
Grade: area:ux · Bug · Cosmetic (slow, unhelpful feedback) · reach: console file uploads refused with a definitive 4xx · evidence: read (origin/main).
Claim: PM loop round 1
Session: session_01L9qibyUSf2nKJWW6qBemSU
Thread session: session_01L9qibxgdN9nHqqceW6yq9Q
Account: os-tesla
Branch: claude/project-thread-e7ga1a
Worktree: objectstack-issue-38270
Domain: ui
Area: o3-ux (area:ux p2, a seat card thread)
Seat: repo:objectstack#3
Seat rulings on the pre-claim report (/mnt/project-files/card-38270/pre-claim-report-f42bcc18.md, main f42bcc1):
Route A. A byte upload is retried only on a network failure or a status in TRANSIENT_STATUS (@object-ui/typeshttp-retry.ts ~45: 408, 425, 429, 502, 503, 504), the repo's one definition of "transient". Abort is never retried. 500 is not retried, as http-retry.ts ~41-43 already decides. The cost, that an S3 500 InternalError no longer auto-retries, is accepted and stated in the PR. No second definition is written.
Rider accepted. The byte PUT refusal goes through the same file's refusalOf, so the error keeps status and code as the card asks. This is about 4 lines, on both the fetch and the XHR paths.
The card's three pins hold under route A.
File surface:
ui/packages/*/src/**/upload-adapter.ts (the file the report names) and its tests.
ui/packages/types/src/upload.ts (one JSDoc line, no type change).
.changeset/*.md at patch for each published package touched.
Stop on breach and explain in the report.
Container & model: XS, mode:thread, model: claude-opus-5-5 (default tier — re-check dispatch-gates.mjs --tier on the final diff), effort: high, reason: the thread session serves this tier
Writes: the PR only through the relay pr_create; comments, labels and bodies only through the relay write tools; report both numbers.
Clause-②: no
Metadata-protocol: none
Skills-docs: none
Review owed: L1-a; Tier S.
Responsibility: an upload the storage refuses for good (403 expired signature, 413 too large) fails at once with its status and code, instead of being re-sent whole three more times.
Premise: holds (uploadWithProgress retries every non-abort failure), read on origin/main f42bcc1
Serial constraints cleared: #38237 merged 333e6f3f; overlap-check clean on probe 4ca313b3
Readings owed in the report: the three pins and an ablation that reds them, the request count for a 403 and for a 503 in a test, the gates, and the derived gates.
{
"issue": 38270,
"status": "done",
"branch": "claude/project-thread-e7ga1a",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38407",
"session": "session_01L9qibxgdN9nHqqceW6yq9Q",
"premise_still_valid": true,
"summary": "Route A at 8ac61177 (draft PR #38407, Fixes #38270; body brought to this head, trailer-signed). uploadWithProgress now rethrows at once any failure that carries an HTTP status outside TRANSIENT_STATUS (@object-ui/types http-retry.ts: 408, 425, 429, 502, 503, 504); no second definition written. A failure with no status (network error, XHR onerror) is retried as before; an abort is never retried, as before. 500 is not retried; the S3 500 InternalError cost is stated in the PR body and the changeset. Rider: both byte refusals (fetch !res.ok reading res.text(), XHR onload non-2xx reading responseText) go through refusalOf, so they carry status and, for the declared envelope, the server code (uploadThroughStorage maps it to serverCode). upload.ts maxRetries JSDoc now names the counted failures (no type change). Patch changeset for @object-ui/data-objectstack and @object-ui/types. File surface as claimed: 4 files, +269/-4.",
"tests": "New ui/packages/data-objectstack/src/upload-retry-38270.test.ts, 8 cases x 2 paths (fetch; XHR via a stubbed XMLHttpRequest, vi.unstubAllGlobals after each): Test Files 1 passed (1), Tests 16 passed (16). The three card pins: 413 -> 1 byte request with status 413 + code FILE_TOO_LARGE; 503 then 200 -> 2 byte requests, success; abort during the retry wait -> AbortError, 1 byte request. Request counts: 403 -> 1 with the fix, 4 with the gate ablated (expected 4 to be 1); 503 forever, maxRetries 3 -> 4; network error then 200 -> 2; 401 INVALID_TOKEN -> 1; 500 -> 1. Ablations (on-disk edit, run, git checkout restore, tree clean after): (1) TRANSIENT_STATUS gate line -> no-op: Tests 8 failed | 8 passed (413/403/401/500 on both paths); (2) refusalOf calls back to the status-only error: 4 failed | 12 passed (413 and 401 code asserts, both paths); (3) loop signal.aborted check removed: 2 failed | 14 passed (abort pin, both paths: expected 'Error' to be 'AbortError', expected 2 to be 1). pnpm --filter @object-ui/data-objectstack test (verify lock): Test Files 129 passed (129), Tests 1466 passed (1466), VERDICT command-exit 0. pnpm --filter @object-ui/data-objectstack --filter @object-ui/types run type-check: exit 0 (tsconfig includes src/**/*, the new test with it). Dependency closure built first: pnpm --filter '@object-ui/data-objectstack^...' build, VERDICT command-exit 0.",
"gates": "dispatch-gates --commands at 8ac61177 over 4 paths: 38 derived, 38 run, each exit 0 (command, exit code and verdict line per family: /mnt/project-files/card-38270/gates-results-8ac61177.txt; list /mnt/project-files/card-38270/gates-ran-8ac61177.list); --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. dispatch-gates --tier on the final diff: no path-derived mandate, default tier (matches the claim), 273 changed lines, under 3000. overlap-check at 8ac61177: VERDICT clean exit 0 vs origin/main f42bcc18, 0 open PR heads. PR check-runs at 8ac61177 (pr-state.mjs): 45 success, 13 expected skip, 0 unexpected skip, 0 failed, 0 pending; mergeable_state clean. The 5 CI type-check program steps dispatch-gates lists as NOT MEASURED locally are read off those check-runs.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0 GitHub MCP write calls (reads only: issue_read get/get_comments on #38270)",
"api_writes": "3 — fleet-write relay pr_create (PR #38407, assignee os-tesla, read-back 5704 bytes identical); relay issue_patch on PR #38407 body (trailer-signed, read-back 6135 bytes identical); this os-dev-report comment via post-stamped",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
L1-a: ACCEPT for PR #38407 (#38270) at 8ac61177b87bbf64d9c933f88965c5ccc5300ee2.
Scope. 4 files: ui/packages/data-objectstack/src/upload-adapter.ts, ui/packages/types/src/upload.ts (doc comment on maxRetries only), the new test upload-retry-38270.test.ts and the changeset. All of it is inside claim 7247785943, route A.
Clause-②: no holds. I checked the point the seat raised.
TRANSIENT_STATUS was already exported from @object-ui/types at the merge base f42bcc18 (ui/packages/types/src/http-retry.ts:45, re-exported from the package index). The PR only imports it inside upload-adapter.ts.
Neither package's index changes. There is no new export, type, option or prop.
refusalOf already existed in upload-adapter.ts. Both the fetch path and the XHR path now reject through it with status and the parsed code.
Behaviour narrows to what maxRetries always promised. A non-transient HTTP status is thrown at once, while a transient status, a network error (XHR onerror, which has no status) and a timeout still retry. An abort is still rethrown first.
Metadata-protocol: none is right.
No spec, governed or narrowing path is touched, so no face applies. This is L1 only, and no contract review is owed. The changeset is patch for @object-ui/data-objectstack and @object-ui/types, which covers both published packages touched.
Evidence. 16 of 16 pins pass. The ablations go red as expected (8, 4 and 2). The package suite passes 1466 of 1466, and the derived gates pass 38 of 38.
CI at this head: 47 success, 0 failed, 15 skipped (ui-only path filters). Mergeable state is clean.
K = 2 against a hold of 15: main is at 3579cf13, 2 single-parent commits past the merge base f42bcc18. The landing-k reader answers CAN'T ANSWER here, because a ui-only PR runs no Test Core shard. So this count was read from the compare instead.
Activity
objectstack-fleet commentedon Nov 28, 2026
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t
Triage: lands in
ui/packages/data-objectstack/src/upload-adapter.ts· area:ux · domain:ui · Bug · p3 → p2 · pm:queue · size XS. Rationale:uploadWithProgressretries every failure except an abort, up to three times, so a definitive storage 4xx (expired signature, 413) re-sends the whole file three more times and about 3.5 s of back-off passes before the right error shows. That is a feedback problem, and the UX rule has no p3, so the fleet p3 (bot-set) rises to p2. Same module precedent: #38163 (area:ux · domain:ui).Path: none
Grade: area:ux · Bug · Cosmetic (slow, unhelpful feedback) · reach: console file uploads refused with a definitive 4xx · evidence: read (origin/main).
Recorded 2026-11-28T13:56Z.
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibxgdN9nHqqceW6yq9QAccount:
os-teslaBranch:
claude/project-thread-e7ga1aWorktree:
objectstack-issue-38270Domain:
uiArea:
o3-ux(area:ux p2, a seat card thread)Seat:
repo:objectstack#3Seat rulings on the pre-claim report (
/mnt/project-files/card-38270/pre-claim-report-f42bcc18.md, main f42bcc1):TRANSIENT_STATUS(@object-ui/typeshttp-retry.ts~45: 408, 425, 429, 502, 503, 504), the repo's one definition of "transient". Abort is never retried. 500 is not retried, ashttp-retry.ts~41-43 already decides. The cost, that an S3 500 InternalError no longer auto-retries, is accepted and stated in the PR. No second definition is written.refusalOf, so the error keepsstatusandcodeas the card asks. This is about 4 lines, on both the fetch and the XHR paths.File surface:
ui/packages/*/src/**/upload-adapter.ts(the file the report names) and its tests.ui/packages/types/src/upload.ts(one JSDoc line, no type change)..changeset/*.mdat patch for each published package touched.Stop on breach and explain in the report.
Container & model:
XS,mode:thread,model: claude-opus-5-5 (default tier — re-check dispatch-gates.mjs --tier on the final diff),effort: high, reason: the thread session serves this tierWrites: the PR only through the relay
pr_create; comments, labels and bodies only through the relay write tools; report both numbers.Clause-②: no
Metadata-protocol: none
Skills-docs: none
Review owed: L1-a; Tier S.
Responsibility: an upload the storage refuses for good (403 expired signature, 413 too large) fails at once with its status and code, instead of being re-sent whole three more times.
Premise: holds (
uploadWithProgressretries every non-abort failure), read on origin/main f42bcc1Serial constraints cleared:
#38237 merged 333e6f3f; overlap-check clean on probe 4ca313b3Readings owed in the report: the three pins and an ablation that reds them, the request count for a 403 and for a 503 in a test, the gates, and the derived gates.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibxgdN9nHqqceW6yq9Q
os-dev-report
{ "issue": 38270, "status": "done", "branch": "claude/project-thread-e7ga1a", "pr": "https://github.com/objectstack-ai/objectstack/pull/38407", "session": "session_01L9qibxgdN9nHqqceW6yq9Q", "premise_still_valid": true, "summary": "Route A at 8ac61177 (draft PR #38407, Fixes #38270; body brought to this head, trailer-signed). uploadWithProgress now rethrows at once any failure that carries an HTTP status outside TRANSIENT_STATUS (@object-ui/types http-retry.ts: 408, 425, 429, 502, 503, 504); no second definition written. A failure with no status (network error, XHR onerror) is retried as before; an abort is never retried, as before. 500 is not retried; the S3 500 InternalError cost is stated in the PR body and the changeset. Rider: both byte refusals (fetch !res.ok reading res.text(), XHR onload non-2xx reading responseText) go through refusalOf, so they carry status and, for the declared envelope, the server code (uploadThroughStorage maps it to serverCode). upload.ts maxRetries JSDoc now names the counted failures (no type change). Patch changeset for @object-ui/data-objectstack and @object-ui/types. File surface as claimed: 4 files, +269/-4.", "tests": "New ui/packages/data-objectstack/src/upload-retry-38270.test.ts, 8 cases x 2 paths (fetch; XHR via a stubbed XMLHttpRequest, vi.unstubAllGlobals after each): Test Files 1 passed (1), Tests 16 passed (16). The three card pins: 413 -> 1 byte request with status 413 + code FILE_TOO_LARGE; 503 then 200 -> 2 byte requests, success; abort during the retry wait -> AbortError, 1 byte request. Request counts: 403 -> 1 with the fix, 4 with the gate ablated (expected 4 to be 1); 503 forever, maxRetries 3 -> 4; network error then 200 -> 2; 401 INVALID_TOKEN -> 1; 500 -> 1. Ablations (on-disk edit, run, git checkout restore, tree clean after): (1) TRANSIENT_STATUS gate line -> no-op: Tests 8 failed | 8 passed (413/403/401/500 on both paths); (2) refusalOf calls back to the status-only error: 4 failed | 12 passed (413 and 401 code asserts, both paths); (3) loop signal.aborted check removed: 2 failed | 14 passed (abort pin, both paths: expected 'Error' to be 'AbortError', expected 2 to be 1). pnpm --filter @object-ui/data-objectstack test (verify lock): Test Files 129 passed (129), Tests 1466 passed (1466), VERDICT command-exit 0. pnpm --filter @object-ui/data-objectstack --filter @object-ui/types run type-check: exit 0 (tsconfig includes src/**/*, the new test with it). Dependency closure built first: pnpm --filter '@object-ui/data-objectstack^...' build, VERDICT command-exit 0.", "gates": "dispatch-gates --commands at 8ac61177 over 4 paths: 38 derived, 38 run, each exit 0 (command, exit code and verdict line per family: /mnt/project-files/card-38270/gates-results-8ac61177.txt; list /mnt/project-files/card-38270/gates-ran-8ac61177.list); --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. dispatch-gates --tier on the final diff: no path-derived mandate, default tier (matches the claim), 273 changed lines, under 3000. overlap-check at 8ac61177: VERDICT clean exit 0 vs origin/main f42bcc18, 0 open PR heads. PR check-runs at 8ac61177 (pr-state.mjs): 45 success, 13 expected skip, 0 unexpected skip, 0 failed, 0 pending; mergeable_state clean. The 5 CI type-check program steps dispatch-gates lists as NOT MEASURED locally are read off those check-runs.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0 GitHub MCP write calls (reads only: issue_read get/get_comments on #38270)", "api_writes": "3 — fleet-write relay pr_create (PR #38407, assignee os-tesla, read-back 5704 bytes identical); relay issue_patch on PR #38407 body (trailer-signed, read-back 6135 bytes identical); this os-dev-report comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-29T00:44Z
L1-a: ACCEPT for PR #38407 (#38270) at
8ac61177b87bbf64d9c933f88965c5ccc5300ee2.Scope. 4 files:
ui/packages/data-objectstack/src/upload-adapter.ts,ui/packages/types/src/upload.ts(doc comment onmaxRetriesonly), the new testupload-retry-38270.test.tsand the changeset. All of it is inside claim 7247785943, route A.Clause-②: noholds. I checked the point the seat raised.TRANSIENT_STATUSwas already exported from@object-ui/typesat the merge basef42bcc18(ui/packages/types/src/http-retry.ts:45, re-exported from the package index). The PR only imports it insideupload-adapter.ts.refusalOfalready existed inupload-adapter.ts. Both the fetch path and the XHR path now reject through it withstatusand the parsedcode.maxRetriesalways promised. A non-transient HTTP status is thrown at once, while a transient status, a network error (XHRonerror, which has no status) and a timeout still retry. An abort is still rethrown first.Metadata-protocol: noneis right.No spec, governed or narrowing path is touched, so no face applies. This is L1 only, and no contract review is owed. The changeset is
patchfor@object-ui/data-objectstackand@object-ui/types, which covers both published packages touched.Evidence. 16 of 16 pins pass. The ablations go red as expected (8, 4 and 2). The package suite passes 1466 of 1466, and the derived gates pass 38 of 38.
CI at this head: 47 success, 0 failed, 15 skipped (ui-only path filters). Mergeable state is clean.
K = 2 against a hold of 15:
mainis at3579cf13, 2 single-parent commits past the merge basef42bcc18. Thelanding-kreader answers CAN'T ANSWER here, because a ui-only PR runs noTest Coreshard. So this count was read from the compare instead.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
2026-11-29T01:11Z · 收口:PR #38407 经合并队列合入(28c2fe88),本卡随 Fixes 关闭;去掉 pm:dispatched。存储明确拒绝的上传(403 签名过期、413 太大)现在立即失败并带上状态和错误码,不再整块重传三次;暂时性错误(408、425、429、502、503、504)和网络错误照旧重试,取消不重试。代价已写在 PR 里:S3 的 500 不再自动重试。