|
1263 | 1263 | "title": "read_file answers the text of a PDF and a Word document with its facts, stops a long extraction at the CPU-time budget with a note, refuses past the concurrent-reading cap with a retryable 503, and a malformed budget variable fails the boot naming it", |
1264 | 1264 | "since": "v18.4", |
1265 | 1265 | "status": "active", |
1266 | | - "revision": 3, |
| 1266 | + "revision": 4, |
1267 | 1267 | "priority": "P1", |
1268 | 1268 | "surface": "api", |
1269 | 1269 | "personas": [ |
|
1295 | 1295 | { |
1296 | 1296 | "clause": "a Word document answers its paragraphs as text", |
1297 | 1297 | "oracle": "network", |
1298 | | - "verify": "facts carry content 'text' and the .docx mime type as format; the text block holds the document's paragraphs (packages/mcp/src/file-content.ts#extractFileContent)", |
| 1298 | + "verify": "facts carry content 'text' and the .docx mime type as format; the text block holds the document's paragraphs (packages/core/src/document-text-extract.ts#extractFileContent)", |
1299 | 1299 | "evidence": "both content blocks" |
1300 | 1300 | }, |
1301 | 1301 | { |
|
1307 | 1307 | { |
1308 | 1308 | "clause": "an extraction over the CPU-time budget answers the text read so far, truncated, with the budget note", |
1309 | 1309 | "oracle": "network", |
1310 | | - "verify": "facts carry content 'text', truncated true and a note opening 'Reading stopped at the CPU-time budget for one file (60 ms) after page', the budget the boot carries (packages/mcp/src/file-content.ts#pdfAnswer, #stoppedExtractionAnswer, #READ_FILE_CPU_BUDGET_MS_ENV). A budget spent before the first page's text answers the zero-page shape instead: content 'none', no truncated, and the budget sentence as the note (pdfAnswer's empty arm hands the budget note over as its reason). That shape is a fixture budget too low for the host, not this clause's verdict: record it and read again at a higher budget. Whether a stopped read must always carry truncated true is open for the maintainer (#32945); until it is ruled, the zero-page shape is no FAIL", |
| 1310 | + "verify": "facts carry content 'text', truncated true and a note opening 'Reading stopped at the CPU-time budget for one file (60 ms) after page', the budget the boot carries (packages/core/src/document-text-extract.ts#pdfAnswer, #stoppedExtractionAnswer, #READ_FILE_CPU_BUDGET_MS_ENV). A budget spent before the first page's text answers the zero-page shape instead: content 'none', no truncated, and the budget sentence as the note (pdfAnswer's empty arm hands the budget note over as its reason). That shape is a fixture budget too low for the host, not this clause's verdict: record it and read again at a higher budget. Whether a stopped read must always carry truncated true is open for the maintainer (#32945); until it is ruled, the zero-page shape is no FAIL", |
1311 | 1311 | "evidence": "the facts block" |
1312 | 1312 | }, |
1313 | 1313 | { |
1314 | 1314 | "clause": "a malformed budget variable fails the boot naming the variable", |
1315 | 1315 | "oracle": "log", |
1316 | | - "verify": "the boot fails with 'OS_MCP_READ_FILE_CPU_BUDGET_MS must be a positive integer; got \"abc\"' (packages/mcp/src/file-content.ts#configureReadFileExtraction, called from the MCP plugin's init)", |
| 1316 | + "verify": "the boot fails with 'OS_MCP_READ_FILE_CPU_BUDGET_MS must be a positive integer; got \"abc\"' (packages/core/src/document-text-extract.ts#configureReadFileExtraction, called from the MCP plugin's init)", |
1317 | 1317 | "evidence": "the exit code and the log line" |
1318 | 1318 | }, |
1319 | 1319 | { |
|
1336 | 1336 | }, |
1337 | 1337 | "source": [ |
1338 | 1338 | "packages/mcp/src/file-content.ts#renderReadFile", |
1339 | | - "packages/mcp/src/file-content.ts#extractFileContent", |
1340 | | - "packages/mcp/src/file-content.ts#stoppedExtractionAnswer", |
1341 | | - "packages/mcp/src/file-content.ts#configureReadFileExtraction", |
1342 | | - "packages/mcp/src/file-content.ts#ReadFileExtractionBusyError", |
| 1339 | + "packages/core/src/document-text-extract.ts#extractFileContent", |
| 1340 | + "packages/core/src/document-text-extract.ts#stoppedExtractionAnswer", |
| 1341 | + "packages/core/src/document-text-extract.ts#configureReadFileExtraction", |
| 1342 | + "packages/core/src/document-text-extract.ts#ReadFileExtractionBusyError", |
1343 | 1343 | "packages/mcp/src/mcp-http-tools.ts#registerFileTools" |
1344 | 1344 | ], |
1345 | 1345 | "history": [ |
|
1352 | 1352 | { |
1353 | 1353 | "revision": 2, |
1354 | 1354 | "date": "2026-11-13", |
1355 | | - "change": "assertion-defect correction of acceptance[3] (with fixtures.requires[2] and [3], steps[0] and steps[2]). At OS_MCP_READ_FILE_CPU_BUDGET_MS=1 the budget is spent before the first page, so pdfAnswer's empty arm answers content 'none' with the budget note and no truncated (packages/mcp/src/file-content.ts#pdfAnswer); at 60 the clause's shape appears. The fixture budget is raised to 60, the clause names the zero-page shape as a fixture signal to re-read at a higher budget, and leaves open whether a stopped read must always carry truncated true (if ruled so, that is a product defect in pdfAnswer's empty arm, not this item's). The receipt field is on showcase_invoice_line, not showcase_invoice (examples/app-showcase/src/data/objects/invoice.object.ts), so the fixture and steps name the invoice line. Found by the 18.4.0 acceptance run #32940 (F-4 to F-8 and its R4/R5 comments; wave anchor #32908). Re-read at main cf1b55c0. Card #32945", |
| 1355 | + "change": "assertion-defect correction of acceptance[3] (with fixtures.requires[2] and [3], steps[0] and steps[2]). At OS_MCP_READ_FILE_CPU_BUDGET_MS=1 the budget is spent before the first page, so pdfAnswer's empty arm answers content 'none' with the budget note and no truncated (packages/core/src/document-text-extract.ts#pdfAnswer, where the extractor moved in revision 4); at 60 the clause's shape appears. The fixture budget is raised to 60, the clause names the zero-page shape as a fixture signal to re-read at a higher budget, and leaves open whether a stopped read must always carry truncated true (if ruled so, that is a product defect in pdfAnswer's empty arm, not this item's). The receipt field is on showcase_invoice_line, not showcase_invoice (examples/app-showcase/src/data/objects/invoice.object.ts), so the fixture and steps name the invoice line. Found by the 18.4.0 acceptance run #32940 (F-4 to F-8 and its R4/R5 comments; wave anchor #32908). Re-read at main cf1b55c0. Card #32945", |
1356 | 1356 | "ref": "#32945" |
1357 | 1357 | }, |
1358 | 1358 | { |
1359 | 1359 | "revision": 3, |
1360 | 1360 | "date": "2026-11-15", |
1361 | 1361 | "change": "acceptance[5].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", |
1362 | 1362 | "ref": "#34068" |
| 1363 | + }, |
| 1364 | + { |
| 1365 | + "revision": 4, |
| 1366 | + "date": "2026-12-02", |
| 1367 | + "change": "anchor repoint, no clause, step, fixture or threshold changed: the extractor read_file reads through (its caps, the CPU budget, the worker pool, the cap on reads in flight and the busy refusal) moved from packages/mcp/src/file-content.ts to the shared packages/core/src/document-text-extract.ts (published through the curated entry packages/core/src/document-text.ts, export @objectstack/core/document-text), so acceptance[1], [3] and [4], source and revision 2's citation name it there; renderReadFile and READ_FILE_MAX_BYTES stay in the MCP file. The worker-pool pins moved beside the pool (packages/core/src/document-text.worker-pool.test.ts); the pins acceptance[5] scores stay in automated.ref. Card #39008", |
| 1368 | + "ref": "#39008" |
1363 | 1369 | } |
1364 | 1370 | ] |
1365 | 1371 | }, |
|
0 commit comments