Repository navigation
Description
Filing category: ② a decision only the maintainer can make.
维护者速读
- 现象:员工最自然的做法是"把发票照片发给 AI,让它填报销单"。用外部 AI(Claude 等)走 MCP 时,照片在 AI 厂商那边,平台拿不到原文件,只能再发上传链接让人重选一次(storage + mcp: one upload link on a multiple: true file field accepts several files (same user, record, field, one use, same expiry) — ruled A #32747)。而平台自带的「问 AI」聊天,照片本来就是传到平台自己的页面里的,现在却直接回一句"当前仅支持读取表格类附件……这些文件的内容我没有读取"。
- 要你裁:自带 AI 是否读取图片/PDF 附件,并把同一份上传直接写进它建的记录的文件字段(不再让人选第二次)。
- 推荐:A:读取 + 直接附加,附加仍以当前用户身份、走记录的编辑门,图片与 PDF、限大小。
One-sentence problem
The one place where the photo's bytes are already inside the platform (the console's own chat) is the one place that refuses to look at it.
Evidence (reach)
ui/packages/app-shell/src/console/ai/AiChatPage.tsxdoSend: files not matching\.(xlsx|xlsm|csv|tsv|txt)$are not sent; the user's message gets(用户上传了 N 个附件:… — 当前仅支持读取表格类附件(Excel/CSV),这些文件的内容我没有读取。)(read at frameworkd7c3d44e).- External-client path measured on a hosted tenant (
pnpm dev:stack --with-ui, cloudff373e02):create_record→create_upload_link→ user re-picks the file →read_filereads it back →run_actionsubmits. Works, at the cost of re-picking every invoice.
Governing text
- objectstack#30892 (closed): "An AI client sees an image the user attaches in its own chat, but it has no bytes to send." True for external clients; not true for the console chat, whose composer holds the
File. docs/NORTH-STAR.md: "Every step of the road must hold for both kinds of user."
Options
| Option | What it does | What the customer sees | Effort |
|---|---|---|---|
| A | Console chat uploads image/PDF attachments to storage as the user (pending sys_file), sends them to the model as image/text parts, and lets the agent put that file id into a file field of a record it creates or edits (edit door as the user; only files this user uploaded in this conversation) |
"Here's my taxi receipt" → claim drafted with amount filled and the photo attached, nothing to pick twice | ui + cloud AI seats · 2–3 PRs · precedent: spreadsheet attachments (cloud#797) |
| B | Read only: the agent sees the photo and fills fields; attaching still goes through an upload link | Fields filled, photo picked again | ui + cloud AI seats · 1–2 PRs |
| C | Keep declining non-spreadsheet attachments | User types the numbers or uses the form | none |
Business reading: A makes the built-in assistant the shortest path for expenses, claims, contracts; B halves it; C keeps it a spreadsheet-only helper.
Recommendation
A. The bytes are already the user's own upload inside the platform, so attaching them raises none of #32747's provenance question (the user picked the file; the agent only routes it). Confidence gap: model vision cost per image and the size cap; recommend images ≤ 10 MiB, PDFs through the existing read_file text extraction.
Self-check: ①②③④ all pick A or B; only ④ alone would accept B first.
After the ruling
A: composer uploads non-spreadsheet attachments as pending files; the agent gets them as parts plus their file ids; a write that names such an id in a file field commits it; e2e: one photo in chat → a draft claim with the amount and the photo on invoices.
os-decision-facets
① 项目长远合理性: A 让文件只上传一次、由用户本人上传,复用现有文件字段和编辑门。
② 实际业务拉动: 报销(发票照片)是最常见的"拍照即录入"场景,本次实测用户第一反应就是把照片发给 AI。
③ 防 AI 犯错: A 只允许附加本人在本对话里上传的文件,agent 不能凭空造文件;读出的金额仍可用 read_file 复核。
④ 创业阶段不扩散: B 更小,A 多一步附加;都复用现有通道,不新增对外接口。
Prior rulings read: #30892 (external-client upload link); #32747 (open, one link for several files); thread: none
Reader who acts: the domain:ui seat (AiChatPage composer) and the cloud AI seat (agent message parts and the attach step), after the ruling.
Dedupe: repo:objectstack-ai/objectstack is:issue AI chat image attachment → 31 hits (#30892 closed, external clients; others PM seats); repo:objectstack-ai/cloud is:issue chat image attachment invoice photo → 0; Non-spreadsheet attachments chat → 0.
Activity
objectstack-fleet commentedon Nov 12, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
分诊首触 + 决策分析(fable 档独立评估)· 2026-11-12T16:56Z
维护者速读
AiChatPage.tsx那一半。是否已有裁决: 未找到(cloud 的 ADR 里没有图像或多模态相关条目)。
前提核实:
ui/packages/app-shell/src/console/ai/AiChatPage.tsx:2196-2212:表格在客户端解析。service-ai里没有图像消息部件,所以这是新模态。四轴:
推荐 A,排在 #32686 之后。置信缺口:每张图的成本、在哪些套餐开放、出境合规口径都未定。自检: 只看①选 A;④单看会选 B 或暂缓,不翻转。人工底线项:模型成本与套餐、图片出境。
os-decision-facets
Prior rulings read: objectstack ADR-0033 header (in-app AI is cloud's); cloud ADR-0005/0023 (model tiers); thread: none
Generated by Claude Code
objectstack-fleet commentedon Nov 13, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Brief-claimed-by: session_01Q4EjjMnyLqJdzuktEmRPXH · batch #2 · 2026-11-13T04:45Z
Decision batch #2, taken on the maintainer's 「5张一批按总监决裁格式给我」; batch #1 was answered 「以上原则同意」.
objectstack-fleet commentedon Nov 13, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling recorded · #32749 · A · 2026-11-13T05:19Z
Maintainer, verbatim (triage#1 session): 「32677 暂停,先由元数据项目自己处理。其他同意」, answering decision batch #2 (proposed
32627 1B·2B·3A / 32749 A / 32979 A / 32677 B / 32688 C). The batch was analysed independently at the fable tier, with prior rulings checked first.domain:uichanges the chat composer.needs-user-decision→pm:queue.Generated by Claude Code
os-bob commentedon Nov 13, 2026
Re-grade on the maintainer's instruction:
priority:p2→priority:p0. State unchanged (pm:queue,domain:cloud, unassigned). Written by a test session, not a seat.Generated by Claude Code
objectstack-fleet commentedon Nov 13, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: p0 → p1 · not an 18.4.0 blocker · 2026-11-13T07:57Z
⛔ Not a claim; the claim and state are unchanged, and the work continues.
mainor merge-queue red and the release window's blockers (「阻塞卡升 p0」). These six cards are MCP approval and upload capability work, not 18.4.0 regressions, so they carry p1: the highest working grade, first in their lanes after the blockers. That keeps the intent of the 07:27Z regrade (「…这些也都开始处理.这样我们审批相关的MCP就非常好用了.」) without holding the cut.Generated by Claude Code
46 remaining items
objectstack-fleet commentedon Dec 3, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Unlock · 2026-12-03T01:11Z
Triage: Blocked-by #39049(AI 写入卡确认 403)已关闭,cloud#4821 早已关闭,
pm:blocked→pm:queue。剩余一步:按卡上 22:48Z 记录,点一次 Confirm 复验。objectstack-fleet commentedon Dec 3, 2026
repo:cloud@zhuangjianguo · zhuangjianguo · session_01TsNV8Bsjqmw7aXCo2QuLU1
Claim: PM loop round 7 · 2026-12-03T04:53Z
Ruling-ref: the maintainer, in the cloud seat's session, put objectstack's open
pm:queue+area:cloudp1/p2 cards in this seat's lane: 「这些任务也应该归你处理 is:issue state:open label:pm:queue label:priority:p2,priority:p1 label:area:cloud」, 「objectstack 仓库的 …」.Scope: re-verify the one step still open from the 22:48Z record. The confirm 403 (#39049) is fixed in cloud PR #5393. The dev clicks Confirm on the AI write card for a record with an uploaded image or PDF. The dev checks that the record's file field holds the same uploaded
sys_fileid, written as the signed-in user. Build nothing; if it fails, report the failure.Session:
session_01TsNV8Bsjqmw7aXCo2QuLU1Account:
zhuangjianguoBranch:
claude/issue-32749-reverifyWorktree:
w32749/cloud-issue-32749Domain:
domain:uiSeat:
repo:cloud@zhuangjianguoFile surface:
docs/qa/platform-checklist/(reason: a run record only, if one is owed; no product change)Container & model:
S,mode:subagent,model: default (dispatch-gates --tier: no mandate),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility: the console AI chat attachment path through the confirmed write (objectstack console and cloud service-ai) | none | members filling records from a photo or PDF in the in-app chat
Thread-read: 7361114659
Premise: unverified (the confirm 403 fix landed in cloud PR #5393; the Confirm step has not been re-measured)
Serial constraints cleared: #39049 closed; cloud PR #5393 merged
objectstack-fleet commentedon Dec 3, 2026
repo:cloud@zhuangjianguo · zhuangjianguo · session_01TsNV8Bsjqmw7aXCo2QuLU1
os-dev-report
{ "issue": 32749, "status": "done", "branch": "claude/issue-32749-reverify (local only: no edit, no commit, never pushed; deleted at cleanup)", "pr": null, "session": "session_01TsNV8Bsjqmw7aXCo2QuLU1", "premise_still_valid": true, "summary": "Re-verification only, nothing built. Rig matches the previous report: cloud origin/main 19dbb4249 (contains PR 5393 33d112835 and PR 5399), the same framework pin b706ec6e linked with the console (--with-ui), run-stack.sh --with-ui --prod-like --seed (posture check: hosted, cloudManaged=true, directSignIn=true), headless Chromium signed in as admin@local.test, the env AI on a local deterministic OpenAI-compatible mock (dummy key, no real provider key). Test object qa_claim (currency amount, image receipt, multi-file docs). VERDICT: every acceptance item PASSES. Confirm on the write card now returns 200 with the console's Bearer token (the 403 from the last run is gone), and the record's file field holds the same uploaded sys_file id, written as the signed-in user. A multi-file field keeps its files on an update made from a new conversation. A file id the record does not hold, from another conversation, is dropped. Recommendation: close the card as completed. Two small card-display problems were seen and are reported below as not filed; neither blocks the card.", "acceptance": [ "A1 PASS (upload as the user): the console composer uploads image and PDF attachments: POST /api/v1/storage/upload/presigned {filename hotel-invoice.jpg, mimeType image/jpeg, size 6403} 200 fileId 23d31698; {invoice.pdf, application/pdf, 405} 200 fileId faa56f92; PUT raw 200 x2; POST upload/complete 200 x2. DB (env SQLite): both sys_file rows owner_id = admin user id DppM4JKK..., scope user, status committed, ref_object/ref_id/ref_field NULL before the write.", "A2 PASS (model gets the same file and its id): the model request the mock received carried an image_url part data:image/jpeg;base64, 6403 bytes, sha256 7a436099dd72 = local file, and a native file part invoice.pdf application/pdf 405 bytes sha256 94ef13c8c8d8 = local file. Text lines: [Attached file \"hotel-invoice.jpg\", fileId 23d31698-...] / [... invoice.pdf, fileId faa56f92-...] and 'To put an attached file into a record, give its fileId as the value of a file or image field.' (The image now arrives as a data: URL, so the previous run's bare-base64 note is resolved by cloud PR 5399.)", "A3 PASS (create, Confirm click, same id, as the user): the agent proposed create_record {objectName qa_claim, values {amount 88.5, title Hotel, receipt 23d31698-...}}. The card showed Awaiting approval. Clicking Confirm sent POST /api/v1/ai/pending-actions/pa_0467ead0.../approve with Authorization: Bearer, and it answered 200 {status executed, result.status written, operation create, recordId XLjOTlknJewZzy0P, values.receipt {id 23d31698-..., name hotel-invoice.jpg, size 6403, mimeType image/jpeg}, message 'Written as the user (created)'}. DB: qa_claim XLjOTlknJewZzy0P receipt = \"23d31698-5165-41c2-b9e0-d94daa7ac9fe\", amount 88.5, created_by = owner_id = updated_by = the admin user id. sys_file 23d31698 ref_object qa_claim, ref_id XLjOTlknJewZzy0P, ref_field receipt, status committed.", "A4 PASS (multi-file keeps existing files, update path): conversation 2 attached taxi-receipt.png and invoice.pdf. update_record docs = [da3fd068, 9a03003c]; Confirm (Bearer) answered 200, written, update. Conversation 3, a new conversation, attached only hotel-2.jpg. update_record docs = [da3fd068, 9a03003c, 55baa0fd]: the two existing ids are not this conversation's attachments and passed because the record already holds them. The card showed current = the two read-form files, value = all three. Confirm answered 200: values.docs lists all three files with names. DB: qa_claim docs = [\"da3fd068-...\",\"9a03003c-...\",\"55baa0fd-...\"], updated_by = admin user id. sys_file da3fd068 / 9a03003c / 55baa0fd all ref qa_claim XLjOTlknJewZzy0P ref_field docs, committed, released_ref_* NULL, deleted_at NULL (nothing released).", "A5 PASS (only this person's files from this conversation, or files already on the record): negative control, conversation 4, no attachment, update_record docs = the three held ids plus faa56f92, which is the user's own PDF from conversation 1 and is not on the record. The tool answered {success false, dropped [{field docs, reason invalid_value, detail 'not a file the user attached in this conversation; ...'}]}, no pending action, no card. The DB is unchanged.", "A6 PASS (edit gate, as the user): the approve runs engine.insert / engine.update with buildToolEngineContext(ctx), the person's context (packages/service-ai-studio/src/tools/record-write.tool.ts, approve dispatcher), after re-checking fileReferences 'owner'. The written rows carry the user as created_by / updated_by, and the door answers 'Written as the user'. No second member was seeded, so a refusal by row or field permission was not measured on this rig; the pinned tests chat-file-field-4821 and chat-file-field-keep-5340 cover that (last run: 19 passed).", "A7 PASS (limits, re-checked): a 12,015,248-byte PNG is refused at attach with 'Too large to attach (limit 10 MB): big-scan.png'. notes.docx is named in the turn text as 'cannot be read yet, were not uploaded, and their content was not read'. Only taxi-receipt.png was uploaded and reached the model (image part 4975 bytes sha256 f4c358d0ddd5).", "Ruling's side condition (a model that cannot read images says so plainly): NOT MEASURED, because the mock model cannot exercise it. Same as the last run." ], "tests": "Live end-to-end only (above): 6 chat turns in the real console (c1 create+Confirm, u1 update+Confirm, u2 update keep+Confirm, n1 negative control, z1 limits; one earlier u1 attempt failed on a mock-side parsing bug in my test double and is excluded). No automated suite re-run: no diff, and no tested behaviour changed. No ablation.", "gates": "No diff, so no derived gate families and no CI. Locked calls: ensure-pinned-framework --link --with-ui (VERDICT command-exit 0, pin tree reused), pnpm install --frozen-lockfile (VERDICT command-exit 0).", "mcp_calls": "0", "api_writes": "1: post-stamped os-dev-report comment on objectstack-ai/objectstack#32749 (POST /repos/objectstack-ai/objectstack/issues/32749/comments). Reads: single-card REST reads of the card and its comments.", "classifier_refusals": [], "open_questions": [], "deviations": [ "Model: a deterministic OpenAI-compatible mock, reached through the runtime's env auto-detection (dummy OPENAI_API_KEY and OPENAI_BASE_URL on the run-stack process), as in the last run. The production gateway wire is NOT MEASURED.", "The mock was extended with an update_record command for A4 and A5 (a test double only, in scratch).", "Ports 4732 and 5832 (not 4000 and 5050), to avoid other agents' stacks.", "Branch claude/issue-32749-reverify was never pushed: no edit and no commit, verification only. The probe push is for branches that will carry edits. Deleted at cleanup with the worktree, the stack workdir and the framework link.", "Two uploads from the failed u1 attempt (ca51dccf, aed4ee93) remain as committed, unreferenced sys_file rows in the throwaway env, which has been deleted." ], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: the console AI write card, measured on this rig. A file or image field shows the bare sys_file id as the new value ('Receipt 23d31698-5165-41c2-b9e0-d94daa7ac9fe'). On an update, the current value is shown as struck-through raw JSON ({\"id\":...,\"name\":\"taxi-receipt.png\",...}) and then '→ id, id, id'. A person approving cannot tell which file is attached, and kept files look removed. Landing: objectstack ui/packages/plugin-chatbot/src/chat/toolRecordWrite.ts formatRecordWriteValue, which runs JSON.stringify on objects and String on ids; still the same on objectstack origin/main 93e035410. Seam: runtime: cloud recordWrite.fields[].value (bare ids) / .current (read-form objects) → renderer: plugin-chatbot toolDetail record-write card. Owner: objectstack (renderer). Dedupe words: record write card file id raw JSON, formatRecordWriteValue file field, approval card attachment name", "class: a · reach: the console AI write card, measured on this rig. 8 s after a successful Confirm, the card header badge still reads 'Awaiting approval' while the card body reads 'Written' with the record link. Seen on both create and update cards (screenshots c1-c-confirmed, u2-c-confirmed), with no page reload. Landing: objectstack ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx tool-state badge (toolAwaitingApproval), which follows the tool part's pending_approval result, not the decision. Owner: objectstack (renderer). Dedupe words: write card badge awaiting approval after confirm, tool state badge stale written", "carrier: none · noted: the local storage raw PUT limit (413 above 10 MiB) and the env CSP blob warnings from the last report were not re-measured; the image bare-base64 note is resolved by cloud PR 5399." ] }objectstack-fleet commentedon Dec 3, 2026
repo:cloud@zhuangjianguo · zhuangjianguo · session_01TsNV8Bsjqmw7aXCo2QuLU1
Verified → closed completed · 2026-12-03T05:11Z
The re-verify (dev report 7368410671; cloud
19dbb4249, which contains PR #5393; pinb706ec6e; the real console; a deterministic model) found every acceptance item PASSES:sys_fileid, written as the signed-in user.Not measured: the ruling's side condition that a model unable to read images says so (a mock model cannot exercise it). The production gateway wire was not measured either.
Two display defects seen on the write card were filed separately: #39264 (a file field shows bare ids, and kept files look removed) and #39265 (the badge stays "Awaiting approval" after Confirm).