Skip to content

data-objectstack 的 uploadFile/uploadFiles 发往一条服务端不存在的路由,上传必然失败(404/405) #38163

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Filing gate: ① (b) side finding from the #37505/#37506/#37507 card thread, measured on 96332e4. Source: fleet.
Grading: area:ux · Bug · p2 · reach: any app or plugin that calls the declared DataSource.uploadFile / uploadFiles on the ObjectStack data source; zero in-repo callers today (real uploads go through storage's presigned three-step flow) · evidence: a real stack measured once.
Dedupe: "uploadFile api/data upload 404", "data-objectstack uploadFiles route", "DataSource.uploadFile version segment" → 0 open.

维护者速读

  • 问题:界面数据层对外声明了「上传文件」的接口,ObjectStack 的实现却把文件发到一条标准服务端根本没有的地址,所以每次都会失败,带不带登录都一样。仓库里目前没人调用它,真正的上传走的是存储服务的三步直传。
  • 修法:二选一。要么让这个接口改走存储服务现有的直传流程,要么把它标成不支持,调用时直接给出清楚的报错,不要发出注定失败的请求。
  • 要你做的:无。

Measured (96332e4, @objectstack/verify bootStack with StorageServicePlugin, the attachments fixture, admin bearer)

  • Control: GET /api/v1/data/att_case answers 200.
  • The address data-objectstack sends uploads to, POST /api/data/att_case/upload, answers 404 ENDPOINT_NOT_FOUND.
  • With the version segment added, POST /api/v1/data/att_case/upload answers 405 METHOD_NOT_ALLOWED. It routes as a record id, with Allowed: DELETE, GET, HEAD, PATCH.
  • Probe and readings: /mnt/project-files/card-37505/probe-37506-upload-route.dogfood.test.ts, probe-readings-96332e47.txt.

Ask

  1. uploadFile / uploadFiles in ui/packages/data-objectstack either use the storage service's presigned flow, or refuse at once with a clear error that names the supported path. Pick by what the declared DataSource contract promises, and say why in the PR.
  2. A pin through a real stack, with an ablation.

Acceptance

Activity

  1. added
    bug
    priority:p2
    domain:ui
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · p2 · pm:queue · size S; rationale: the ObjectStack data source's declared uploadFile / uploadFiles post to a route the server does not have, so every call fails with 404 or 405 (measured on a real stack). No caller exists in this repo (real uploads use storage's presigned flow), but it is a broken public API, so the filer's p2 stands. Fix it, or retire the methods. Recorded 2026-11-28T05:16Z.

  3. added
    pm:queue
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibx7DSQZnugnuX8CpCM
    Account: os-tesla
    Branch: claude/project-thread-ciejge
    Worktree: objectstack-issue-38163
    Domain: ui
    Area: o3-ux (area:ux p2, the zone's own card)
    Seat: repo:objectstack#3
    Seat rulings on the pre-claim report (zone thread, main 7960019):

    • Premise holds: ui/packages/data-objectstack/src/index.ts (~8251, ~8313) still sends files to /api/data/<resource>/upload, which the standard server does not route. The contract (ui/packages/types/src/data.ts ~928) marks both methods optional ("only data sources with a file-storage integration"); no in-repo caller.
    • Route (a): both methods delegate to the package's own presigned-storage createObjectStackUploadAdapter (upload-adapter.ts ~87), recordId → attachTo, result mapped to FileUploadResult. If the mapping cannot meet the contract, fall back to (b): refuse with an error that names the supported path. Either way no public shape changes; a change of shape is a breach — stop and report.
    • Acceptance: a pin test against a real stack plus one ablation, after the probes under /mnt/project-files/card-37505/.
      File surface:
    • ui/packages/data-objectstack/src/index.ts, ui/packages/data-objectstack/src/upload-adapter.ts (read, touch only if the mapping needs it), the package's tests, one .changeset/*.md (@object-ui/data-objectstack patch).
      Stop on breach and explain in the report.
      Container & model: S, mode:thread, model: claude-opus-5-5 (default tier — dispatch-gates.mjs --tier: "no path-derived mandate"), effort: high, reason: a route choice (a/b) is a design judgment
      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
      Responsibility: an app using the ObjectStack data source can upload a file through uploadFile / uploadFiles and get a real stored file back, or a clear error that names the working path, instead of a silent 404.
      Premise: holds, read on origin/main 7960019
      Serial constraints cleared: none — 08:32Z sweep of open PR heads: none touch data-objectstack index.ts, upload-adapter.ts or types data.ts; re-run overlap-check before the first push
      Readings owed in the report: the pin test against a real stack, one ablation, the route taken and why.
  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM

    File surface addition (claim 7236668269) · zone o3-ux · 2026-11-28T08:35Z

    The claim asks for "a pin through a real stack". The fleet's real-stack tests live in packages/qa/dogfood/test/; the card's own probe (/mnt/project-files/card-37505/probe-37506-upload-route.dogfood.test.ts) is shaped for that directory and imports ./fixtures/attachments-fixture.js. The surface gains exactly one new file: packages/qa/dogfood/test/data-objectstack-upload-route-38163.dogfood.test.ts. The dogfood package is private, so it needs no changeset. Everything else on the claim's surface is unchanged, and any further file is still a stop.

  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
    os-dev-report

    {
      "issue": 38163,
      "status": "blocked",
      "branch": "claude/project-thread-ciejge",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38237",
      "session": "session_01L9qibx7DSQZnugnuX8CpCM",
      "premise_still_valid": true,
      "summary": "Route (a) is implemented. uploadFile and uploadFiles delegate to createObjectStackUploadAdapter (presigned request, byte PUT, completion), with recordId mapped to attachTo {parentObject: resource, parentId: recordId} and scope 'attachments', and the result mapped to FileUploadResult (id = sys_file id, filename, mimeType, size, url = stable /files/ID, metadata = adapter meta including attachmentId). Zone-2 readings: (1) The premise holds at f294277dd: the old URL is ${baseUrl}/api/data/RESOURCE/upload, and the re-grep finds no callers outside data-objectstack's own test. (2) Token: requests go through uploadTransport, the injected fetch, wrapped once per data source as storageUploadFetch. That wrapper adds the config token to every request to this server and never to a presigned URL on another origin, so a session that has only a token is not treated as anonymous. Measured by the unit pin and by the real-stack pin. (3) fieldName and metadata have no presigned counterpart: neither GetPresignedUrlRequest nor CompleteUploadRequest carries them (only the chunked init takes metadata). Both are refused with UNSUPPORTED_OPERATION before any request, with a message naming the supported path, so neither is silently dropped. (4) onProgress: the presigned path reports it (per byte over XHR in a browser, 1 at the end over fetch), mapped from 0-1 to 0-100 and spread across the batch. (5) uploadFiles runs N sequential presigned uploads. The first refused file stops the batch, and the rejection is UPLOAD_ERROR with details {failedIndex, uploaded: the files already stored, serverCode?, cause}; later files are not sent. upload-adapter.ts changed only so that presign and PUT refusals carry status and code, which the mapping reads. Per-call adapter construction is measured, not chosen: attachTo is an adapter construction option. BLOCKED on one surface grant. The real-stack dogfood pin is written and measured (green 2/2, ablation red 2/2), but it cannot be committed: @objectstack/dogfood does not declare @object-ui/data-objectstack, so the import fails ('Cannot find package'). The dogfood CI job also builds only that package's closure, and turbo's dogfood test hash would not see adapter changes. Landing the pin needs packages/qa/dogfood/package.json (devDependency '@object-ui/data-objectstack': 'workspace:*') plus pnpm-lock.yaml. Everything else is done and in the draft PR. The pin file is saved at /tmp/claude-0/-home-user/0cd2798f-52ae-52de-a780-b973465da86b/scratchpad/issue-38163/data-objectstack-upload-route-38163.dogfood.test.ts for the patch round.",
      "tests": "head 4da89172. Unit: `pnpm --dir ui exec vitest run packages/data-objectstack/src/uploadTransport-37506.test.ts packages/data-objectstack/src/objectstack-upload-scope-12055.test.ts` gave 'Test Files 2 passed (2) / Tests 18 passed (18)' under the lock (VERDICT command-exit 0). Package: `pnpm --dir ui exec vitest run packages/data-objectstack/` gave 'Test Files 128 passed (128) / Tests 1447 passed (1447)' (VERDICT command-exit 0). `pnpm --filter @object-ui/data-objectstack type-check` exited 0; tsconfig include src/** covers the test files. Unit ablation: with the BASE index.ts written over the file on disk, the 37506/38163 file gave 'Tests 12 failed (12)' (VERDICT command-exit 1); after `git checkout HEAD -- index.ts`, git status was clean. Real-stack pin (packages/qa/dogfood, bootStack + StorageServicePlugin(local) + AuditPlugin + attachments fixture; uploadFile with recordId under config token only, uploadFiles under an injected bearer fetch; asserts committed sys_file rows, the sys_attachment row and its attachmentId, and no request on /api/(vN/)?data/X/upload): green 'Tests 2 passed (2)', run through an untracked node_modules link to the ui package's dist. Ablation: BASE index.ts restored and dist rebuilt (dist grep shows 2 hits of 'api/data/'), giving 'Tests 2 failed (2)' with ObjectStackError 'Not found' UPLOAD_ERROR (the server's 404 ENDPOINT_NOT_FOUND). Restored and rebuilt (0 hits), green 2/2 again. With the link removed: 'Cannot find package @object-ui/data-objectstack' (the surface blocker). Dogfood `typecheck` with the link: exit 0.",
      "gates": "local, head 4da89172: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 40 families. All 40 ran, each `:: exit 0` (exit captured before any pipe). `--ran` reconciliation: '40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN' (a derived zero; every entry recorded an exit code). `overlap-check.mjs --branch=claude/project-thread-ciejge` returned 'VERDICT clean exit 0' (0 PR heads overlap; origin/main merges cleanly). ui `check:new-line-citations` returned 'VERDICT ... 0 new citation(s) -> exit 0'. Control-byte self-scan of the 4 files: 0 hits. CI on PR #38237 at report time: in_progress (Lint · *, Type Check · *, Check Changeset, Governed Surface Queue Guard, PR-body guards, Check PR Size, filter); skipped: Queue verdict, Borrowed queue verdict, Schedule gate, opt-in harnesses. No conclusion yet; not waited on.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 REST writes: (1) relay stroke POST /repos/objectstack-ai/objectstack/dispatches (fleet-write run 46130320658: pr_create, which is POST /repos/objectstack-ai/objectstack/pulls then POST /repos/objectstack-ai/objectstack/issues/38237/assignees [os-tesla]; read-back reported 6387 bytes sent and 6387 stored); (2) POST /repos/objectstack-ai/objectstack/issues/38163/comments (this os-dev-report, via post-stamped.mjs). Separately, not REST: 2 git pushes to claude/project-thread-ciejge.",
      "files_changed": [
        "ui/packages/data-objectstack/src/index.ts",
        "ui/packages/data-objectstack/src/upload-adapter.ts",
        "ui/packages/data-objectstack/src/uploadTransport-37506.test.ts",
        ".changeset/38163-uploads-storage-presigned.md"
      ],
      "line_budget": "n/a — no skills/** or ratcheted ledger touched",
      "deviations": [
        "Empty-branch push not done. The dispatch said to push the empty branch first, but os-dev.md rule 1 forbids an empty push on a card-thread branch, and os-dev.md wins on conflict. The first push carried the first real commit; it was preceded by overlap-check, and no 403 occurred.",
        "The dogfood pin file named in surface addition 7236682186 is not committed: it needs two more files (packages/qa/dogfood/package.json, pnpm-lock.yaml). Stopped per the surface rule. Measured locally with an untracked node_modules symlink, which was removed afterwards.",
        "Route (a) with a partial (b) arm: fieldName and metadata are refused at once (UNSUPPORTED_OPERATION, naming the presigned path) because the presigned flow cannot carry them. Every other option maps."
      ],
      "open_questions": [
        {
          "question": "How should the real-stack pin land, given it needs @object-ui/data-objectstack declared by @objectstack/dogfood?",
          "options": [
            "A: grant packages/qa/dogfood/package.json (devDependency '@object-ui/data-objectstack': 'workspace:*') plus pnpm-lock.yaml. A patch round on this PR then adds the measured pin file unchanged; the dogfood closure then builds the ui adapter and its hash follows adapter changes.",
            "B: land this PR on the unit pin and the measured readings, with the dogfood pin filed as its own card. This leaves the card's acceptance item 2 to that card, so the body would switch to Part of."
          ],
          "recommendation": "A, because it is a two-line manifest change. The pin is already written and measured green and red, and without the declared edge, turbo's dogfood cache would never rerun the pin when the adapter changes."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: upload-adapter's uploadWithProgress retries the byte PUT up to 3 times with backoff on any failure, including an HTTP refusal such as 413 or 403 (only network failures are worth retrying). This is an observation only: no producer or public door was measured wrong. Dedupe words: 'upload adapter retries refusal', 'uploadWithProgress maxRetries 4xx', 'presigned PUT retry status'."
      ]
    }
  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM

    File surface addition 2 (claim 7236668269) · zone o3-ux · 2026-11-28T09:27Z

    The dev report 7237242813 stopped on the surface: the real-stack pin named in 7236682186 imports @object-ui/data-objectstack, which @objectstack/dogfood does not declare. Without that edge the import fails ("Cannot find package"), the dogfood CI job does not build the adapter, and turbo's dogfood hash never reruns the pin when the adapter changes.

    So the surface gains exactly two more files:

    • packages/qa/dogfood/package.json, one devDependencies line, "@object-ui/data-objectstack": "workspace:*";
    • pnpm-lock.yaml, the matching importer entry only.

    The dogfood package is private, so this needs no changeset. The pin file itself lands unchanged from the measured copy, which was green 2/2 and red 2/2 under ablation. Any further file is still a stop.

  9. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
    os-dev-report

    Addendum to 7237242813 (patch round, head 78f7f2b).

    {
      "issue": 38163,
      "status": "blocked",
      "branch": "claude/project-thread-ciejge",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38237",
      "session": "session_01L9qibx7DSQZnugnuX8CpCM",
      "premise_still_valid": true,
      "summary": "Patch round (option A, surface addition 2 = 7237259964), new head 78f7f2b3. packages/qa/dogfood/package.json gained exactly one devDependencies line, '@object-ui/data-objectstack': 'workspace:*'. `pnpm install` wrote pnpm-lock.yaml, which moved exactly the 3-line importer entry (specifier workspace:*, version link:../../../ui/packages/data-objectstack) and nothing else. The measured pin was committed unchanged (sha256 identical to the scratchpad copy) as packages/qa/dogfood/test/data-objectstack-upload-route-38163.dogfood.test.ts. The PR body is edited through the relay: it names the pin, and it explains why refusing fieldName/metadata (UNSUPPORTED_OPERATION) is not a narrowing — before this PR every call failed 404 ENDPOINT_NOT_FOUND whatever the options, so no working behaviour is removed. BLOCKED on one more file. The new import reds `check:test-source-alias`, both locally (exit 1) and in CI ('Lint · CI, release & engine gates' → 'Lint & Repo Gates' failure, 'Red: Test-source alias gate'). The gate prescribes one anchored alias entry in packages/qa/dogfood/vitest.config.ts, which is outside the granted surface, so it is not committed. Measured uncommitted, then reverted: with that 4-line entry, the gate passes (exit 0), the pin passes 2/2 against the adapter SOURCE, and the ablation fails 2/2 'Not found'. The patch is saved at /tmp/claude-0/-home-user/0cd2798f-52ae-52de-a780-b973465da86b/scratchpad/issue-38163/alias-measure.patch. The worktree /home/user/objectstack-issue-38163 is kept for the next round.",
      "tests": "head 78f7f2b3, pin resolved through the declared dependency: pnpm's own workspace link, created by `pnpm install`; no hand-made link. Green: `pnpm --filter @object-ui/data-objectstack build && pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/data-objectstack-upload-route-38163.dogfood.test.ts` gave 'Tests 2 passed (2)' (VERDICT command-exit 0). Ablation once: BASE index.ts on disk and dist rebuilt (grep 'api/data/' in dist/index.js = 2) gave 'Tests 2 failed (2)', 'ObjectStackError: Not found' (VERDICT command-exit 1). Then `git checkout HEAD -- index.ts`, git status clean, rebuilt (0 old-route hits). Dogfood `typecheck`: VERDICT command-exit 0. Alias variant (uncommitted, reverted): check:test-source-alias exit 0, pin 2/2 green, ablation 2/2 red. Unit and package readings from round 1 stand at 4da89172 (no ui file changed since): 18/18 and 12/12-red ablation; package 1447/1447; type-check 0.",
      "gates": "local, head 78f7f2b3: `dispatch-gates --commands --repo objectstack-ai/objectstack` derived 85 families over 7 changed paths (pnpm-lock.yaml and the dogfood package.json included). Exits: 83 families exit 0 on the first pass; `pnpm check:test-source-alias` :: exit 1 (real red, the blocker above); `node scripts/check-plugin-teardown-shape.mjs --self-test` :: exit 3 on the first pass (PREREQUISITE NOT MET: the shallow clone lacked the pinned fixture commit 621a4876), then exit 0 after `git fetch --depth=1 origin 621a487607881c66b2899b7e3477115229a156b4` ('48 cases pass'). `--ran` reconciliation: '85 derived, 85 run, 0 NOT-MEASURED, 0 UNRUN' (a derived zero). `overlap-check.mjs --branch=claude/project-thread-ciejge` returned 'VERDICT clean exit 0' (origin/main clean; #38192 shares packages/qa/dogfood/package.json and merges cleanly). CI on 78f7f2b3 at report time: Lint & Repo Gates FAILURE (Test-source alias gate only: '65 gate(s): 64 passed, 1 red'); success: Build Core, Build & E2E UI, Build UI Deps, Lint UI, Live E2E UI, Dogfood Regression Gate, Governed Surface Queue Guard, Test Core shards, Test UI shards seen, Check PR Size, Lint · ESLint/PM dispatch-gates/docs & code/repo & tooling/scoped; in_progress: one Check Changeset run, one PR-body guards run.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "this round: 2 REST writes. (1) Relay POST /repos/objectstack-ai/objectstack/dispatches (run 46133464015): issue_patch = PATCH /repos/objectstack-ai/objectstack/issues/38237 (PR body; read-back reported 8126 bytes sent and 8126 stored). (2) POST /repos/objectstack-ai/objectstack/issues/38163/comments (this addendum, via post-stamped.mjs). Separately, not REST: 1 git push. Cumulative with round 1: 4 REST writes, 3 git pushes.",
      "files_changed": [
        "ui/packages/data-objectstack/src/index.ts",
        "ui/packages/data-objectstack/src/upload-adapter.ts",
        "ui/packages/data-objectstack/src/uploadTransport-37506.test.ts",
        ".changeset/38163-uploads-storage-presigned.md",
        "packages/qa/dogfood/package.json",
        "pnpm-lock.yaml",
        "packages/qa/dogfood/test/data-objectstack-upload-route-38163.dogfood.test.ts"
      ],
      "line_budget": "n/a — no skills/** or ratcheted ledger touched",
      "deviations": [
        "PR body edit carries a last-line signed trailer (repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM). The relay refused the issue_patch without it (dry-run exit 2, 'body opens with no signature line'), and a PR body may instead end with the trailer.",
        "packages/qa/dogfood/vitest.config.ts is not edited even though check:test-source-alias asks for it: it is outside the granted surface, so I stopped per the surface rule. It was measured uncommitted and reverted.",
        "Shallow-clone prerequisite: I fetched one pinned commit (depth 1) into the shared object store so the teardown self-test could run. This was additive only."
      ],
      "open_questions": [
        {
          "question": "Grant packages/qa/dogfood/vitest.config.ts for the one anchored alias check:test-source-alias prescribes?",
          "options": [
            "A: grant it. A patch round adds the gate's own 4-line entry ({ find: /^@object-ui\\/data-objectstack$/, replacement: ui/packages/data-objectstack/src/index.ts }) to the isolated project's alias array. Measured: gate exit 0, pin 2/2 green against source, ablation 2/2 red.",
            "B: no grant. The PR stays red on Lint & Repo Gates; the gate's registry is shrink-only and widening it is refused by the gate itself."
          ],
          "recommendation": "A, because the gate names this exact entry, it makes the pin a verdict about the adapter source rather than its dist (no rebuild needed for an ablation), and it is measured green and red."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed (coordinator carries it to L1): upload-adapter's uploadWithProgress retries the byte PUT up to 3 times on any failure, including an HTTP refusal. Dedupe words: 'upload adapter retries refusal', 'uploadWithProgress maxRetries 4xx', 'presigned PUT retry status'."
      ]
    }
  10. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM

    File surface addition 3 (claim 7236668269) · zone o3-ux · 2026-11-28T10:08Z

    The dev report 7237679580 stopped on the surface again. The new import of @object-ui/data-objectstack from the dogfood pin reds check:test-source-alias (CI "Lint & Repo Gates", 1 of 65 gates red). The gate names its own fix: one anchored alias in the dogfood isolated project, pointing the package at its SOURCE, so the pin is a verdict about the checkout and not about a build artifact.

    So the surface gains exactly one more file:

    • packages/qa/dogfood/vitest.config.ts, one 4-line entry in the isolated project's alias array: { find: /^@object-ui\/data-objectstack$/, replacement: path.resolve(__dirname, '../../../ui/packages/data-objectstack/src/index.ts') }.

    Measured uncommitted at head 78f7f2b and then reverted: the gate exits 0, the pin is green 2/2 against the adapter source, and the ablation is red 2/2 ("Not found"). No changeset (private package). Any further file is still a stop.

  11. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
    os-dev-report

    Addendum, last round (head 9725c42), after reports 7237242813 and 7237679580.

    {
      "issue": 38163,
      "status": "done",
      "branch": "claude/project-thread-ciejge",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38237",
      "session": "session_01L9qibx7DSQZnugnuX8CpCM",
      "premise_still_valid": true,
      "summary": "Last round (surface addition 3 = 7237706727), new head 9725c426. The gate-prescribed 4-line anchored alias { find: /^@object-ui\\/data-objectstack$/, replacement: ui/packages/data-objectstack/src/index.ts } was added to the dogfood isolated project's alias array in packages/qa/dogfood/vitest.config.ts by applying the measured alias-measure.patch unchanged. No other file changed. The card's acceptance is now met in the PR. Route (a): uploadFile and uploadFiles upload through createObjectStackUploadAdapter's presigned flow, with recordId mapped to attachTo and the result mapped to FileUploadResult. fieldName and metadata are refused before any request, which is not a narrowing because every call 404'd before this PR. A unit pin and a real-stack pin each have an ablation. All 11 required CI contexts are green on the new head, including Lint & Repo Gates. The PR body was updated through the relay to drop the now-resolved open item and to cite head 9725c426. The PR is still a draft; it was not readied, merged or queued. The worktree /home/user/objectstack-issue-38163 is kept; the seat may ask for its removal.",
      "tests": "head 9725c426. check:test-source-alias: exit 0 ('check-test-source-alias OK — 128 packages with tests scanned'). Real-stack pin (adapter source via the alias): 'Tests 2 passed (2)', VERDICT command-exit 0. The alias was committed FIRST, then the ablation ran once: BASE index.ts on disk (2 hits of the old route) gave 'Tests 2 failed (2)', 'ObjectStackError: Not found' (VERDICT command-exit 1). `git checkout HEAD -- index.ts` left `git status --porcelain` empty. Re-run after the restore: 'Tests 2 passed (2)', and `pnpm --filter @objectstack/dogfood typecheck` passed (combined VERDICT command-exit 0). Earlier readings stand: the unit file 18/18, its ablation 12/12 red, and the package's 1447/1447 tests with type-check 0, all at 4da89172; no ui file changed since.",
      "gates": "local, head 9725c426: `dispatch-gates --commands --repo objectstack-ai/objectstack` derived 87 families over 8 changed paths; vitest.config.ts added check:optional-error-sink and check:settings-bind-window to round 2's 85. All 87 exited 0. `--ran`: '87 derived, 87 run, 0 NOT-MEASURED, 0 UNRUN' (a derived zero). overlap-check: 'VERDICT clean exit 0' (origin/main clean; #38192 shares packages/qa/dogfood/package.json and merges cleanly). CI on 9725c4266d: every required context completed/success — Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate — plus Check Changeset and PR-body guards. 58 non-skipped check-runs, all success, 0 failure, 0 in progress. Dogfood shards run only on the queue, so the PR-run Dogfood Regression Gate is its PR-speed verdict.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "this round: 2 REST writes. (1) Relay POST /repos/objectstack-ai/objectstack/dispatches: issue_patch = PATCH /repos/objectstack-ai/objectstack/issues/38237 (PR body; 7614 bytes sent, 7614 stored, identical). (2) POST /repos/objectstack-ai/objectstack/issues/38163/comments (this addendum, via post-stamped.mjs). Separately, not REST: 1 git push. Cumulative over the three rounds: 6 REST writes (pr_create + 2 body patches + 3 report comments), 4 git pushes.",
      "files_changed": [
        "ui/packages/data-objectstack/src/index.ts",
        "ui/packages/data-objectstack/src/upload-adapter.ts",
        "ui/packages/data-objectstack/src/uploadTransport-37506.test.ts",
        ".changeset/38163-uploads-storage-presigned.md",
        "packages/qa/dogfood/package.json",
        "pnpm-lock.yaml",
        "packages/qa/dogfood/test/data-objectstack-upload-route-38163.dogfood.test.ts",
        "packages/qa/dogfood/vitest.config.ts"
      ],
      "line_budget": "n/a — no skills/** or ratcheted ledger touched",
      "deviations": [
        "The PR body was edited a second time, beyond the coordinator's ask, so that it no longer carries the resolved 'check:test-source-alias is red' item and its head-78f7f2b3 gate block. The edit went through the relay issue_patch, with the signed trailer as the last line, which the relay requires on a PR body edit.",
        "Carried from earlier rounds: no empty-branch push (os-dev.md rule 1 for card-thread branches), and one pinned commit fetched at depth 1 so the teardown self-test could run."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed (coordinator carries it to L1): upload-adapter's uploadWithProgress retries the byte PUT up to 3 times on any failure, including an HTTP refusal. Dedupe words: 'upload adapter retries refusal', 'uploadWithProgress maxRetries 4xx', 'presigned PUT retry status'."
      ]
    }
  12. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
    os-dev-report

    Addendum, fix round for 7238125504 (head 45c7662).

    {
      "issue": 38163,
      "status": "done",
      "branch": "claude/project-thread-ciejge",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38237",
      "session": "session_01L9qibx7DSQZnugnuX8CpCM",
      "premise_still_valid": true,
      "summary": "Fix round for should-fix 7238125504. New head 45c7662e; no files beyond the existing 8. In storageUploadFetch, a URL counts as this server only when it is a path with one leading `/` that does not start with `//`, or when it starts with `${baseUrl}/`. A protocol-relative URL is no longer treated as this server. A new pin in uploadTransport-37506.test.ts covers this: a same-origin data source (baseUrl '') with a config token is handed a presigned uploadUrl of `//other.example/bucket/x`, and its byte PUT carries no Authorization while the presign and complete requests carry the token. The existing changeset already described the same-origin rule, so it gained one clause: 'and a protocol-relative URL (`//host/...`) is not treated as this server'. The PR body was edited neutrally through the relay ('The same-origin check is tightened: a protocol-relative URL (`//host/...`) is not treated as this server.'), with test counts and head updated and the signed trailer as the last line. The PR is still a draft.",
      "tests": "head 45c7662e. Unit file uploadTransport-37506.test.ts: 'Tests 13 passed (13)' (VERDICT command-exit 0). Ablation once, after the commit: the old check `url.startsWith('/')` written over the file on disk gave 'Tests 1 failed | 12 passed (13)', and the failing test was '× a protocol-relative presigned URL is not treated as this server: it gets no token' (VERDICT command-exit 1). Then `git checkout HEAD -- index.ts` left status clean. Package: `pnpm --dir ui exec vitest run packages/data-objectstack/` gave 'Test Files 128 passed (128) / Tests 1448 passed (1448)'. `pnpm --filter @object-ui/data-objectstack type-check` exited 0. Dogfood real-stack pin: 'Tests 2 passed (2)'. All three were chained with && under one VERDICT command-exit 0.",
      "gates": "local, head 45c7662e: `dispatch-gates --commands --repo objectstack-ai/objectstack` derived 87 families, the same set as at 9725c426 because the change set's path list is unchanged. All 87 exited 0. `--ran`: '87 derived, 87 run, 0 NOT-MEASURED, 0 UNRUN' (a derived zero). overlap-check: 'VERDICT clean exit 0'. CI on 45c7662e, after waiting until every run had completed: 58 non-skipped check-runs, all completed/success, 0 failure, 0 pending. That includes all 11 required contexts — Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate — plus Check Changeset and PR-body guards.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "this round: 2 REST writes. (1) Relay POST /repos/objectstack-ai/objectstack/dispatches (run 46139472029): issue_patch = PATCH /repos/objectstack-ai/objectstack/issues/38237 (PR body; 7879 bytes sent, 7879 stored, identical). (2) POST /repos/objectstack-ai/objectstack/issues/38163/comments (this addendum, via post-stamped.mjs). Separately, not REST: 1 git push. Cumulative: 8 REST writes (pr_create + 3 body patches + 4 report comments), 5 git pushes.",
      "files_changed": [
        "ui/packages/data-objectstack/src/index.ts",
        "ui/packages/data-objectstack/src/upload-adapter.ts",
        "ui/packages/data-objectstack/src/uploadTransport-37506.test.ts",
        ".changeset/38163-uploads-storage-presigned.md",
        "packages/qa/dogfood/package.json",
        "pnpm-lock.yaml",
        "packages/qa/dogfood/test/data-objectstack-upload-route-38163.dogfood.test.ts",
        "packages/qa/dogfood/vitest.config.ts"
      ],
      "line_budget": "n/a — no skills/** or ratcheted ledger touched",
      "deviations": [
        "The derived gate run covered the whole branch's 87 families, not only the families for this round's 3 paths: the derivation takes the branch's change set from the merge base, and this round's paths add no new family."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed (the seat answered it in 7238125504 as a p3 card candidate): upload-adapter's uploadWithProgress retries the byte PUT on any failure, including a definitive 4xx. Dedupe words: 'upload adapter retries refusal', 'uploadWithProgress maxRetries 4xx', 'presigned PUT retry status'."
      ]
    }
  13. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
    os-dev-report

    Addendum, second fix round (head 95e3f9f).

    {
      "issue": 38163,
      "status": "done",
      "branch": "claude/project-thread-ciejge",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38237",
      "session": "session_01L9qibx7DSQZnugnuX8CpCM",
      "premise_still_valid": true,
      "summary": "Second fix round (seat-directed). New head 95e3f9fb; no files beyond the existing 8. storageUploadFetch now calls a module function, isRequestToServer(url, baseUrl), which compares origins through the URL parser. The base is baseUrl when non-empty, else globalThis.location?.origin. With no readable base, or when `new URL` throws, the request is not this server and gets no token. The URL is resolved as `new URL(url, base)`, and it is this server only when its origin equals the base's origin and, for a baseUrl with a non-root path, its pathname starts with that path plus '/'. The protocol-relative pin was kept, as one row of an it.each with the two new spellings, `/\\other.example/x` and `\\\\other.example/x`. For each, the byte PUT carries no Authorization, and presign and complete still carry the token. The unit project's environment is node, so with baseUrl '' the pin stubs `location` (origin http://app-38163.test); vi.unstubAllGlobals in afterEach restores it. The other same-origin cases use a non-empty baseUrl and are unaffected. The dogfood pin's baseUrl is the bare origin http://stack-38163.test (pathname '/'), so no path rule applies, and it passes on the new code (source alias). The changeset clause now reads 'the same-origin check compares resolved origins, so a protocol-relative or backslash-spelled URL that resolves to another host is not this server'. The PR body was edited neutrally through the relay ('The same-origin check compares resolved origins: ...'), with the signed trailer as the last line. The PR is still a draft.",
      "tests": "head 95e3f9fb. Unit file: 'Tests 15 passed (15)' (VERDICT command-exit 0). Ablation as ordered, after the commit: with the 45c7662e check restored on disk, 'Tests 1 failed | 14 passed (15)'. The failing test was '× a slash-backslash presigned URL is not treated as this server'. The double-backslash pin stays GREEN under that check, because the 45c7662e rule already refused a URL not starting with '/', so only one of the two new pins goes red against it. A second ablation, with the origin comparison line removed from isRequestToServer, gave 'Tests 4 failed | 11 passed (15)': the cross-origin S3 case and all three spelling pins. git status was clean after each restore. Package: 'Test Files 128 passed (128) / Tests 1450 passed (1450)'. type-check exited 0. Dogfood pin: 'Tests 2 passed (2)'. All three were chained with && under one VERDICT command-exit 0.",
      "gates": "local, head 95e3f9fb: `dispatch-gates --commands --repo objectstack-ai/objectstack` derived 87 families (the same set). All 87 exited 0. `--ran`: '87 derived, 87 run, 0 NOT-MEASURED, 0 UNRUN' (a derived zero). overlap-check: 'VERDICT clean exit 0' (origin/main clean; #38192 shares packages/qa/dogfood/package.json and #38284 shares pnpm-lock.yaml, and both merge cleanly). CI on 95e3f9fb, after waiting until every run had completed: 58 non-skipped check-runs, all completed/success, 0 failure, 0 pending. That includes all 11 required contexts — Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "this round: 2 REST writes. (1) Relay POST /repos/objectstack-ai/objectstack/dispatches (run 46140164149): issue_patch = PATCH /repos/objectstack-ai/objectstack/issues/38237 (PR body; 8538 bytes sent, 8538 stored, identical). (2) POST /repos/objectstack-ai/objectstack/issues/38163/comments (this addendum, via post-stamped.mjs). Separately, not REST: 1 git push. Cumulative: 10 REST writes (pr_create + 4 body patches + 5 report comments), 6 git pushes.",
      "files_changed": [
        "ui/packages/data-objectstack/src/index.ts",
        "ui/packages/data-objectstack/src/upload-adapter.ts",
        "ui/packages/data-objectstack/src/uploadTransport-37506.test.ts",
        ".changeset/38163-uploads-storage-presigned.md",
        "packages/qa/dogfood/package.json",
        "pnpm-lock.yaml",
        "packages/qa/dogfood/test/data-objectstack-upload-route-38163.dogfood.test.ts",
        "packages/qa/dogfood/vitest.config.ts"
      ],
      "line_budget": "n/a — no skills/** or ratcheted ledger touched",
      "deviations": [
        "The ordered ablation (restore the 45c7662e check) turns only the slash-backslash pin red; the double-backslash pin stays green, because that check already gave it no token. I added a second ablation (origin comparison removed), which turns all three spelling pins and the cross-origin case red, so each new pin is shown to be capable of failing.",
        "The same-path case (resolved pathname exactly equal to baseUrl's path, with no trailing '/') is NOT this server, following the order's 'starts with that path + /'. No current request takes that shape."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed (the seat answered it in 7238125504 as a p3 card candidate): upload-adapter's uploadWithProgress retries the byte PUT on any failure, including a definitive 4xx. Dedupe words: 'upload adapter retries refusal', 'uploadWithProgress maxRetries 4xx', 'presigned PUT retry status'."
      ]
    }
  14. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
    os-dev-report

    Addendum, merge-main round (head fd9501a).

    {
      "issue": 38163,
      "status": "done",
      "branch": "claude/project-thread-ciejge",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38237",
      "session": "session_01L9qibx7DSQZnugnuX8CpCM",
      "premise_still_valid": true,
      "summary": "Merge-main round. New head fd9501a9b1c25d3b977614bb572469aca171b54d is a merge commit with parents 95e3f9fbbe39e448ee0f87b932cdfe2cb3ba6ecb (the branch) and 88ae2f93db1e1a20ef365459d65cc3a18da84862 (origin/main). `git merge --no-edit origin/main` completed with no conflicts, pnpm-lock.yaml included, and no content was changed. `git diff origin/main...HEAD --stat` lists exactly the same 8 files (582 insertions, 131 deletions). `git diff origin/main HEAD -- pnpm-lock.yaml` is only the 3-line dogfood importer entry for '@object-ui/data-objectstack'. Build state was refreshed after the merge: `pnpm install --frozen-lockfile` (no tree change), `rm -rf packages/runtime/.objectstack`, and the dogfood and data-objectstack closures rebuilt (79/79 tasks). The push was a plain fast-forward with no force. The PR is still a draft, and the body was not edited this round.",
      "tests": "head fd9501a9, one lock run chained with && (VERDICT command-exit 0). Unit file uploadTransport-37506.test.ts: 'Tests 15 passed (15)'. Package `pnpm --dir ui exec vitest run packages/data-objectstack/`: 'Test Files 128 passed (128) / Tests 1450 passed (1450)'. `pnpm --filter @object-ui/data-objectstack type-check`: exit 0. Dogfood pin: 'Tests 2 passed (2)'. git status was clean afterwards. No ablation this round, because the merge changed no tested behaviour.",
      "gates": "local, head fd9501a9: `dispatch-gates --commands --repo objectstack-ai/objectstack` (tree at fd9501a9b; 8 paths vs merge base 88ae2f93d) derived 87 families, the same set as at 95e3f9fb. All 87 exited 0. `--ran`: '87 derived, 87 run, 0 NOT-MEASURED, 0 UNRUN' (a derived zero). overlap-check: 'VERDICT clean exit 0' (origin/main clean; #38284 shares pnpm-lock.yaml and #38192 shares packages/qa/dogfood/package.json, and both merge cleanly). CI on fd9501a9, after waiting until every run had completed: 58 non-skipped check-runs, all completed/success, 0 failure, 0 pending. All 11 required contexts are success: Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "this round: 1 REST write: POST /repos/objectstack-ai/objectstack/issues/38163/comments (this addendum, via post-stamped.mjs). Separately, not REST: 1 git push (fast-forward, merge commit). Cumulative: 11 REST writes, 7 git pushes.",
      "files_changed": [
        "ui/packages/data-objectstack/src/index.ts",
        "ui/packages/data-objectstack/src/upload-adapter.ts",
        "ui/packages/data-objectstack/src/uploadTransport-37506.test.ts",
        ".changeset/38163-uploads-storage-presigned.md",
        "packages/qa/dogfood/package.json",
        "pnpm-lock.yaml",
        "packages/qa/dogfood/test/data-objectstack-upload-route-38163.dogfood.test.ts",
        "packages/qa/dogfood/vitest.config.ts"
      ],
      "line_budget": "n/a — no skills/** or ratcheted ledger touched",
      "deviations": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed (the seat answered it in 7238125504 as a p3 card candidate): upload-adapter's uploadWithProgress retries the byte PUT on any failure, including a definitive 4xx. Dedupe words: 'upload adapter retries refusal', 'uploadWithProgress maxRetries 4xx', 'presigned PUT retry status'."
      ]
    }
  15. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
    2026-11-28T13:27Z · 收口:PR #38237 经合并队列合入(333e6f3f),本卡随 Fixes 关闭;去掉 pm:dispatched。

  16. removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions