Skip to content

同服务器令牌棘轮:别名、拼接 URL、spread 参数等写法数漏,react 宿主回退仍走裸 fetch(接 #37225) #37505

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

Filing gate: ② review finding S1 + S2 + S3b of the seat's L2 on PR #37489 (#37225), record 7187820695; the seat asked the owning zone to card it under #37225. Source: reviewer.
Grading: area:ux · Bug · p2 (triage grades) · reach: every same-server call the bearer ratchet should hold but cannot see, so a cookie-only call can come back unnoticed · evidence: L2 record 7187820695; os-dev report 7187574466.

维护者速读

What

  • ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts: an aliased const doFetch = apiFetch ?? fetch counts 0; URL constants, + concatenation, credentials: 'same-origin' and spread inits are missed; the MePermissionsProvider row says 1 for 2 sites (S1, S2).
  • S3b: the react host fallbacks ui/packages/react/src/useElementApiDataSource.ts (1) and useDatasetDimensionLabels.ts (1) fall back to bare fetch when no host apiFetch exists; convert or record them once the ratchet sees them.

Acceptance

  • The ratchet counts each listed spelling (a pin per spelling), the row counts match the census, and stays shrink-only.
  • The two react fallbacks are converted or recorded with their reason.

Blocked-by: #37225

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:blocked · size S; rationale: a follow-up of #37225 (same-server reads under a bearer-only session), filed from L2 record 7187820695: the token ratchet misses aliases, built URLs and spread args. p2 as filed; blocked by #37225.

  3. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock · #37505 · 2026-11-27T06:33Z: the card's only Blocked-by: line names #37225, which was closed as completed at 2026-11-26T11:21Z. No later block is recorded on this card. pm:blocked → pm:queue; grade, area and size unchanged. Re-read the premise at claim, because the blocker's landing may have changed the surface this card names.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 27, 2026
  5. 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_01L9qic11DcdSCqDBNNUAXcb
    Account: os-tesla
    Branch: claude/project-thread-iryzkt
    Worktree: objectstack-issue-37505
    Domain: ui
    Area: o3-ux (area:ux p2, a seat card thread). One PR carries #37505, #37506 and #37507, as the seat agreed under the Fable review (o3-ux-w0-fable-review.md).
    Seat: repo:objectstack#3
    Seat rulings on the pre-claim report (/mnt/project-files/card-37505/pre-claim-report-581ae76a.md, main 581ae76):

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 37505,
      "status": "done",
      "branch": "claude/project-thread-iryzkt",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38173",
      "session": "session_01L9qic11DcdSCqDBNNUAXcb",
      "premise_still_valid": true,
      "summary": "One PR for #37505, #37506 and #37507 (claims 7234066663, 7234073360, 7234079516), on the corrected premises. #37506: data-objectstack uploadFile and uploadFiles call the injected fetch as given (uploadTransport, kept aside in the constructor) instead of the global fetch, outside observeServerAnswer, so uploads carry the host's bearer and still do not move the connection state; README sentence corrected; metadata-client had no bare call left. #37505: the bearer ratchet reads a URL const, a + concatenation, credentials same-origin and a spread of a file const (later keys override; an unreadable spread keeps a credentials value written before it); ALLOWED unchanged and still exact over the whole tree. #37505 and #37507: REGISTERED_CHANNELS records the two react apiFetch ?? fetch host channels and the createAuthClient stale-bearer self-heal retry with their reasons, pinned to their spelling; no production change for #37507. Patch changeset for @object-ui/data-objectstack. #38101 not touched (seat 1, #38148). Side finding measured and filed by the seat as #38163.",
      "tests": "At 96332e47. uploadTransport-37506.test.ts: Tests 3 passed (3); ablation (both uploads back to the global fetch, fix committed, restored from HEAD): Tests 3 failed (3). sameServerFetch.bearer.ratchet.test.ts: Tests 5 passed (5); ablations one at a time: uploads back to the global fetch red the counted-row case with exactly the two upload lines; removing the + branch, the URL-const lookup, the same-origin reading or the spread reading each reds that spelling's detector case. The ratchet merged with #38148 (git merge-file, not committed): Tests 5 passed (5). data-objectstack type-check exit 0 after a closure build; eslint on the 3 changed .ts files 0 errors, warnings only the existing no-explicit-any ones in index.ts.",
      "gates": "dispatch-gates --ran at 96332e47: 40 derived, 40 run, all exit 0, 0 NOT-MEASURED (derived zero), including pnpm --dir ui exec vitest run scripts/ (5144 passed, 2 skipped). overlap-check: clean against origin/main 33a0d4fa and #38148. PR check-runs at 96332e47: 45 success, 13 skipped, 0 failed — Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16 shards), Build & E2E UI, Live E2E UI, Dogfood Regression Gate (aggregate), Check Changeset and PR-body guards success; Build Core skipped (selector).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "11 GitHub MCP read calls (issue_read x8, list_pull_requests x3); no MCP writes",
      "api_writes": "3 — fleet-write relay pr_create (#38173, read-back 6428 bytes identical, assignee os-tesla); relay pr_request_reviewers (os-tesla); this os-dev-report comment via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: #38163 · the upload route the two methods post to answers 404 on a stock stack (measured with bootStack + storage, admin bearer); filed by the seat"]
    }
  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Closed-card tidy · 2026-11-28T07:57Z: the card closed when its PR merged; pm:dispatched comes off.

  9. 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