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
Export the bounded document text extractor (MCP read_file) for the AI service, so hosted AI can send PDF text instead of the raw file #39008
Filing category ③: the recorded follow-up (option B) of the maintainer's ruling on objectstack-ai/cloud#4821 (comment 7329516761, 「5338 选 A 入队」). For triage's first touch.
packages/mcp/src/file-content.ts (extractFileContent / extractDocument), today not exported. @objectstack/service-ai (cloud) does not depend on @objectstack/mcp.
Acceptance
The bounded extractor is exported from a package the AI service may depend on, keeping its CPU budget, worker pool and character cap.
A follow-up cloud card (filed when this lands) switches PDF input from the native file part to the extracted text, behind the same per-file and per-turn caps.
Claim: PM loop round 1 · 2026-12-02T00:40Z · card thread of seat repo:objectstack@os-support-ai (zone of record osa-ai), opened by the seat's coordinator for this card at 2026-12-02T00:15Z
Area: osa-ai
Session: session_01WGufzegtzKWMxkohs9dHSd
Thread session: session_01WGufzegtzKWMxkohs9dHSd
Account: os-support-ai
Branch: claude/project-thread-10iivq (the card thread's platform-pinned branch, at base 571b4947, zero commits)
Worktree: objectstack-issue-39008
Domain: domain:server
Seat: repo:objectstack@os-support-ai
Home package: @objectstack/core, new Node-only subpath @objectstack/core/document-text. Reading: the last public manifest of @objectstack/service-ai (npm 10.3.0) depends on @objectstack/core, @objectstack/formula, @objectstack/spec and @objectstack/types, never @objectstack/mcp; the cloud tree itself is not readable from this session, so the cloud follow-up card re-reads it. Precedent: @objectstack/core/egress, a Node-only subpath kept off the main entry so a host that never uses it never loads its dependency. unpdf moves from @objectstack/mcp to @objectstack/core (still a dynamic import on the first PDF).
File surface: packages/core/src/document-text.ts (new: the extractor, its caps, the two host bounds, the busy refusal), packages/core/src/document-text-pool.ts (new: the worker pool, moved), packages/core/src/document-text-worker.ts (new: the worker entry, moved), packages/core/package.json (the ./document-text export, the unpdf dependency), packages/core/tsup.config.ts (the entry, the worker entry beside it, shims for the CJS import.meta.url), packages/mcp/src/file-content.ts (the extractor leaves; the read_file renderer and the file bridge types stay and import it), packages/mcp/src/file-extraction-pool.ts and packages/mcp/src/file-extraction-worker.ts (deleted, moved to core), packages/mcp/tsup.config.ts (the worker entry leaves), packages/mcp/package.json (unpdf leaves), packages/mcp/vitest.config.ts (one alias to the core source), content/docs/ai/connect-mcp.mdx (the two host variables now bound the shared extractor), docs/qa/platform-checklist/areas/ai.json (the read_file item's anchors repointed to the moved symbols, one revision), pnpm-lock.yaml. ⛔ No change to what read_file answers, to the caps, to the two host variable names or defaults. Stop on breach; explain in the report.
Container & model: L, mode:thread, model: default (dispatch-gates --tier: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s) … floor sonnet · default opus · ceiling fable"); served tier read by get_session: opus, matches, effort: high (L card: a public subpath, a package move of a worker pool and its build entry)
Clause-②: yes (widening)
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7330127147
Premise: holds at origin/main571b494: extractFileContent / extractDocument live in packages/mcp/src/file-content.ts with the pool in packages/mcp/src/file-extraction-pool.ts, and packages/mcp/src/index.ts exports none of them; no package in this repo exports a document text extractor.
Serial constraints cleared: check-handover.mjs --inflight --paths= over this surface: NO OVERLAP READ (one claim, #38415, names no path; it is the seat's own and touches no package).
Claim surface amend: the change set also touches nine more vitest configs (packages/runtime, packages/metadata, packages/drivers/driver-memory, packages/drivers/driver-sql, packages/plugins/knowledge-memory, packages/plugins/knowledge-pgvector, packages/plugins/knowledge-turso, packages/plugins/plugin-dev, packages/plugins/plugin-hono-server), one alias line each mapping @objectstack/core/document-text to its source before the bare @objectstack/core prefix entry. check:test-source-alias reds without them (a published subpath swallowed by a prefix alias; runtime was a live ENOTDIR because its tests reach @objectstack/mcp). Mechanical, the gate's own prescription; no other file outside the claimed surface.
{
"issue": 39008,
"status": "done",
"branch": "claude/project-thread-10iivq",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39016",
"session": "session_01WGufzegtzKWMxkohs9dHSd",
"premise_still_valid": true,
"summary": "The bounded extractor read_file used moves verbatim from @objectstack/mcp to a new Node-only subpath @objectstack/core/document-text (caps, CPU budget and ceiling, worker pool and entry, process-wide cap and its 503 refusal); unpdf moves with it. read_file keeps READ_FILE_MAX_BYTES, the bridge types and renderReadFile, and imports the extractor; its answers are unchanged. The ten worker-pool pins moved beside the pool in core; the checklist item repoints its anchors (revision 4). PR body says Part of #39008: acceptance 2 is the cloud card the seat files on landing.",
"tests": "at a48aefc4: core 160 files / 3833 passed; mcp 89 files / 1659 passed; runtime mcp-record-file-bridge + mcp-object-schema-mask 2 files / 87 passed; core and mcp typecheck clean. Built-output smoke: ESM import and CJS require of dist each read a PDF on a real worker (pool started 1, no fallback warn); mcp dist carries no extractor copy. No tested behaviour changed (a move), so no ablation.",
"gates": "dispatch-gates --commands: 127 commands, all green except NOT MEASURED exit 3 (prerequisite: full build or deeper clone) check:dual-build-cjs-loads, check:published-readme-exports, spec check:skill-examples, check-plugin-teardown-shape --self-test; check:query-options-erasure not run (container killed during its repo-wide ESLint scan); check:test-source-alias red then fixed (amend above), green. check-platform-checklist --changed-from origin/main: 30 judged, 0 lost. CI check-runs: pending on the PR head.",
"mcp_calls": "0",
"api_writes": "3 — relay: claim stroke (comment + labels + assign on #39008), pr_create #39016 with assignee, this report comment",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: cloud · the extractor's kind 'none' sentences name read_file and a download link; the cloud follow-up decides how to present them · noted in Acceptance notes, not filed"]
}
2026-12-02T21:53Z · Takeover · seat repo:objectstack@os-support-ai (os-support-ai) is out of tokens; seat repo:objectstack@os-bill continues its claim. The seat does not change hands (席不过户); only the card does.
Release: claim 7330462633 (session session_01WGufzegtzKWMxkohs9dHSd, account os-support-ai, seat repo:objectstack@os-support-ai) — taken over, not abandoned. Provenance: who = the maintainer (Bill, os-bill); words, verbatim: 「os-support-ai 没有 token了,他的任务你都接手,包括他处理中的专题你也接手 https://github.com/objectstack-ai/objectstack/pull/38766」; where = the fleet project of seat repo:objectstack@os-bill, 2026-12-02T21:45Z, relayed into the seat thread by the project coordinator with his message attached.
Handover: PR #39016 merged (f28c39fe11, 2026-12-02T03:33Z) and carries acceptance item 1; item 2 is the cloud card itself, filed as objectstack-ai/cloud#5354 (7334652286). Nothing is owed here but the close-out, which follows in a separate comment. Picked-up work is UNVERIFIED until this seat re-reads it at that head.
Assignee: os-support-ai → os-bill in this stroke.
Claim: PM loop round 8 (takeover of 7330462633)
Session: session_01Utp6CaQsbKBMQtm6Tpsamd
Account: os-bill
Branch: claude/project-thread-10iivq (no build left)
Seat: repo:objectstack@os-bill
File surface: none in this stroke.
Thread-read: 7334652286
Premise: holds.
Serial constraints cleared: none — no repository file in this stroke.
Close-out · 2026-12-02T22:02Z · both acceptance items are met. Item 1: PR #39016 merged (f28c39fe11, 2026-12-02T03:33Z) exports the bounded extractor with its CPU budget, worker pool and character cap. Item 2 is the filing of the follow-up cloud card itself: objectstack-ai/cloud#5354 (7334652286), which now carries the PDF switch. Closed as completed; pm:dispatched removed.
Activity
objectstack-fleet commentedon Dec 2, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
First touch · 2026-12-02T00:04Z
定级:
area:ai · Feature · p2 · 云端 AI 读 PDF 时不支持 PDF 的模型整轮报错、费用随页数涨 · objectstack-ai/cloud#4821 裁定(「5338 选 A 入队」)记下的 B 项后续finding,补area:aidomain:aipriority:p2、类型 Feature,进pm:queue。objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzegtzKWMxkohs9dHSd
Claim: PM loop round 1 · 2026-12-02T00:40Z · card thread of seat
repo:objectstack@os-support-ai(zone of recordosa-ai), opened by the seat's coordinator for this card at 2026-12-02T00:15ZArea: osa-ai
Session:
session_01WGufzegtzKWMxkohs9dHSdThread session:
session_01WGufzegtzKWMxkohs9dHSdAccount:
os-support-aiBranch:
claude/project-thread-10iivq(the card thread's platform-pinned branch, at base571b4947, zero commits)Worktree:
objectstack-issue-39008Domain:
domain:serverSeat:
repo:objectstack@os-support-aiHome package:
@objectstack/core, new Node-only subpath@objectstack/core/document-text. Reading: the last public manifest of@objectstack/service-ai(npm 10.3.0) depends on@objectstack/core,@objectstack/formula,@objectstack/specand@objectstack/types, never@objectstack/mcp; the cloud tree itself is not readable from this session, so the cloud follow-up card re-reads it. Precedent:@objectstack/core/egress, a Node-only subpath kept off the main entry so a host that never uses it never loads its dependency.unpdfmoves from@objectstack/mcpto@objectstack/core(still a dynamic import on the first PDF).File surface:
packages/core/src/document-text.ts(new: the extractor, its caps, the two host bounds, the busy refusal),packages/core/src/document-text-pool.ts(new: the worker pool, moved),packages/core/src/document-text-worker.ts(new: the worker entry, moved),packages/core/package.json(the./document-textexport, theunpdfdependency),packages/core/tsup.config.ts(the entry, the worker entry beside it,shimsfor the CJSimport.meta.url),packages/mcp/src/file-content.ts(the extractor leaves; theread_filerenderer and the file bridge types stay and import it),packages/mcp/src/file-extraction-pool.tsandpackages/mcp/src/file-extraction-worker.ts(deleted, moved to core),packages/mcp/tsup.config.ts(the worker entry leaves),packages/mcp/package.json(unpdfleaves),packages/mcp/vitest.config.ts(one alias to the core source),content/docs/ai/connect-mcp.mdx(the two host variables now bound the shared extractor),docs/qa/platform-checklist/areas/ai.json(theread_fileitem's anchors repointed to the moved symbols, one revision),pnpm-lock.yaml. ⛔ No change to whatread_fileanswers, to the caps, to the two host variable names or defaults. Stop on breach; explain in the report.Container & model:
L,mode:thread,model: default (dispatch-gates --tier: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s) … floor sonnet · default opus · ceiling fable"); served tier read by get_session: opus, matches,effort: high (L card: a public subpath, a package move of a worker pool and its build entry)Clause-②: yes (widening)
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 7330127147
Premise: holds at
origin/main571b494:extractFileContent/extractDocumentlive inpackages/mcp/src/file-content.tswith the pool inpackages/mcp/src/file-extraction-pool.ts, andpackages/mcp/src/index.tsexports none of them; no package in this repo exports a document text extractor.Serial constraints cleared:
check-handover.mjs --inflight --paths=over this surface: NO OVERLAP READ (one claim, #38415, names no path; it is the seat's own and touches no package).objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzegtzKWMxkohs9dHSd
os-dev-report
Claim surface amend: the change set also touches nine more vitest configs (
packages/runtime,packages/metadata,packages/drivers/driver-memory,packages/drivers/driver-sql,packages/plugins/knowledge-memory,packages/plugins/knowledge-pgvector,packages/plugins/knowledge-turso,packages/plugins/plugin-dev,packages/plugins/plugin-hono-server), one alias line each mapping@objectstack/core/document-textto its source before the bare@objectstack/coreprefix entry.check:test-source-aliasreds without them (a published subpath swallowed by a prefix alias;runtimewas a live ENOTDIR because its tests reach@objectstack/mcp). Mechanical, the gate's own prescription; no other file outside the claimed surface.{ "issue": 39008, "status": "done", "branch": "claude/project-thread-10iivq", "pr": "https://github.com/objectstack-ai/objectstack/pull/39016", "session": "session_01WGufzegtzKWMxkohs9dHSd", "premise_still_valid": true, "summary": "The bounded extractor read_file used moves verbatim from @objectstack/mcp to a new Node-only subpath @objectstack/core/document-text (caps, CPU budget and ceiling, worker pool and entry, process-wide cap and its 503 refusal); unpdf moves with it. read_file keeps READ_FILE_MAX_BYTES, the bridge types and renderReadFile, and imports the extractor; its answers are unchanged. The ten worker-pool pins moved beside the pool in core; the checklist item repoints its anchors (revision 4). PR body says Part of #39008: acceptance 2 is the cloud card the seat files on landing.", "tests": "at a48aefc4: core 160 files / 3833 passed; mcp 89 files / 1659 passed; runtime mcp-record-file-bridge + mcp-object-schema-mask 2 files / 87 passed; core and mcp typecheck clean. Built-output smoke: ESM import and CJS require of dist each read a PDF on a real worker (pool started 1, no fallback warn); mcp dist carries no extractor copy. No tested behaviour changed (a move), so no ablation.", "gates": "dispatch-gates --commands: 127 commands, all green except NOT MEASURED exit 3 (prerequisite: full build or deeper clone) check:dual-build-cjs-loads, check:published-readme-exports, spec check:skill-examples, check-plugin-teardown-shape --self-test; check:query-options-erasure not run (container killed during its repo-wide ESLint scan); check:test-source-alias red then fixed (amend above), green. check-platform-checklist --changed-from origin/main: 30 judged, 0 lost. CI check-runs: pending on the PR head.", "mcp_calls": "0", "api_writes": "3 — relay: claim stroke (comment + labels + assign on #39008), pr_create #39016 with assignee, this report comment", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: cloud · the extractor's kind 'none' sentences name read_file and a download link; the cloud follow-up decides how to present them · noted in Acceptance notes, not filed"] }objectstack-fleet commentedon Dec 2, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Follow-up filed · 2026-12-02T04:11Z
验收第 2 条的云端卡已立:objectstack-ai/cloud#5354(p2,
pm:queue)。PR #39016 于 2026-12-02T03:33Z 合并。objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd
2026-12-02T21:53Z · Takeover · seat
repo:objectstack@os-support-ai(os-support-ai) is out of tokens; seatrepo:objectstack@os-billcontinues its claim. The seat does not change hands (席不过户); only the card does.Release: claim 7330462633 (session
session_01WGufzegtzKWMxkohs9dHSd, accountos-support-ai, seatrepo:objectstack@os-support-ai) — taken over, not abandoned. Provenance: who = the maintainer (Bill,os-bill); words, verbatim: 「os-support-ai 没有 token了,他的任务你都接手,包括他处理中的专题你也接手 https://github.com/objectstack-ai/objectstack/pull/38766」; where = the fleet project of seatrepo:objectstack@os-bill, 2026-12-02T21:45Z, relayed into the seat thread by the project coordinator with his message attached.Handover: PR #39016 merged (
f28c39fe11, 2026-12-02T03:33Z) and carries acceptance item 1; item 2 is the cloud card itself, filed as objectstack-ai/cloud#5354 (7334652286). Nothing is owed here but the close-out, which follows in a separate comment. Picked-up work is UNVERIFIED until this seat re-reads it at that head.Assignee:
os-support-ai→os-billin this stroke.Claim: PM loop round 8 (takeover of 7330462633)
Session:
session_01Utp6CaQsbKBMQtm6TpsamdAccount:
os-billBranch:
claude/project-thread-10iivq(no build left)Seat:
repo:objectstack@os-billFile surface: none in this stroke.
Thread-read: 7334652286
Premise: holds.
Serial constraints cleared: none — no repository file in this stroke.
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd
Close-out · 2026-12-02T22:02Z · both acceptance items are met. Item 1: PR #39016 merged (
f28c39fe11, 2026-12-02T03:33Z) exports the bounded extractor with its CPU budget, worker pool and character cap. Item 2 is the filing of the follow-up cloud card itself: objectstack-ai/cloud#5354 (7334652286), which now carries the PDF switch. Closed as completed;pm:dispatchedremoved.