Test RL Environment badge precedence on registered ExtractBench

#5
by xujustinj - opened
This view is limited to 50 files because it contains too many changes. See the raw diff here.
Files changed (50) hide show
  1. .gitattributes +9 -0
  2. README.md +33 -0
  3. harbor-manifest.json +0 -0
  4. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/environment/Dockerfile +7 -0
  5. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/environment/document.pdf +3 -0
  6. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/environment/schema.json +161 -0
  7. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/instruction.md +16 -0
  8. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/solution/expected.json +169 -0
  9. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/solution/solve.sh +3 -0
  10. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/task.toml +30 -0
  11. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/tests/Dockerfile +5 -0
  12. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/tests/reference.test.json +1 -0
  13. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/tests/test.sh +3 -0
  14. tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/tests/verifier.py +134 -0
  15. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/environment/Dockerfile +7 -0
  16. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/environment/document.pdf +3 -0
  17. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/environment/schema.json +161 -0
  18. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/instruction.md +16 -0
  19. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/solution/expected.json +49 -0
  20. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/solution/solve.sh +3 -0
  21. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/task.toml +30 -0
  22. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/tests/Dockerfile +5 -0
  23. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/tests/reference.test.json +1 -0
  24. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/tests/test.sh +3 -0
  25. tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/tests/verifier.py +134 -0
  26. tasks/long--gov-clin-schedule-0005-7b780d39e0/environment/Dockerfile +7 -0
  27. tasks/long--gov-clin-schedule-0005-7b780d39e0/environment/document.pdf +3 -0
  28. tasks/long--gov-clin-schedule-0005-7b780d39e0/environment/schema.json +210 -0
  29. tasks/long--gov-clin-schedule-0005-7b780d39e0/instruction.md +16 -0
  30. tasks/long--gov-clin-schedule-0005-7b780d39e0/solution/expected.json +189 -0
  31. tasks/long--gov-clin-schedule-0005-7b780d39e0/solution/solve.sh +3 -0
  32. tasks/long--gov-clin-schedule-0005-7b780d39e0/task.toml +30 -0
  33. tasks/long--gov-clin-schedule-0005-7b780d39e0/tests/Dockerfile +5 -0
  34. tasks/long--gov-clin-schedule-0005-7b780d39e0/tests/reference.test.json +1 -0
  35. tasks/long--gov-clin-schedule-0005-7b780d39e0/tests/test.sh +3 -0
  36. tasks/long--gov-clin-schedule-0005-7b780d39e0/tests/verifier.py +134 -0
  37. tasks/long--gov-clin-schedule-0031-3e9a48dca4/environment/Dockerfile +7 -0
  38. tasks/long--gov-clin-schedule-0031-3e9a48dca4/environment/document.pdf +3 -0
  39. tasks/long--gov-clin-schedule-0031-3e9a48dca4/environment/schema.json +210 -0
  40. tasks/long--gov-clin-schedule-0031-3e9a48dca4/instruction.md +16 -0
  41. tasks/long--gov-clin-schedule-0031-3e9a48dca4/solution/expected.json +329 -0
  42. tasks/long--gov-clin-schedule-0031-3e9a48dca4/solution/solve.sh +3 -0
  43. tasks/long--gov-clin-schedule-0031-3e9a48dca4/task.toml +30 -0
  44. tasks/long--gov-clin-schedule-0031-3e9a48dca4/tests/Dockerfile +5 -0
  45. tasks/long--gov-clin-schedule-0031-3e9a48dca4/tests/reference.test.json +0 -0
  46. tasks/long--gov-clin-schedule-0031-3e9a48dca4/tests/test.sh +3 -0
  47. tasks/long--gov-clin-schedule-0031-3e9a48dca4/tests/verifier.py +134 -0
  48. tasks/long--real-credit-strategies-full-ace220cdf3/environment/Dockerfile +7 -0
  49. tasks/long--real-credit-strategies-full-ace220cdf3/environment/document.pdf +3 -0
  50. tasks/long--real-credit-strategies-full-ace220cdf3/environment/schema.json +153 -0
.gitattributes CHANGED
@@ -343,3 +343,12 @@ docs/short/passcoag-2020-w2-p0006-r1.pdf filter=lfs diff=lfs merge=lfs -text
343
  docs/short/passcoag-2020-w2-p0006-r2.pdf filter=lfs diff=lfs merge=lfs -text
344
  docs/short/passcoag-2020-w2-p0006-r3.pdf filter=lfs diff=lfs merge=lfs -text
345
  docs/short/passcoag-2020-w2-p0006-r4.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
343
  docs/short/passcoag-2020-w2-p0006-r2.pdf filter=lfs diff=lfs merge=lfs -text
344
  docs/short/passcoag-2020-w2-p0006-r3.pdf filter=lfs diff=lfs merge=lfs -text
345
  docs/short/passcoag-2020-w2-p0006-r4.pdf filter=lfs diff=lfs merge=lfs -text
346
+ tasks/**/document.pdf filter=lfs diff=lfs merge=lfs -text
347
+ tasks/long--real-ftx-full-8bc04e3a1f/tests/reference.test.json filter=lfs diff=lfs merge=lfs -text
348
+ tasks/long--real-ftx-full-corrupted-e86161dfec/tests/reference.test.json filter=lfs diff=lfs merge=lfs -text
349
+ tasks/long--real-imedia-full-68cb374079/tests/reference.test.json filter=lfs diff=lfs merge=lfs -text
350
+ tasks/long--real-imedia-full-corrupted-9b308f7770/tests/reference.test.json filter=lfs diff=lfs merge=lfs -text
351
+ tasks/long--real-ishares-iboxx-bond-etfs-be2672c092/tests/reference.test.json filter=lfs diff=lfs merge=lfs -text
352
+ tasks/long--real-ofac-ssi-full-397bb81984/tests/reference.test.json filter=lfs diff=lfs merge=lfs -text
353
+ tasks/long--real-oklahoma-unclaimed-2024-1916f1157e/tests/reference.test.json filter=lfs diff=lfs merge=lfs -text
354
+ tasks/long--sec-13f-0010-renaissance-technologies-5be683873c/tests/reference.test.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -32,6 +32,8 @@ pretty_name: ExtractBench
32
  size_categories:
33
  - n<1K
34
  tags:
 
 
35
  - document-extraction
36
  - structured-extraction
37
  - information-extraction
@@ -273,3 +275,34 @@ All source documents come from publicly available records. The dataset is releas
273
 
274
  - **Code:** [run-llama/ExtractBench](https://github.com/run-llama/ExtractBench)
275
  - **ParseBench:** [llamaindex/ParseBench](https://huggingface.co/datasets/llamaindex/ParseBench), a companion benchmark for document parsing
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  size_categories:
33
  - n<1K
34
  tags:
35
+ - rl-environment
36
+ - harbor
37
  - document-extraction
38
  - structured-extraction
39
  - information-extraction
 
275
 
276
  - **Code:** [run-llama/ExtractBench](https://github.com/run-llama/ExtractBench)
277
  - **ParseBench:** [llamaindex/ParseBench](https://huggingface.co/datasets/llamaindex/ParseBench), a companion benchmark for document parsing
278
+
279
+ ## Harbor
280
+
281
+ Requires Harbor 0.24.0 or later, Git with Git LFS, and Docker.
282
+ Run `git lfs install` before the first use, then run the tasks directly from this repository:
283
+
284
+ ```bash
285
+ harbor run --repo https://huggingface.co/datasets/llamaindex/ExtractBench -p tasks \
286
+ -a codex -m MODEL --allow-agent-host MODEL_API_HOST
287
+ ```
288
+
289
+ Instructions reproduce the [published coding-agent prompt](https://arxiv.org/html/2607.29677v1#A3.SS1), with a standardized document filename.
290
+ Agents receive only `document.pdf` and `schema.json` and write `output.json`.
291
+ During agent execution, network access is denied except for explicitly allowed
292
+ model API hosts. Set `MODEL_API_HOST` to the hostname of your model endpoint;
293
+ repeat `--allow-agent-host` only for additional required model API hosts.
294
+ Do not allow dataset hosts, public proxies, or broad IP ranges. Setup can download
295
+ agent tools before extraction begins; the separate verifier runs without networking.
296
+ The separate verifier uses the existing ExtractBench evaluator at commit `2f27f100730afc7c395602e26a2a87e07ea66b31`.
297
+ The reward is Value F1 in [0, 1]; `metrics.json` also records perfect-document status.
298
+ `feedback.json` records aligned output/reference cell paths, value outcomes, and
299
+ each matched cell's contribution to the same F1 reward. Paths refer to normalized
300
+ scoring inputs; one-sided cells contribute to the denominator. This feedback does
301
+ not change the reward or assign credit to reasoning steps.
302
+ This prompt does not request citations, so this lane does not measure grounding.
303
+ The agent timeout is 1800 seconds per document.
304
+
305
+ The JSONL files and ordinary Hugging Face dataset configuration are preserved.
306
+ `harbor-manifest.json` records source revisions and hashes for reproducibility.
307
+ For a no-inference packaging smoke test, use `-a oracle -l 1` instead of `-a codex -m MODEL`.
308
+ The oracle copies the reference output; it checks packaging and grading, not extraction ability.
harbor-manifest.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/environment/Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim-bookworm
2
+ RUN apt-get update && apt-get install -y --no-install-recommends \
3
+ poppler-utils tesseract-ocr curl git nodejs npm \
4
+ && rm -rf /var/lib/apt/lists/*
5
+ RUN pip install --no-cache-dir pymupdf==1.26.6 pypdf==6.4.0 pillow==12.0.0
6
+ WORKDIR /app
7
+ COPY document.pdf schema.json /app/
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/environment/document.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92bf85531f4d525a50421f81a009b63d80987a36e7cd3481d5778f79a5d78ab5
3
+ size 392408
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/environment/schema.json ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$defs": {
3
+ "LineItem": {
4
+ "properties": {
5
+ "item_number": {
6
+ "anyOf": [
7
+ {
8
+ "type": "string"
9
+ },
10
+ {
11
+ "type": "null"
12
+ }
13
+ ],
14
+ "default": null,
15
+ "description": "UNIQUE 4-character zero-padded CLIN/SLIN identifier — EACH item_number VALUE MUST APPEAR AT MOST ONCE IN THE line_items LIST. Taken from the leftmost 'ITEM NO.' or 'Item' column of the Schedule of Supplies/Services (block 18 / DFARS Section B). Common label aliases: 'ITEM NO.', 'Item', 'Line Item', 'CLIN', 'CLIN/SLIN/ELIN', 'CLIN No.'. Always a 4-character zero-padded numeric string for top-level CLINs (e.g. '0001', '2000', '6100', '8100') and 6-character for SLINs (e.g. '000101', '200001'). Preserve verbatim including leading zeros; do NOT strip or normalize. Do NOT confuse with: requisition/PR number (block 4), purchase order number (block 1), delivery order number (block 2), ACRN (2-letter accounting code like 'AA'), PSC/FSC code (4-character product service code like 'R425'), CIN (long alphanumeric like 'F4FDAT2262A0380000AA'), or the document-page-number 'Page X of Y' header. If the same item_number appears in multiple places in the document (e.g. once in Section B with full data and again in Section E/F/G as a bare reference), this field STILL has only one value in the list — emit a single LineItem with this item_number from the Section B Schedule-of-Supplies row, and do NOT emit any additional LineItem with the same item_number."
16
+ },
17
+ "description": {
18
+ "anyOf": [
19
+ {
20
+ "type": "string"
21
+ },
22
+ {
23
+ "type": "null"
24
+ }
25
+ ],
26
+ "default": null,
27
+ "description": "The free-text supply/service description for this CLIN/SLIN, taken from the 'SCHEDULE OF SUPPLIES/SERVICES' column (block 19 on DD-1155) or 'Supplies/Services' / 'Supplies/Service' column on the continuation sheet. Capture the FULL description verbatim — DO NOT TRUNCATE. The description typically begins with an NSN/PSC line (e.g. '1650-00-993-7386') followed by a noun phrase (e.g. 'VALVE,LINEAR,DIRECTIONAL CONTROL') and may continue with manufacturer / CAGE code / part number lines (e.g. 'HYDRO-AIRE INC., DBA CRANE HYDRO-AIRE CAGE 81982', 'P/N: 80791'). Read the ENTIRE description column for that row — including all wrapped or continuation lines that belong to the same row — and capture every line. Preserve line breaks within the description cell as '\\n'. INCLUDE any inline metadata that the agency printed inside the description cell (e.g. 'Data Category Code:', 'Purchase Requisition Number:', 'Product Service Code:', 'Pricing Arrangement:', 'CIN:', 'ACRN:', 'Fund Type', 'Option' suffix). Do NOT include text that appears in a separate column ('UNIT', 'UNIT PRICE', 'AMOUNT') or in standalone subsequent paragraphs ('PRICING TERMS:', 'INSPECTION POINT:', 'DELIVERY DATE:', 'PREP FOR DELIVERY:', 'SAMPLING:', 'PARCEL POST ADDRESS:'). Do NOT confuse with the Statement-of-Work prose body of Section C, the contractor's address (block 9), or the WAWF routing data table. If the description column is literally 'See Schedule' or 'CONT'D' with no real text, return that literal string. NORMALIZE column-wrap whitespace artifacts: if a comma is preceded by a stray space or line-break caused by DD-1155 column-wrap (e.g. 'VALVE,LINEAR ,DIRECT' or 'VALVE,LINEAR\\n,DIRECT'), remove that spurious whitespace so it reads 'VALVE,LINEAR,DIRECT'. This rule applies only to whitespace immediately adjacent to punctuation (comma, period, semicolon); do NOT alter other line breaks or spacing in the description."
28
+ },
29
+ "quantity_ordered": {
30
+ "anyOf": [
31
+ {
32
+ "type": "number"
33
+ },
34
+ {
35
+ "type": "null"
36
+ }
37
+ ],
38
+ "default": null,
39
+ "description": "Numeric quantity ordered for this CLIN/SLIN, from the 'QUANTITY ORDERED/ACCEPTED*' column (block 20 on DD-1155) or the 'Qty' / 'Quantity' / 'QTY' column on the continuation sheet. Strip any thousands separators (',') and any trailing unit text (e.g. '21,640.00 Labor Hours' → 21640.0; '3.000' → 3.0; '1.00' → 1.0). Use a JSON number (float OK). Do NOT include the unit-of-issue, unit price, or amount. Do NOT confuse with: '# of Personnel', '# of Days', 'Instances' columns inside Section H travel tables, or the page-of-pages count. Return null only if the row genuinely has no quantity printed (e.g. an NSP / informational sub-item that lists only a description)."
40
+ },
41
+ "unit": {
42
+ "anyOf": [
43
+ {
44
+ "type": "string"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ],
50
+ "default": null,
51
+ "description": "Unit of issue / unit-of-measure for the quantity, from the 'UNIT' column (block 21 on DD-1155) or the 'Unit' column on the continuation sheet. Verbatim short code or short phrase as printed: 'EA', 'Each', 'Lot', 'Labor Hours', 'HR', 'DA', 'BX', 'GA', 'KT'. Preserve original casing exactly. Do NOT expand abbreviations (do NOT change 'EA' to 'Each' or vice versa). Do NOT confuse with: the unit price, the unit-of-issue inside the description text, or the 'Unit Pack' (QUP) under PKGING DATA. Return null only if the unit cell is genuinely blank for that row."
52
+ },
53
+ "unit_price": {
54
+ "anyOf": [
55
+ {
56
+ "type": "string"
57
+ },
58
+ {
59
+ "type": "null"
60
+ }
61
+ ],
62
+ "default": null,
63
+ "description": "Unit price per single unit-of-issue for this CLIN/SLIN, from the 'UNIT PRICE' column (block 22 on DD-1155) or 'Unit Price' / 'Est. Cost' / 'Fixed Fee' / 'CPFF' column on the continuation sheet. Capture verbatim AS PRINTED in the cell — including any currency prefix ('USD', '$'), thousands separators, and decimal point — as a string (e.g. 'USD 1,000.00', '$45,213.00', '0.00'). Do NOT compute or normalize. If multiple price-related sub-columns exist (Est. Cost / Fixed Fee / CPFF), join the populated cells with ' | ' in column order (e.g. 'USD 21,640.00 | USD 1,000.00 | USD 22,640.00'); if only one is populated, use it alone. Return null only if every price/cost cell for that row is genuinely blank (typical for NSP / 'No Separate Pricing' lines and informational sub-items). NSP-CELL RULE: if the row's amount/price column reads literally 'NSP' or 'No Separate Pricing' (typical of 'Cost Type / NSP Items' CLINs like 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders), set unit_price=null AND set amount='NSP' (place the literal 'NSP' marker in the amount field, not the unit_price field). Do NOT confuse with: the Total in block 21/25, an ACRN-table 'Amount' column, or the 'Funded Amount' under the description."
64
+ },
65
+ "amount": {
66
+ "anyOf": [
67
+ {
68
+ "type": "string"
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ],
74
+ "default": null,
75
+ "description": "Total extended amount for this CLIN/SLIN (typically quantity * unit_price), from the 'AMOUNT' column (block 23 on DD-1155) or 'Amount' / 'Funded Amount' / 'Firm Price' column on the continuation sheet. Capture verbatim AS PRINTED — currency prefix, thousands separators, decimals — as a string (e.g. 'USD 1,000.00', '$45,213.00'). STACKED-CELL RULE — when the Amount cell contains BOTH a 'Firm Price' line AND a 'Funded Amount' line stacked vertically (typical of the AFLCMC IDIQ continuation-sheet template, where each CLIN's Amount column shows two labeled sub-rows), capture ONLY the dollar value next to 'Funded Amount' (the obligated dollar figure for THIS line item). Do NOT concatenate, do NOT join, do NOT include the 'Firm Price' line, do NOT prefix with sub-labels — output a single bare dollar string (e.g. 'USD 1,000.00'). NSP-CELL RULE — when the row is a 'Cost Type / NSP' item (typical CLINs 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders) and the price/amount cell reads literally 'NSP' or 'No Separate Pricing', set amount='NSP' (the literal string 'NSP'). Return null only if the cell is genuinely blank, or a CLIN whose amount is deferred to a later modification. Do NOT confuse with: block 25 'TOTAL' for the whole order, ACRN-table 'Amount' (per-accounting-string allocation), Section G 'Line of Accounting' amount, or the page header dollar figure."
76
+ }
77
+ },
78
+ "title": "LineItem",
79
+ "type": "object"
80
+ }
81
+ },
82
+ "properties": {
83
+ "contract_purchase_order_number": {
84
+ "anyOf": [
85
+ {
86
+ "type": "string"
87
+ },
88
+ {
89
+ "type": "null"
90
+ }
91
+ ],
92
+ "default": null,
93
+ "description": "The base contract or purchase-order/agreement number that this DD-1155 order is written against, from block 1 'CONTRACT/PURCH ORDER/AGREEMENT NO.' on page 1. Verbatim including all dashes / slashes and any letter prefix (e.g. 'SPE4A7-17-P-5525', 'FA868423DB074', 'N0017819D7712', 'H94003-04-D-0004'). Typical formats: PIID 13-character (e.g. 'N0001719C5001'), DLA 'SPE…-NN-P-NNNN', or IDIQ base contract. Do NOT confuse with: block 2 delivery order/call number (often a shorter PIID), block 4 requisition / purchase request number, the CIN (long string ending in '-AA' or similar inside Section B), or the document page-header reference (which mirrors block 2, not block 1). If block 1 contains a comma-separated pair, capture only the first (the base contract)."
94
+ },
95
+ "delivery_order_call_number": {
96
+ "anyOf": [
97
+ {
98
+ "type": "string"
99
+ },
100
+ {
101
+ "type": "null"
102
+ }
103
+ ],
104
+ "default": null,
105
+ "description": "The delivery-order / call / task-order number for this specific order, from block 2 'DELIVERY ORDER/CALL NO.' on page 1. Verbatim including any letter prefix (e.g. 'FA868423FB061', 'N0017422F3007'). On many DD-1155s this is the value that also appears in the upper-right page header (e.g. 'N0017422F3007 - FINAL', 'FA868423FB061 Page 2 of 13'). If block 2 is blank (true for many DLA SPE… purchase orders where there is no separate delivery order), return null. NEVER return empty string ''; use null for blank cells."
106
+ },
107
+ "date_of_order": {
108
+ "anyOf": [
109
+ {
110
+ "type": "string"
111
+ },
112
+ {
113
+ "type": "null"
114
+ }
115
+ ],
116
+ "default": null,
117
+ "description": "Date the order was issued, from block 3 'DATE OF ORDER/CALL (YYYYMMMDD)' on page 1. Return verbatim AS PRINTED in the source (the DD-1155 form prescribes the 'YYYYMMMDD' format with a 3-letter uppercase month, e.g. '2017 FEB 17', '2022JUL29', '2022DEC06'). Preserve internal whitespace exactly as printed. Do NOT reformat to ISO-8601, do NOT translate the month, do NOT confuse with: date signed (block 24 BY/DATE SIGNED), delivery date in Section F, document creation timestamp ('Created On:' footer), or Period-of-Performance start date. If block 3 is genuinely blank, return null. NEVER return empty string ''; use null for blank cells."
118
+ },
119
+ "requisition_purchase_request_number": {
120
+ "anyOf": [
121
+ {
122
+ "type": "string"
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ],
128
+ "default": null,
129
+ "description": "The requisition or purchase-request number that initiated this order, from block 4 'REQUISITION/PURCH REQUEST NO.' on page 1. Verbatim string (e.g. '0065228382', 'A025532', 'F4FDAT2262A038'). If block 4 explicitly says 'Various' (used when the order rolls up many PRs), return the literal string 'Various'. Do NOT confuse with: contract number (block 1), delivery order number (block 2), CIN (Section G accounting CIN like 'F4FDAT2262A0380000AA'), or the per-line 'External PR' values on a Section B continuation."
130
+ },
131
+ "total_award_amount": {
132
+ "anyOf": [
133
+ {
134
+ "type": "string"
135
+ },
136
+ {
137
+ "type": "null"
138
+ }
139
+ ],
140
+ "default": null,
141
+ "description": "Grand total dollar value of this order, from block 25 'TOTAL' on the DD-1155 cover page (usually directly above the contracting officer signature in block 24). Capture VERBATIM AS PRINTED including any currency prefix and punctuation as a string (e.g. '$1,772,661.97', 'USD 1,000.00', '$45,213.00'). Return null only if block 25 is genuinely blank (no total printed). NEVER return empty string ''; use null for blank cells. Do NOT compute by summing the line_items, do NOT confuse with: the Section G ACRN line of accounting amount, a per-CLIN unit_price/amount, the 'Funded Amount' on a single CLIN, or 'AMOUNT VERIFIED CORRECT FOR' (block 33)."
142
+ },
143
+ "line_items": {
144
+ "anyOf": [
145
+ {
146
+ "items": {
147
+ "$ref": "#/$defs/LineItem"
148
+ },
149
+ "type": "array"
150
+ },
151
+ {
152
+ "type": "null"
153
+ }
154
+ ],
155
+ "description": "DEDUPLICATED list of every distinct Schedule-of-Supplies/Services CLIN/SLIN row in this DD-1155 order. EACH CLIN/SLIN APPEARS EXACTLY ONCE IN THIS LIST — IT IS A SET-VALUED FIELD KEYED BY item_number, NOT A BAG OF EVERY MENTION. If you find yourself about to emit a second LineItem with the same item_number, DO NOT — that's wrong. Update or merge into the first LineItem instead.\\n\\nSource: block 18-23 of the DD-1155 cover page AND every continuation-sheet 'Section B' / 'SCHEDULE OF SUPPLIES/SERVICES' / 'CLIN - SUPPLIES OR SERVICES' table (including DD-1155C-1 continuation sheets, 'Cost Type Items', 'Cost Only Items', 'Cost Type / NSP Items', and base-year + option-year CLIN groupings).\\n\\nA CLIN qualifies for inclusion ONLY when it appears in a Schedule-of-Supplies/Services TABLE with a populated description/qty/unit/price/amount column. CLIN identifiers are routinely referenced again throughout the document body (Section E inspection clauses, Section F period-of-performance lists, Section G ACRN/CIN cross-reference tables, payment-clause boilerplate, delivery rosters, etc.). Those secondary references are NOT new line items — they do NOT produce additional LineItem entries. The number of LineItem entries you emit MUST equal the number of distinct numeric CLINs in the Schedule-of-Supplies tables (typically 1-30 depending on whether base-year + option-year CLINs are present). It MUST NOT equal the total number of times any CLIN identifier is mentioned anywhere in the document.\\n\\nEXPLICITLY EXCLUDE (do not emit a duplicate row for):\\n- bare CLIN references inside Section E 'INSPECTION AND ACCEPTANCE' clauses\\n- bare CLIN references inside Section F 'DELIVERIES OR PERFORMANCE' / 'Period of Performance' bullet lists\\n- bare CLIN references inside Section G 'CONTRACT ADMINISTRATION DATA' / ACRN / CIN cross-reference tables\\n- CLIN references inside Section H special contract requirements, Section I clauses, Section J attachments, eCRAFT labor crosswalks, deliverable (CDRL A###) summary tables, WAWF routing tables, or address blocks\\n- standalone bullet, paragraph, or footer references to a CLIN number elsewhere in the document\\n\\nDo NOT create a 'shadow' or 'echo' row with null/empty description/qty/unit/unit_price/amount for the same item_number just because the CLIN identifier reappears in Section E/F/G or anywhere else.\\n\\nINCLUDE: informational/funding sub-items such as 'Funding in support of CLIN 2000' (with their own item number like 2001, 2002, 2003) when they appear as their own row in the Schedule-of-Supplies table; option-year CLINs (2100, 2200, 6000, etc.) when they appear as their own row in the Schedule-of-Supplies table. If the cover-page Section 18-23 is literally 'See Schedule' or 'SEE SCHEDULE' or 'Award sent EDI', do not invent a row from it — instead pull all rows from the continuation Section B. Preserve the printed order (typically ascending by item_number, grouped by section). If after a careful pass NO schedule rows exist (extremely rare; DD-1155 always has at least one CLIN), return [].",
156
+ "title": "Line Items"
157
+ }
158
+ },
159
+ "title": "DD1155Schedule",
160
+ "type": "object"
161
+ }
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/instruction.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Extract structured data from the document file `./document.pdf` in the current directory.
2
+
3
+ Use only local file inspection and shell commands. Do not use web search, network calls, browser tools, or external services. Temporary scratch files inside the current directory are OK.
4
+
5
+ Return a single JSON object conforming to this schema as your final answer:
6
+
7
+ {"$defs": {"LineItem": {"properties": {"item_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "UNIQUE 4-character zero-padded CLIN/SLIN identifier — EACH item_number VALUE MUST APPEAR AT MOST ONCE IN THE line_items LIST. Taken from the leftmost 'ITEM NO.' or 'Item' column of the Schedule of Supplies/Services (block 18 / DFARS Section B). Common label aliases: 'ITEM NO.', 'Item', 'Line Item', 'CLIN', 'CLIN/SLIN/ELIN', 'CLIN No.'. Always a 4-character zero-padded numeric string for top-level CLINs (e.g. '0001', '2000', '6100', '8100') and 6-character for SLINs (e.g. '000101', '200001'). Preserve verbatim including leading zeros; do NOT strip or normalize. Do NOT confuse with: requisition/PR number (block 4), purchase order number (block 1), delivery order number (block 2), ACRN (2-letter accounting code like 'AA'), PSC/FSC code (4-character product service code like 'R425'), CIN (long alphanumeric like 'F4FDAT2262A0380000AA'), or the document-page-number 'Page X of Y' header. If the same item_number appears in multiple places in the document (e.g. once in Section B with full data and again in Section E/F/G as a bare reference), this field STILL has only one value in the list — emit a single LineItem with this item_number from the Section B Schedule-of-Supplies row, and do NOT emit any additional LineItem with the same item_number."}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The free-text supply/service description for this CLIN/SLIN, taken from the 'SCHEDULE OF SUPPLIES/SERVICES' column (block 19 on DD-1155) or 'Supplies/Services' / 'Supplies/Service' column on the continuation sheet. Capture the FULL description verbatim — DO NOT TRUNCATE. The description typically begins with an NSN/PSC line (e.g. '1650-00-993-7386') followed by a noun phrase (e.g. 'VALVE,LINEAR,DIRECTIONAL CONTROL') and may continue with manufacturer / CAGE code / part number lines (e.g. 'HYDRO-AIRE INC., DBA CRANE HYDRO-AIRE CAGE 81982', 'P/N: 80791'). Read the ENTIRE description column for that row — including all wrapped or continuation lines that belong to the same row — and capture every line. Preserve line breaks within the description cell as '\\n'. INCLUDE any inline metadata that the agency printed inside the description cell (e.g. 'Data Category Code:', 'Purchase Requisition Number:', 'Product Service Code:', 'Pricing Arrangement:', 'CIN:', 'ACRN:', 'Fund Type', 'Option' suffix). Do NOT include text that appears in a separate column ('UNIT', 'UNIT PRICE', 'AMOUNT') or in standalone subsequent paragraphs ('PRICING TERMS:', 'INSPECTION POINT:', 'DELIVERY DATE:', 'PREP FOR DELIVERY:', 'SAMPLING:', 'PARCEL POST ADDRESS:'). Do NOT confuse with the Statement-of-Work prose body of Section C, the contractor's address (block 9), or the WAWF routing data table. If the description column is literally 'See Schedule' or 'CONT'D' with no real text, return that literal string. NORMALIZE column-wrap whitespace artifacts: if a comma is preceded by a stray space or line-break caused by DD-1155 column-wrap (e.g. 'VALVE,LINEAR ,DIRECT' or 'VALVE,LINEAR\\n,DIRECT'), remove that spurious whitespace so it reads 'VALVE,LINEAR,DIRECT'. This rule applies only to whitespace immediately adjacent to punctuation (comma, period, semicolon); do NOT alter other line breaks or spacing in the description."}, "quantity_ordered": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": null, "description": "Numeric quantity ordered for this CLIN/SLIN, from the 'QUANTITY ORDERED/ACCEPTED*' column (block 20 on DD-1155) or the 'Qty' / 'Quantity' / 'QTY' column on the continuation sheet. Strip any thousands separators (',') and any trailing unit text (e.g. '21,640.00 Labor Hours' → 21640.0; '3.000' → 3.0; '1.00' → 1.0). Use a JSON number (float OK). Do NOT include the unit-of-issue, unit price, or amount. Do NOT confuse with: '# of Personnel', '# of Days', 'Instances' columns inside Section H travel tables, or the page-of-pages count. Return null only if the row genuinely has no quantity printed (e.g. an NSP / informational sub-item that lists only a description)."}, "unit": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Unit of issue / unit-of-measure for the quantity, from the 'UNIT' column (block 21 on DD-1155) or the 'Unit' column on the continuation sheet. Verbatim short code or short phrase as printed: 'EA', 'Each', 'Lot', 'Labor Hours', 'HR', 'DA', 'BX', 'GA', 'KT'. Preserve original casing exactly. Do NOT expand abbreviations (do NOT change 'EA' to 'Each' or vice versa). Do NOT confuse with: the unit price, the unit-of-issue inside the description text, or the 'Unit Pack' (QUP) under PKGING DATA. Return null only if the unit cell is genuinely blank for that row."}, "unit_price": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Unit price per single unit-of-issue for this CLIN/SLIN, from the 'UNIT PRICE' column (block 22 on DD-1155) or 'Unit Price' / 'Est. Cost' / 'Fixed Fee' / 'CPFF' column on the continuation sheet. Capture verbatim AS PRINTED in the cell — including any currency prefix ('USD', '$'), thousands separators, and decimal point — as a string (e.g. 'USD 1,000.00', '$45,213.00', '0.00'). Do NOT compute or normalize. If multiple price-related sub-columns exist (Est. Cost / Fixed Fee / CPFF), join the populated cells with ' | ' in column order (e.g. 'USD 21,640.00 | USD 1,000.00 | USD 22,640.00'); if only one is populated, use it alone. Return null only if every price/cost cell for that row is genuinely blank (typical for NSP / 'No Separate Pricing' lines and informational sub-items). NSP-CELL RULE: if the row's amount/price column reads literally 'NSP' or 'No Separate Pricing' (typical of 'Cost Type / NSP Items' CLINs like 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders), set unit_price=null AND set amount='NSP' (place the literal 'NSP' marker in the amount field, not the unit_price field). Do NOT confuse with: the Total in block 21/25, an ACRN-table 'Amount' column, or the 'Funded Amount' under the description."}, "amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Total extended amount for this CLIN/SLIN (typically quantity * unit_price), from the 'AMOUNT' column (block 23 on DD-1155) or 'Amount' / 'Funded Amount' / 'Firm Price' column on the continuation sheet. Capture verbatim AS PRINTED — currency prefix, thousands separators, decimals — as a string (e.g. 'USD 1,000.00', '$45,213.00'). STACKED-CELL RULE — when the Amount cell contains BOTH a 'Firm Price' line AND a 'Funded Amount' line stacked vertically (typical of the AFLCMC IDIQ continuation-sheet template, where each CLIN's Amount column shows two labeled sub-rows), capture ONLY the dollar value next to 'Funded Amount' (the obligated dollar figure for THIS line item). Do NOT concatenate, do NOT join, do NOT include the 'Firm Price' line, do NOT prefix with sub-labels — output a single bare dollar string (e.g. 'USD 1,000.00'). NSP-CELL RULE — when the row is a 'Cost Type / NSP' item (typical CLINs 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders) and the price/amount cell reads literally 'NSP' or 'No Separate Pricing', set amount='NSP' (the literal string 'NSP'). Return null only if the cell is genuinely blank, or a CLIN whose amount is deferred to a later modification. Do NOT confuse with: block 25 'TOTAL' for the whole order, ACRN-table 'Amount' (per-accounting-string allocation), Section G 'Line of Accounting' amount, or the page header dollar figure."}}, "title": "LineItem", "type": "object"}}, "properties": {"contract_purchase_order_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The base contract or purchase-order/agreement number that this DD-1155 order is written against, from block 1 'CONTRACT/PURCH ORDER/AGREEMENT NO.' on page 1. Verbatim including all dashes / slashes and any letter prefix (e.g. 'SPE4A7-17-P-5525', 'FA868423DB074', 'N0017819D7712', 'H94003-04-D-0004'). Typical formats: PIID 13-character (e.g. 'N0001719C5001'), DLA 'SPE…-NN-P-NNNN', or IDIQ base contract. Do NOT confuse with: block 2 delivery order/call number (often a shorter PIID), block 4 requisition / purchase request number, the CIN (long string ending in '-AA' or similar inside Section B), or the document page-header reference (which mirrors block 2, not block 1). If block 1 contains a comma-separated pair, capture only the first (the base contract)."}, "delivery_order_call_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The delivery-order / call / task-order number for this specific order, from block 2 'DELIVERY ORDER/CALL NO.' on page 1. Verbatim including any letter prefix (e.g. 'FA868423FB061', 'N0017422F3007'). On many DD-1155s this is the value that also appears in the upper-right page header (e.g. 'N0017422F3007 - FINAL', 'FA868423FB061 Page 2 of 13'). If block 2 is blank (true for many DLA SPE… purchase orders where there is no separate delivery order), return null. NEVER return empty string ''; use null for blank cells."}, "date_of_order": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Date the order was issued, from block 3 'DATE OF ORDER/CALL (YYYYMMMDD)' on page 1. Return verbatim AS PRINTED in the source (the DD-1155 form prescribes the 'YYYYMMMDD' format with a 3-letter uppercase month, e.g. '2017 FEB 17', '2022JUL29', '2022DEC06'). Preserve internal whitespace exactly as printed. Do NOT reformat to ISO-8601, do NOT translate the month, do NOT confuse with: date signed (block 24 BY/DATE SIGNED), delivery date in Section F, document creation timestamp ('Created On:' footer), or Period-of-Performance start date. If block 3 is genuinely blank, return null. NEVER return empty string ''; use null for blank cells."}, "requisition_purchase_request_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The requisition or purchase-request number that initiated this order, from block 4 'REQUISITION/PURCH REQUEST NO.' on page 1. Verbatim string (e.g. '0065228382', 'A025532', 'F4FDAT2262A038'). If block 4 explicitly says 'Various' (used when the order rolls up many PRs), return the literal string 'Various'. Do NOT confuse with: contract number (block 1), delivery order number (block 2), CIN (Section G accounting CIN like 'F4FDAT2262A0380000AA'), or the per-line 'External PR' values on a Section B continuation."}, "total_award_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Grand total dollar value of this order, from block 25 'TOTAL' on the DD-1155 cover page (usually directly above the contracting officer signature in block 24). Capture VERBATIM AS PRINTED including any currency prefix and punctuation as a string (e.g. '$1,772,661.97', 'USD 1,000.00', '$45,213.00'). Return null only if block 25 is genuinely blank (no total printed). NEVER return empty string ''; use null for blank cells. Do NOT compute by summing the line_items, do NOT confuse with: the Section G ACRN line of accounting amount, a per-CLIN unit_price/amount, the 'Funded Amount' on a single CLIN, or 'AMOUNT VERIFIED CORRECT FOR' (block 33)."}, "line_items": {"anyOf": [{"items": {"$ref": "#/$defs/LineItem"}, "type": "array"}, {"type": "null"}], "description": "DEDUPLICATED list of every distinct Schedule-of-Supplies/Services CLIN/SLIN row in this DD-1155 order. EACH CLIN/SLIN APPEARS EXACTLY ONCE IN THIS LIST — IT IS A SET-VALUED FIELD KEYED BY item_number, NOT A BAG OF EVERY MENTION. If you find yourself about to emit a second LineItem with the same item_number, DO NOT — that's wrong. Update or merge into the first LineItem instead.\\n\\nSource: block 18-23 of the DD-1155 cover page AND every continuation-sheet 'Section B' / 'SCHEDULE OF SUPPLIES/SERVICES' / 'CLIN - SUPPLIES OR SERVICES' table (including DD-1155C-1 continuation sheets, 'Cost Type Items', 'Cost Only Items', 'Cost Type / NSP Items', and base-year + option-year CLIN groupings).\\n\\nA CLIN qualifies for inclusion ONLY when it appears in a Schedule-of-Supplies/Services TABLE with a populated description/qty/unit/price/amount column. CLIN identifiers are routinely referenced again throughout the document body (Section E inspection clauses, Section F period-of-performance lists, Section G ACRN/CIN cross-reference tables, payment-clause boilerplate, delivery rosters, etc.). Those secondary references are NOT new line items — they do NOT produce additional LineItem entries. The number of LineItem entries you emit MUST equal the number of distinct numeric CLINs in the Schedule-of-Supplies tables (typically 1-30 depending on whether base-year + option-year CLINs are present). It MUST NOT equal the total number of times any CLIN identifier is mentioned anywhere in the document.\\n\\nEXPLICITLY EXCLUDE (do not emit a duplicate row for):\\n- bare CLIN references inside Section E 'INSPECTION AND ACCEPTANCE' clauses\\n- bare CLIN references inside Section F 'DELIVERIES OR PERFORMANCE' / 'Period of Performance' bullet lists\\n- bare CLIN references inside Section G 'CONTRACT ADMINISTRATION DATA' / ACRN / CIN cross-reference tables\\n- CLIN references inside Section H special contract requirements, Section I clauses, Section J attachments, eCRAFT labor crosswalks, deliverable (CDRL A###) summary tables, WAWF routing tables, or address blocks\\n- standalone bullet, paragraph, or footer references to a CLIN number elsewhere in the document\\n\\nDo NOT create a 'shadow' or 'echo' row with null/empty description/qty/unit/unit_price/amount for the same item_number just because the CLIN identifier reappears in Section E/F/G or anywhere else.\\n\\nINCLUDE: informational/funding sub-items such as 'Funding in support of CLIN 2000' (with their own item number like 2001, 2002, 2003) when they appear as their own row in the Schedule-of-Supplies table; option-year CLINs (2100, 2200, 6000, etc.) when they appear as their own row in the Schedule-of-Supplies table. If the cover-page Section 18-23 is literally 'See Schedule' or 'SEE SCHEDULE' or 'Award sent EDI', do not invent a row from it — instead pull all rows from the continuation Section B. Preserve the printed order (typically ascending by item_number, grouped by section). If after a careful pass NO schedule rows exist (extremely rare; DD-1155 always has at least one CLIN), return [].", "title": "Line Items"}}, "title": "DD1155Schedule", "type": "object"}
8
+
9
+ Rules:
10
+
11
+ - Use null for fields not present in the document.
12
+ - For list/array fields, enumerate every relevant row visible in the document; never collapse rows.
13
+ - For large regular tables, prefer writing and running a local script to parse/enumerate rows.
14
+ - For forms, prefer direct field extraction from the document content.
15
+ - Write the resulting JSON object to ./output.json and validate that it is valid JSON before stopping.
16
+ - Do not print the JSON to your assistant output.
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/solution/expected.json ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "contract_purchase_order_number": "N0017819D7712",
3
+ "delivery_order_call_number": "N0017422F3007",
4
+ "date_of_order": "2022JUL29",
5
+ "requisition_purchase_request_number": "Various",
6
+ "total_award_amount": "$1,772,661.97",
7
+ "line_items": [
8
+ {
9
+ "item_number": "2000",
10
+ "description": "Base Year - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER)",
11
+ "quantity_ordered": 21640.0,
12
+ "unit": "Labor Hours",
13
+ "unit_price": null,
14
+ "amount": null
15
+ },
16
+ {
17
+ "item_number": "2001",
18
+ "description": "Funding in support of CLIN 2000 (Fund Type - OTHER)",
19
+ "quantity_ordered": 1.0,
20
+ "unit": "Lot",
21
+ "unit_price": null,
22
+ "amount": null
23
+ },
24
+ {
25
+ "item_number": "2002",
26
+ "description": "Funding in support of CLIN 2000 (Fund Type - OTHER)",
27
+ "quantity_ordered": 1.0,
28
+ "unit": "Lot",
29
+ "unit_price": null,
30
+ "amount": null
31
+ },
32
+ {
33
+ "item_number": "2003",
34
+ "description": "Funding in support of CLIN 2000 (Fund Type - OTHER)",
35
+ "quantity_ordered": 1.0,
36
+ "unit": "Lot",
37
+ "unit_price": null,
38
+ "amount": null
39
+ },
40
+ {
41
+ "item_number": "2100",
42
+ "description": "Option Year I - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option",
43
+ "quantity_ordered": null,
44
+ "unit": "Labor Hours",
45
+ "unit_price": null,
46
+ "amount": null
47
+ },
48
+ {
49
+ "item_number": "2200",
50
+ "description": "Option Year II - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option",
51
+ "quantity_ordered": null,
52
+ "unit": "Labor Hours",
53
+ "unit_price": null,
54
+ "amount": null
55
+ },
56
+ {
57
+ "item_number": "3000",
58
+ "description": "Base Year - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER)",
59
+ "quantity_ordered": 1.0,
60
+ "unit": "Lot",
61
+ "unit_price": null,
62
+ "amount": null
63
+ },
64
+ {
65
+ "item_number": "3001",
66
+ "description": "Funding in support of CLIN 3000 (Fund Type - OTHER)",
67
+ "quantity_ordered": 1.0,
68
+ "unit": "Lot",
69
+ "unit_price": null,
70
+ "amount": null
71
+ },
72
+ {
73
+ "item_number": "3002",
74
+ "description": "Funding in support of CLIN 3000 (Fund Type - OTHER)",
75
+ "quantity_ordered": 1.0,
76
+ "unit": "Lot",
77
+ "unit_price": null,
78
+ "amount": null
79
+ },
80
+ {
81
+ "item_number": "3100",
82
+ "description": "Option Year I - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option",
83
+ "quantity_ordered": 1.0,
84
+ "unit": "Lot",
85
+ "unit_price": null,
86
+ "amount": null
87
+ },
88
+ {
89
+ "item_number": "3200",
90
+ "description": "Option Year II - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option",
91
+ "quantity_ordered": 1.0,
92
+ "unit": "Lot",
93
+ "unit_price": null,
94
+ "amount": null
95
+ },
96
+ {
97
+ "item_number": "4000",
98
+ "description": "Base Year - NOSSA Analytical, Technical and Management Support Services - CDRLs",
99
+ "quantity_ordered": 1.0,
100
+ "unit": "Lot",
101
+ "unit_price": null,
102
+ "amount": "NSP"
103
+ },
104
+ {
105
+ "item_number": "4100",
106
+ "description": "Option Year I - NOSSA Analytical, Technical and Management Support Services - CDRLs",
107
+ "quantity_ordered": 1.0,
108
+ "unit": "Lot",
109
+ "unit_price": null,
110
+ "amount": "NSP"
111
+ },
112
+ {
113
+ "item_number": "4200",
114
+ "description": "Option Year II - NOSSA Analytical, Technical and Management Support Services - CDRLs",
115
+ "quantity_ordered": 1.0,
116
+ "unit": "Lot",
117
+ "unit_price": null,
118
+ "amount": "NSP"
119
+ },
120
+ {
121
+ "item_number": "6000",
122
+ "description": "Option Year III - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option",
123
+ "quantity_ordered": null,
124
+ "unit": "Labor Hours",
125
+ "unit_price": null,
126
+ "amount": null
127
+ },
128
+ {
129
+ "item_number": "6100",
130
+ "description": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option",
131
+ "quantity_ordered": null,
132
+ "unit": "Labor Hours",
133
+ "unit_price": null,
134
+ "amount": null
135
+ },
136
+ {
137
+ "item_number": "7000",
138
+ "description": "Option Year III - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option",
139
+ "quantity_ordered": 1.0,
140
+ "unit": "Lot",
141
+ "unit_price": null,
142
+ "amount": null
143
+ },
144
+ {
145
+ "item_number": "7100",
146
+ "description": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option",
147
+ "quantity_ordered": 1.0,
148
+ "unit": "Lot",
149
+ "unit_price": null,
150
+ "amount": null
151
+ },
152
+ {
153
+ "item_number": "8000",
154
+ "description": "Option Year III - NOSSA Analytical, Technical and Management Support Services - CDRLs",
155
+ "quantity_ordered": 1.0,
156
+ "unit": "Lot",
157
+ "unit_price": null,
158
+ "amount": "NSP"
159
+ },
160
+ {
161
+ "item_number": "8100",
162
+ "description": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - CDRLs",
163
+ "quantity_ordered": 1.0,
164
+ "unit": "Lot",
165
+ "unit_price": null,
166
+ "amount": "NSP"
167
+ }
168
+ ]
169
+ }
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/solution/solve.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ cp /solution/expected.json /app/output.json
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/task.toml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+ artifacts = ["/app/output.json"]
3
+
4
+ [metadata]
5
+ source_repo = "llamaindex/ExtractBench"
6
+ source_revision = "51bf3a03eb7feeaef8952be1fc2fc7f924ee72dc"
7
+ source_case_id = "long/dd1155_schedule_continuation_0011"
8
+ source_split = "long"
9
+ scorer_revision = "2f27f100730afc7c395602e26a2a87e07ea66b31"
10
+ prompt_source = "https://arxiv.org/html/2607.29677v1#A3.SS1"
11
+ tags = ["source:real", "challenge:T2.a", "challenge:T3.a", "length:long", "domain:D3"]
12
+
13
+ [agent]
14
+ timeout_sec = 1800
15
+ network_mode = "allowlist"
16
+ allowed_hosts = []
17
+
18
+ [environment]
19
+ cpus = 2
20
+ memory_mb = 4096
21
+ storage_mb = 10240
22
+
23
+ [verifier]
24
+ environment_mode = "separate"
25
+ timeout_sec = 1800
26
+
27
+ [verifier.environment]
28
+ cpus = 2
29
+ memory_mb = 8192
30
+ network_mode = "no-network"
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/tests/Dockerfile ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ FROM python:3.12-slim-bookworm
2
+ RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
3
+ RUN pip install --no-cache-dir "llama-extract-bench @ git+https://github.com/run-llama/ExtractBench.git@2f27f100730afc7c395602e26a2a87e07ea66b31" "parse-bench==1.0.4"
4
+ WORKDIR /app
5
+ COPY . /tests/
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/tests/reference.test.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"tags": ["source:real", "challenge:T2.a", "challenge:T3.a", "length:long", "domain:D3"], "data_schema": {"$defs": {"LineItem": {"properties": {"item_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "UNIQUE 4-character zero-padded CLIN/SLIN identifier — EACH item_number VALUE MUST APPEAR AT MOST ONCE IN THE line_items LIST. Taken from the leftmost 'ITEM NO.' or 'Item' column of the Schedule of Supplies/Services (block 18 / DFARS Section B). Common label aliases: 'ITEM NO.', 'Item', 'Line Item', 'CLIN', 'CLIN/SLIN/ELIN', 'CLIN No.'. Always a 4-character zero-padded numeric string for top-level CLINs (e.g. '0001', '2000', '6100', '8100') and 6-character for SLINs (e.g. '000101', '200001'). Preserve verbatim including leading zeros; do NOT strip or normalize. Do NOT confuse with: requisition/PR number (block 4), purchase order number (block 1), delivery order number (block 2), ACRN (2-letter accounting code like 'AA'), PSC/FSC code (4-character product service code like 'R425'), CIN (long alphanumeric like 'F4FDAT2262A0380000AA'), or the document-page-number 'Page X of Y' header. If the same item_number appears in multiple places in the document (e.g. once in Section B with full data and again in Section E/F/G as a bare reference), this field STILL has only one value in the list — emit a single LineItem with this item_number from the Section B Schedule-of-Supplies row, and do NOT emit any additional LineItem with the same item_number."}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The free-text supply/service description for this CLIN/SLIN, taken from the 'SCHEDULE OF SUPPLIES/SERVICES' column (block 19 on DD-1155) or 'Supplies/Services' / 'Supplies/Service' column on the continuation sheet. Capture the FULL description verbatim — DO NOT TRUNCATE. The description typically begins with an NSN/PSC line (e.g. '1650-00-993-7386') followed by a noun phrase (e.g. 'VALVE,LINEAR,DIRECTIONAL CONTROL') and may continue with manufacturer / CAGE code / part number lines (e.g. 'HYDRO-AIRE INC., DBA CRANE HYDRO-AIRE CAGE 81982', 'P/N: 80791'). Read the ENTIRE description column for that row — including all wrapped or continuation lines that belong to the same row — and capture every line. Preserve line breaks within the description cell as '\\n'. INCLUDE any inline metadata that the agency printed inside the description cell (e.g. 'Data Category Code:', 'Purchase Requisition Number:', 'Product Service Code:', 'Pricing Arrangement:', 'CIN:', 'ACRN:', 'Fund Type', 'Option' suffix). Do NOT include text that appears in a separate column ('UNIT', 'UNIT PRICE', 'AMOUNT') or in standalone subsequent paragraphs ('PRICING TERMS:', 'INSPECTION POINT:', 'DELIVERY DATE:', 'PREP FOR DELIVERY:', 'SAMPLING:', 'PARCEL POST ADDRESS:'). Do NOT confuse with the Statement-of-Work prose body of Section C, the contractor's address (block 9), or the WAWF routing data table. If the description column is literally 'See Schedule' or 'CONT'D' with no real text, return that literal string. NORMALIZE column-wrap whitespace artifacts: if a comma is preceded by a stray space or line-break caused by DD-1155 column-wrap (e.g. 'VALVE,LINEAR ,DIRECT' or 'VALVE,LINEAR\\n,DIRECT'), remove that spurious whitespace so it reads 'VALVE,LINEAR,DIRECT'. This rule applies only to whitespace immediately adjacent to punctuation (comma, period, semicolon); do NOT alter other line breaks or spacing in the description."}, "quantity_ordered": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": null, "description": "Numeric quantity ordered for this CLIN/SLIN, from the 'QUANTITY ORDERED/ACCEPTED*' column (block 20 on DD-1155) or the 'Qty' / 'Quantity' / 'QTY' column on the continuation sheet. Strip any thousands separators (',') and any trailing unit text (e.g. '21,640.00 Labor Hours' → 21640.0; '3.000' → 3.0; '1.00' → 1.0). Use a JSON number (float OK). Do NOT include the unit-of-issue, unit price, or amount. Do NOT confuse with: '# of Personnel', '# of Days', 'Instances' columns inside Section H travel tables, or the page-of-pages count. Return null only if the row genuinely has no quantity printed (e.g. an NSP / informational sub-item that lists only a description)."}, "unit": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Unit of issue / unit-of-measure for the quantity, from the 'UNIT' column (block 21 on DD-1155) or the 'Unit' column on the continuation sheet. Verbatim short code or short phrase as printed: 'EA', 'Each', 'Lot', 'Labor Hours', 'HR', 'DA', 'BX', 'GA', 'KT'. Preserve original casing exactly. Do NOT expand abbreviations (do NOT change 'EA' to 'Each' or vice versa). Do NOT confuse with: the unit price, the unit-of-issue inside the description text, or the 'Unit Pack' (QUP) under PKGING DATA. Return null only if the unit cell is genuinely blank for that row."}, "unit_price": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Unit price per single unit-of-issue for this CLIN/SLIN, from the 'UNIT PRICE' column (block 22 on DD-1155) or 'Unit Price' / 'Est. Cost' / 'Fixed Fee' / 'CPFF' column on the continuation sheet. Capture verbatim AS PRINTED in the cell — including any currency prefix ('USD', '$'), thousands separators, and decimal point — as a string (e.g. 'USD 1,000.00', '$45,213.00', '0.00'). Do NOT compute or normalize. If multiple price-related sub-columns exist (Est. Cost / Fixed Fee / CPFF), join the populated cells with ' | ' in column order (e.g. 'USD 21,640.00 | USD 1,000.00 | USD 22,640.00'); if only one is populated, use it alone. Return null only if every price/cost cell for that row is genuinely blank (typical for NSP / 'No Separate Pricing' lines and informational sub-items). NSP-CELL RULE: if the row's amount/price column reads literally 'NSP' or 'No Separate Pricing' (typical of 'Cost Type / NSP Items' CLINs like 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders), set unit_price=null AND set amount='NSP' (place the literal 'NSP' marker in the amount field, not the unit_price field). Do NOT confuse with: the Total in block 21/25, an ACRN-table 'Amount' column, or the 'Funded Amount' under the description."}, "amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Total extended amount for this CLIN/SLIN (typically quantity * unit_price), from the 'AMOUNT' column (block 23 on DD-1155) or 'Amount' / 'Funded Amount' / 'Firm Price' column on the continuation sheet. Capture verbatim AS PRINTED — currency prefix, thousands separators, decimals — as a string (e.g. 'USD 1,000.00', '$45,213.00'). STACKED-CELL RULE — when the Amount cell contains BOTH a 'Firm Price' line AND a 'Funded Amount' line stacked vertically (typical of the AFLCMC IDIQ continuation-sheet template, where each CLIN's Amount column shows two labeled sub-rows), capture ONLY the dollar value next to 'Funded Amount' (the obligated dollar figure for THIS line item). Do NOT concatenate, do NOT join, do NOT include the 'Firm Price' line, do NOT prefix with sub-labels — output a single bare dollar string (e.g. 'USD 1,000.00'). NSP-CELL RULE — when the row is a 'Cost Type / NSP' item (typical CLINs 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders) and the price/amount cell reads literally 'NSP' or 'No Separate Pricing', set amount='NSP' (the literal string 'NSP'). Return null only if the cell is genuinely blank, or a CLIN whose amount is deferred to a later modification. Do NOT confuse with: block 25 'TOTAL' for the whole order, ACRN-table 'Amount' (per-accounting-string allocation), Section G 'Line of Accounting' amount, or the page header dollar figure."}}, "title": "LineItem", "type": "object"}}, "properties": {"contract_purchase_order_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The base contract or purchase-order/agreement number that this DD-1155 order is written against, from block 1 'CONTRACT/PURCH ORDER/AGREEMENT NO.' on page 1. Verbatim including all dashes / slashes and any letter prefix (e.g. 'SPE4A7-17-P-5525', 'FA868423DB074', 'N0017819D7712', 'H94003-04-D-0004'). Typical formats: PIID 13-character (e.g. 'N0001719C5001'), DLA 'SPE…-NN-P-NNNN', or IDIQ base contract. Do NOT confuse with: block 2 delivery order/call number (often a shorter PIID), block 4 requisition / purchase request number, the CIN (long string ending in '-AA' or similar inside Section B), or the document page-header reference (which mirrors block 2, not block 1). If block 1 contains a comma-separated pair, capture only the first (the base contract)."}, "delivery_order_call_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The delivery-order / call / task-order number for this specific order, from block 2 'DELIVERY ORDER/CALL NO.' on page 1. Verbatim including any letter prefix (e.g. 'FA868423FB061', 'N0017422F3007'). On many DD-1155s this is the value that also appears in the upper-right page header (e.g. 'N0017422F3007 - FINAL', 'FA868423FB061 Page 2 of 13'). If block 2 is blank (true for many DLA SPE… purchase orders where there is no separate delivery order), return null. NEVER return empty string ''; use null for blank cells."}, "date_of_order": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Date the order was issued, from block 3 'DATE OF ORDER/CALL (YYYYMMMDD)' on page 1. Return verbatim AS PRINTED in the source (the DD-1155 form prescribes the 'YYYYMMMDD' format with a 3-letter uppercase month, e.g. '2017 FEB 17', '2022JUL29', '2022DEC06'). Preserve internal whitespace exactly as printed. Do NOT reformat to ISO-8601, do NOT translate the month, do NOT confuse with: date signed (block 24 BY/DATE SIGNED), delivery date in Section F, document creation timestamp ('Created On:' footer), or Period-of-Performance start date. If block 3 is genuinely blank, return null. NEVER return empty string ''; use null for blank cells."}, "requisition_purchase_request_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The requisition or purchase-request number that initiated this order, from block 4 'REQUISITION/PURCH REQUEST NO.' on page 1. Verbatim string (e.g. '0065228382', 'A025532', 'F4FDAT2262A038'). If block 4 explicitly says 'Various' (used when the order rolls up many PRs), return the literal string 'Various'. Do NOT confuse with: contract number (block 1), delivery order number (block 2), CIN (Section G accounting CIN like 'F4FDAT2262A0380000AA'), or the per-line 'External PR' values on a Section B continuation."}, "total_award_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Grand total dollar value of this order, from block 25 'TOTAL' on the DD-1155 cover page (usually directly above the contracting officer signature in block 24). Capture VERBATIM AS PRINTED including any currency prefix and punctuation as a string (e.g. '$1,772,661.97', 'USD 1,000.00', '$45,213.00'). Return null only if block 25 is genuinely blank (no total printed). NEVER return empty string ''; use null for blank cells. Do NOT compute by summing the line_items, do NOT confuse with: the Section G ACRN line of accounting amount, a per-CLIN unit_price/amount, the 'Funded Amount' on a single CLIN, or 'AMOUNT VERIFIED CORRECT FOR' (block 33)."}, "line_items": {"anyOf": [{"items": {"$ref": "#/$defs/LineItem"}, "type": "array"}, {"type": "null"}], "description": "DEDUPLICATED list of every distinct Schedule-of-Supplies/Services CLIN/SLIN row in this DD-1155 order. EACH CLIN/SLIN APPEARS EXACTLY ONCE IN THIS LIST — IT IS A SET-VALUED FIELD KEYED BY item_number, NOT A BAG OF EVERY MENTION. If you find yourself about to emit a second LineItem with the same item_number, DO NOT — that's wrong. Update or merge into the first LineItem instead.\\n\\nSource: block 18-23 of the DD-1155 cover page AND every continuation-sheet 'Section B' / 'SCHEDULE OF SUPPLIES/SERVICES' / 'CLIN - SUPPLIES OR SERVICES' table (including DD-1155C-1 continuation sheets, 'Cost Type Items', 'Cost Only Items', 'Cost Type / NSP Items', and base-year + option-year CLIN groupings).\\n\\nA CLIN qualifies for inclusion ONLY when it appears in a Schedule-of-Supplies/Services TABLE with a populated description/qty/unit/price/amount column. CLIN identifiers are routinely referenced again throughout the document body (Section E inspection clauses, Section F period-of-performance lists, Section G ACRN/CIN cross-reference tables, payment-clause boilerplate, delivery rosters, etc.). Those secondary references are NOT new line items — they do NOT produce additional LineItem entries. The number of LineItem entries you emit MUST equal the number of distinct numeric CLINs in the Schedule-of-Supplies tables (typically 1-30 depending on whether base-year + option-year CLINs are present). It MUST NOT equal the total number of times any CLIN identifier is mentioned anywhere in the document.\\n\\nEXPLICITLY EXCLUDE (do not emit a duplicate row for):\\n- bare CLIN references inside Section E 'INSPECTION AND ACCEPTANCE' clauses\\n- bare CLIN references inside Section F 'DELIVERIES OR PERFORMANCE' / 'Period of Performance' bullet lists\\n- bare CLIN references inside Section G 'CONTRACT ADMINISTRATION DATA' / ACRN / CIN cross-reference tables\\n- CLIN references inside Section H special contract requirements, Section I clauses, Section J attachments, eCRAFT labor crosswalks, deliverable (CDRL A###) summary tables, WAWF routing tables, or address blocks\\n- standalone bullet, paragraph, or footer references to a CLIN number elsewhere in the document\\n\\nDo NOT create a 'shadow' or 'echo' row with null/empty description/qty/unit/unit_price/amount for the same item_number just because the CLIN identifier reappears in Section E/F/G or anywhere else.\\n\\nINCLUDE: informational/funding sub-items such as 'Funding in support of CLIN 2000' (with their own item number like 2001, 2002, 2003) when they appear as their own row in the Schedule-of-Supplies table; option-year CLINs (2100, 2200, 6000, etc.) when they appear as their own row in the Schedule-of-Supplies table. If the cover-page Section 18-23 is literally 'See Schedule' or 'SEE SCHEDULE' or 'Award sent EDI', do not invent a row from it — instead pull all rows from the continuation Section B. Preserve the printed order (typically ascending by item_number, grouped by section). If after a careful pass NO schedule rows exist (extremely rare; DD-1155 always has at least one CLIN), return [].", "title": "Line Items"}}, "title": "DD1155Schedule", "type": "object"}, "expected_output": {"contract_purchase_order_number": "N0017819D7712", "delivery_order_call_number": "N0017422F3007", "date_of_order": "2022JUL29", "requisition_purchase_request_number": "Various", "total_award_amount": "$1,772,661.97", "line_items": [{"item_number": "2000", "description": "Base Year - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER)", "quantity_ordered": 21640.0, "unit": "Labor Hours", "unit_price": null, "amount": null}, {"item_number": "2001", "description": "Funding in support of CLIN 2000 (Fund Type - OTHER)", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "2002", "description": "Funding in support of CLIN 2000 (Fund Type - OTHER)", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "2003", "description": "Funding in support of CLIN 2000 (Fund Type - OTHER)", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "2100", "description": "Option Year I - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "quantity_ordered": null, "unit": "Labor Hours", "unit_price": null, "amount": null}, {"item_number": "2200", "description": "Option Year II - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "quantity_ordered": null, "unit": "Labor Hours", "unit_price": null, "amount": null}, {"item_number": "3000", "description": "Base Year - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER)", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "3001", "description": "Funding in support of CLIN 3000 (Fund Type - OTHER)", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "3002", "description": "Funding in support of CLIN 3000 (Fund Type - OTHER)", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "3100", "description": "Option Year I - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "3200", "description": "Option Year II - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "4000", "description": "Base Year - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}, {"item_number": "4100", "description": "Option Year I - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}, {"item_number": "4200", "description": "Option Year II - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}, {"item_number": "6000", "description": "Option Year III - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "quantity_ordered": null, "unit": "Labor Hours", "unit_price": null, "amount": null}, {"item_number": "6100", "description": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "quantity_ordered": null, "unit": "Labor Hours", "unit_price": null, "amount": null}, {"item_number": "7000", "description": "Option Year III - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "7100", "description": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": null}, {"item_number": "8000", "description": "Option Year III - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}, {"item_number": "8100", "description": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}]}, "_field_rules": {"contract_purchase_order_number": {"comparator": "case_insensitive", "evidence": [{"page": 1, "bbox": [0.11647, 0.13544, 0.11362, 0.01078], "quote": "N0017819D7712", "value": "N0017819D7712", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.05694, 0.11645, 0.23648, 0.03606], "quote": "N0017819D7712", "value": "N0017819D7712", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "delivery_order_call_number": {"comparator": "case_insensitive", "evidence": [{"page": 1, "bbox": [0.3349, 0.13544, 0.11088, 0.01033], "quote": "N0017422F3007", "value": "N0017422F3007", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.29342, 0.11645, 0.18824, 0.03606], "quote": "N0017422F3007", "value": "N0017422F3007", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "date_of_order": {"comparator": "date", "evidence": [{"page": 1, "bbox": [0.51371, 0.13954, 0.07737, 0.01078], "quote": "2022JUL29", "value": "2022JUL29", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.48166, 0.11645, 0.14117, 0.03606], "quote": "2022JUL29", "value": "2022JUL29", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "requisition_purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": 1, "bbox": [0.68863, 0.13478, 0.07528, 0.01367], "quote": "Various", "value": "Various", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.62283, 0.11645, 0.20001, 0.03606], "quote": "Various", "value": "Various", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "total_award_amount": {"comparator": "case_insensitive", "evidence": [{"page": 1, "bbox": [0.85332, 0.68325, 0.07519, 0.01122], "quote": "$1,772,661.97", "value": "$1,772,661.97", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.81106, 0.68038, 0.13098, 0.01424], "quote": "$1,772,661.97", "value": "$1,772,661.97", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "line_items": {"comparator": {"item_number": "case_insensitive", "description": "case_insensitive", "quantity_ordered": "number", "unit": "case_insensitive", "unit_price": "case_insensitive", "amount": "case_insensitive"}, "evidence": [{"page": 1, "bbox": null, "quote": "2000", "value": {"item_number": "2000", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "2001", "value": {"item_number": "2001", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "2002", "value": {"item_number": "2002", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "2003", "value": {"item_number": "2003", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "2100", "value": {"item_number": "2100", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "2200", "value": {"item_number": "2200", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "3000", "value": {"item_number": "3000", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "3001", "value": {"item_number": "3001", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "3002", "value": {"item_number": "3002", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "3100", "value": {"item_number": "3100", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "3200", "value": {"item_number": "3200", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "4000", "value": {"item_number": "4000", "description": "Base Year - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "4100", "value": {"item_number": "4100", "description": "Option Year I - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "4200", "value": {"item_number": "4200", "description": "Option Year II - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "6000", "value": {"item_number": "6000", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "6100", "value": {"item_number": "6100", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "7000", "value": {"item_number": "7000", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "7100", "value": {"item_number": "7100", "description": null, "quantity_ordered": null, "unit": null, "unit_price": null, "amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "8000", "value": {"item_number": "8000", "description": "Option Year III - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "8100", "value": {"item_number": "8100", "description": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - CDRLs", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "NSP"}, "coarse": true}], "source_policy": "verbatim", "evidence_required": true, "verified": true, "structural": "match_by:item_number"}, "line_items[0].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.05392, 0.22797, 0.02949, 0.00911], "quote": "2000", "value": "2000", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.14569, 0.22609, 0.23333, 0.04047], "quote": "Base Year NOSSA Analytical, Technical and Management Support Services Labor (Fund Type OTHER)", "value": "Base Year - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER)", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.40312, 0.22797, 0.05894, 0.01041], "quote": "21,640.00", "value": 21640.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.48353, 0.22797, 0.07494, 0.00911], "quote": "Labor Hours", "value": "Labor Hours", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.05392, 0.276, 0.02834, 0.00911], "quote": "2001", "value": "2001", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.14569, 0.27397, 0.23892, 0.02652], "quote": "Funding in support of CLIN 2000 (Fund Type OTHER)", "value": "Funding in support of CLIN 2000 (Fund Type - OTHER)", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.40427, 0.276, 0.02465, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.48353, 0.276, 0.02056, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.05392, 0.31275, 0.02949, 0.00943], "quote": "2002", "value": "2002", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.14569, 0.31124, 0.23892, 0.02667], "quote": "Funding in support of CLIN 2000 (Fund Type OTHER)", "value": "Funding in support of CLIN 2000 (Fund Type - OTHER)", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.40427, 0.31275, 0.02465, 0.00943], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.48353, 0.31275, 0.02056, 0.00943], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.05392, 0.35056, 0.02949, 0.00911], "quote": "2003", "value": "2003", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.14569, 0.34851, 0.23892, 0.02638], "quote": "Funding in support of CLIN 2000 (Fund Type OTHER)", "value": "Funding in support of CLIN 2000 (Fund Type - OTHER)", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.40427, 0.35056, 0.02465, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.48353, 0.35056, 0.02056, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.05392, 0.38728, 0.02949, 0.00943], "quote": "2100", "value": "2100", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.14569, 0.38639, 0.23793, 0.04606], "quote": "Option Year I - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "value": "Option Year I - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.48353, 0.38728, 0.07494, 0.00943], "quote": "Labor Hours", "value": "Labor Hours", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[5].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.05392, 0.45252, 0.02949, 0.00911], "quote": "2200", "value": "2200", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[5].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.14569, 0.45245, 0.23793, 0.04492], "quote": "Option Year II - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "value": "Option Year II - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[5].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[5].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.48353, 0.45252, 0.07494, 0.00911], "quote": "Labor Hours", "value": "Labor Hours", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[5].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[5].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[6].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.06471, 0.61253, 0.02951, 0.00911], "quote": "3000", "value": "3000", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[6].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.25294, 0.61065, 0.24373, 0.04031], "quote": "Base Year NOSSA Analytical, Technical and Management Support Services ODCs (Fund Type OTHER)", "value": "Base Year - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER)", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[6].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.51486, 0.61253, 0.02464, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[6].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.609, 0.61253, 0.02057, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[6].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[6].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[7].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.06471, 0.66056, 0.02777, 0.00911], "quote": "3001", "value": "3001", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[7].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.25294, 0.65851, 0.23795, 0.02653], "quote": "Funding in support of CLIN 3000 (Fund Type OTHER)", "value": "Funding in support of CLIN 3000 (Fund Type - OTHER)", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[7].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.51486, 0.66056, 0.02464, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[7].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.609, 0.66056, 0.02057, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[7].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[7].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[8].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.06471, 0.69728, 0.02951, 0.00943], "quote": "3002", "value": "3002", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[8].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.25294, 0.69578, 0.23795, 0.02653], "quote": "Funding in support of CLIN 3000 (Fund Type OTHER)", "value": "Funding in support of CLIN 3000 (Fund Type - OTHER)", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[8].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.51486, 0.69728, 0.02464, 0.00943], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[8].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.609, 0.69728, 0.02057, 0.00943], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[8].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[8].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[9].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.06471, 0.73509, 0.02951, 0.00911], "quote": "3100", "value": "3100", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[9].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.2548, 0.7331, 0.2452, 0.0543], "quote": "Option Year I - NOSSA Analytical,\nTechnical and Management Support\nServices - ODCs (Fund Type - OTHER)\nOption", "value": "Option Year I - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[9].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.51486, 0.73509, 0.02464, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[9].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.609, 0.73509, 0.02057, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[9].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[9].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[10].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.06471, 0.79956, 0.02951, 0.00943], "quote": "3200", "value": "3200", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[10].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.2548, 0.79806, 0.2452, 0.05425], "quote": "Option Year II - NOSSA Analytical,\nTechnical and Management Support\nServices - ODCs (Fund Type - OTHER)\nOption", "value": "Option Year II - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[10].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.51486, 0.79956, 0.02464, 0.00943], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[10].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.609, 0.79956, 0.02057, 0.00943], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[10].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[10].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[11].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.05216, 0.09465, 0.02951, 0.00911], "quote": "4000", "value": "4000", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[11].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.08549, 0.09292, 0.27617, 0.0262], "quote": "Base Year NOSSA Analytical, Technical and Management Support Services CDRLs", "value": "Base Year - NOSSA Analytical, Technical and Management Support Services - CDRLs", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[11].quantity_ordered": {"comparator": "number", "evidence": [{"page": 4, "bbox": [0.40758, 0.09465, 0.02407, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[11].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.66039, 0.09465, 0.02054, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[11].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[11].amount": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.78979, 0.09465, 0.027, 0.00911], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[12].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.05216, 0.13161, 0.02951, 0.00911], "quote": "4100", "value": "4100", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[12].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.08549, 0.12988, 0.29715, 0.02622], "quote": "Option Year I NOSSA Analytical, Technical and Management Support Services CDRLs", "value": "Option Year I - NOSSA Analytical, Technical and Management Support Services - CDRLs", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[12].quantity_ordered": {"comparator": "number", "evidence": [{"page": 4, "bbox": [0.40758, 0.13137, 0.02407, 0.00943], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[12].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.66039, 0.13137, 0.02054, 0.00943], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[12].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[12].amount": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.78979, 0.13137, 0.027, 0.00943], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[13].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.05216, 0.16821, 0.02951, 0.00943], "quote": "4200", "value": "4200", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[13].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.08587, 0.16686, 0.28002, 0.02651], "quote": "Option Year II NOSSA Analytical, Technical and Management Support Services CDRLs", "value": "Option Year II - NOSSA Analytical, Technical and Management Support Services - CDRLs", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[13].quantity_ordered": {"comparator": "number", "evidence": [{"page": 4, "bbox": [0.40758, 0.16874, 0.02407, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[13].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.66039, 0.16874, 0.02054, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[13].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[13].amount": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.78979, 0.16874, 0.027, 0.00911], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[14].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.05371, 0.30161, 0.02953, 0.00911], "quote": "6000", "value": "6000", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[14].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.14569, 0.30019, 0.23831, 0.04302], "quote": "Option Year III - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "value": "Option Year III - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[14].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[14].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.48353, 0.30161, 0.07494, 0.00911], "quote": "Labor Hours", "value": "Labor Hours", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[14].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[14].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[15].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.05371, 0.36328, 0.02953, 0.00911], "quote": "6100", "value": "6100", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[15].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.14569, 0.3614, 0.23831, 0.04643], "quote": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "value": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - Labor (Fund Type - OTHER) Option", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[15].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[15].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.48353, 0.36328, 0.07494, 0.00911], "quote": "Labor Hours", "value": "Labor Hours", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[15].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[15].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[16].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.06451, 0.52374, 0.02949, 0.00911], "quote": "7000", "value": "7000", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[16].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.2496, 0.5214, 0.247, 0.0512], "quote": "Option Year III - NOSSA Analytical,\nTechnical and Management Support\nServices - ODCs (Fund Type - OTHER)\nOption", "value": "Option Year III - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[16].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.51546, 0.52374, 0.02462, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[16].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.609, 0.52374, 0.02057, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[16].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[16].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[17].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.06451, 0.58526, 0.02949, 0.00911], "quote": "7100", "value": "7100", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[17].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.2496, 0.58307, 0.247, 0.0544], "quote": "Option Year IV - NOSSA Analytical,\nTechnical and Management Support\nServices - ODCs (Fund Type - OTHER)\nOption", "value": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - ODCs (Fund Type - OTHER) Option", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[17].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.51546, 0.58526, 0.02462, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[17].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.609, 0.58526, 0.02057, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[17].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[17].amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[18].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.04627, 0.75571, 0.02949, 0.00911], "quote": "8000", "value": "8000", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[18].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.07959, 0.75398, 0.28217, 0.02667], "quote": "Option Year III NOSSA Analytical, Technical and Management Support Services CDRLs", "value": "Option Year III - NOSSA Analytical, Technical and Management Support Services - CDRLs", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[18].quantity_ordered": {"comparator": "number", "evidence": [{"page": 4, "bbox": [0.4047, 0.75571, 0.0246, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[18].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.65802, 0.75571, 0.02057, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[18].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[18].amount": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.78745, 0.75571, 0.027, 0.00911], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[19].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.04627, 0.79297, 0.02949, 0.00911], "quote": "8100", "value": "8100", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[19].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.07959, 0.79124, 0.28293, 0.02667], "quote": "Option Year IV NOSSA Analytical, Technical and Management Support Services CDRLs", "value": "Option Year IV - NOSSA Analytical, Technical and Management Support Services - CDRLs", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[19].quantity_ordered": {"comparator": "number", "evidence": [{"page": 4, "bbox": [0.4047, 0.79297, 0.0246, 0.00911], "quote": "1.00", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[19].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.65802, 0.79297, 0.02057, 0.00911], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[19].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[19].amount": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.78745, 0.79297, 0.027, 0.00911], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}}, "_eval_row_identity": {"line_items": {"anyOf": [{"items": {"$ref": "#/$defs/LineItem"}, "type": "array"}, {"type": "null"}], "description": "One entry per distinct Schedule-of-Supplies/Services CLIN/SLIN row. DEDUPLICATE by item_number across the entire document: a CLIN that appears once in the Schedule-of-Supplies table and then is referenced again in Section E/F/G or elsewhere must appear ONLY ONCE in this list. Identified in the text by a numeric item_number in the leftmost 'ITEM NO.' / 'Item' / 'CLIN' column of a Section B / Schedule table (DD-1155 block 18 or any continuation sheet). Excludes accounting/ACRN rows, period-of-performance bullets, deliverable rosters, travel-table entries, and bare CLIN references outside the Schedule-of-Supplies table.", "title": "Line Items", "identity_key": "item_number"}}}
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ python /tests/verifier.py
tasks/long--dd1155-schedule-continuation-0011-5e5342bddf/tests/verifier.py ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Harbor's file boundary into the existing ExtractBench evaluator."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import json
7
+ from collections.abc import Mapping, Sequence
8
+ from datetime import UTC, datetime
9
+ from pathlib import Path
10
+ from typing import Any
11
+
12
+ from extract_bench.evaluation.evaluators.extract import ExtractEvaluator
13
+ from extract_bench.evaluation.metrics.extract.unified_evidence_metric import ValueCell
14
+ from extract_bench.evaluation.score_case import load_extract_test_case
15
+ from extract_bench.schemas.extract_output import ExtractOutput
16
+ from extract_bench.schemas.pipeline_io import InferenceRequest, InferenceResult
17
+ from extract_bench.schemas.product import ProductType
18
+
19
+
20
+ def _feedback(cells: Sequence[ValueCell], metadata: Mapping[str, Any]) -> dict[str, Any]:
21
+ expected = sum(cell.gt_path is not None for cell in cells)
22
+ predicted = sum(cell.pred_path is not None for cell in cells)
23
+ matched = sum(cell.value_correct for cell in cells)
24
+ if (expected, predicted, matched) != (
25
+ metadata["expected_cells"],
26
+ metadata["predicted_cells"],
27
+ metadata["v_correct"],
28
+ ):
29
+ raise ValueError("Value feedback does not account for the scorer's cell counts")
30
+ denominator = expected + predicted
31
+ entries = []
32
+ for cell in cells:
33
+ if cell.gt_path is None:
34
+ outcome = "prediction_only"
35
+ elif cell.pred_path is None:
36
+ outcome = "reference_only"
37
+ else:
38
+ outcome = "matched" if cell.value_correct else "value_differs"
39
+ entries.append(
40
+ {
41
+ "reference_path": cell.gt_path,
42
+ "output_path": cell.pred_path,
43
+ "outcome": outcome,
44
+ "f1_credit": 2.0 / denominator if cell.value_correct else 0.0,
45
+ }
46
+ )
47
+ return {
48
+ "schema_version": 1,
49
+ "status": "scored",
50
+ "path_space": "normalized_scoring_inputs",
51
+ "counts": {"expected": expected, "predicted": predicted, "matched": matched},
52
+ "value_incomplete": metadata["value_incomplete"],
53
+ "cells": entries,
54
+ }
55
+
56
+
57
+ def score_prediction(test_json: Path, prediction: Any) -> tuple[dict[str, float], dict[str, Any]]:
58
+ """Use exactly the normal evaluator's normalization and metric selection."""
59
+ case = load_extract_test_case(test_json, source_file=Path("/app/document.pdf"))
60
+ now = datetime.now(UTC)
61
+ result = InferenceResult(
62
+ request=InferenceRequest(
63
+ example_id=case.test_id,
64
+ source_file_path=str(case.file_path),
65
+ product_type=ProductType.EXTRACT,
66
+ ),
67
+ pipeline_name="harbor",
68
+ product_type=ProductType.EXTRACT,
69
+ raw_output={},
70
+ output=ExtractOutput(
71
+ example_id=case.test_id,
72
+ pipeline_name="harbor",
73
+ extracted_data=prediction,
74
+ field_citations=[],
75
+ ),
76
+ started_at=now,
77
+ completed_at=now,
78
+ latency_in_ms=0,
79
+ )
80
+ cells: list[ValueCell] = []
81
+ bundle = ExtractEvaluator().compute_metrics(result, case, value_cells=cells)
82
+ metrics = {
83
+ metric.metric_name: metric.value
84
+ for metric in bundle.metrics
85
+ if metric.metric_name.startswith("extract_unified_value_")
86
+ }
87
+ value_f1 = next(metric for metric in bundle.metrics if metric.metric_name == "extract_unified_value_f1")
88
+ return metrics, _feedback(cells, value_f1.metadata)
89
+
90
+
91
+ def verify(test_json: Path, prediction_path: Path, log_dir: Path) -> dict[str, Any]:
92
+ """Bad/missing submissions earn zero; broken grading raises an error.
93
+
94
+ Only submission decoding is caught. A missing reference, loader error or
95
+ scorer failure must fail the verifier instead of becoming a model score.
96
+ """
97
+ log_dir.mkdir(parents=True, exist_ok=True)
98
+ reward_path = log_dir / "reward.txt"
99
+ for name in ("reward.txt", "metrics.json", "feedback.json"):
100
+ (log_dir / name).unlink(missing_ok=True)
101
+ try:
102
+ prediction = json.loads(prediction_path.read_text(encoding="utf-8"))
103
+ except (FileNotFoundError, UnicodeDecodeError, json.JSONDecodeError) as error:
104
+ report: dict[str, Any] = {"status": "invalid_submission", "error": str(error), "value_f1": 0.0}
105
+ else:
106
+ if not isinstance(prediction, dict):
107
+ report = {"status": "invalid_submission", "error": "Expected one JSON object", "value_f1": 0.0}
108
+ else:
109
+ metrics, feedback = score_prediction(test_json, prediction)
110
+ report = {
111
+ "status": "scored",
112
+ "value_f1": metrics["extract_unified_value_f1"],
113
+ "metrics": metrics,
114
+ }
115
+ if report["status"] == "invalid_submission":
116
+ feedback = {"schema_version": 1, "status": "invalid_submission", "error": report["error"], "cells": []}
117
+ report["perfect"] = int(report["value_f1"] == 1.0)
118
+ (log_dir / "metrics.json").write_text(json.dumps(report, indent=2, allow_nan=False) + "\n", encoding="utf-8")
119
+ (log_dir / "feedback.json").write_text(json.dumps(feedback, indent=2, allow_nan=False) + "\n", encoding="utf-8")
120
+ reward_path.write_text(f"{report['value_f1']}\n", encoding="utf-8")
121
+ return report
122
+
123
+
124
+ def main() -> None:
125
+ parser = argparse.ArgumentParser(description=__doc__)
126
+ parser.add_argument("--test-json", type=Path, default=Path("/tests/reference.test.json"))
127
+ parser.add_argument("--prediction", type=Path, default=Path("/app/output.json"))
128
+ parser.add_argument("--log-dir", type=Path, default=Path("/logs/verifier"))
129
+ args = parser.parse_args()
130
+ verify(args.test_json, args.prediction, args.log_dir)
131
+
132
+
133
+ if __name__ == "__main__":
134
+ main()
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/environment/Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim-bookworm
2
+ RUN apt-get update && apt-get install -y --no-install-recommends \
3
+ poppler-utils tesseract-ocr curl git nodejs npm \
4
+ && rm -rf /var/lib/apt/lists/*
5
+ RUN pip install --no-cache-dir pymupdf==1.26.6 pypdf==6.4.0 pillow==12.0.0
6
+ WORKDIR /app
7
+ COPY document.pdf schema.json /app/
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/environment/document.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8632fc7b1783beffc0f898470b9b4f1291608412b195e3c57585794437d4e2f6
3
+ size 10232566
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/environment/schema.json ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$defs": {
3
+ "LineItem": {
4
+ "properties": {
5
+ "item_number": {
6
+ "anyOf": [
7
+ {
8
+ "type": "string"
9
+ },
10
+ {
11
+ "type": "null"
12
+ }
13
+ ],
14
+ "default": null,
15
+ "description": "UNIQUE 4-character zero-padded CLIN/SLIN identifier — EACH item_number VALUE MUST APPEAR AT MOST ONCE IN THE line_items LIST. Taken from the leftmost 'ITEM NO.' or 'Item' column of the Schedule of Supplies/Services (block 18 / DFARS Section B). Common label aliases: 'ITEM NO.', 'Item', 'Line Item', 'CLIN', 'CLIN/SLIN/ELIN', 'CLIN No.'. Always a 4-character zero-padded numeric string for top-level CLINs (e.g. '0001', '2000', '6100', '8100') and 6-character for SLINs (e.g. '000101', '200001'). Preserve verbatim including leading zeros; do NOT strip or normalize. Do NOT confuse with: requisition/PR number (block 4), purchase order number (block 1), delivery order number (block 2), ACRN (2-letter accounting code like 'AA'), PSC/FSC code (4-character product service code like 'R425'), CIN (long alphanumeric like 'F4FDAT2262A0380000AA'), or the document-page-number 'Page X of Y' header. If the same item_number appears in multiple places in the document (e.g. once in Section B with full data and again in Section E/F/G as a bare reference), this field STILL has only one value in the list — emit a single LineItem with this item_number from the Section B Schedule-of-Supplies row, and do NOT emit any additional LineItem with the same item_number."
16
+ },
17
+ "description": {
18
+ "anyOf": [
19
+ {
20
+ "type": "string"
21
+ },
22
+ {
23
+ "type": "null"
24
+ }
25
+ ],
26
+ "default": null,
27
+ "description": "The free-text supply/service description for this CLIN/SLIN, taken from the 'SCHEDULE OF SUPPLIES/SERVICES' column (block 19 on DD-1155) or 'Supplies/Services' / 'Supplies/Service' column on the continuation sheet. Capture the FULL description verbatim — DO NOT TRUNCATE. The description typically begins with an NSN/PSC line (e.g. '1650-00-993-7386') followed by a noun phrase (e.g. 'VALVE,LINEAR,DIRECTIONAL CONTROL') and may continue with manufacturer / CAGE code / part number lines (e.g. 'HYDRO-AIRE INC., DBA CRANE HYDRO-AIRE CAGE 81982', 'P/N: 80791'). Read the ENTIRE description column for that row — including all wrapped or continuation lines that belong to the same row — and capture every line. Preserve line breaks within the description cell as '\\n'. INCLUDE any inline metadata that the agency printed inside the description cell (e.g. 'Data Category Code:', 'Purchase Requisition Number:', 'Product Service Code:', 'Pricing Arrangement:', 'CIN:', 'ACRN:', 'Fund Type', 'Option' suffix). Do NOT include text that appears in a separate column ('UNIT', 'UNIT PRICE', 'AMOUNT') or in standalone subsequent paragraphs ('PRICING TERMS:', 'INSPECTION POINT:', 'DELIVERY DATE:', 'PREP FOR DELIVERY:', 'SAMPLING:', 'PARCEL POST ADDRESS:'). Do NOT confuse with the Statement-of-Work prose body of Section C, the contractor's address (block 9), or the WAWF routing data table. If the description column is literally 'See Schedule' or 'CONT'D' with no real text, return that literal string. NORMALIZE column-wrap whitespace artifacts: if a comma is preceded by a stray space or line-break caused by DD-1155 column-wrap (e.g. 'VALVE,LINEAR ,DIRECT' or 'VALVE,LINEAR\\n,DIRECT'), remove that spurious whitespace so it reads 'VALVE,LINEAR,DIRECT'. This rule applies only to whitespace immediately adjacent to punctuation (comma, period, semicolon); do NOT alter other line breaks or spacing in the description."
28
+ },
29
+ "quantity_ordered": {
30
+ "anyOf": [
31
+ {
32
+ "type": "number"
33
+ },
34
+ {
35
+ "type": "null"
36
+ }
37
+ ],
38
+ "default": null,
39
+ "description": "Numeric quantity ordered for this CLIN/SLIN, from the 'QUANTITY ORDERED/ACCEPTED*' column (block 20 on DD-1155) or the 'Qty' / 'Quantity' / 'QTY' column on the continuation sheet. Strip any thousands separators (',') and any trailing unit text (e.g. '21,640.00 Labor Hours' → 21640.0; '3.000' → 3.0; '1.00' → 1.0). Use a JSON number (float OK). Do NOT include the unit-of-issue, unit price, or amount. Do NOT confuse with: '# of Personnel', '# of Days', 'Instances' columns inside Section H travel tables, or the page-of-pages count. Return null only if the row genuinely has no quantity printed (e.g. an NSP / informational sub-item that lists only a description)."
40
+ },
41
+ "unit": {
42
+ "anyOf": [
43
+ {
44
+ "type": "string"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ],
50
+ "default": null,
51
+ "description": "Unit of issue / unit-of-measure for the quantity, from the 'UNIT' column (block 21 on DD-1155) or the 'Unit' column on the continuation sheet. Verbatim short code or short phrase as printed: 'EA', 'Each', 'Lot', 'Labor Hours', 'HR', 'DA', 'BX', 'GA', 'KT'. Preserve original casing exactly. Do NOT expand abbreviations (do NOT change 'EA' to 'Each' or vice versa). Do NOT confuse with: the unit price, the unit-of-issue inside the description text, or the 'Unit Pack' (QUP) under PKGING DATA. Return null only if the unit cell is genuinely blank for that row."
52
+ },
53
+ "unit_price": {
54
+ "anyOf": [
55
+ {
56
+ "type": "string"
57
+ },
58
+ {
59
+ "type": "null"
60
+ }
61
+ ],
62
+ "default": null,
63
+ "description": "Unit price per single unit-of-issue for this CLIN/SLIN, from the 'UNIT PRICE' column (block 22 on DD-1155) or 'Unit Price' / 'Est. Cost' / 'Fixed Fee' / 'CPFF' column on the continuation sheet. Capture verbatim AS PRINTED in the cell — including any currency prefix ('USD', '$'), thousands separators, and decimal point — as a string (e.g. 'USD 1,000.00', '$45,213.00', '0.00'). Do NOT compute or normalize. If multiple price-related sub-columns exist (Est. Cost / Fixed Fee / CPFF), join the populated cells with ' | ' in column order (e.g. 'USD 21,640.00 | USD 1,000.00 | USD 22,640.00'); if only one is populated, use it alone. Return null only if every price/cost cell for that row is genuinely blank (typical for NSP / 'No Separate Pricing' lines and informational sub-items). NSP-CELL RULE: if the row's amount/price column reads literally 'NSP' or 'No Separate Pricing' (typical of 'Cost Type / NSP Items' CLINs like 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders), set unit_price=null AND set amount='NSP' (place the literal 'NSP' marker in the amount field, not the unit_price field). Do NOT confuse with: the Total in block 21/25, an ACRN-table 'Amount' column, or the 'Funded Amount' under the description."
64
+ },
65
+ "amount": {
66
+ "anyOf": [
67
+ {
68
+ "type": "string"
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ],
74
+ "default": null,
75
+ "description": "Total extended amount for this CLIN/SLIN (typically quantity * unit_price), from the 'AMOUNT' column (block 23 on DD-1155) or 'Amount' / 'Funded Amount' / 'Firm Price' column on the continuation sheet. Capture verbatim AS PRINTED — currency prefix, thousands separators, decimals — as a string (e.g. 'USD 1,000.00', '$45,213.00'). STACKED-CELL RULE — when the Amount cell contains BOTH a 'Firm Price' line AND a 'Funded Amount' line stacked vertically (typical of the AFLCMC IDIQ continuation-sheet template, where each CLIN's Amount column shows two labeled sub-rows), capture ONLY the dollar value next to 'Funded Amount' (the obligated dollar figure for THIS line item). Do NOT concatenate, do NOT join, do NOT include the 'Firm Price' line, do NOT prefix with sub-labels — output a single bare dollar string (e.g. 'USD 1,000.00'). NSP-CELL RULE — when the row is a 'Cost Type / NSP' item (typical CLINs 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders) and the price/amount cell reads literally 'NSP' or 'No Separate Pricing', set amount='NSP' (the literal string 'NSP'). Return null only if the cell is genuinely blank, or a CLIN whose amount is deferred to a later modification. Do NOT confuse with: block 25 'TOTAL' for the whole order, ACRN-table 'Amount' (per-accounting-string allocation), Section G 'Line of Accounting' amount, or the page header dollar figure."
76
+ }
77
+ },
78
+ "title": "LineItem",
79
+ "type": "object"
80
+ }
81
+ },
82
+ "properties": {
83
+ "contract_purchase_order_number": {
84
+ "anyOf": [
85
+ {
86
+ "type": "string"
87
+ },
88
+ {
89
+ "type": "null"
90
+ }
91
+ ],
92
+ "default": null,
93
+ "description": "The base contract or purchase-order/agreement number that this DD-1155 order is written against, from block 1 'CONTRACT/PURCH ORDER/AGREEMENT NO.' on page 1. Verbatim including all dashes / slashes and any letter prefix (e.g. 'SPE4A7-17-P-5525', 'FA868423DB074', 'N0017819D7712', 'H94003-04-D-0004'). Typical formats: PIID 13-character (e.g. 'N0001719C5001'), DLA 'SPE…-NN-P-NNNN', or IDIQ base contract. Do NOT confuse with: block 2 delivery order/call number (often a shorter PIID), block 4 requisition / purchase request number, the CIN (long string ending in '-AA' or similar inside Section B), or the document page-header reference (which mirrors block 2, not block 1). If block 1 contains a comma-separated pair, capture only the first (the base contract)."
94
+ },
95
+ "delivery_order_call_number": {
96
+ "anyOf": [
97
+ {
98
+ "type": "string"
99
+ },
100
+ {
101
+ "type": "null"
102
+ }
103
+ ],
104
+ "default": null,
105
+ "description": "The delivery-order / call / task-order number for this specific order, from block 2 'DELIVERY ORDER/CALL NO.' on page 1. Verbatim including any letter prefix (e.g. 'FA868423FB061', 'N0017422F3007'). On many DD-1155s this is the value that also appears in the upper-right page header (e.g. 'N0017422F3007 - FINAL', 'FA868423FB061 Page 2 of 13'). If block 2 is blank (true for many DLA SPE… purchase orders where there is no separate delivery order), return null. NEVER return empty string ''; use null for blank cells."
106
+ },
107
+ "date_of_order": {
108
+ "anyOf": [
109
+ {
110
+ "type": "string"
111
+ },
112
+ {
113
+ "type": "null"
114
+ }
115
+ ],
116
+ "default": null,
117
+ "description": "Date the order was issued, from block 3 'DATE OF ORDER/CALL (YYYYMMMDD)' on page 1. Return verbatim AS PRINTED in the source (the DD-1155 form prescribes the 'YYYYMMMDD' format with a 3-letter uppercase month, e.g. '2017 FEB 17', '2022JUL29', '2022DEC06'). Preserve internal whitespace exactly as printed. Do NOT reformat to ISO-8601, do NOT translate the month, do NOT confuse with: date signed (block 24 BY/DATE SIGNED), delivery date in Section F, document creation timestamp ('Created On:' footer), or Period-of-Performance start date. If block 3 is genuinely blank, return null. NEVER return empty string ''; use null for blank cells."
118
+ },
119
+ "requisition_purchase_request_number": {
120
+ "anyOf": [
121
+ {
122
+ "type": "string"
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ],
128
+ "default": null,
129
+ "description": "The requisition or purchase-request number that initiated this order, from block 4 'REQUISITION/PURCH REQUEST NO.' on page 1. Verbatim string (e.g. '0065228382', 'A025532', 'F4FDAT2262A038'). If block 4 explicitly says 'Various' (used when the order rolls up many PRs), return the literal string 'Various'. Do NOT confuse with: contract number (block 1), delivery order number (block 2), CIN (Section G accounting CIN like 'F4FDAT2262A0380000AA'), or the per-line 'External PR' values on a Section B continuation."
130
+ },
131
+ "total_award_amount": {
132
+ "anyOf": [
133
+ {
134
+ "type": "string"
135
+ },
136
+ {
137
+ "type": "null"
138
+ }
139
+ ],
140
+ "default": null,
141
+ "description": "Grand total dollar value of this order, from block 25 'TOTAL' on the DD-1155 cover page (usually directly above the contracting officer signature in block 24). Capture VERBATIM AS PRINTED including any currency prefix and punctuation as a string (e.g. '$1,772,661.97', 'USD 1,000.00', '$45,213.00'). Return null only if block 25 is genuinely blank (no total printed). NEVER return empty string ''; use null for blank cells. Do NOT compute by summing the line_items, do NOT confuse with: the Section G ACRN line of accounting amount, a per-CLIN unit_price/amount, the 'Funded Amount' on a single CLIN, or 'AMOUNT VERIFIED CORRECT FOR' (block 33)."
142
+ },
143
+ "line_items": {
144
+ "anyOf": [
145
+ {
146
+ "items": {
147
+ "$ref": "#/$defs/LineItem"
148
+ },
149
+ "type": "array"
150
+ },
151
+ {
152
+ "type": "null"
153
+ }
154
+ ],
155
+ "description": "DEDUPLICATED list of every distinct Schedule-of-Supplies/Services CLIN/SLIN row in this DD-1155 order. EACH CLIN/SLIN APPEARS EXACTLY ONCE IN THIS LIST — IT IS A SET-VALUED FIELD KEYED BY item_number, NOT A BAG OF EVERY MENTION. If you find yourself about to emit a second LineItem with the same item_number, DO NOT — that's wrong. Update or merge into the first LineItem instead.\\n\\nSource: block 18-23 of the DD-1155 cover page AND every continuation-sheet 'Section B' / 'SCHEDULE OF SUPPLIES/SERVICES' / 'CLIN - SUPPLIES OR SERVICES' table (including DD-1155C-1 continuation sheets, 'Cost Type Items', 'Cost Only Items', 'Cost Type / NSP Items', and base-year + option-year CLIN groupings).\\n\\nA CLIN qualifies for inclusion ONLY when it appears in a Schedule-of-Supplies/Services TABLE with a populated description/qty/unit/price/amount column. CLIN identifiers are routinely referenced again throughout the document body (Section E inspection clauses, Section F period-of-performance lists, Section G ACRN/CIN cross-reference tables, payment-clause boilerplate, delivery rosters, etc.). Those secondary references are NOT new line items — they do NOT produce additional LineItem entries. The number of LineItem entries you emit MUST equal the number of distinct numeric CLINs in the Schedule-of-Supplies tables (typically 1-30 depending on whether base-year + option-year CLINs are present). It MUST NOT equal the total number of times any CLIN identifier is mentioned anywhere in the document.\\n\\nEXPLICITLY EXCLUDE (do not emit a duplicate row for):\\n- bare CLIN references inside Section E 'INSPECTION AND ACCEPTANCE' clauses\\n- bare CLIN references inside Section F 'DELIVERIES OR PERFORMANCE' / 'Period of Performance' bullet lists\\n- bare CLIN references inside Section G 'CONTRACT ADMINISTRATION DATA' / ACRN / CIN cross-reference tables\\n- CLIN references inside Section H special contract requirements, Section I clauses, Section J attachments, eCRAFT labor crosswalks, deliverable (CDRL A###) summary tables, WAWF routing tables, or address blocks\\n- standalone bullet, paragraph, or footer references to a CLIN number elsewhere in the document\\n\\nDo NOT create a 'shadow' or 'echo' row with null/empty description/qty/unit/unit_price/amount for the same item_number just because the CLIN identifier reappears in Section E/F/G or anywhere else.\\n\\nINCLUDE: informational/funding sub-items such as 'Funding in support of CLIN 2000' (with their own item number like 2001, 2002, 2003) when they appear as their own row in the Schedule-of-Supplies table; option-year CLINs (2100, 2200, 6000, etc.) when they appear as their own row in the Schedule-of-Supplies table. If the cover-page Section 18-23 is literally 'See Schedule' or 'SEE SCHEDULE' or 'Award sent EDI', do not invent a row from it — instead pull all rows from the continuation Section B. Preserve the printed order (typically ascending by item_number, grouped by section). If after a careful pass NO schedule rows exist (extremely rare; DD-1155 always has at least one CLIN), return [].",
156
+ "title": "Line Items"
157
+ }
158
+ },
159
+ "title": "DD1155Schedule",
160
+ "type": "object"
161
+ }
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/instruction.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Extract structured data from the document file `./document.pdf` in the current directory.
2
+
3
+ Use only local file inspection and shell commands. Do not use web search, network calls, browser tools, or external services. Temporary scratch files inside the current directory are OK.
4
+
5
+ Return a single JSON object conforming to this schema as your final answer:
6
+
7
+ {"$defs": {"LineItem": {"properties": {"item_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "UNIQUE 4-character zero-padded CLIN/SLIN identifier — EACH item_number VALUE MUST APPEAR AT MOST ONCE IN THE line_items LIST. Taken from the leftmost 'ITEM NO.' or 'Item' column of the Schedule of Supplies/Services (block 18 / DFARS Section B). Common label aliases: 'ITEM NO.', 'Item', 'Line Item', 'CLIN', 'CLIN/SLIN/ELIN', 'CLIN No.'. Always a 4-character zero-padded numeric string for top-level CLINs (e.g. '0001', '2000', '6100', '8100') and 6-character for SLINs (e.g. '000101', '200001'). Preserve verbatim including leading zeros; do NOT strip or normalize. Do NOT confuse with: requisition/PR number (block 4), purchase order number (block 1), delivery order number (block 2), ACRN (2-letter accounting code like 'AA'), PSC/FSC code (4-character product service code like 'R425'), CIN (long alphanumeric like 'F4FDAT2262A0380000AA'), or the document-page-number 'Page X of Y' header. If the same item_number appears in multiple places in the document (e.g. once in Section B with full data and again in Section E/F/G as a bare reference), this field STILL has only one value in the list — emit a single LineItem with this item_number from the Section B Schedule-of-Supplies row, and do NOT emit any additional LineItem with the same item_number."}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The free-text supply/service description for this CLIN/SLIN, taken from the 'SCHEDULE OF SUPPLIES/SERVICES' column (block 19 on DD-1155) or 'Supplies/Services' / 'Supplies/Service' column on the continuation sheet. Capture the FULL description verbatim — DO NOT TRUNCATE. The description typically begins with an NSN/PSC line (e.g. '1650-00-993-7386') followed by a noun phrase (e.g. 'VALVE,LINEAR,DIRECTIONAL CONTROL') and may continue with manufacturer / CAGE code / part number lines (e.g. 'HYDRO-AIRE INC., DBA CRANE HYDRO-AIRE CAGE 81982', 'P/N: 80791'). Read the ENTIRE description column for that row — including all wrapped or continuation lines that belong to the same row — and capture every line. Preserve line breaks within the description cell as '\\n'. INCLUDE any inline metadata that the agency printed inside the description cell (e.g. 'Data Category Code:', 'Purchase Requisition Number:', 'Product Service Code:', 'Pricing Arrangement:', 'CIN:', 'ACRN:', 'Fund Type', 'Option' suffix). Do NOT include text that appears in a separate column ('UNIT', 'UNIT PRICE', 'AMOUNT') or in standalone subsequent paragraphs ('PRICING TERMS:', 'INSPECTION POINT:', 'DELIVERY DATE:', 'PREP FOR DELIVERY:', 'SAMPLING:', 'PARCEL POST ADDRESS:'). Do NOT confuse with the Statement-of-Work prose body of Section C, the contractor's address (block 9), or the WAWF routing data table. If the description column is literally 'See Schedule' or 'CONT'D' with no real text, return that literal string. NORMALIZE column-wrap whitespace artifacts: if a comma is preceded by a stray space or line-break caused by DD-1155 column-wrap (e.g. 'VALVE,LINEAR ,DIRECT' or 'VALVE,LINEAR\\n,DIRECT'), remove that spurious whitespace so it reads 'VALVE,LINEAR,DIRECT'. This rule applies only to whitespace immediately adjacent to punctuation (comma, period, semicolon); do NOT alter other line breaks or spacing in the description."}, "quantity_ordered": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": null, "description": "Numeric quantity ordered for this CLIN/SLIN, from the 'QUANTITY ORDERED/ACCEPTED*' column (block 20 on DD-1155) or the 'Qty' / 'Quantity' / 'QTY' column on the continuation sheet. Strip any thousands separators (',') and any trailing unit text (e.g. '21,640.00 Labor Hours' → 21640.0; '3.000' → 3.0; '1.00' → 1.0). Use a JSON number (float OK). Do NOT include the unit-of-issue, unit price, or amount. Do NOT confuse with: '# of Personnel', '# of Days', 'Instances' columns inside Section H travel tables, or the page-of-pages count. Return null only if the row genuinely has no quantity printed (e.g. an NSP / informational sub-item that lists only a description)."}, "unit": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Unit of issue / unit-of-measure for the quantity, from the 'UNIT' column (block 21 on DD-1155) or the 'Unit' column on the continuation sheet. Verbatim short code or short phrase as printed: 'EA', 'Each', 'Lot', 'Labor Hours', 'HR', 'DA', 'BX', 'GA', 'KT'. Preserve original casing exactly. Do NOT expand abbreviations (do NOT change 'EA' to 'Each' or vice versa). Do NOT confuse with: the unit price, the unit-of-issue inside the description text, or the 'Unit Pack' (QUP) under PKGING DATA. Return null only if the unit cell is genuinely blank for that row."}, "unit_price": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Unit price per single unit-of-issue for this CLIN/SLIN, from the 'UNIT PRICE' column (block 22 on DD-1155) or 'Unit Price' / 'Est. Cost' / 'Fixed Fee' / 'CPFF' column on the continuation sheet. Capture verbatim AS PRINTED in the cell — including any currency prefix ('USD', '$'), thousands separators, and decimal point — as a string (e.g. 'USD 1,000.00', '$45,213.00', '0.00'). Do NOT compute or normalize. If multiple price-related sub-columns exist (Est. Cost / Fixed Fee / CPFF), join the populated cells with ' | ' in column order (e.g. 'USD 21,640.00 | USD 1,000.00 | USD 22,640.00'); if only one is populated, use it alone. Return null only if every price/cost cell for that row is genuinely blank (typical for NSP / 'No Separate Pricing' lines and informational sub-items). NSP-CELL RULE: if the row's amount/price column reads literally 'NSP' or 'No Separate Pricing' (typical of 'Cost Type / NSP Items' CLINs like 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders), set unit_price=null AND set amount='NSP' (place the literal 'NSP' marker in the amount field, not the unit_price field). Do NOT confuse with: the Total in block 21/25, an ACRN-table 'Amount' column, or the 'Funded Amount' under the description."}, "amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Total extended amount for this CLIN/SLIN (typically quantity * unit_price), from the 'AMOUNT' column (block 23 on DD-1155) or 'Amount' / 'Funded Amount' / 'Firm Price' column on the continuation sheet. Capture verbatim AS PRINTED — currency prefix, thousands separators, decimals — as a string (e.g. 'USD 1,000.00', '$45,213.00'). STACKED-CELL RULE — when the Amount cell contains BOTH a 'Firm Price' line AND a 'Funded Amount' line stacked vertically (typical of the AFLCMC IDIQ continuation-sheet template, where each CLIN's Amount column shows two labeled sub-rows), capture ONLY the dollar value next to 'Funded Amount' (the obligated dollar figure for THIS line item). Do NOT concatenate, do NOT join, do NOT include the 'Firm Price' line, do NOT prefix with sub-labels — output a single bare dollar string (e.g. 'USD 1,000.00'). NSP-CELL RULE — when the row is a 'Cost Type / NSP' item (typical CLINs 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders) and the price/amount cell reads literally 'NSP' or 'No Separate Pricing', set amount='NSP' (the literal string 'NSP'). Return null only if the cell is genuinely blank, or a CLIN whose amount is deferred to a later modification. Do NOT confuse with: block 25 'TOTAL' for the whole order, ACRN-table 'Amount' (per-accounting-string allocation), Section G 'Line of Accounting' amount, or the page header dollar figure."}}, "title": "LineItem", "type": "object"}}, "properties": {"contract_purchase_order_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The base contract or purchase-order/agreement number that this DD-1155 order is written against, from block 1 'CONTRACT/PURCH ORDER/AGREEMENT NO.' on page 1. Verbatim including all dashes / slashes and any letter prefix (e.g. 'SPE4A7-17-P-5525', 'FA868423DB074', 'N0017819D7712', 'H94003-04-D-0004'). Typical formats: PIID 13-character (e.g. 'N0001719C5001'), DLA 'SPE…-NN-P-NNNN', or IDIQ base contract. Do NOT confuse with: block 2 delivery order/call number (often a shorter PIID), block 4 requisition / purchase request number, the CIN (long string ending in '-AA' or similar inside Section B), or the document page-header reference (which mirrors block 2, not block 1). If block 1 contains a comma-separated pair, capture only the first (the base contract)."}, "delivery_order_call_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The delivery-order / call / task-order number for this specific order, from block 2 'DELIVERY ORDER/CALL NO.' on page 1. Verbatim including any letter prefix (e.g. 'FA868423FB061', 'N0017422F3007'). On many DD-1155s this is the value that also appears in the upper-right page header (e.g. 'N0017422F3007 - FINAL', 'FA868423FB061 Page 2 of 13'). If block 2 is blank (true for many DLA SPE… purchase orders where there is no separate delivery order), return null. NEVER return empty string ''; use null for blank cells."}, "date_of_order": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Date the order was issued, from block 3 'DATE OF ORDER/CALL (YYYYMMMDD)' on page 1. Return verbatim AS PRINTED in the source (the DD-1155 form prescribes the 'YYYYMMMDD' format with a 3-letter uppercase month, e.g. '2017 FEB 17', '2022JUL29', '2022DEC06'). Preserve internal whitespace exactly as printed. Do NOT reformat to ISO-8601, do NOT translate the month, do NOT confuse with: date signed (block 24 BY/DATE SIGNED), delivery date in Section F, document creation timestamp ('Created On:' footer), or Period-of-Performance start date. If block 3 is genuinely blank, return null. NEVER return empty string ''; use null for blank cells."}, "requisition_purchase_request_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The requisition or purchase-request number that initiated this order, from block 4 'REQUISITION/PURCH REQUEST NO.' on page 1. Verbatim string (e.g. '0065228382', 'A025532', 'F4FDAT2262A038'). If block 4 explicitly says 'Various' (used when the order rolls up many PRs), return the literal string 'Various'. Do NOT confuse with: contract number (block 1), delivery order number (block 2), CIN (Section G accounting CIN like 'F4FDAT2262A0380000AA'), or the per-line 'External PR' values on a Section B continuation."}, "total_award_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Grand total dollar value of this order, from block 25 'TOTAL' on the DD-1155 cover page (usually directly above the contracting officer signature in block 24). Capture VERBATIM AS PRINTED including any currency prefix and punctuation as a string (e.g. '$1,772,661.97', 'USD 1,000.00', '$45,213.00'). Return null only if block 25 is genuinely blank (no total printed). NEVER return empty string ''; use null for blank cells. Do NOT compute by summing the line_items, do NOT confuse with: the Section G ACRN line of accounting amount, a per-CLIN unit_price/amount, the 'Funded Amount' on a single CLIN, or 'AMOUNT VERIFIED CORRECT FOR' (block 33)."}, "line_items": {"anyOf": [{"items": {"$ref": "#/$defs/LineItem"}, "type": "array"}, {"type": "null"}], "description": "DEDUPLICATED list of every distinct Schedule-of-Supplies/Services CLIN/SLIN row in this DD-1155 order. EACH CLIN/SLIN APPEARS EXACTLY ONCE IN THIS LIST — IT IS A SET-VALUED FIELD KEYED BY item_number, NOT A BAG OF EVERY MENTION. If you find yourself about to emit a second LineItem with the same item_number, DO NOT — that's wrong. Update or merge into the first LineItem instead.\\n\\nSource: block 18-23 of the DD-1155 cover page AND every continuation-sheet 'Section B' / 'SCHEDULE OF SUPPLIES/SERVICES' / 'CLIN - SUPPLIES OR SERVICES' table (including DD-1155C-1 continuation sheets, 'Cost Type Items', 'Cost Only Items', 'Cost Type / NSP Items', and base-year + option-year CLIN groupings).\\n\\nA CLIN qualifies for inclusion ONLY when it appears in a Schedule-of-Supplies/Services TABLE with a populated description/qty/unit/price/amount column. CLIN identifiers are routinely referenced again throughout the document body (Section E inspection clauses, Section F period-of-performance lists, Section G ACRN/CIN cross-reference tables, payment-clause boilerplate, delivery rosters, etc.). Those secondary references are NOT new line items — they do NOT produce additional LineItem entries. The number of LineItem entries you emit MUST equal the number of distinct numeric CLINs in the Schedule-of-Supplies tables (typically 1-30 depending on whether base-year + option-year CLINs are present). It MUST NOT equal the total number of times any CLIN identifier is mentioned anywhere in the document.\\n\\nEXPLICITLY EXCLUDE (do not emit a duplicate row for):\\n- bare CLIN references inside Section E 'INSPECTION AND ACCEPTANCE' clauses\\n- bare CLIN references inside Section F 'DELIVERIES OR PERFORMANCE' / 'Period of Performance' bullet lists\\n- bare CLIN references inside Section G 'CONTRACT ADMINISTRATION DATA' / ACRN / CIN cross-reference tables\\n- CLIN references inside Section H special contract requirements, Section I clauses, Section J attachments, eCRAFT labor crosswalks, deliverable (CDRL A###) summary tables, WAWF routing tables, or address blocks\\n- standalone bullet, paragraph, or footer references to a CLIN number elsewhere in the document\\n\\nDo NOT create a 'shadow' or 'echo' row with null/empty description/qty/unit/unit_price/amount for the same item_number just because the CLIN identifier reappears in Section E/F/G or anywhere else.\\n\\nINCLUDE: informational/funding sub-items such as 'Funding in support of CLIN 2000' (with their own item number like 2001, 2002, 2003) when they appear as their own row in the Schedule-of-Supplies table; option-year CLINs (2100, 2200, 6000, etc.) when they appear as their own row in the Schedule-of-Supplies table. If the cover-page Section 18-23 is literally 'See Schedule' or 'SEE SCHEDULE' or 'Award sent EDI', do not invent a row from it — instead pull all rows from the continuation Section B. Preserve the printed order (typically ascending by item_number, grouped by section). If after a careful pass NO schedule rows exist (extremely rare; DD-1155 always has at least one CLIN), return [].", "title": "Line Items"}}, "title": "DD1155Schedule", "type": "object"}
8
+
9
+ Rules:
10
+
11
+ - Use null for fields not present in the document.
12
+ - For list/array fields, enumerate every relevant row visible in the document; never collapse rows.
13
+ - For large regular tables, prefer writing and running a local script to parse/enumerate rows.
14
+ - For forms, prefer direct field extraction from the document content.
15
+ - Write the resulting JSON object to ./output.json and validate that it is valid JSON before stopping.
16
+ - Do not print the JSON to your assistant output.
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/solution/expected.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "contract_purchase_order_number": "H94003-04-D-0004",
3
+ "delivery_order_call_number": "0290",
4
+ "date_of_order": "2014 Oct 23",
5
+ "requisition_purchase_request_number": "4DF48001",
6
+ "total_award_amount": "$31,696,101.00",
7
+ "line_items": [
8
+ {
9
+ "item_number": "0001",
10
+ "description": "DATA IAW EXHIBIT \"A\"\nCPFF\nBASIC CONTRACT ITEM NO. 0007\nDD FORM 1423, AS REQUIRED BY DMEA CET 14-480 IN DIRECT\nSUPPORT OF CLIN 0002.\nNOTE: THE USE OF DD FORM 1423 EQUIVALENTS AS SHOWN IN THE\nCET ARE APPROVED FOR USE ON THIS DELIVERY ORDER.\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001",
11
+ "quantity_ordered": null,
12
+ "unit": null,
13
+ "unit_price": null,
14
+ "amount": "NSP"
15
+ },
16
+ {
17
+ "item_number": "0002",
18
+ "description": "ENGINEERING SERVICES\nCPFF\nBASIC CONTRACT ITEM NO. 0008\nENGINEERING SERVICES IN SUPPORT OF ADVANCED TECHNOLOGY\nSUPPORT PROGRAM III (ATSP3) IN ACCORDANCE WITH TECHNICAL\nREQUIREMENTS DOCUMENT (11 MAR 04) AND DMEA CET 14-480.\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001",
19
+ "quantity_ordered": 1.0,
20
+ "unit": "Lot",
21
+ "unit_price": null,
22
+ "amount": "$31,696,101.00"
23
+ },
24
+ {
25
+ "item_number": "000201",
26
+ "description": "ACRN AA FUND CITE\\nCPFF\\nFUNDING INFORMATION FOR ACRN AA\\nMIPR NO. F3YCAL4226G003\\nFOB: Destination\\nPURCHASE REQUEST NUMBER: 4DF48001",
27
+ "quantity_ordered": null,
28
+ "unit": null,
29
+ "unit_price": null,
30
+ "amount": "$0.00"
31
+ },
32
+ {
33
+ "item_number": "000202",
34
+ "description": "ACRN AB FUND CITE\\nCPFF\\nFUNDING INFORMATION FOR ACRN AB\\nMIPR NO. F3YCAL4189G002\\nFOB: Destination\\nPURCHASE REQUEST NUMBER: 4DF48001",
35
+ "quantity_ordered": null,
36
+ "unit": null,
37
+ "unit_price": null,
38
+ "amount": "$0.00"
39
+ },
40
+ {
41
+ "item_number": "000203",
42
+ "description": "ACRN AC FUND CITE\nCPFF\nFUNDING INFORMATION FOR ACRN AC\nMIPR NO. F3YCAL4227G001\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001",
43
+ "quantity_ordered": null,
44
+ "unit": null,
45
+ "unit_price": null,
46
+ "amount": "$0.00"
47
+ }
48
+ ]
49
+ }
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/solution/solve.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ cp /solution/expected.json /app/output.json
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/task.toml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+ artifacts = ["/app/output.json"]
3
+
4
+ [metadata]
5
+ source_repo = "llamaindex/ExtractBench"
6
+ source_revision = "51bf3a03eb7feeaef8952be1fc2fc7f924ee72dc"
7
+ source_case_id = "long/dd1155_schedule_continuation_0012"
8
+ source_split = "long"
9
+ scorer_revision = "2f27f100730afc7c395602e26a2a87e07ea66b31"
10
+ prompt_source = "https://arxiv.org/html/2607.29677v1#A3.SS1"
11
+ tags = ["source:real", "challenge:T2.a", "challenge:T3.a", "length:long", "domain:D3"]
12
+
13
+ [agent]
14
+ timeout_sec = 1800
15
+ network_mode = "allowlist"
16
+ allowed_hosts = []
17
+
18
+ [environment]
19
+ cpus = 2
20
+ memory_mb = 4096
21
+ storage_mb = 10240
22
+
23
+ [verifier]
24
+ environment_mode = "separate"
25
+ timeout_sec = 1800
26
+
27
+ [verifier.environment]
28
+ cpus = 2
29
+ memory_mb = 8192
30
+ network_mode = "no-network"
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/tests/Dockerfile ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ FROM python:3.12-slim-bookworm
2
+ RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
3
+ RUN pip install --no-cache-dir "llama-extract-bench @ git+https://github.com/run-llama/ExtractBench.git@2f27f100730afc7c395602e26a2a87e07ea66b31" "parse-bench==1.0.4"
4
+ WORKDIR /app
5
+ COPY . /tests/
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/tests/reference.test.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"tags": ["source:real", "challenge:T2.a", "challenge:T3.a", "length:long", "domain:D3"], "data_schema": {"$defs": {"LineItem": {"properties": {"item_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "UNIQUE 4-character zero-padded CLIN/SLIN identifier — EACH item_number VALUE MUST APPEAR AT MOST ONCE IN THE line_items LIST. Taken from the leftmost 'ITEM NO.' or 'Item' column of the Schedule of Supplies/Services (block 18 / DFARS Section B). Common label aliases: 'ITEM NO.', 'Item', 'Line Item', 'CLIN', 'CLIN/SLIN/ELIN', 'CLIN No.'. Always a 4-character zero-padded numeric string for top-level CLINs (e.g. '0001', '2000', '6100', '8100') and 6-character for SLINs (e.g. '000101', '200001'). Preserve verbatim including leading zeros; do NOT strip or normalize. Do NOT confuse with: requisition/PR number (block 4), purchase order number (block 1), delivery order number (block 2), ACRN (2-letter accounting code like 'AA'), PSC/FSC code (4-character product service code like 'R425'), CIN (long alphanumeric like 'F4FDAT2262A0380000AA'), or the document-page-number 'Page X of Y' header. If the same item_number appears in multiple places in the document (e.g. once in Section B with full data and again in Section E/F/G as a bare reference), this field STILL has only one value in the list — emit a single LineItem with this item_number from the Section B Schedule-of-Supplies row, and do NOT emit any additional LineItem with the same item_number."}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The free-text supply/service description for this CLIN/SLIN, taken from the 'SCHEDULE OF SUPPLIES/SERVICES' column (block 19 on DD-1155) or 'Supplies/Services' / 'Supplies/Service' column on the continuation sheet. Capture the FULL description verbatim — DO NOT TRUNCATE. The description typically begins with an NSN/PSC line (e.g. '1650-00-993-7386') followed by a noun phrase (e.g. 'VALVE,LINEAR,DIRECTIONAL CONTROL') and may continue with manufacturer / CAGE code / part number lines (e.g. 'HYDRO-AIRE INC., DBA CRANE HYDRO-AIRE CAGE 81982', 'P/N: 80791'). Read the ENTIRE description column for that row — including all wrapped or continuation lines that belong to the same row — and capture every line. Preserve line breaks within the description cell as '\\n'. INCLUDE any inline metadata that the agency printed inside the description cell (e.g. 'Data Category Code:', 'Purchase Requisition Number:', 'Product Service Code:', 'Pricing Arrangement:', 'CIN:', 'ACRN:', 'Fund Type', 'Option' suffix). Do NOT include text that appears in a separate column ('UNIT', 'UNIT PRICE', 'AMOUNT') or in standalone subsequent paragraphs ('PRICING TERMS:', 'INSPECTION POINT:', 'DELIVERY DATE:', 'PREP FOR DELIVERY:', 'SAMPLING:', 'PARCEL POST ADDRESS:'). Do NOT confuse with the Statement-of-Work prose body of Section C, the contractor's address (block 9), or the WAWF routing data table. If the description column is literally 'See Schedule' or 'CONT'D' with no real text, return that literal string. NORMALIZE column-wrap whitespace artifacts: if a comma is preceded by a stray space or line-break caused by DD-1155 column-wrap (e.g. 'VALVE,LINEAR ,DIRECT' or 'VALVE,LINEAR\\n,DIRECT'), remove that spurious whitespace so it reads 'VALVE,LINEAR,DIRECT'. This rule applies only to whitespace immediately adjacent to punctuation (comma, period, semicolon); do NOT alter other line breaks or spacing in the description."}, "quantity_ordered": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": null, "description": "Numeric quantity ordered for this CLIN/SLIN, from the 'QUANTITY ORDERED/ACCEPTED*' column (block 20 on DD-1155) or the 'Qty' / 'Quantity' / 'QTY' column on the continuation sheet. Strip any thousands separators (',') and any trailing unit text (e.g. '21,640.00 Labor Hours' → 21640.0; '3.000' → 3.0; '1.00' → 1.0). Use a JSON number (float OK). Do NOT include the unit-of-issue, unit price, or amount. Do NOT confuse with: '# of Personnel', '# of Days', 'Instances' columns inside Section H travel tables, or the page-of-pages count. Return null only if the row genuinely has no quantity printed (e.g. an NSP / informational sub-item that lists only a description)."}, "unit": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Unit of issue / unit-of-measure for the quantity, from the 'UNIT' column (block 21 on DD-1155) or the 'Unit' column on the continuation sheet. Verbatim short code or short phrase as printed: 'EA', 'Each', 'Lot', 'Labor Hours', 'HR', 'DA', 'BX', 'GA', 'KT'. Preserve original casing exactly. Do NOT expand abbreviations (do NOT change 'EA' to 'Each' or vice versa). Do NOT confuse with: the unit price, the unit-of-issue inside the description text, or the 'Unit Pack' (QUP) under PKGING DATA. Return null only if the unit cell is genuinely blank for that row."}, "unit_price": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Unit price per single unit-of-issue for this CLIN/SLIN, from the 'UNIT PRICE' column (block 22 on DD-1155) or 'Unit Price' / 'Est. Cost' / 'Fixed Fee' / 'CPFF' column on the continuation sheet. Capture verbatim AS PRINTED in the cell — including any currency prefix ('USD', '$'), thousands separators, and decimal point — as a string (e.g. 'USD 1,000.00', '$45,213.00', '0.00'). Do NOT compute or normalize. If multiple price-related sub-columns exist (Est. Cost / Fixed Fee / CPFF), join the populated cells with ' | ' in column order (e.g. 'USD 21,640.00 | USD 1,000.00 | USD 22,640.00'); if only one is populated, use it alone. Return null only if every price/cost cell for that row is genuinely blank (typical for NSP / 'No Separate Pricing' lines and informational sub-items). NSP-CELL RULE: if the row's amount/price column reads literally 'NSP' or 'No Separate Pricing' (typical of 'Cost Type / NSP Items' CLINs like 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders), set unit_price=null AND set amount='NSP' (place the literal 'NSP' marker in the amount field, not the unit_price field). Do NOT confuse with: the Total in block 21/25, an ACRN-table 'Amount' column, or the 'Funded Amount' under the description."}, "amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Total extended amount for this CLIN/SLIN (typically quantity * unit_price), from the 'AMOUNT' column (block 23 on DD-1155) or 'Amount' / 'Funded Amount' / 'Firm Price' column on the continuation sheet. Capture verbatim AS PRINTED — currency prefix, thousands separators, decimals — as a string (e.g. 'USD 1,000.00', '$45,213.00'). STACKED-CELL RULE — when the Amount cell contains BOTH a 'Firm Price' line AND a 'Funded Amount' line stacked vertically (typical of the AFLCMC IDIQ continuation-sheet template, where each CLIN's Amount column shows two labeled sub-rows), capture ONLY the dollar value next to 'Funded Amount' (the obligated dollar figure for THIS line item). Do NOT concatenate, do NOT join, do NOT include the 'Firm Price' line, do NOT prefix with sub-labels — output a single bare dollar string (e.g. 'USD 1,000.00'). NSP-CELL RULE — when the row is a 'Cost Type / NSP' item (typical CLINs 4000/4100/4200/8000/8100 on AFLCMC IDIQ orders) and the price/amount cell reads literally 'NSP' or 'No Separate Pricing', set amount='NSP' (the literal string 'NSP'). Return null only if the cell is genuinely blank, or a CLIN whose amount is deferred to a later modification. Do NOT confuse with: block 25 'TOTAL' for the whole order, ACRN-table 'Amount' (per-accounting-string allocation), Section G 'Line of Accounting' amount, or the page header dollar figure."}}, "title": "LineItem", "type": "object"}}, "properties": {"contract_purchase_order_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The base contract or purchase-order/agreement number that this DD-1155 order is written against, from block 1 'CONTRACT/PURCH ORDER/AGREEMENT NO.' on page 1. Verbatim including all dashes / slashes and any letter prefix (e.g. 'SPE4A7-17-P-5525', 'FA868423DB074', 'N0017819D7712', 'H94003-04-D-0004'). Typical formats: PIID 13-character (e.g. 'N0001719C5001'), DLA 'SPE…-NN-P-NNNN', or IDIQ base contract. Do NOT confuse with: block 2 delivery order/call number (often a shorter PIID), block 4 requisition / purchase request number, the CIN (long string ending in '-AA' or similar inside Section B), or the document page-header reference (which mirrors block 2, not block 1). If block 1 contains a comma-separated pair, capture only the first (the base contract)."}, "delivery_order_call_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The delivery-order / call / task-order number for this specific order, from block 2 'DELIVERY ORDER/CALL NO.' on page 1. Verbatim including any letter prefix (e.g. 'FA868423FB061', 'N0017422F3007'). On many DD-1155s this is the value that also appears in the upper-right page header (e.g. 'N0017422F3007 - FINAL', 'FA868423FB061 Page 2 of 13'). If block 2 is blank (true for many DLA SPE… purchase orders where there is no separate delivery order), return null. NEVER return empty string ''; use null for blank cells."}, "date_of_order": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Date the order was issued, from block 3 'DATE OF ORDER/CALL (YYYYMMMDD)' on page 1. Return verbatim AS PRINTED in the source (the DD-1155 form prescribes the 'YYYYMMMDD' format with a 3-letter uppercase month, e.g. '2017 FEB 17', '2022JUL29', '2022DEC06'). Preserve internal whitespace exactly as printed. Do NOT reformat to ISO-8601, do NOT translate the month, do NOT confuse with: date signed (block 24 BY/DATE SIGNED), delivery date in Section F, document creation timestamp ('Created On:' footer), or Period-of-Performance start date. If block 3 is genuinely blank, return null. NEVER return empty string ''; use null for blank cells."}, "requisition_purchase_request_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "The requisition or purchase-request number that initiated this order, from block 4 'REQUISITION/PURCH REQUEST NO.' on page 1. Verbatim string (e.g. '0065228382', 'A025532', 'F4FDAT2262A038'). If block 4 explicitly says 'Various' (used when the order rolls up many PRs), return the literal string 'Various'. Do NOT confuse with: contract number (block 1), delivery order number (block 2), CIN (Section G accounting CIN like 'F4FDAT2262A0380000AA'), or the per-line 'External PR' values on a Section B continuation."}, "total_award_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "Grand total dollar value of this order, from block 25 'TOTAL' on the DD-1155 cover page (usually directly above the contracting officer signature in block 24). Capture VERBATIM AS PRINTED including any currency prefix and punctuation as a string (e.g. '$1,772,661.97', 'USD 1,000.00', '$45,213.00'). Return null only if block 25 is genuinely blank (no total printed). NEVER return empty string ''; use null for blank cells. Do NOT compute by summing the line_items, do NOT confuse with: the Section G ACRN line of accounting amount, a per-CLIN unit_price/amount, the 'Funded Amount' on a single CLIN, or 'AMOUNT VERIFIED CORRECT FOR' (block 33)."}, "line_items": {"anyOf": [{"items": {"$ref": "#/$defs/LineItem"}, "type": "array"}, {"type": "null"}], "description": "DEDUPLICATED list of every distinct Schedule-of-Supplies/Services CLIN/SLIN row in this DD-1155 order. EACH CLIN/SLIN APPEARS EXACTLY ONCE IN THIS LIST — IT IS A SET-VALUED FIELD KEYED BY item_number, NOT A BAG OF EVERY MENTION. If you find yourself about to emit a second LineItem with the same item_number, DO NOT — that's wrong. Update or merge into the first LineItem instead.\\n\\nSource: block 18-23 of the DD-1155 cover page AND every continuation-sheet 'Section B' / 'SCHEDULE OF SUPPLIES/SERVICES' / 'CLIN - SUPPLIES OR SERVICES' table (including DD-1155C-1 continuation sheets, 'Cost Type Items', 'Cost Only Items', 'Cost Type / NSP Items', and base-year + option-year CLIN groupings).\\n\\nA CLIN qualifies for inclusion ONLY when it appears in a Schedule-of-Supplies/Services TABLE with a populated description/qty/unit/price/amount column. CLIN identifiers are routinely referenced again throughout the document body (Section E inspection clauses, Section F period-of-performance lists, Section G ACRN/CIN cross-reference tables, payment-clause boilerplate, delivery rosters, etc.). Those secondary references are NOT new line items — they do NOT produce additional LineItem entries. The number of LineItem entries you emit MUST equal the number of distinct numeric CLINs in the Schedule-of-Supplies tables (typically 1-30 depending on whether base-year + option-year CLINs are present). It MUST NOT equal the total number of times any CLIN identifier is mentioned anywhere in the document.\\n\\nEXPLICITLY EXCLUDE (do not emit a duplicate row for):\\n- bare CLIN references inside Section E 'INSPECTION AND ACCEPTANCE' clauses\\n- bare CLIN references inside Section F 'DELIVERIES OR PERFORMANCE' / 'Period of Performance' bullet lists\\n- bare CLIN references inside Section G 'CONTRACT ADMINISTRATION DATA' / ACRN / CIN cross-reference tables\\n- CLIN references inside Section H special contract requirements, Section I clauses, Section J attachments, eCRAFT labor crosswalks, deliverable (CDRL A###) summary tables, WAWF routing tables, or address blocks\\n- standalone bullet, paragraph, or footer references to a CLIN number elsewhere in the document\\n\\nDo NOT create a 'shadow' or 'echo' row with null/empty description/qty/unit/unit_price/amount for the same item_number just because the CLIN identifier reappears in Section E/F/G or anywhere else.\\n\\nINCLUDE: informational/funding sub-items such as 'Funding in support of CLIN 2000' (with their own item number like 2001, 2002, 2003) when they appear as their own row in the Schedule-of-Supplies table; option-year CLINs (2100, 2200, 6000, etc.) when they appear as their own row in the Schedule-of-Supplies table. If the cover-page Section 18-23 is literally 'See Schedule' or 'SEE SCHEDULE' or 'Award sent EDI', do not invent a row from it — instead pull all rows from the continuation Section B. Preserve the printed order (typically ascending by item_number, grouped by section). If after a careful pass NO schedule rows exist (extremely rare; DD-1155 always has at least one CLIN), return [].", "title": "Line Items"}}, "title": "DD1155Schedule", "type": "object"}, "expected_output": {"contract_purchase_order_number": "H94003-04-D-0004", "delivery_order_call_number": "0290", "date_of_order": "2014 Oct 23", "requisition_purchase_request_number": "4DF48001", "total_award_amount": "$31,696,101.00", "line_items": [{"item_number": "0001", "description": "DATA IAW EXHIBIT \"A\"\nCPFF\nBASIC CONTRACT ITEM NO. 0007\nDD FORM 1423, AS REQUIRED BY DMEA CET 14-480 IN DIRECT\nSUPPORT OF CLIN 0002.\nNOTE: THE USE OF DD FORM 1423 EQUIVALENTS AS SHOWN IN THE\nCET ARE APPROVED FOR USE ON THIS DELIVERY ORDER.\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": null, "unit": null, "unit_price": null, "amount": "NSP"}, {"item_number": "0002", "description": "ENGINEERING SERVICES\nCPFF\nBASIC CONTRACT ITEM NO. 0008\nENGINEERING SERVICES IN SUPPORT OF ADVANCED TECHNOLOGY\nSUPPORT PROGRAM III (ATSP3) IN ACCORDANCE WITH TECHNICAL\nREQUIREMENTS DOCUMENT (11 MAR 04) AND DMEA CET 14-480.\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "$31,696,101.00"}, {"item_number": "000201", "description": "ACRN AA FUND CITE\\nCPFF\\nFUNDING INFORMATION FOR ACRN AA\\nMIPR NO. F3YCAL4226G003\\nFOB: Destination\\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": null, "unit": null, "unit_price": null, "amount": "$0.00"}, {"item_number": "000202", "description": "ACRN AB FUND CITE\\nCPFF\\nFUNDING INFORMATION FOR ACRN AB\\nMIPR NO. F3YCAL4189G002\\nFOB: Destination\\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": null, "unit": null, "unit_price": null, "amount": "$0.00"}, {"item_number": "000203", "description": "ACRN AC FUND CITE\nCPFF\nFUNDING INFORMATION FOR ACRN AC\nMIPR NO. F3YCAL4227G001\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": null, "unit": null, "unit_price": null, "amount": "$0.00"}]}, "_field_rules": {"contract_purchase_order_number": {"comparator": "case_insensitive", "evidence": [{"page": 1, "bbox": [0.06505, 0.12456, 0.10922, 0.0083], "quote": "H94003· 04· D·0004", "value": "H94003-04-D-0004", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.05941, 0.10136, 0.22118, 0.03909], "quote": "H94003· 04· D·0004", "value": "H94003-04-D-0004", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "delivery_order_call_number": {"comparator": "case_insensitive", "evidence": [{"page": 1, "bbox": [0.28379, 0.12152, 0.02773, 0.0083], "quote": "0290", "value": "0290", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.28059, 0.10136, 0.17529, 0.03909], "quote": "0290", "value": "0290", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "date_of_order": {"comparator": "date", "evidence": [{"page": 1, "bbox": [0.4619, 0.12318, 0.0693, 0.0083], "quote": "20 140ct23", "value": "2014 Oct 23", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.45588, 0.10136, 0.13647, 0.03909], "quote": "20 140ct23", "value": "2014 Oct 23", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "requisition_purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": 1, "bbox": [0.59605, 0.12466, 0.04017, 0.0064], "quote": "4DF48001", "value": "4DF48001", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.59235, 0.10136, 0.23294, 0.03909], "quote": "4DF48001", "value": "4DF48001", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "total_award_amount": {"comparator": "case_insensitive", "evidence": [{"page": 1, "bbox": [0.88521, 0.67133, 0.05985, 0.00757], "quote": "$31.696.101.00", "value": "$31,696,101.00", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.85882, 0.66091, 0.11059, 0.02045], "quote": "$31.696.101.00", "value": "$31,696,101.00", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "line_items": {"comparator": {"item_number": "case_insensitive", "description": "case_insensitive", "quantity_ordered": "number", "unit": "case_insensitive", "unit_price": "case_insensitive", "amount": "case_insensitive"}, "evidence": [{"page": 1, "bbox": null, "quote": "0001", "value": {"item_number": "0001", "description": "DATA IAW EXHIBIT \"A\"\nCPFF\nBASIC CONTRACT ITEM NO. 0007\nDD FORM 1423, AS REQUIRED BY DMEA CET 14-480 IN DIRECT\nSUPPORT OF CLIN 0002.\nNOTE: THE USE OF DD FORM 1423 EQUIVALENTS AS SHOWN IN THE\nCET ARE APPROVED FOR USE ON THIS DELIVERY ORDER.\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": null, "unit": null, "unit_price": null, "amount": "NSP"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0002", "value": {"item_number": "0002", "description": "ENGINEERING SERVICES\nCPFF\nBASIC CONTRACT ITEM NO. 0008\nENGINEERING SERVICES IN SUPPORT OF ADVANCED TECHNOLOGY\nSUPPORT PROGRAM III (ATSP3) IN ACCORDANCE WITH TECHNICAL\nREQUIREMENTS DOCUMENT (11 MAR 04) AND DMEA CET 14-480.\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": 1.0, "unit": "Lot", "unit_price": null, "amount": "$31,696,101.00"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "000201", "value": {"item_number": "000201", "description": "ACRN AA FUND CITE\\nCPFF\\nFUNDING INFORMATION FOR ACRN AA\\nMIPR NO. F3YCAL4226G003\\nFOB: Destination\\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": null, "unit": null, "unit_price": null, "amount": "$0.00"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "000202", "value": {"item_number": "000202", "description": "ACRN AB FUND CITE\\nCPFF\\nFUNDING INFORMATION FOR ACRN AB\\nMIPR NO. F3YCAL4189G002\\nFOB: Destination\\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": null, "unit": null, "unit_price": null, "amount": "$0.00"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "000203", "value": {"item_number": "000203", "description": "ACRN AC FUND CITE\nCPFF\nFUNDING INFORMATION FOR ACRN AC\nMIPR NO. F3YCAL4227G001\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001", "quantity_ordered": null, "unit": null, "unit_price": null, "amount": "$0.00"}, "coarse": true}], "source_policy": "verbatim", "evidence_required": true, "verified": true, "structural": "match_by:item_number"}, "line_items[0].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.07435, 0.1896, 0.03093, 0.01033], "quote": "0001", "value": "0001", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].description": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.16386, 0.20323, 0.53831, 0.15787], "quote": "DATA IAW EXHIBIT \"A\" CPFF BASIC CONTRACT ITEM NO. 0007 DD FORM 1423, AS REQUIRED BY DMEA CET 14-480 IN DIRECT SUPPORT OF CLIN 0002. NOTE: THE USE OF DD FORM 1423 EQUIVALENTS AS SHOWN IN THE CET ARE APPROVED FOR USE ON THIS DELIVERY ORDER. FOB: Destination PURCHASE REQUEST NUMBER: 4DF48001", "value": "DATA IAW EXHIBIT \"A\"\nCPFF\nBASIC CONTRACT ITEM NO. 0007\nDD FORM 1423, AS REQUIRED BY DMEA CET 14-480 IN DIRECT\nSUPPORT OF CLIN 0002.\nNOTE: THE USE OF DD FORM 1423 EQUIVALENTS AS SHOWN IN THE\nCET ARE APPROVED FOR USE ON THIS DELIVERY ORDER.\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].unit": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[0].amount": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.90202, 0.1896, 0.0298, 0.01033], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.07435, 0.5471, 0.03328, 0.01005], "quote": "0002", "value": "0002", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].description": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.16443, 0.56201, 0.53204, 0.13333], "quote": "ENGINEERING SERVICES IN SUPPORT OF ADVANCED TECHNOLOGY SUPPORT PROGRAM III (ATSP3) IN ACCORDANCE WITH TECHNICAL REQUIREMENTS DOCUMENT (11 MAR 04) AND DMEA CET 14-480.", "value": "ENGINEERING SERVICES\nCPFF\nBASIC CONTRACT ITEM NO. 0008\nENGINEERING SERVICES IN SUPPORT OF ADVANCED TECHNOLOGY\nSUPPORT PROGRAM III (ATSP3) IN ACCORDANCE WITH TECHNICAL\nREQUIREMENTS DOCUMENT (11 MAR 04) AND DMEA CET 14-480.\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].quantity_ordered": {"comparator": "number", "evidence": [{"page": 2, "bbox": [0.39266, 0.5471, 0.00418, 0.01005], "quote": "1", "value": 1.0, "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].unit": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.48306, 0.5471, 0.02218, 0.01005], "quote": "Lot", "value": "Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[1].amount": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.82936, 0.54648, 0.10298, 0.01136], "quote": "$31,696,101.00", "value": "$31,696,101.00", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.07435, 0.12153, 0.0478, 0.0106], "quote": "000201", "value": "000201", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": null, "quote": null, "value": "ACRN AA FUND CITE\\nCPFF\\nFUNDING INFORMATION FOR ACRN AA\\nMIPR NO. F3YCAL4226G003\\nFOB: Destination\\nPURCHASE REQUEST NUMBER: 4DF48001", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].unit": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[2].amount": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.89523, 0.12153, 0.03672, 0.01104], "quote": "$0.00", "value": "$0.00", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.07435, 0.45713, 0.04975, 0.00971], "quote": "000202", "value": "000202", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].description": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": null, "quote": null, "value": "ACRN AB FUND CITE\\nCPFF\\nFUNDING INFORMATION FOR ACRN AB\\nMIPR NO. F3YCAL4189G002\\nFOB: Destination\\nPURCHASE REQUEST NUMBER: 4DF48001", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].unit": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[3].amount": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.89523, 0.45624, 0.03678, 0.01192], "quote": "$0.00", "value": "$0.00", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].item_number": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.07529, 0.12227, 0.04824, 0.00909], "quote": "000203", "value": "000203", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].description": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.16454, 0.13315, 0.31387, 0.10917], "quote": "ACRN AC FUND CITE CPFF FUNDING INFORMATION FOR ACRN AC MIPR NO. F3YCAL4227G001 FOB: Destination PURCHASE REQUEST NUMBER: 4DF48001", "value": "ACRN AC FUND CITE\nCPFF\nFUNDING INFORMATION FOR ACRN AC\nMIPR NO. F3YCAL4227G001\nFOB: Destination\nPURCHASE REQUEST NUMBER: 4DF48001", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].quantity_ordered": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].unit": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "line_items[4].amount": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.89588, 0.12182, 0.03588, 0.01045], "quote": "$0.00", "value": "$0.00", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}}, "_eval_row_identity": {"line_items": {"anyOf": [{"items": {"$ref": "#/$defs/LineItem"}, "type": "array"}, {"type": "null"}], "description": "One entry per distinct Schedule-of-Supplies/Services CLIN/SLIN row. DEDUPLICATE by item_number across the entire document: a CLIN that appears once in the Schedule-of-Supplies table and then is referenced again in Section E/F/G or elsewhere must appear ONLY ONCE in this list. Identified in the text by a numeric item_number in the leftmost 'ITEM NO.' / 'Item' / 'CLIN' column of a Section B / Schedule table (DD-1155 block 18 or any continuation sheet). Excludes accounting/ACRN rows, period-of-performance bullets, deliverable rosters, travel-table entries, and bare CLIN references outside the Schedule-of-Supplies table.", "title": "Line Items", "identity_key": "item_number"}}}
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ python /tests/verifier.py
tasks/long--dd1155-schedule-continuation-0012-8e37a3d747/tests/verifier.py ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Harbor's file boundary into the existing ExtractBench evaluator."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import json
7
+ from collections.abc import Mapping, Sequence
8
+ from datetime import UTC, datetime
9
+ from pathlib import Path
10
+ from typing import Any
11
+
12
+ from extract_bench.evaluation.evaluators.extract import ExtractEvaluator
13
+ from extract_bench.evaluation.metrics.extract.unified_evidence_metric import ValueCell
14
+ from extract_bench.evaluation.score_case import load_extract_test_case
15
+ from extract_bench.schemas.extract_output import ExtractOutput
16
+ from extract_bench.schemas.pipeline_io import InferenceRequest, InferenceResult
17
+ from extract_bench.schemas.product import ProductType
18
+
19
+
20
+ def _feedback(cells: Sequence[ValueCell], metadata: Mapping[str, Any]) -> dict[str, Any]:
21
+ expected = sum(cell.gt_path is not None for cell in cells)
22
+ predicted = sum(cell.pred_path is not None for cell in cells)
23
+ matched = sum(cell.value_correct for cell in cells)
24
+ if (expected, predicted, matched) != (
25
+ metadata["expected_cells"],
26
+ metadata["predicted_cells"],
27
+ metadata["v_correct"],
28
+ ):
29
+ raise ValueError("Value feedback does not account for the scorer's cell counts")
30
+ denominator = expected + predicted
31
+ entries = []
32
+ for cell in cells:
33
+ if cell.gt_path is None:
34
+ outcome = "prediction_only"
35
+ elif cell.pred_path is None:
36
+ outcome = "reference_only"
37
+ else:
38
+ outcome = "matched" if cell.value_correct else "value_differs"
39
+ entries.append(
40
+ {
41
+ "reference_path": cell.gt_path,
42
+ "output_path": cell.pred_path,
43
+ "outcome": outcome,
44
+ "f1_credit": 2.0 / denominator if cell.value_correct else 0.0,
45
+ }
46
+ )
47
+ return {
48
+ "schema_version": 1,
49
+ "status": "scored",
50
+ "path_space": "normalized_scoring_inputs",
51
+ "counts": {"expected": expected, "predicted": predicted, "matched": matched},
52
+ "value_incomplete": metadata["value_incomplete"],
53
+ "cells": entries,
54
+ }
55
+
56
+
57
+ def score_prediction(test_json: Path, prediction: Any) -> tuple[dict[str, float], dict[str, Any]]:
58
+ """Use exactly the normal evaluator's normalization and metric selection."""
59
+ case = load_extract_test_case(test_json, source_file=Path("/app/document.pdf"))
60
+ now = datetime.now(UTC)
61
+ result = InferenceResult(
62
+ request=InferenceRequest(
63
+ example_id=case.test_id,
64
+ source_file_path=str(case.file_path),
65
+ product_type=ProductType.EXTRACT,
66
+ ),
67
+ pipeline_name="harbor",
68
+ product_type=ProductType.EXTRACT,
69
+ raw_output={},
70
+ output=ExtractOutput(
71
+ example_id=case.test_id,
72
+ pipeline_name="harbor",
73
+ extracted_data=prediction,
74
+ field_citations=[],
75
+ ),
76
+ started_at=now,
77
+ completed_at=now,
78
+ latency_in_ms=0,
79
+ )
80
+ cells: list[ValueCell] = []
81
+ bundle = ExtractEvaluator().compute_metrics(result, case, value_cells=cells)
82
+ metrics = {
83
+ metric.metric_name: metric.value
84
+ for metric in bundle.metrics
85
+ if metric.metric_name.startswith("extract_unified_value_")
86
+ }
87
+ value_f1 = next(metric for metric in bundle.metrics if metric.metric_name == "extract_unified_value_f1")
88
+ return metrics, _feedback(cells, value_f1.metadata)
89
+
90
+
91
+ def verify(test_json: Path, prediction_path: Path, log_dir: Path) -> dict[str, Any]:
92
+ """Bad/missing submissions earn zero; broken grading raises an error.
93
+
94
+ Only submission decoding is caught. A missing reference, loader error or
95
+ scorer failure must fail the verifier instead of becoming a model score.
96
+ """
97
+ log_dir.mkdir(parents=True, exist_ok=True)
98
+ reward_path = log_dir / "reward.txt"
99
+ for name in ("reward.txt", "metrics.json", "feedback.json"):
100
+ (log_dir / name).unlink(missing_ok=True)
101
+ try:
102
+ prediction = json.loads(prediction_path.read_text(encoding="utf-8"))
103
+ except (FileNotFoundError, UnicodeDecodeError, json.JSONDecodeError) as error:
104
+ report: dict[str, Any] = {"status": "invalid_submission", "error": str(error), "value_f1": 0.0}
105
+ else:
106
+ if not isinstance(prediction, dict):
107
+ report = {"status": "invalid_submission", "error": "Expected one JSON object", "value_f1": 0.0}
108
+ else:
109
+ metrics, feedback = score_prediction(test_json, prediction)
110
+ report = {
111
+ "status": "scored",
112
+ "value_f1": metrics["extract_unified_value_f1"],
113
+ "metrics": metrics,
114
+ }
115
+ if report["status"] == "invalid_submission":
116
+ feedback = {"schema_version": 1, "status": "invalid_submission", "error": report["error"], "cells": []}
117
+ report["perfect"] = int(report["value_f1"] == 1.0)
118
+ (log_dir / "metrics.json").write_text(json.dumps(report, indent=2, allow_nan=False) + "\n", encoding="utf-8")
119
+ (log_dir / "feedback.json").write_text(json.dumps(feedback, indent=2, allow_nan=False) + "\n", encoding="utf-8")
120
+ reward_path.write_text(f"{report['value_f1']}\n", encoding="utf-8")
121
+ return report
122
+
123
+
124
+ def main() -> None:
125
+ parser = argparse.ArgumentParser(description=__doc__)
126
+ parser.add_argument("--test-json", type=Path, default=Path("/tests/reference.test.json"))
127
+ parser.add_argument("--prediction", type=Path, default=Path("/app/output.json"))
128
+ parser.add_argument("--log-dir", type=Path, default=Path("/logs/verifier"))
129
+ args = parser.parse_args()
130
+ verify(args.test_json, args.prediction, args.log_dir)
131
+
132
+
133
+ if __name__ == "__main__":
134
+ main()
tasks/long--gov-clin-schedule-0005-7b780d39e0/environment/Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim-bookworm
2
+ RUN apt-get update && apt-get install -y --no-install-recommends \
3
+ poppler-utils tesseract-ocr curl git nodejs npm \
4
+ && rm -rf /var/lib/apt/lists/*
5
+ RUN pip install --no-cache-dir pymupdf==1.26.6 pypdf==6.4.0 pillow==12.0.0
6
+ WORKDIR /app
7
+ COPY document.pdf schema.json /app/
tasks/long--gov-clin-schedule-0005-7b780d39e0/environment/document.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0d7577e5d87907c281c0388ac96cdb00e7e794bb344af0693f358bbd1a77943
3
+ size 6473305
tasks/long--gov-clin-schedule-0005-7b780d39e0/environment/schema.json ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$defs": {
3
+ "ClinLineItem": {
4
+ "type": "object",
5
+ "title": "ClinLineItem",
6
+ "description": "One row of the Section B 'Supplies or Services and Prices' (a.k.a. ITEM-NO) schedule. One row == one CLIN/SLIN block introduced by an 'ITEM NO' header that gives the CLIN number plus the six tabular fields ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT. CLIN blocks include short narrative lines beneath (FFP, FOB, PURCHASE REQUEST NUMBER, PSC CD, ACRN, CIN) — those lines belong to the same CLIN, do NOT create a new line item for them.",
7
+ "properties": {
8
+ "item_no": {
9
+ "type": "string",
10
+ "description": "The CLIN or SLIN identifier from the leftmost 'ITEM NO' column of the Section B schedule, verbatim. Format: a 4-digit CLIN like '0001' or '0002', or a 6-digit SLIN like '000101', '000102'. May appear under labels 'ITEM NO', 'ITEM NO.', '19. ITEM NO.', '15A. ITEM NO.', or 'CLIN'. Always preserve leading zeros (e.g. '0001', NOT '1'). Do NOT confuse with: (a) the contract number from box 2 (W911QY20...), (b) the requisition / purchase request number, (c) ACRN codes ('AA', 'AB'), (d) DODAAC codes, (e) PSC CDs, (f) the CIN code (GFEBS...), or (g) row numbers in any other table (shipment information, delivery information, inspection list)."
11
+ },
12
+ "supplies_services": {
13
+ "anyOf": [
14
+ {
15
+ "type": "string"
16
+ },
17
+ {
18
+ "type": "null"
19
+ }
20
+ ],
21
+ "description": "The short product/service title from the 'SUPPLIES/SERVICES' column for this CLIN, verbatim from the first line under that column (e.g. 'Sample Collection Kits', 'Face Covering - ReadyOne', 'CDRL A001: Manufacturability Report'). For funding-only SUBCLINs added by an SF-30 modification, this line typically reads 'Funding for CLIN <parent_clin> / ACRN <code>' (e.g. 'Funding for CLIN 0001 / ACRN AB') — capture that exact title. May appear under labels 'SUPPLIES/SERVICES', 'SCHEDULE OF SUPPLIES/SERVICES', '15B. SUPPLIES/SERVICES', or '20. SCHEDULE OF SUPPLIES/SERVICES'. Use the literal title line only — do NOT concatenate the longer paragraph description, do NOT include 'FFP'/'FFP-LOE' contract-type tags that appear on the next line, do NOT include the FOB / PURCHASE REQUEST NUMBER / PSC CD lines, and do NOT include any ACRN/CIN block. Null only if the cell is genuinely empty (no title line printed). Do NOT confuse with the high-level contract title from Section C (e.g. 'COVID-19 Face Protection')."
22
+ },
23
+ "quantity": {
24
+ "anyOf": [
25
+ {
26
+ "type": "string"
27
+ },
28
+ {
29
+ "type": "null"
30
+ }
31
+ ],
32
+ "description": "The unit count from the 'QUANTITY' column for this CLIN, verbatim including any thousands separator the document uses. Format: numeric string ('4000', '1,482.25'), or 'N/A' if printed N/A. REDACTION POLICY: many DoD contracts overprint a FOIA exemption marker (most commonly '(b) (4)' for trade-secret pricing data; sometimes '(b)(4)', '(b) (3)', '(b)(6)') on top of a black box in this cell. When such an exemption marker is visible above/inside the black box, return the marker text VERBATIM as printed (e.g. '(b) (4)'). Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker). A black redaction box without any visible marker is also null. NEVER emit image-markdown placeholders (e.g. '![redacted](page_4_image_1.jpg)'); those are pipeline artifacts, not values — use null or the verbatim marker text instead. Do NOT confuse a redaction marker with the digit zero. May appear under labels 'QUANTITY', '15C. QUANTITY', '21. QUANTITY'. Do NOT confuse with: (a) box/kit counts in the separate Shipment Information table, (b) per-delivery quantities in the Section F Delivery Information table, (c) the total contract amount."
33
+ },
34
+ "unit": {
35
+ "anyOf": [
36
+ {
37
+ "type": "string"
38
+ },
39
+ {
40
+ "type": "null"
41
+ }
42
+ ],
43
+ "description": "The unit-of-measure from the 'UNIT' column for this CLIN, verbatim (e.g. 'Each', 'EA', 'LO', 'Lot'). May appear under labels 'UNIT', '15D. UNIT', '22. UNIT'. Case-preserve as printed. Null if the cell is blank or 'N/A' is printed. Do NOT confuse with the UNIT PRICE column, the contract type tag ('FFP'), the AMOUNT column, or DODAAC."
44
+ },
45
+ "unit_price": {
46
+ "anyOf": [
47
+ {
48
+ "type": "string"
49
+ },
50
+ {
51
+ "type": "null"
52
+ }
53
+ ],
54
+ "description": "The per-unit price from the 'UNIT PRICE' column for this CLIN, verbatim from the form as printed (e.g. '$37.05625', '2.90'). Preserve the currency sign and decimal places exactly as printed; do NOT round, do NOT add a '$' that is not printed. May appear under labels 'UNIT PRICE', '15E. UNIT PRICE', '23. UNIT PRICE'. REDACTION POLICY: same as quantity — when a FOIA exemption marker ('(b) (4)', '(b)(4)', etc.) is overprinted on a black box in this cell, return the marker text VERBATIM. Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker) or when 'N/A' is printed. NEVER emit image-markdown placeholders (e.g. '![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT carry over the AMOUNT-column value into unit_price; if UNIT PRICE is redacted but AMOUNT is printed, unit_price still gets the redaction marker (or null), NOT the amount. Do NOT confuse with the AMOUNT column (= quantity x unit_price), the contract NET AMT, or the total contract value box."
55
+ },
56
+ "amount": {
57
+ "anyOf": [
58
+ {
59
+ "type": "string"
60
+ },
61
+ {
62
+ "type": "null"
63
+ }
64
+ ],
65
+ "description": "The extended price from the 'AMOUNT' column for this CLIN, verbatim including dollar sign and exactly the printed cents (e.g. '$148,225.00', '$11,600.00', '$0.00'). Take ONLY the value that is printed on the same horizontal row as the 'ITEM NO' line, in the rightmost 'AMOUNT' column — even when that value is '$0.00' (funding-only SUBCLINs commonly print AMOUNT=$0.00 while the dollar amount appears on a separate 'ACRN <code>' allocation line below). May appear under labels 'AMOUNT', '15F. AMOUNT', '24. AMOUNT'. Use the literal value 'NSP' if 'NSP' (Not Separately Priced) is printed instead of a dollar amount; do NOT translate NSP to 0 or null. REDACTION POLICY: same as quantity/unit_price — if a FOIA exemption marker is overprinted on the AMOUNT cell, return the marker verbatim. Null only if the cell is blank with no marker. NEVER emit image-markdown placeholders ('![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT confuse with: (a) the per-CLIN 'NET AMT' subtotal printed below the horizontal rule (use `net_amount` for that), (b) the dollar value printed on the 'ACRN <code>' allocation line directly under NET AMT (that is per-ACRN funding, NOT this column), (c) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (d) any modification/amendment delta amount."
66
+ },
67
+ "contract_type": {
68
+ "anyOf": [
69
+ {
70
+ "type": "string"
71
+ },
72
+ {
73
+ "type": "null"
74
+ }
75
+ ],
76
+ "description": "The contract-type tag printed on its own line directly beneath the 'SUPPLIES/SERVICES' title (e.g. 'FFP' = Firm-Fixed Price, 'FFP-LOE', 'CPFF', 'T&M'). Verbatim as printed. Null if no such tag appears on the CLIN. Do NOT confuse with the product description that follows, with section names ('Section B', 'Section C'), or with the contract number."
77
+ },
78
+ "purchase_request_number": {
79
+ "anyOf": [
80
+ {
81
+ "type": "string"
82
+ },
83
+ {
84
+ "type": "null"
85
+ }
86
+ ],
87
+ "description": "The 'PURCHASE REQUEST NUMBER:' value printed inside the CLIN block, verbatim digits, no spaces (e.g. '0011509217', '0011487274'). May appear as 'PURCHASE REQUEST NUMBER', 'PR NUMBER', 'PR NO'. Null if not printed inside this CLIN block. Do NOT confuse with: (a) the box 1 'REQUISITION NUMBER' on the SF1449 form face (may equal or differ), (b) the contract number, (c) the CIN code, (d) ACRN code."
88
+ },
89
+ "psc_code": {
90
+ "anyOf": [
91
+ {
92
+ "type": "string"
93
+ },
94
+ {
95
+ "type": "null"
96
+ }
97
+ ],
98
+ "description": "The 'PSC CD:' (Product Service Code) printed inside the CLIN block, verbatim 4-digit code (e.g. '6550', '8415'). May appear as 'PSC CD', 'PSC CODE', 'PRODUCT SERVICE CODE'. Null if absent on the CLIN. Do NOT confuse with: NAICS code (box 9 of SF1449 face — typically 6 digits), DODAAC codes ('W56XNH', 'W912H7'), the CLIN/SLIN itself."
99
+ },
100
+ "acrn": {
101
+ "anyOf": [
102
+ {
103
+ "type": "string"
104
+ },
105
+ {
106
+ "type": "null"
107
+ }
108
+ ],
109
+ "description": "The Accounting Classification Reference Number printed at the bottom of the CLIN block as 'ACRN <code>' (e.g. 'AA', 'AB'). Two letters, uppercase, verbatim. If multiple ACRN lines appear on a single CLIN (split funding), use the FIRST printed ACRN here; the schema currently captures only ONE ACRN per row; additional ACRN lines on the same CLIN are not separately represented in this schema version (future-doc risk for split-funded CLINs). Null if no ACRN line is printed for the CLIN. Do NOT confuse with: NAICS code, PSC code, CIN code (GFEBS...), or DODAAC."
110
+ },
111
+ "cin": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ],
120
+ "description": "The CIN (Contract Identification Number) printed under the ACRN line as 'CIN: GFEBS...' or 'CIN: <digits>'. Verbatim, preserve case and digits exactly as printed. Null if absent. Do NOT confuse with the contract number, requisition number, PURCHASE REQUEST NUMBER, ACRN, PSC CD, NAICS code."
121
+ },
122
+ "net_amount": {
123
+ "anyOf": [
124
+ {
125
+ "type": "string"
126
+ },
127
+ {
128
+ "type": "null"
129
+ }
130
+ ],
131
+ "description": "The 'NET AMT' subtotal printed under the AMOUNT column for this CLIN (after the horizontal rule), verbatim with dollar sign and cents (e.g. '$148,225.00'). For single-funding CLINs this equals `amount`; for split-funded CLINs the NET AMT is the sum across ACRN allocations and may differ from `amount`. Null if no 'NET AMT' line is printed for this CLIN (e.g. 'NSP' / data-only line items). Do NOT confuse with: (a) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (b) the AMOUNT column value, (c) an individual ACRN allocation amount."
132
+ }
133
+ },
134
+ "required": [
135
+ "item_no",
136
+ "supplies_services",
137
+ "quantity",
138
+ "unit",
139
+ "unit_price",
140
+ "amount",
141
+ "contract_type",
142
+ "purchase_request_number",
143
+ "psc_code",
144
+ "acrn",
145
+ "cin",
146
+ "net_amount"
147
+ ],
148
+ "additionalProperties": false
149
+ }
150
+ },
151
+ "title": "DoDClinSchedule",
152
+ "type": "object",
153
+ "description": "Extraction of the DoD post-award contract or amendment ITEM-NO schedule from Part I Section B 'Supplies or Services and Prices'. Top-level fields capture the contract identifiers and totals from the SF-1449 / SF-26 / SF-30 form face; the long-doc list `clin_line_items` captures every CLIN/SLIN row in the Section B schedule. DOC-SCOPE POLICY: a single PDF in this corpus represents ONE primary award (the contract whose number is printed in box 2 of the first SF-1449 / SF-26 / SF-30 page). Even when the file is 'conformed' — i.e. the base contract page is followed by SF-30 modifications (P00001, P00002, …) that amend the same base contract — treat the whole stack as ONE contract: the primary contract's number, primary effective date, latest total, and the full conformed schedule (base CLINs + any SUBCLINs / additional CLINs added by mods). If the PDF additionally contains a DIFFERENT contract or task order (a separate SF-1449 / SF-26 / DD-1155 face with a DIFFERENT contract number in box 2, e.g. a child delivery order issued against an IDIQ), DO NOT mix its CLINs into `clin_line_items`. Extract ONLY the schedule of the primary (first / outermost) contract.",
154
+ "properties": {
155
+ "contract_number": {
156
+ "anyOf": [
157
+ {
158
+ "type": "string"
159
+ },
160
+ {
161
+ "type": "null"
162
+ }
163
+ ],
164
+ "description": "The PRIMARY contract's award number from the FIRST form face in the PDF, verbatim (e.g. 'W911QY20P0195', 'W911QY20C0047', 'W911QY20C0124'). On SF-1449 it sits in box 2 'CONTRACT NO.'; on SF-26 in box 2 'CONTRACT (Proc. Inst. Ident.) NO.'; on SF-30 amendments it appears as 'CONTRACT/ORDER NO.' (10A). Format: alphanumeric, typically beginning 'W' for Army (W911..., W912...) — preserve the case as printed and do NOT add spaces or dashes. Return EXACTLY ONE value — the number from the first/outermost award page in the PDF (NOT a comma-joined or semicolon-joined list of multiple contract numbers found later in the file). If a conformed file contains modifications referencing this same number, that's still one contract — return the base number once. If the file contains a separate child task order with a different number, IGNORE that number — it is NOT this field. Do NOT confuse with: (a) the amendment/modification number on SF-30 (box 2 'AMENDMENT/MODIFICATION NO.', e.g. 'P00001'), (b) the requisition number (box 1 on SF-1449), (c) the order number (box 4 on SF-1449), (d) the solicitation number (box 5 on SF-1449), (e) the purchase request number printed inside the CLIN blocks."
165
+ },
166
+ "effective_date": {
167
+ "anyOf": [
168
+ {
169
+ "type": "string"
170
+ },
171
+ {
172
+ "type": "null"
173
+ }
174
+ ],
175
+ "description": "The effective date of the PRIMARY contract award (NOT the latest amendment) from the FIRST form face in the PDF, verbatim as printed (e.g. '12-Jun-2020', '17 APR 2020', '04/17/2020', '24-Sep-2020'). On SF-1449 it sits in box 3 'AWARD/EFFECTIVE DATE'; on SF-26 in box 3 'EFFECTIVE DATE'. If the first page is itself an SF-30 amendment (no separate base SF-1449/SF-26 in the file), use the SF-30 'EFFECTIVE DATE' (box 3). Return EXACTLY ONE date — the base award's effective date, NOT a semicolon-joined list of every amendment's effective date. Preserve the printed format including case of the month abbreviation. Null if the cell is blank or redacted. Do NOT confuse with: (a) the date signed by the contractor (box 19C / 30c), (b) the date signed by the contracting officer (box 20C / 31c / 16C), (c) the solicitation issue date (box 6 on SF-1449), (d) any per-CLIN delivery date in Section F, (e) the effective date of any subsequent modification."
176
+ },
177
+ "total_amount": {
178
+ "anyOf": [
179
+ {
180
+ "type": "string"
181
+ },
182
+ {
183
+ "type": "null"
184
+ }
185
+ ],
186
+ "description": "The LATEST cumulative contract-level total dollar value after all conformed modifications, verbatim including dollar sign and cents (e.g. '$148,225.00', '$23,200.00', '$6,754,911.00'). On SF-1449 it sits in box 26 'TOTAL AWARD AMOUNT (For Govt. Use Only)'; on SF-26 in '15G. TOTAL AMOUNT OF CONTRACT'. For a conformed file with subsequent SF-30 mods, use the FINAL post-modification total — typically printed in each SF-30's 'SUMMARY OF CHANGES' as 'The total cost of this contract was increased/decreased by $X from $A to $B' — use the last 'to $B' value in the document. Return EXACTLY ONE value (a single dollar amount), NOT a semicolon-joined list of intermediate totals from each amendment. If the form face is fully redacted with no cumulative total printed anywhere, return the verbatim redaction marker (e.g. '(b) (4)'). NEVER emit image-markdown placeholders. Null if no total is printed anywhere and the cell is blank. Do NOT confuse with: (a) any individual CLIN AMOUNT or NET AMT, (b) per-delivery quantities or amounts, (c) the modification delta amount (the 'increased by $X' / 'decreased by $X' number on SF-30)."
187
+ },
188
+ "clin_line_items": {
189
+ "anyOf": [
190
+ {
191
+ "type": "array",
192
+ "items": {
193
+ "$ref": "#/$defs/ClinLineItem"
194
+ }
195
+ },
196
+ {
197
+ "type": "null"
198
+ }
199
+ ],
200
+ "description": "Ordered list of every CLIN/SLIN row from the PRIMARY contract's Section B 'Supplies or Services and Prices' schedule. Scope is the primary contract only — see DOC-SCOPE POLICY in the top-level schema description. One entry per CLIN block where a fresh 'ITEM NO' header introduces a new 4-digit (CLIN) or 6-digit (SLIN) identifier and the same 6-column row (ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT). Preserve the printed order top-to-bottom. INCLUDE: every numbered CLIN/SLIN of the primary contract even when its AMOUNT column prints 'NSP' (Not Separately Priced). INCLUDE: SUBCLINs / funding-only CLINs added by an SF-30 modification (e.g. SUBCLIN 000101 'Funding for CLIN 0001 / ACRN AB') in their printed order — these are part of the conformed primary contract's schedule. DEDUPLICATE: if the same CLIN appears multiple times across the primary contract's base + modifications (e.g. CLIN 0001 originally in the base + same CLIN 0001 referenced in a SUMMARY OF CHANGES block), emit it EXACTLY ONCE — use the LATEST printed values (the conformed state after all mods); do NOT emit a separate entry for each appearance. EXCLUDE: (a) rows from other tables that share similar column headers but are NOT Section B schedule rows, specifically the Shipment Information table, the Section F Delivery Information table (CLIN / DELIVERY DATE / QUANTITY / SHIP TO ADDRESS / DODAAC), the Section E Inspection And Acceptance Terms table (CLIN / INSPECT AT / INSPECT BY / ACCEPT AT / ACCEPT BY), any clause-list table (e.g. '52.246-2 Inspection Of Supplies'), the Section G 'Accounting and Appropriation Data' ACRN-allocation table, and the SF-30 'Description of Amendment' narrative outside the SUMMARY OF CHANGES / Section B blocks; (b) the entire CLIN schedule of any child task order or separate contract embedded later in the same PDF that uses a different contract number in box 2 — those are out of scope per DOC-SCOPE POLICY. STRICT: every emitted entry MUST have a non-empty item_no taken from a real 'ITEM NO' header — do NOT emit placeholder rows where item_no is null or empty, do NOT emit a row whose item_no is actually a contract number / a date / a section title ('TOTAL AMOUNT OF CONTRACT' is NOT an item_no), and do NOT emit a separate item for the 'NET AMT' subtotal line or the 'ACRN <code>' allocation line that follows a CLIN. If the document contains ONLY a SF1449 face page with 'SEE SCHEDULE' but no Section B schedule is included in the file, return an empty array `[]`."
201
+ }
202
+ },
203
+ "required": [
204
+ "contract_number",
205
+ "effective_date",
206
+ "total_amount",
207
+ "clin_line_items"
208
+ ],
209
+ "additionalProperties": false
210
+ }
tasks/long--gov-clin-schedule-0005-7b780d39e0/instruction.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Extract structured data from the document file `./document.pdf` in the current directory.
2
+
3
+ Use only local file inspection and shell commands. Do not use web search, network calls, browser tools, or external services. Temporary scratch files inside the current directory are OK.
4
+
5
+ Return a single JSON object conforming to this schema as your final answer:
6
+
7
+ {"$defs": {"ClinLineItem": {"type": "object", "title": "ClinLineItem", "description": "One row of the Section B 'Supplies or Services and Prices' (a.k.a. ITEM-NO) schedule. One row == one CLIN/SLIN block introduced by an 'ITEM NO' header that gives the CLIN number plus the six tabular fields ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT. CLIN blocks include short narrative lines beneath (FFP, FOB, PURCHASE REQUEST NUMBER, PSC CD, ACRN, CIN) — those lines belong to the same CLIN, do NOT create a new line item for them.", "properties": {"item_no": {"type": "string", "description": "The CLIN or SLIN identifier from the leftmost 'ITEM NO' column of the Section B schedule, verbatim. Format: a 4-digit CLIN like '0001' or '0002', or a 6-digit SLIN like '000101', '000102'. May appear under labels 'ITEM NO', 'ITEM NO.', '19. ITEM NO.', '15A. ITEM NO.', or 'CLIN'. Always preserve leading zeros (e.g. '0001', NOT '1'). Do NOT confuse with: (a) the contract number from box 2 (W911QY20...), (b) the requisition / purchase request number, (c) ACRN codes ('AA', 'AB'), (d) DODAAC codes, (e) PSC CDs, (f) the CIN code (GFEBS...), or (g) row numbers in any other table (shipment information, delivery information, inspection list)."}, "supplies_services": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The short product/service title from the 'SUPPLIES/SERVICES' column for this CLIN, verbatim from the first line under that column (e.g. 'Sample Collection Kits', 'Face Covering - ReadyOne', 'CDRL A001: Manufacturability Report'). For funding-only SUBCLINs added by an SF-30 modification, this line typically reads 'Funding for CLIN <parent_clin> / ACRN <code>' (e.g. 'Funding for CLIN 0001 / ACRN AB') — capture that exact title. May appear under labels 'SUPPLIES/SERVICES', 'SCHEDULE OF SUPPLIES/SERVICES', '15B. SUPPLIES/SERVICES', or '20. SCHEDULE OF SUPPLIES/SERVICES'. Use the literal title line only — do NOT concatenate the longer paragraph description, do NOT include 'FFP'/'FFP-LOE' contract-type tags that appear on the next line, do NOT include the FOB / PURCHASE REQUEST NUMBER / PSC CD lines, and do NOT include any ACRN/CIN block. Null only if the cell is genuinely empty (no title line printed). Do NOT confuse with the high-level contract title from Section C (e.g. 'COVID-19 Face Protection')."}, "quantity": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The unit count from the 'QUANTITY' column for this CLIN, verbatim including any thousands separator the document uses. Format: numeric string ('4000', '1,482.25'), or 'N/A' if printed N/A. REDACTION POLICY: many DoD contracts overprint a FOIA exemption marker (most commonly '(b) (4)' for trade-secret pricing data; sometimes '(b)(4)', '(b) (3)', '(b)(6)') on top of a black box in this cell. When such an exemption marker is visible above/inside the black box, return the marker text VERBATIM as printed (e.g. '(b) (4)'). Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker). A black redaction box without any visible marker is also null. NEVER emit image-markdown placeholders (e.g. '![redacted](page_4_image_1.jpg)'); those are pipeline artifacts, not values — use null or the verbatim marker text instead. Do NOT confuse a redaction marker with the digit zero. May appear under labels 'QUANTITY', '15C. QUANTITY', '21. QUANTITY'. Do NOT confuse with: (a) box/kit counts in the separate Shipment Information table, (b) per-delivery quantities in the Section F Delivery Information table, (c) the total contract amount."}, "unit": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The unit-of-measure from the 'UNIT' column for this CLIN, verbatim (e.g. 'Each', 'EA', 'LO', 'Lot'). May appear under labels 'UNIT', '15D. UNIT', '22. UNIT'. Case-preserve as printed. Null if the cell is blank or 'N/A' is printed. Do NOT confuse with the UNIT PRICE column, the contract type tag ('FFP'), the AMOUNT column, or DODAAC."}, "unit_price": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The per-unit price from the 'UNIT PRICE' column for this CLIN, verbatim from the form as printed (e.g. '$37.05625', '2.90'). Preserve the currency sign and decimal places exactly as printed; do NOT round, do NOT add a '$' that is not printed. May appear under labels 'UNIT PRICE', '15E. UNIT PRICE', '23. UNIT PRICE'. REDACTION POLICY: same as quantity — when a FOIA exemption marker ('(b) (4)', '(b)(4)', etc.) is overprinted on a black box in this cell, return the marker text VERBATIM. Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker) or when 'N/A' is printed. NEVER emit image-markdown placeholders (e.g. '![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT carry over the AMOUNT-column value into unit_price; if UNIT PRICE is redacted but AMOUNT is printed, unit_price still gets the redaction marker (or null), NOT the amount. Do NOT confuse with the AMOUNT column (= quantity x unit_price), the contract NET AMT, or the total contract value box."}, "amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The extended price from the 'AMOUNT' column for this CLIN, verbatim including dollar sign and exactly the printed cents (e.g. '$148,225.00', '$11,600.00', '$0.00'). Take ONLY the value that is printed on the same horizontal row as the 'ITEM NO' line, in the rightmost 'AMOUNT' column — even when that value is '$0.00' (funding-only SUBCLINs commonly print AMOUNT=$0.00 while the dollar amount appears on a separate 'ACRN <code>' allocation line below). May appear under labels 'AMOUNT', '15F. AMOUNT', '24. AMOUNT'. Use the literal value 'NSP' if 'NSP' (Not Separately Priced) is printed instead of a dollar amount; do NOT translate NSP to 0 or null. REDACTION POLICY: same as quantity/unit_price — if a FOIA exemption marker is overprinted on the AMOUNT cell, return the marker verbatim. Null only if the cell is blank with no marker. NEVER emit image-markdown placeholders ('![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT confuse with: (a) the per-CLIN 'NET AMT' subtotal printed below the horizontal rule (use `net_amount` for that), (b) the dollar value printed on the 'ACRN <code>' allocation line directly under NET AMT (that is per-ACRN funding, NOT this column), (c) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (d) any modification/amendment delta amount."}, "contract_type": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The contract-type tag printed on its own line directly beneath the 'SUPPLIES/SERVICES' title (e.g. 'FFP' = Firm-Fixed Price, 'FFP-LOE', 'CPFF', 'T&M'). Verbatim as printed. Null if no such tag appears on the CLIN. Do NOT confuse with the product description that follows, with section names ('Section B', 'Section C'), or with the contract number."}, "purchase_request_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The 'PURCHASE REQUEST NUMBER:' value printed inside the CLIN block, verbatim digits, no spaces (e.g. '0011509217', '0011487274'). May appear as 'PURCHASE REQUEST NUMBER', 'PR NUMBER', 'PR NO'. Null if not printed inside this CLIN block. Do NOT confuse with: (a) the box 1 'REQUISITION NUMBER' on the SF1449 form face (may equal or differ), (b) the contract number, (c) the CIN code, (d) ACRN code."}, "psc_code": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The 'PSC CD:' (Product Service Code) printed inside the CLIN block, verbatim 4-digit code (e.g. '6550', '8415'). May appear as 'PSC CD', 'PSC CODE', 'PRODUCT SERVICE CODE'. Null if absent on the CLIN. Do NOT confuse with: NAICS code (box 9 of SF1449 face — typically 6 digits), DODAAC codes ('W56XNH', 'W912H7'), the CLIN/SLIN itself."}, "acrn": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The Accounting Classification Reference Number printed at the bottom of the CLIN block as 'ACRN <code>' (e.g. 'AA', 'AB'). Two letters, uppercase, verbatim. If multiple ACRN lines appear on a single CLIN (split funding), use the FIRST printed ACRN here; the schema currently captures only ONE ACRN per row; additional ACRN lines on the same CLIN are not separately represented in this schema version (future-doc risk for split-funded CLINs). Null if no ACRN line is printed for the CLIN. Do NOT confuse with: NAICS code, PSC code, CIN code (GFEBS...), or DODAAC."}, "cin": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The CIN (Contract Identification Number) printed under the ACRN line as 'CIN: GFEBS...' or 'CIN: <digits>'. Verbatim, preserve case and digits exactly as printed. Null if absent. Do NOT confuse with the contract number, requisition number, PURCHASE REQUEST NUMBER, ACRN, PSC CD, NAICS code."}, "net_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The 'NET AMT' subtotal printed under the AMOUNT column for this CLIN (after the horizontal rule), verbatim with dollar sign and cents (e.g. '$148,225.00'). For single-funding CLINs this equals `amount`; for split-funded CLINs the NET AMT is the sum across ACRN allocations and may differ from `amount`. Null if no 'NET AMT' line is printed for this CLIN (e.g. 'NSP' / data-only line items). Do NOT confuse with: (a) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (b) the AMOUNT column value, (c) an individual ACRN allocation amount."}}, "required": ["item_no", "supplies_services", "quantity", "unit", "unit_price", "amount", "contract_type", "purchase_request_number", "psc_code", "acrn", "cin", "net_amount"], "additionalProperties": false}}, "title": "DoDClinSchedule", "type": "object", "description": "Extraction of the DoD post-award contract or amendment ITEM-NO schedule from Part I Section B 'Supplies or Services and Prices'. Top-level fields capture the contract identifiers and totals from the SF-1449 / SF-26 / SF-30 form face; the long-doc list `clin_line_items` captures every CLIN/SLIN row in the Section B schedule. DOC-SCOPE POLICY: a single PDF in this corpus represents ONE primary award (the contract whose number is printed in box 2 of the first SF-1449 / SF-26 / SF-30 page). Even when the file is 'conformed' — i.e. the base contract page is followed by SF-30 modifications (P00001, P00002, …) that amend the same base contract — treat the whole stack as ONE contract: the primary contract's number, primary effective date, latest total, and the full conformed schedule (base CLINs + any SUBCLINs / additional CLINs added by mods). If the PDF additionally contains a DIFFERENT contract or task order (a separate SF-1449 / SF-26 / DD-1155 face with a DIFFERENT contract number in box 2, e.g. a child delivery order issued against an IDIQ), DO NOT mix its CLINs into `clin_line_items`. Extract ONLY the schedule of the primary (first / outermost) contract.", "properties": {"contract_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The PRIMARY contract's award number from the FIRST form face in the PDF, verbatim (e.g. 'W911QY20P0195', 'W911QY20C0047', 'W911QY20C0124'). On SF-1449 it sits in box 2 'CONTRACT NO.'; on SF-26 in box 2 'CONTRACT (Proc. Inst. Ident.) NO.'; on SF-30 amendments it appears as 'CONTRACT/ORDER NO.' (10A). Format: alphanumeric, typically beginning 'W' for Army (W911..., W912...) — preserve the case as printed and do NOT add spaces or dashes. Return EXACTLY ONE value — the number from the first/outermost award page in the PDF (NOT a comma-joined or semicolon-joined list of multiple contract numbers found later in the file). If a conformed file contains modifications referencing this same number, that's still one contract — return the base number once. If the file contains a separate child task order with a different number, IGNORE that number — it is NOT this field. Do NOT confuse with: (a) the amendment/modification number on SF-30 (box 2 'AMENDMENT/MODIFICATION NO.', e.g. 'P00001'), (b) the requisition number (box 1 on SF-1449), (c) the order number (box 4 on SF-1449), (d) the solicitation number (box 5 on SF-1449), (e) the purchase request number printed inside the CLIN blocks."}, "effective_date": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The effective date of the PRIMARY contract award (NOT the latest amendment) from the FIRST form face in the PDF, verbatim as printed (e.g. '12-Jun-2020', '17 APR 2020', '04/17/2020', '24-Sep-2020'). On SF-1449 it sits in box 3 'AWARD/EFFECTIVE DATE'; on SF-26 in box 3 'EFFECTIVE DATE'. If the first page is itself an SF-30 amendment (no separate base SF-1449/SF-26 in the file), use the SF-30 'EFFECTIVE DATE' (box 3). Return EXACTLY ONE date — the base award's effective date, NOT a semicolon-joined list of every amendment's effective date. Preserve the printed format including case of the month abbreviation. Null if the cell is blank or redacted. Do NOT confuse with: (a) the date signed by the contractor (box 19C / 30c), (b) the date signed by the contracting officer (box 20C / 31c / 16C), (c) the solicitation issue date (box 6 on SF-1449), (d) any per-CLIN delivery date in Section F, (e) the effective date of any subsequent modification."}, "total_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The LATEST cumulative contract-level total dollar value after all conformed modifications, verbatim including dollar sign and cents (e.g. '$148,225.00', '$23,200.00', '$6,754,911.00'). On SF-1449 it sits in box 26 'TOTAL AWARD AMOUNT (For Govt. Use Only)'; on SF-26 in '15G. TOTAL AMOUNT OF CONTRACT'. For a conformed file with subsequent SF-30 mods, use the FINAL post-modification total — typically printed in each SF-30's 'SUMMARY OF CHANGES' as 'The total cost of this contract was increased/decreased by $X from $A to $B' — use the last 'to $B' value in the document. Return EXACTLY ONE value (a single dollar amount), NOT a semicolon-joined list of intermediate totals from each amendment. If the form face is fully redacted with no cumulative total printed anywhere, return the verbatim redaction marker (e.g. '(b) (4)'). NEVER emit image-markdown placeholders. Null if no total is printed anywhere and the cell is blank. Do NOT confuse with: (a) any individual CLIN AMOUNT or NET AMT, (b) per-delivery quantities or amounts, (c) the modification delta amount (the 'increased by $X' / 'decreased by $X' number on SF-30)."}, "clin_line_items": {"anyOf": [{"type": "array", "items": {"$ref": "#/$defs/ClinLineItem"}}, {"type": "null"}], "description": "Ordered list of every CLIN/SLIN row from the PRIMARY contract's Section B 'Supplies or Services and Prices' schedule. Scope is the primary contract only — see DOC-SCOPE POLICY in the top-level schema description. One entry per CLIN block where a fresh 'ITEM NO' header introduces a new 4-digit (CLIN) or 6-digit (SLIN) identifier and the same 6-column row (ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT). Preserve the printed order top-to-bottom. INCLUDE: every numbered CLIN/SLIN of the primary contract even when its AMOUNT column prints 'NSP' (Not Separately Priced). INCLUDE: SUBCLINs / funding-only CLINs added by an SF-30 modification (e.g. SUBCLIN 000101 'Funding for CLIN 0001 / ACRN AB') in their printed order — these are part of the conformed primary contract's schedule. DEDUPLICATE: if the same CLIN appears multiple times across the primary contract's base + modifications (e.g. CLIN 0001 originally in the base + same CLIN 0001 referenced in a SUMMARY OF CHANGES block), emit it EXACTLY ONCE — use the LATEST printed values (the conformed state after all mods); do NOT emit a separate entry for each appearance. EXCLUDE: (a) rows from other tables that share similar column headers but are NOT Section B schedule rows, specifically the Shipment Information table, the Section F Delivery Information table (CLIN / DELIVERY DATE / QUANTITY / SHIP TO ADDRESS / DODAAC), the Section E Inspection And Acceptance Terms table (CLIN / INSPECT AT / INSPECT BY / ACCEPT AT / ACCEPT BY), any clause-list table (e.g. '52.246-2 Inspection Of Supplies'), the Section G 'Accounting and Appropriation Data' ACRN-allocation table, and the SF-30 'Description of Amendment' narrative outside the SUMMARY OF CHANGES / Section B blocks; (b) the entire CLIN schedule of any child task order or separate contract embedded later in the same PDF that uses a different contract number in box 2 — those are out of scope per DOC-SCOPE POLICY. STRICT: every emitted entry MUST have a non-empty item_no taken from a real 'ITEM NO' header — do NOT emit placeholder rows where item_no is null or empty, do NOT emit a row whose item_no is actually a contract number / a date / a section title ('TOTAL AMOUNT OF CONTRACT' is NOT an item_no), and do NOT emit a separate item for the 'NET AMT' subtotal line or the 'ACRN <code>' allocation line that follows a CLIN. If the document contains ONLY a SF1449 face page with 'SEE SCHEDULE' but no Section B schedule is included in the file, return an empty array `[]`."}}, "required": ["contract_number", "effective_date", "total_amount", "clin_line_items"], "additionalProperties": false}
8
+
9
+ Rules:
10
+
11
+ - Use null for fields not present in the document.
12
+ - For list/array fields, enumerate every relevant row visible in the document; never collapse rows.
13
+ - For large regular tables, prefer writing and running a local script to parse/enumerate rows.
14
+ - For forms, prefer direct field extraction from the document content.
15
+ - Write the resulting JSON object to ./output.json and validate that it is valid JSON before stopping.
16
+ - Do not print the JSON to your assistant output.
tasks/long--gov-clin-schedule-0005-7b780d39e0/solution/expected.json ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "contract_number": "W911QY20D0017",
3
+ "effective_date": "11-May-2020",
4
+ "total_amount": "(b) (6)",
5
+ "clin_line_items": [
6
+ {
7
+ "item_no": "0001",
8
+ "supplies_services": "SARS-CoV-2 LFI Kit",
9
+ "quantity": null,
10
+ "unit": "Each",
11
+ "unit_price": null,
12
+ "amount": "$48,870,000.00",
13
+ "contract_type": "FFP",
14
+ "purchase_request_number": null,
15
+ "psc_code": "6550",
16
+ "acrn": null,
17
+ "cin": null,
18
+ "net_amount": "$48,870,000.00"
19
+ },
20
+ {
21
+ "item_no": "0002",
22
+ "supplies_services": "Shipping",
23
+ "quantity": "100,000",
24
+ "unit": "Job",
25
+ "unit_price": null,
26
+ "amount": "$0.00 NTE",
27
+ "contract_type": "COST",
28
+ "purchase_request_number": null,
29
+ "psc_code": "6550",
30
+ "acrn": null,
31
+ "cin": null,
32
+ "net_amount": null
33
+ },
34
+ {
35
+ "item_no": "0003",
36
+ "supplies_services": "CDRL",
37
+ "quantity": "1",
38
+ "unit": "Each",
39
+ "unit_price": null,
40
+ "amount": "NSP",
41
+ "contract_type": "FFP",
42
+ "purchase_request_number": null,
43
+ "psc_code": "6550",
44
+ "acrn": null,
45
+ "cin": null,
46
+ "net_amount": null
47
+ },
48
+ {
49
+ "item_no": "0004",
50
+ "supplies_services": "CDRL",
51
+ "quantity": "1",
52
+ "unit": "Each",
53
+ "unit_price": null,
54
+ "amount": "NSP",
55
+ "contract_type": "FFP",
56
+ "purchase_request_number": null,
57
+ "psc_code": "6550",
58
+ "acrn": null,
59
+ "cin": null,
60
+ "net_amount": null
61
+ },
62
+ {
63
+ "item_no": "0005",
64
+ "supplies_services": "CDRL",
65
+ "quantity": "1",
66
+ "unit": "Each",
67
+ "unit_price": null,
68
+ "amount": "NSP",
69
+ "contract_type": "FFP",
70
+ "purchase_request_number": null,
71
+ "psc_code": "6550",
72
+ "acrn": null,
73
+ "cin": null,
74
+ "net_amount": null
75
+ },
76
+ {
77
+ "item_no": "0006",
78
+ "supplies_services": "CDRL",
79
+ "quantity": "12",
80
+ "unit": "Each",
81
+ "unit_price": null,
82
+ "amount": "NSP",
83
+ "contract_type": "FFP",
84
+ "purchase_request_number": null,
85
+ "psc_code": "6550",
86
+ "acrn": null,
87
+ "cin": null,
88
+ "net_amount": null
89
+ },
90
+ {
91
+ "item_no": "0007",
92
+ "supplies_services": "CDRL",
93
+ "quantity": "5",
94
+ "unit": "Each",
95
+ "unit_price": null,
96
+ "amount": "NSP",
97
+ "contract_type": "FFP",
98
+ "purchase_request_number": null,
99
+ "psc_code": "6550",
100
+ "acrn": null,
101
+ "cin": null,
102
+ "net_amount": null
103
+ },
104
+ {
105
+ "item_no": "0008",
106
+ "supplies_services": "CDRL",
107
+ "quantity": "1",
108
+ "unit": "Each",
109
+ "unit_price": null,
110
+ "amount": "NSP",
111
+ "contract_type": "FFP",
112
+ "purchase_request_number": null,
113
+ "psc_code": "6550",
114
+ "acrn": null,
115
+ "cin": null,
116
+ "net_amount": null
117
+ },
118
+ {
119
+ "item_no": "0009",
120
+ "supplies_services": "CDRL",
121
+ "quantity": "1",
122
+ "unit": "Each",
123
+ "unit_price": null,
124
+ "amount": "NSP",
125
+ "contract_type": "FFP",
126
+ "purchase_request_number": null,
127
+ "psc_code": "6550",
128
+ "acrn": null,
129
+ "cin": null,
130
+ "net_amount": null
131
+ },
132
+ {
133
+ "item_no": "0010",
134
+ "supplies_services": "CDRL",
135
+ "quantity": "2",
136
+ "unit": "Each",
137
+ "unit_price": null,
138
+ "amount": "NSP",
139
+ "contract_type": "FFP",
140
+ "purchase_request_number": null,
141
+ "psc_code": "6550",
142
+ "acrn": null,
143
+ "cin": null,
144
+ "net_amount": null
145
+ },
146
+ {
147
+ "item_no": "0011",
148
+ "supplies_services": "CDRL",
149
+ "quantity": "1",
150
+ "unit": "Each",
151
+ "unit_price": null,
152
+ "amount": "NSP",
153
+ "contract_type": "FFP",
154
+ "purchase_request_number": null,
155
+ "psc_code": "6550",
156
+ "acrn": null,
157
+ "cin": null,
158
+ "net_amount": null
159
+ },
160
+ {
161
+ "item_no": "0012",
162
+ "supplies_services": "Regulatory EUA",
163
+ "quantity": "1",
164
+ "unit": "Each",
165
+ "unit_price": null,
166
+ "amount": "$6,769.46",
167
+ "contract_type": "FFP",
168
+ "purchase_request_number": null,
169
+ "psc_code": "6550",
170
+ "acrn": null,
171
+ "cin": null,
172
+ "net_amount": "$6,769.46"
173
+ },
174
+ {
175
+ "item_no": "0013",
176
+ "supplies_services": "First Article Testing Lot",
177
+ "quantity": null,
178
+ "unit": "Each",
179
+ "unit_price": null,
180
+ "amount": "$487,939.15",
181
+ "contract_type": "FFP",
182
+ "purchase_request_number": null,
183
+ "psc_code": "6550",
184
+ "acrn": null,
185
+ "cin": null,
186
+ "net_amount": "$487,939.15"
187
+ }
188
+ ]
189
+ }
tasks/long--gov-clin-schedule-0005-7b780d39e0/solution/solve.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ cp /solution/expected.json /app/output.json
tasks/long--gov-clin-schedule-0005-7b780d39e0/task.toml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+ artifacts = ["/app/output.json"]
3
+
4
+ [metadata]
5
+ source_repo = "llamaindex/ExtractBench"
6
+ source_revision = "51bf3a03eb7feeaef8952be1fc2fc7f924ee72dc"
7
+ source_case_id = "long/gov_clin_schedule_0005"
8
+ source_split = "long"
9
+ scorer_revision = "2f27f100730afc7c395602e26a2a87e07ea66b31"
10
+ prompt_source = "https://arxiv.org/html/2607.29677v1#A3.SS1"
11
+ tags = ["source:real", "challenge:T2.a", "challenge:T2.c", "challenge:T1.b", "structure:S3", "length:long", "domain:D3"]
12
+
13
+ [agent]
14
+ timeout_sec = 1800
15
+ network_mode = "allowlist"
16
+ allowed_hosts = []
17
+
18
+ [environment]
19
+ cpus = 2
20
+ memory_mb = 4096
21
+ storage_mb = 10240
22
+
23
+ [verifier]
24
+ environment_mode = "separate"
25
+ timeout_sec = 1800
26
+
27
+ [verifier.environment]
28
+ cpus = 2
29
+ memory_mb = 8192
30
+ network_mode = "no-network"
tasks/long--gov-clin-schedule-0005-7b780d39e0/tests/Dockerfile ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ FROM python:3.12-slim-bookworm
2
+ RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
3
+ RUN pip install --no-cache-dir "llama-extract-bench @ git+https://github.com/run-llama/ExtractBench.git@2f27f100730afc7c395602e26a2a87e07ea66b31" "parse-bench==1.0.4"
4
+ WORKDIR /app
5
+ COPY . /tests/
tasks/long--gov-clin-schedule-0005-7b780d39e0/tests/reference.test.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"tags": ["source:real", "challenge:T2.a", "challenge:T2.c", "challenge:T1.b", "structure:S3", "length:long", "domain:D3"], "data_schema": {"$defs": {"ClinLineItem": {"type": "object", "title": "ClinLineItem", "description": "One row of the Section B 'Supplies or Services and Prices' (a.k.a. ITEM-NO) schedule. One row == one CLIN/SLIN block introduced by an 'ITEM NO' header that gives the CLIN number plus the six tabular fields ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT. CLIN blocks include short narrative lines beneath (FFP, FOB, PURCHASE REQUEST NUMBER, PSC CD, ACRN, CIN) — those lines belong to the same CLIN, do NOT create a new line item for them.", "properties": {"item_no": {"type": "string", "description": "The CLIN or SLIN identifier from the leftmost 'ITEM NO' column of the Section B schedule, verbatim. Format: a 4-digit CLIN like '0001' or '0002', or a 6-digit SLIN like '000101', '000102'. May appear under labels 'ITEM NO', 'ITEM NO.', '19. ITEM NO.', '15A. ITEM NO.', or 'CLIN'. Always preserve leading zeros (e.g. '0001', NOT '1'). Do NOT confuse with: (a) the contract number from box 2 (W911QY20...), (b) the requisition / purchase request number, (c) ACRN codes ('AA', 'AB'), (d) DODAAC codes, (e) PSC CDs, (f) the CIN code (GFEBS...), or (g) row numbers in any other table (shipment information, delivery information, inspection list)."}, "supplies_services": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The short product/service title from the 'SUPPLIES/SERVICES' column for this CLIN, verbatim from the first line under that column (e.g. 'Sample Collection Kits', 'Face Covering - ReadyOne', 'CDRL A001: Manufacturability Report'). For funding-only SUBCLINs added by an SF-30 modification, this line typically reads 'Funding for CLIN <parent_clin> / ACRN <code>' (e.g. 'Funding for CLIN 0001 / ACRN AB') — capture that exact title. May appear under labels 'SUPPLIES/SERVICES', 'SCHEDULE OF SUPPLIES/SERVICES', '15B. SUPPLIES/SERVICES', or '20. SCHEDULE OF SUPPLIES/SERVICES'. Use the literal title line only — do NOT concatenate the longer paragraph description, do NOT include 'FFP'/'FFP-LOE' contract-type tags that appear on the next line, do NOT include the FOB / PURCHASE REQUEST NUMBER / PSC CD lines, and do NOT include any ACRN/CIN block. Null only if the cell is genuinely empty (no title line printed). Do NOT confuse with the high-level contract title from Section C (e.g. 'COVID-19 Face Protection')."}, "quantity": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The unit count from the 'QUANTITY' column for this CLIN, verbatim including any thousands separator the document uses. Format: numeric string ('4000', '1,482.25'), or 'N/A' if printed N/A. REDACTION POLICY: many DoD contracts overprint a FOIA exemption marker (most commonly '(b) (4)' for trade-secret pricing data; sometimes '(b)(4)', '(b) (3)', '(b)(6)') on top of a black box in this cell. When such an exemption marker is visible above/inside the black box, return the marker text VERBATIM as printed (e.g. '(b) (4)'). Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker). A black redaction box without any visible marker is also null. NEVER emit image-markdown placeholders (e.g. '![redacted](page_4_image_1.jpg)'); those are pipeline artifacts, not values — use null or the verbatim marker text instead. Do NOT confuse a redaction marker with the digit zero. May appear under labels 'QUANTITY', '15C. QUANTITY', '21. QUANTITY'. Do NOT confuse with: (a) box/kit counts in the separate Shipment Information table, (b) per-delivery quantities in the Section F Delivery Information table, (c) the total contract amount."}, "unit": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The unit-of-measure from the 'UNIT' column for this CLIN, verbatim (e.g. 'Each', 'EA', 'LO', 'Lot'). May appear under labels 'UNIT', '15D. UNIT', '22. UNIT'. Case-preserve as printed. Null if the cell is blank or 'N/A' is printed. Do NOT confuse with the UNIT PRICE column, the contract type tag ('FFP'), the AMOUNT column, or DODAAC."}, "unit_price": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The per-unit price from the 'UNIT PRICE' column for this CLIN, verbatim from the form as printed (e.g. '$37.05625', '2.90'). Preserve the currency sign and decimal places exactly as printed; do NOT round, do NOT add a '$' that is not printed. May appear under labels 'UNIT PRICE', '15E. UNIT PRICE', '23. UNIT PRICE'. REDACTION POLICY: same as quantity — when a FOIA exemption marker ('(b) (4)', '(b)(4)', etc.) is overprinted on a black box in this cell, return the marker text VERBATIM. Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker) or when 'N/A' is printed. NEVER emit image-markdown placeholders (e.g. '![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT carry over the AMOUNT-column value into unit_price; if UNIT PRICE is redacted but AMOUNT is printed, unit_price still gets the redaction marker (or null), NOT the amount. Do NOT confuse with the AMOUNT column (= quantity x unit_price), the contract NET AMT, or the total contract value box."}, "amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The extended price from the 'AMOUNT' column for this CLIN, verbatim including dollar sign and exactly the printed cents (e.g. '$148,225.00', '$11,600.00', '$0.00'). Take ONLY the value that is printed on the same horizontal row as the 'ITEM NO' line, in the rightmost 'AMOUNT' column — even when that value is '$0.00' (funding-only SUBCLINs commonly print AMOUNT=$0.00 while the dollar amount appears on a separate 'ACRN <code>' allocation line below). May appear under labels 'AMOUNT', '15F. AMOUNT', '24. AMOUNT'. Use the literal value 'NSP' if 'NSP' (Not Separately Priced) is printed instead of a dollar amount; do NOT translate NSP to 0 or null. REDACTION POLICY: same as quantity/unit_price — if a FOIA exemption marker is overprinted on the AMOUNT cell, return the marker verbatim. Null only if the cell is blank with no marker. NEVER emit image-markdown placeholders ('![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT confuse with: (a) the per-CLIN 'NET AMT' subtotal printed below the horizontal rule (use `net_amount` for that), (b) the dollar value printed on the 'ACRN <code>' allocation line directly under NET AMT (that is per-ACRN funding, NOT this column), (c) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (d) any modification/amendment delta amount."}, "contract_type": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The contract-type tag printed on its own line directly beneath the 'SUPPLIES/SERVICES' title (e.g. 'FFP' = Firm-Fixed Price, 'FFP-LOE', 'CPFF', 'T&M'). Verbatim as printed. Null if no such tag appears on the CLIN. Do NOT confuse with the product description that follows, with section names ('Section B', 'Section C'), or with the contract number."}, "purchase_request_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The 'PURCHASE REQUEST NUMBER:' value printed inside the CLIN block, verbatim digits, no spaces (e.g. '0011509217', '0011487274'). May appear as 'PURCHASE REQUEST NUMBER', 'PR NUMBER', 'PR NO'. Null if not printed inside this CLIN block. Do NOT confuse with: (a) the box 1 'REQUISITION NUMBER' on the SF1449 form face (may equal or differ), (b) the contract number, (c) the CIN code, (d) ACRN code."}, "psc_code": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The 'PSC CD:' (Product Service Code) printed inside the CLIN block, verbatim 4-digit code (e.g. '6550', '8415'). May appear as 'PSC CD', 'PSC CODE', 'PRODUCT SERVICE CODE'. Null if absent on the CLIN. Do NOT confuse with: NAICS code (box 9 of SF1449 face — typically 6 digits), DODAAC codes ('W56XNH', 'W912H7'), the CLIN/SLIN itself."}, "acrn": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The Accounting Classification Reference Number printed at the bottom of the CLIN block as 'ACRN <code>' (e.g. 'AA', 'AB'). Two letters, uppercase, verbatim. If multiple ACRN lines appear on a single CLIN (split funding), use the FIRST printed ACRN here; the schema currently captures only ONE ACRN per row; additional ACRN lines on the same CLIN are not separately represented in this schema version (future-doc risk for split-funded CLINs). Null if no ACRN line is printed for the CLIN. Do NOT confuse with: NAICS code, PSC code, CIN code (GFEBS...), or DODAAC."}, "cin": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The CIN (Contract Identification Number) printed under the ACRN line as 'CIN: GFEBS...' or 'CIN: <digits>'. Verbatim, preserve case and digits exactly as printed. Null if absent. Do NOT confuse with the contract number, requisition number, PURCHASE REQUEST NUMBER, ACRN, PSC CD, NAICS code."}, "net_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The 'NET AMT' subtotal printed under the AMOUNT column for this CLIN (after the horizontal rule), verbatim with dollar sign and cents (e.g. '$148,225.00'). For single-funding CLINs this equals `amount`; for split-funded CLINs the NET AMT is the sum across ACRN allocations and may differ from `amount`. Null if no 'NET AMT' line is printed for this CLIN (e.g. 'NSP' / data-only line items). Do NOT confuse with: (a) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (b) the AMOUNT column value, (c) an individual ACRN allocation amount."}}, "required": ["item_no", "supplies_services", "quantity", "unit", "unit_price", "amount", "contract_type", "purchase_request_number", "psc_code", "acrn", "cin", "net_amount"], "additionalProperties": false}}, "title": "DoDClinSchedule", "type": "object", "description": "Extraction of the DoD post-award contract or amendment ITEM-NO schedule from Part I Section B 'Supplies or Services and Prices'. Top-level fields capture the contract identifiers and totals from the SF-1449 / SF-26 / SF-30 form face; the long-doc list `clin_line_items` captures every CLIN/SLIN row in the Section B schedule. DOC-SCOPE POLICY: a single PDF in this corpus represents ONE primary award (the contract whose number is printed in box 2 of the first SF-1449 / SF-26 / SF-30 page). Even when the file is 'conformed' — i.e. the base contract page is followed by SF-30 modifications (P00001, P00002, …) that amend the same base contract — treat the whole stack as ONE contract: the primary contract's number, primary effective date, latest total, and the full conformed schedule (base CLINs + any SUBCLINs / additional CLINs added by mods). If the PDF additionally contains a DIFFERENT contract or task order (a separate SF-1449 / SF-26 / DD-1155 face with a DIFFERENT contract number in box 2, e.g. a child delivery order issued against an IDIQ), DO NOT mix its CLINs into `clin_line_items`. Extract ONLY the schedule of the primary (first / outermost) contract.", "properties": {"contract_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The PRIMARY contract's award number from the FIRST form face in the PDF, verbatim (e.g. 'W911QY20P0195', 'W911QY20C0047', 'W911QY20C0124'). On SF-1449 it sits in box 2 'CONTRACT NO.'; on SF-26 in box 2 'CONTRACT (Proc. Inst. Ident.) NO.'; on SF-30 amendments it appears as 'CONTRACT/ORDER NO.' (10A). Format: alphanumeric, typically beginning 'W' for Army (W911..., W912...) — preserve the case as printed and do NOT add spaces or dashes. Return EXACTLY ONE value — the number from the first/outermost award page in the PDF (NOT a comma-joined or semicolon-joined list of multiple contract numbers found later in the file). If a conformed file contains modifications referencing this same number, that's still one contract — return the base number once. If the file contains a separate child task order with a different number, IGNORE that number — it is NOT this field. Do NOT confuse with: (a) the amendment/modification number on SF-30 (box 2 'AMENDMENT/MODIFICATION NO.', e.g. 'P00001'), (b) the requisition number (box 1 on SF-1449), (c) the order number (box 4 on SF-1449), (d) the solicitation number (box 5 on SF-1449), (e) the purchase request number printed inside the CLIN blocks."}, "effective_date": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The effective date of the PRIMARY contract award (NOT the latest amendment) from the FIRST form face in the PDF, verbatim as printed (e.g. '12-Jun-2020', '17 APR 2020', '04/17/2020', '24-Sep-2020'). On SF-1449 it sits in box 3 'AWARD/EFFECTIVE DATE'; on SF-26 in box 3 'EFFECTIVE DATE'. If the first page is itself an SF-30 amendment (no separate base SF-1449/SF-26 in the file), use the SF-30 'EFFECTIVE DATE' (box 3). Return EXACTLY ONE date — the base award's effective date, NOT a semicolon-joined list of every amendment's effective date. Preserve the printed format including case of the month abbreviation. Null if the cell is blank or redacted. Do NOT confuse with: (a) the date signed by the contractor (box 19C / 30c), (b) the date signed by the contracting officer (box 20C / 31c / 16C), (c) the solicitation issue date (box 6 on SF-1449), (d) any per-CLIN delivery date in Section F, (e) the effective date of any subsequent modification."}, "total_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The LATEST cumulative contract-level total dollar value after all conformed modifications, verbatim including dollar sign and cents (e.g. '$148,225.00', '$23,200.00', '$6,754,911.00'). On SF-1449 it sits in box 26 'TOTAL AWARD AMOUNT (For Govt. Use Only)'; on SF-26 in '15G. TOTAL AMOUNT OF CONTRACT'. For a conformed file with subsequent SF-30 mods, use the FINAL post-modification total — typically printed in each SF-30's 'SUMMARY OF CHANGES' as 'The total cost of this contract was increased/decreased by $X from $A to $B' — use the last 'to $B' value in the document. Return EXACTLY ONE value (a single dollar amount), NOT a semicolon-joined list of intermediate totals from each amendment. If the form face is fully redacted with no cumulative total printed anywhere, return the verbatim redaction marker (e.g. '(b) (4)'). NEVER emit image-markdown placeholders. Null if no total is printed anywhere and the cell is blank. Do NOT confuse with: (a) any individual CLIN AMOUNT or NET AMT, (b) per-delivery quantities or amounts, (c) the modification delta amount (the 'increased by $X' / 'decreased by $X' number on SF-30)."}, "clin_line_items": {"anyOf": [{"type": "array", "items": {"$ref": "#/$defs/ClinLineItem"}}, {"type": "null"}], "description": "Ordered list of every CLIN/SLIN row from the PRIMARY contract's Section B 'Supplies or Services and Prices' schedule. Scope is the primary contract only — see DOC-SCOPE POLICY in the top-level schema description. One entry per CLIN block where a fresh 'ITEM NO' header introduces a new 4-digit (CLIN) or 6-digit (SLIN) identifier and the same 6-column row (ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT). Preserve the printed order top-to-bottom. INCLUDE: every numbered CLIN/SLIN of the primary contract even when its AMOUNT column prints 'NSP' (Not Separately Priced). INCLUDE: SUBCLINs / funding-only CLINs added by an SF-30 modification (e.g. SUBCLIN 000101 'Funding for CLIN 0001 / ACRN AB') in their printed order — these are part of the conformed primary contract's schedule. DEDUPLICATE: if the same CLIN appears multiple times across the primary contract's base + modifications (e.g. CLIN 0001 originally in the base + same CLIN 0001 referenced in a SUMMARY OF CHANGES block), emit it EXACTLY ONCE — use the LATEST printed values (the conformed state after all mods); do NOT emit a separate entry for each appearance. EXCLUDE: (a) rows from other tables that share similar column headers but are NOT Section B schedule rows, specifically the Shipment Information table, the Section F Delivery Information table (CLIN / DELIVERY DATE / QUANTITY / SHIP TO ADDRESS / DODAAC), the Section E Inspection And Acceptance Terms table (CLIN / INSPECT AT / INSPECT BY / ACCEPT AT / ACCEPT BY), any clause-list table (e.g. '52.246-2 Inspection Of Supplies'), the Section G 'Accounting and Appropriation Data' ACRN-allocation table, and the SF-30 'Description of Amendment' narrative outside the SUMMARY OF CHANGES / Section B blocks; (b) the entire CLIN schedule of any child task order or separate contract embedded later in the same PDF that uses a different contract number in box 2 — those are out of scope per DOC-SCOPE POLICY. STRICT: every emitted entry MUST have a non-empty item_no taken from a real 'ITEM NO' header — do NOT emit placeholder rows where item_no is null or empty, do NOT emit a row whose item_no is actually a contract number / a date / a section title ('TOTAL AMOUNT OF CONTRACT' is NOT an item_no), and do NOT emit a separate item for the 'NET AMT' subtotal line or the 'ACRN <code>' allocation line that follows a CLIN. If the document contains ONLY a SF1449 face page with 'SEE SCHEDULE' but no Section B schedule is included in the file, return an empty array `[]`."}}, "required": ["contract_number", "effective_date", "total_amount", "clin_line_items"], "additionalProperties": false}, "expected_output": {"contract_number": "W911QY20D0017", "effective_date": "11-May-2020", "total_amount": "(b) (6)", "clin_line_items": [{"item_no": "0001", "supplies_services": "SARS-CoV-2 LFI Kit", "quantity": null, "unit": "Each", "unit_price": null, "amount": "$48,870,000.00", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": "$48,870,000.00"}, {"item_no": "0002", "supplies_services": "Shipping", "quantity": "100,000", "unit": "Job", "unit_price": null, "amount": "$0.00 NTE", "contract_type": "COST", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0003", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0004", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0005", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0006", "supplies_services": "CDRL", "quantity": "12", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0007", "supplies_services": "CDRL", "quantity": "5", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0008", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0009", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0010", "supplies_services": "CDRL", "quantity": "2", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0011", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, {"item_no": "0012", "supplies_services": "Regulatory EUA", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "$6,769.46", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": "$6,769.46"}, {"item_no": "0013", "supplies_services": "First Article Testing Lot", "quantity": null, "unit": "Each", "unit_price": null, "amount": "$487,939.15", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": "$487,939.15"}]}, "_field_rules": {"contract_number": {"comparator": "case_insensitive", "evidence": [{"page": 1, "bbox": [0.06353, 0.11962, 0.07135, 0.00788], "quote": "W911QY20D0017", "value": "W911QY20D0017", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.05882, 0.09682, 0.18627, 0.03939], "quote": "W911QY20D0017", "value": "W911QY20D0017", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "effective_date": {"comparator": "date", "evidence": [{"page": 1, "bbox": [0.84981, 0.91537, 0.06383, 0.00886], "quote": "11-May-2020", "value": "11-May-2020", "coarse": false, "layer": "word"}, {"page": 1, "bbox": [0.82412, 0.89743, 0.13118, 0.03652], "quote": "11-May-2020", "value": "11-May-2020", "coarse": false, "layer": "structural"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "total_amount": {"comparator": "case_insensitive", "evidence": [{"page": 39, "bbox": [0.72052, 0.2078, 0.03805, 0.01259], "quote": "(b) (6)", "value": "(b) (6)", "coarse": false, "layer": "word"}, {"page": 39, "bbox": [0.72211, 0.20864, 0.10047, 0.01067], "quote": "(b) (6)", "value": "(b) (6)", "coarse": false, "layer": "structural"}, {"page": null, "bbox": null, "quote": "$49,364,708.61", "value": "$49,364,708.61", "coarse": true, "_verifier_classification": "gold_unknowable"}], "source_policy": "verbatim", "evidence_required": true, "verified": true}, "clin_line_items": {"comparator": {"item_no": "case_insensitive", "supplies_services": "case_insensitive", "quantity": "case_insensitive", "unit": "case_insensitive", "unit_price": "case_insensitive", "amount": "case_insensitive", "contract_type": "case_insensitive", "purchase_request_number": "case_insensitive", "psc_code": "case_insensitive", "acrn": "case_insensitive", "cin": "case_insensitive", "net_amount": "case_insensitive"}, "evidence": [{"page": 1, "bbox": null, "quote": "0001", "value": {"item_no": "0001", "supplies_services": "SARS-CoV-2 LFI Kit", "quantity": null, "unit": "Each", "unit_price": null, "amount": "$48,870,000.00", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": "$48,870,000.00"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0002", "value": {"item_no": "0002", "supplies_services": "Shipping", "quantity": "100,000", "unit": "Job", "unit_price": null, "amount": "$0.00 NTE", "contract_type": "COST", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0003", "value": {"item_no": "0003", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0004", "value": {"item_no": "0004", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0005", "value": {"item_no": "0005", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0006", "value": {"item_no": "0006", "supplies_services": "CDRL", "quantity": "12", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0007", "value": {"item_no": "0007", "supplies_services": "CDRL", "quantity": "5", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0008", "value": {"item_no": "0008", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0009", "value": {"item_no": "0009", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0010", "value": {"item_no": "0010", "supplies_services": "CDRL", "quantity": "2", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0012", "value": {"item_no": "0012", "supplies_services": "Regulatory EUA", "quantity": null, "unit": "Each", "unit_price": null, "amount": "$6,769.46", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": "$6,769.46"}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0011", "value": {"item_no": "0011", "supplies_services": "CDRL", "quantity": "1", "unit": "Each", "unit_price": null, "amount": "NSP", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": null}, "coarse": true}, {"page": 1, "bbox": null, "quote": "0013", "value": {"item_no": "0013", "supplies_services": "First Article Testing Lot", "quantity": null, "unit": "Each", "unit_price": null, "amount": "$487,939.15", "contract_type": "FFP", "purchase_request_number": null, "psc_code": "6550", "acrn": null, "cin": null, "net_amount": "$487,939.15"}, "coarse": true}], "source_policy": "verbatim", "evidence_required": true, "verified": true, "structural": "match_by:item_no"}, "clin_line_items[0].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": null, "quote": null, "value": "0001", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.17353, 0.20152, 0.14413, 0.00997], "quote": "SARS-CoV-2 LFI Kit", "value": "SARS-CoV-2 LFI Kit", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.36739, 0.18743, 0.03805, 0.01266], "quote": "(b) (4)", "value": "(b) (4)", "coarse": false, "layer": "word"}, {"page": 2, "bbox": [0.369, 0.18833, 0.06378, 0.01067], "quote": "(b) (4)", "value": "(b) (4)", "coarse": false, "layer": "structural"}, {"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].unit": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.49196, 0.18697, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.61778, 0.18743, 0.03805, 0.01266], "quote": "(b) (4)", "value": "(b) (4)", "coarse": false, "layer": "word"}, {"page": 2, "bbox": [0.61938, 0.18833, 0.0434, 0.01067], "quote": "(b) (4)", "value": "(b) (4)", "coarse": false, "layer": "structural"}, {"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].amount": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.83883, 0.18654, 0.10225, 0.01258], "quote": "$48,870,000.00", "value": "$48,870,000.00", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.17353, 0.2165, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.23784, 0.33212, 0.03284, 0.00997], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[0].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.83902, 0.40533, 0.10225, 0.01258], "quote": "$48,870,000.00", "value": "$48,870,000.00", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": null, "quote": null, "value": "0002", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.17353, 0.5476, 0.05892, 0.01258], "quote": "Shipping", "value": "Shipping", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.37765, 0.53305, 0.05324, 0.01258], "quote": "100,000", "value": "100,000", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].unit": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.49451, 0.53349, 0.02284, 0.00997], "quote": "Job", "value": "Job", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].amount": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.86843, 0.53305, 0.07269, 0.01127], "quote": "$0.00 NTE", "value": "$0.00 NTE", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.17353, 0.56243, 0.04151, 0.00997], "quote": "COST", "value": "COST", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 2, "bbox": [0.23784, 0.67821, 0.03284, 0.01033], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[1].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": null, "quote": null, "value": "0003", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.17353, 0.1347, 0.04347, 0.00997], "quote": "CDRL", "value": "CDRL", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.39881, 0.12059, 0.00581, 0.00954], "quote": "1", "value": "1", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.49196, 0.12015, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].amount": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.91118, 0.12015, 0.02983, 0.00997], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.17353, 0.14968, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.23784, 0.20684, 0.03284, 0.01033], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[2].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": null, "quote": null, "value": "0004", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.17353, 0.42275, 0.04347, 0.01033], "quote": "CDRL", "value": "CDRL", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.39881, 0.40865, 0.00581, 0.00988], "quote": "1", "value": "1", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].unit": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.49196, 0.40821, 0.03265, 0.01033], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].amount": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.91118, 0.40821, 0.02983, 0.01033], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.17353, 0.43801, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 3, "bbox": [0.23784, 0.49576, 0.03284, 0.00997], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[3].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": null, "quote": null, "value": "0005", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.17353, 0.1347, 0.04347, 0.00997], "quote": "CDRL", "value": "CDRL", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.39881, 0.12059, 0.00581, 0.00954], "quote": "1", "value": "1", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.49196, 0.12015, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].amount": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.91118, 0.12015, 0.02983, 0.00997], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.17353, 0.14968, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.23784, 0.20684, 0.03284, 0.01033], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[4].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": null, "quote": null, "value": "0006", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.17353, 0.45212, 0.04347, 0.00997], "quote": "CDRL", "value": "CDRL", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.3947, 0.43758, 0.0152, 0.00997], "quote": "12", "value": "12", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].unit": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.49196, 0.43758, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].amount": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.91118, 0.43758, 0.02983, 0.00997], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.17353, 0.4671, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 4, "bbox": [0.23784, 0.5247, 0.03284, 0.00997], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[5].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": null, "quote": null, "value": "0007", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.17353, 0.1347, 0.04347, 0.00997], "quote": "CDRL", "value": "CDRL", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.39765, 0.12015, 0.00814, 0.00997], "quote": "5", "value": "5", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].unit": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.49196, 0.12015, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].amount": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.91118, 0.12015, 0.02983, 0.00997], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.17353, 0.14968, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.23784, 0.26531, 0.03284, 0.00997], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[6].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": null, "quote": null, "value": "0008", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.17353, 0.48121, 0.04347, 0.00997], "quote": "CDRL", "value": "CDRL", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.39881, 0.4671, 0.00581, 0.00954], "quote": "1", "value": "1", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].unit": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.49196, 0.46667, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].amount": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.91118, 0.46667, 0.02983, 0.00997], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.17353, 0.49619, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 5, "bbox": [0.23784, 0.58288, 0.03284, 0.00997], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[7].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": null, "quote": null, "value": "0009", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.17353, 0.1347, 0.04347, 0.00997], "quote": "CDRL", "value": "CDRL", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.39881, 0.12059, 0.00581, 0.00954], "quote": "1", "value": "1", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].unit": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.49196, 0.12015, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].amount": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.91118, 0.12015, 0.02983, 0.00997], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.17353, 0.14968, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.23784, 0.23593, 0.03284, 0.01033], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[8].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": null, "quote": null, "value": "0010", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.17353, 0.45212, 0.04347, 0.00997], "quote": "CDRL", "value": "CDRL", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.39765, 0.43758, 0.00814, 0.00997], "quote": "2", "value": "2", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].unit": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.49196, 0.43758, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].amount": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.91118, 0.43758, 0.02983, 0.00997], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.17353, 0.4671, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 6, "bbox": [0.23784, 0.55379, 0.03284, 0.00997], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[9].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 7, "bbox": null, "quote": "0011 1 Each NSP", "value": "0011", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 7, "bbox": [0.17353, 0.1347, 0.04347, 0.00997], "quote": "CDRL", "value": "CDRL", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 7, "bbox": [0.39881, 0.12059, 0.00581, 0.00954], "quote": "1", "value": "1", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].unit": {"comparator": "case_insensitive", "evidence": [{"page": 7, "bbox": [0.49196, 0.12015, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].amount": {"comparator": "case_insensitive", "evidence": [{"page": 7, "bbox": [0.91118, 0.12015, 0.02983, 0.00997], "quote": "NSP", "value": "NSP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 7, "bbox": [0.17353, 0.14968, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 7, "bbox": [0.23784, 0.23593, 0.03284, 0.01033], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[10].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": 7, "bbox": null, "quote": "Unsupported preserved evidence alias: CLIN0011 on page7 has blank NET AMT and amount NSP; $6,769.46 belongs to CLIN0012 on page33, not CLIN0011.", "value": "$6,769.46", "coarse": true}, {"page": 7, "bbox": null, "quote": "Unsupported preserved evidence alias: CLIN0011 on page7 has blank NET AMT and amount NSP; $6,769.46 belongs to CLIN0012 on page33, not CLIN0011.", "value": "$6,769.46", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 33, "bbox": null, "quote": "CLIN 0012 is added as follows", "value": "0012", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 33, "bbox": [0.17353, 0.46533, 0.11018, 0.01258], "quote": "Regulatory EUA", "value": "Regulatory EUA", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].quantity": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": "1", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].unit": {"comparator": "case_insensitive", "evidence": [{"page": 33, "bbox": [0.49196, 0.45121, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].amount": {"comparator": "case_insensitive", "evidence": [{"page": 33, "bbox": [0.87569, 0.45078, 0.06539, 0.01258], "quote": "$6,769.46", "value": "$6,769.46", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 33, "bbox": [0.17353, 0.48074, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 33, "bbox": [0.23784, 0.55288, 0.03284, 0.00997], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[11].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": 33, "bbox": [0.87588, 0.62593, 0.06539, 0.01258], "quote": "$6,769.46", "value": "$6,769.46", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].item_no": {"comparator": "case_insensitive", "evidence": [{"page": 34, "bbox": null, "quote": null, "value": "0013", "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].supplies_services": {"comparator": "case_insensitive", "evidence": [{"page": 34, "bbox": [0.17353, 0.13427, 0.15923, 0.01258], "quote": "First Article Testing Lot", "value": "First Article Testing Lot", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].quantity": {"comparator": "case_insensitive", "evidence": [{"page": 34, "bbox": null, "quote": null, "value": "(b) (4)", "coarse": true}, {"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].unit": {"comparator": "case_insensitive", "evidence": [{"page": 34, "bbox": [0.49196, 0.12015, 0.03265, 0.00997], "quote": "Each", "value": "Each", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].unit_price": {"comparator": "case_insensitive", "evidence": [{"page": 34, "bbox": [0.60347, 0.12061, 0.03805, 0.01266], "quote": "(b) (4)", "value": "(b) (4)", "coarse": false, "layer": "word"}, {"page": 34, "bbox": [0.60506, 0.12152, 0.07203, 0.01067], "quote": "(b) (4)", "value": "(b) (4)", "coarse": false, "layer": "structural"}, {"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].amount": {"comparator": "case_insensitive", "evidence": [{"page": 34, "bbox": [0.85922, 0.11972, 0.08186, 0.01258], "quote": "$487,939.15", "value": "$487,939.15", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].contract_type": {"comparator": "case_insensitive", "evidence": [{"page": 34, "bbox": [0.17353, 0.14968, 0.02709, 0.00954], "quote": "FFP", "value": "FFP", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].purchase_request_number": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].psc_code": {"comparator": "case_insensitive", "evidence": [{"page": 34, "bbox": [0.23784, 0.22139, 0.03284, 0.01033], "quote": "6550", "value": "6550", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].acrn": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].cin": {"comparator": "case_insensitive", "evidence": [{"page": null, "bbox": null, "quote": null, "value": null, "coarse": true}], "source_policy": "computed", "evidence_required": true, "verified": true}, "clin_line_items[12].net_amount": {"comparator": "case_insensitive", "evidence": [{"page": 34, "bbox": [0.85941, 0.29487, 0.08186, 0.01258], "quote": "$487,939.15", "value": "$487,939.15", "coarse": false, "layer": "word"}], "source_policy": "computed", "evidence_required": true, "verified": true}}, "_eval_row_identity": {"clin_line_items": {"identity_key": "item_no", "description": "Each entry is one row of the Section B 'Supplies or Services and Prices' (ITEM-NO) schedule. Identity is the verbatim CLIN/SLIN code in the leftmost 'ITEM NO' column ('0001', '0002', '000101'). The CLIN code is unique within the contract — do NOT use the supplies title (multiple CLINs can share titles like 'Face Covering'). Alignment uses item_no exactly as printed; preserve leading zeros."}}}
tasks/long--gov-clin-schedule-0005-7b780d39e0/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ python /tests/verifier.py
tasks/long--gov-clin-schedule-0005-7b780d39e0/tests/verifier.py ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Harbor's file boundary into the existing ExtractBench evaluator."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import json
7
+ from collections.abc import Mapping, Sequence
8
+ from datetime import UTC, datetime
9
+ from pathlib import Path
10
+ from typing import Any
11
+
12
+ from extract_bench.evaluation.evaluators.extract import ExtractEvaluator
13
+ from extract_bench.evaluation.metrics.extract.unified_evidence_metric import ValueCell
14
+ from extract_bench.evaluation.score_case import load_extract_test_case
15
+ from extract_bench.schemas.extract_output import ExtractOutput
16
+ from extract_bench.schemas.pipeline_io import InferenceRequest, InferenceResult
17
+ from extract_bench.schemas.product import ProductType
18
+
19
+
20
+ def _feedback(cells: Sequence[ValueCell], metadata: Mapping[str, Any]) -> dict[str, Any]:
21
+ expected = sum(cell.gt_path is not None for cell in cells)
22
+ predicted = sum(cell.pred_path is not None for cell in cells)
23
+ matched = sum(cell.value_correct for cell in cells)
24
+ if (expected, predicted, matched) != (
25
+ metadata["expected_cells"],
26
+ metadata["predicted_cells"],
27
+ metadata["v_correct"],
28
+ ):
29
+ raise ValueError("Value feedback does not account for the scorer's cell counts")
30
+ denominator = expected + predicted
31
+ entries = []
32
+ for cell in cells:
33
+ if cell.gt_path is None:
34
+ outcome = "prediction_only"
35
+ elif cell.pred_path is None:
36
+ outcome = "reference_only"
37
+ else:
38
+ outcome = "matched" if cell.value_correct else "value_differs"
39
+ entries.append(
40
+ {
41
+ "reference_path": cell.gt_path,
42
+ "output_path": cell.pred_path,
43
+ "outcome": outcome,
44
+ "f1_credit": 2.0 / denominator if cell.value_correct else 0.0,
45
+ }
46
+ )
47
+ return {
48
+ "schema_version": 1,
49
+ "status": "scored",
50
+ "path_space": "normalized_scoring_inputs",
51
+ "counts": {"expected": expected, "predicted": predicted, "matched": matched},
52
+ "value_incomplete": metadata["value_incomplete"],
53
+ "cells": entries,
54
+ }
55
+
56
+
57
+ def score_prediction(test_json: Path, prediction: Any) -> tuple[dict[str, float], dict[str, Any]]:
58
+ """Use exactly the normal evaluator's normalization and metric selection."""
59
+ case = load_extract_test_case(test_json, source_file=Path("/app/document.pdf"))
60
+ now = datetime.now(UTC)
61
+ result = InferenceResult(
62
+ request=InferenceRequest(
63
+ example_id=case.test_id,
64
+ source_file_path=str(case.file_path),
65
+ product_type=ProductType.EXTRACT,
66
+ ),
67
+ pipeline_name="harbor",
68
+ product_type=ProductType.EXTRACT,
69
+ raw_output={},
70
+ output=ExtractOutput(
71
+ example_id=case.test_id,
72
+ pipeline_name="harbor",
73
+ extracted_data=prediction,
74
+ field_citations=[],
75
+ ),
76
+ started_at=now,
77
+ completed_at=now,
78
+ latency_in_ms=0,
79
+ )
80
+ cells: list[ValueCell] = []
81
+ bundle = ExtractEvaluator().compute_metrics(result, case, value_cells=cells)
82
+ metrics = {
83
+ metric.metric_name: metric.value
84
+ for metric in bundle.metrics
85
+ if metric.metric_name.startswith("extract_unified_value_")
86
+ }
87
+ value_f1 = next(metric for metric in bundle.metrics if metric.metric_name == "extract_unified_value_f1")
88
+ return metrics, _feedback(cells, value_f1.metadata)
89
+
90
+
91
+ def verify(test_json: Path, prediction_path: Path, log_dir: Path) -> dict[str, Any]:
92
+ """Bad/missing submissions earn zero; broken grading raises an error.
93
+
94
+ Only submission decoding is caught. A missing reference, loader error or
95
+ scorer failure must fail the verifier instead of becoming a model score.
96
+ """
97
+ log_dir.mkdir(parents=True, exist_ok=True)
98
+ reward_path = log_dir / "reward.txt"
99
+ for name in ("reward.txt", "metrics.json", "feedback.json"):
100
+ (log_dir / name).unlink(missing_ok=True)
101
+ try:
102
+ prediction = json.loads(prediction_path.read_text(encoding="utf-8"))
103
+ except (FileNotFoundError, UnicodeDecodeError, json.JSONDecodeError) as error:
104
+ report: dict[str, Any] = {"status": "invalid_submission", "error": str(error), "value_f1": 0.0}
105
+ else:
106
+ if not isinstance(prediction, dict):
107
+ report = {"status": "invalid_submission", "error": "Expected one JSON object", "value_f1": 0.0}
108
+ else:
109
+ metrics, feedback = score_prediction(test_json, prediction)
110
+ report = {
111
+ "status": "scored",
112
+ "value_f1": metrics["extract_unified_value_f1"],
113
+ "metrics": metrics,
114
+ }
115
+ if report["status"] == "invalid_submission":
116
+ feedback = {"schema_version": 1, "status": "invalid_submission", "error": report["error"], "cells": []}
117
+ report["perfect"] = int(report["value_f1"] == 1.0)
118
+ (log_dir / "metrics.json").write_text(json.dumps(report, indent=2, allow_nan=False) + "\n", encoding="utf-8")
119
+ (log_dir / "feedback.json").write_text(json.dumps(feedback, indent=2, allow_nan=False) + "\n", encoding="utf-8")
120
+ reward_path.write_text(f"{report['value_f1']}\n", encoding="utf-8")
121
+ return report
122
+
123
+
124
+ def main() -> None:
125
+ parser = argparse.ArgumentParser(description=__doc__)
126
+ parser.add_argument("--test-json", type=Path, default=Path("/tests/reference.test.json"))
127
+ parser.add_argument("--prediction", type=Path, default=Path("/app/output.json"))
128
+ parser.add_argument("--log-dir", type=Path, default=Path("/logs/verifier"))
129
+ args = parser.parse_args()
130
+ verify(args.test_json, args.prediction, args.log_dir)
131
+
132
+
133
+ if __name__ == "__main__":
134
+ main()
tasks/long--gov-clin-schedule-0031-3e9a48dca4/environment/Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim-bookworm
2
+ RUN apt-get update && apt-get install -y --no-install-recommends \
3
+ poppler-utils tesseract-ocr curl git nodejs npm \
4
+ && rm -rf /var/lib/apt/lists/*
5
+ RUN pip install --no-cache-dir pymupdf==1.26.6 pypdf==6.4.0 pillow==12.0.0
6
+ WORKDIR /app
7
+ COPY document.pdf schema.json /app/
tasks/long--gov-clin-schedule-0031-3e9a48dca4/environment/document.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80c12ae1c911f821c90ce459081fd3d51305e89c77bc124e45e701869eab81f3
3
+ size 3165253
tasks/long--gov-clin-schedule-0031-3e9a48dca4/environment/schema.json ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$defs": {
3
+ "ClinLineItem": {
4
+ "type": "object",
5
+ "title": "ClinLineItem",
6
+ "description": "One row of the Section B 'Supplies or Services and Prices' (a.k.a. ITEM-NO) schedule. One row == one CLIN/SLIN block introduced by an 'ITEM NO' header that gives the CLIN number plus the six tabular fields ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT. CLIN blocks include short narrative lines beneath (FFP, FOB, PURCHASE REQUEST NUMBER, PSC CD, ACRN, CIN) — those lines belong to the same CLIN, do NOT create a new line item for them.",
7
+ "properties": {
8
+ "item_no": {
9
+ "type": "string",
10
+ "description": "The CLIN or SLIN identifier from the leftmost 'ITEM NO' column of the Section B schedule, verbatim. Format: a 4-digit CLIN like '0001' or '0002', or a 6-digit SLIN like '000101', '000102'. May appear under labels 'ITEM NO', 'ITEM NO.', '19. ITEM NO.', '15A. ITEM NO.', or 'CLIN'. Always preserve leading zeros (e.g. '0001', NOT '1'). Do NOT confuse with: (a) the contract number from box 2 (W911QY20...), (b) the requisition / purchase request number, (c) ACRN codes ('AA', 'AB'), (d) DODAAC codes, (e) PSC CDs, (f) the CIN code (GFEBS...), or (g) row numbers in any other table (shipment information, delivery information, inspection list)."
11
+ },
12
+ "supplies_services": {
13
+ "anyOf": [
14
+ {
15
+ "type": "string"
16
+ },
17
+ {
18
+ "type": "null"
19
+ }
20
+ ],
21
+ "description": "The short product/service title from the 'SUPPLIES/SERVICES' column for this CLIN, verbatim from the first line under that column (e.g. 'Sample Collection Kits', 'Face Covering - ReadyOne', 'CDRL A001: Manufacturability Report'). For funding-only SUBCLINs added by an SF-30 modification, this line typically reads 'Funding for CLIN <parent_clin> / ACRN <code>' (e.g. 'Funding for CLIN 0001 / ACRN AB') — capture that exact title. May appear under labels 'SUPPLIES/SERVICES', 'SCHEDULE OF SUPPLIES/SERVICES', '15B. SUPPLIES/SERVICES', or '20. SCHEDULE OF SUPPLIES/SERVICES'. Use the literal title line only — do NOT concatenate the longer paragraph description, do NOT include 'FFP'/'FFP-LOE' contract-type tags that appear on the next line, do NOT include the FOB / PURCHASE REQUEST NUMBER / PSC CD lines, and do NOT include any ACRN/CIN block. Null only if the cell is genuinely empty (no title line printed). Do NOT confuse with the high-level contract title from Section C (e.g. 'COVID-19 Face Protection')."
22
+ },
23
+ "quantity": {
24
+ "anyOf": [
25
+ {
26
+ "type": "string"
27
+ },
28
+ {
29
+ "type": "null"
30
+ }
31
+ ],
32
+ "description": "The unit count from the 'QUANTITY' column for this CLIN, verbatim including any thousands separator the document uses. Format: numeric string ('4000', '1,482.25'), or 'N/A' if printed N/A. REDACTION POLICY: many DoD contracts overprint a FOIA exemption marker (most commonly '(b) (4)' for trade-secret pricing data; sometimes '(b)(4)', '(b) (3)', '(b)(6)') on top of a black box in this cell. When such an exemption marker is visible above/inside the black box, return the marker text VERBATIM as printed (e.g. '(b) (4)'). Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker). A black redaction box without any visible marker is also null. NEVER emit image-markdown placeholders (e.g. '![redacted](page_4_image_1.jpg)'); those are pipeline artifacts, not values — use null or the verbatim marker text instead. Do NOT confuse a redaction marker with the digit zero. May appear under labels 'QUANTITY', '15C. QUANTITY', '21. QUANTITY'. Do NOT confuse with: (a) box/kit counts in the separate Shipment Information table, (b) per-delivery quantities in the Section F Delivery Information table, (c) the total contract amount."
33
+ },
34
+ "unit": {
35
+ "anyOf": [
36
+ {
37
+ "type": "string"
38
+ },
39
+ {
40
+ "type": "null"
41
+ }
42
+ ],
43
+ "description": "The unit-of-measure from the 'UNIT' column for this CLIN, verbatim (e.g. 'Each', 'EA', 'LO', 'Lot'). May appear under labels 'UNIT', '15D. UNIT', '22. UNIT'. Case-preserve as printed. Null if the cell is blank or 'N/A' is printed. Do NOT confuse with the UNIT PRICE column, the contract type tag ('FFP'), the AMOUNT column, or DODAAC."
44
+ },
45
+ "unit_price": {
46
+ "anyOf": [
47
+ {
48
+ "type": "string"
49
+ },
50
+ {
51
+ "type": "null"
52
+ }
53
+ ],
54
+ "description": "The per-unit price from the 'UNIT PRICE' column for this CLIN, verbatim from the form as printed (e.g. '$37.05625', '2.90'). Preserve the currency sign and decimal places exactly as printed; do NOT round, do NOT add a '$' that is not printed. May appear under labels 'UNIT PRICE', '15E. UNIT PRICE', '23. UNIT PRICE'. REDACTION POLICY: same as quantity — when a FOIA exemption marker ('(b) (4)', '(b)(4)', etc.) is overprinted on a black box in this cell, return the marker text VERBATIM. Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker) or when 'N/A' is printed. NEVER emit image-markdown placeholders (e.g. '![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT carry over the AMOUNT-column value into unit_price; if UNIT PRICE is redacted but AMOUNT is printed, unit_price still gets the redaction marker (or null), NOT the amount. Do NOT confuse with the AMOUNT column (= quantity x unit_price), the contract NET AMT, or the total contract value box."
55
+ },
56
+ "amount": {
57
+ "anyOf": [
58
+ {
59
+ "type": "string"
60
+ },
61
+ {
62
+ "type": "null"
63
+ }
64
+ ],
65
+ "description": "The extended price from the 'AMOUNT' column for this CLIN, verbatim including dollar sign and exactly the printed cents (e.g. '$148,225.00', '$11,600.00', '$0.00'). Take ONLY the value that is printed on the same horizontal row as the 'ITEM NO' line, in the rightmost 'AMOUNT' column — even when that value is '$0.00' (funding-only SUBCLINs commonly print AMOUNT=$0.00 while the dollar amount appears on a separate 'ACRN <code>' allocation line below). May appear under labels 'AMOUNT', '15F. AMOUNT', '24. AMOUNT'. Use the literal value 'NSP' if 'NSP' (Not Separately Priced) is printed instead of a dollar amount; do NOT translate NSP to 0 or null. REDACTION POLICY: same as quantity/unit_price — if a FOIA exemption marker is overprinted on the AMOUNT cell, return the marker verbatim. Null only if the cell is blank with no marker. NEVER emit image-markdown placeholders ('![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT confuse with: (a) the per-CLIN 'NET AMT' subtotal printed below the horizontal rule (use `net_amount` for that), (b) the dollar value printed on the 'ACRN <code>' allocation line directly under NET AMT (that is per-ACRN funding, NOT this column), (c) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (d) any modification/amendment delta amount."
66
+ },
67
+ "contract_type": {
68
+ "anyOf": [
69
+ {
70
+ "type": "string"
71
+ },
72
+ {
73
+ "type": "null"
74
+ }
75
+ ],
76
+ "description": "The contract-type tag printed on its own line directly beneath the 'SUPPLIES/SERVICES' title (e.g. 'FFP' = Firm-Fixed Price, 'FFP-LOE', 'CPFF', 'T&M'). Verbatim as printed. Null if no such tag appears on the CLIN. Do NOT confuse with the product description that follows, with section names ('Section B', 'Section C'), or with the contract number."
77
+ },
78
+ "purchase_request_number": {
79
+ "anyOf": [
80
+ {
81
+ "type": "string"
82
+ },
83
+ {
84
+ "type": "null"
85
+ }
86
+ ],
87
+ "description": "The 'PURCHASE REQUEST NUMBER:' value printed inside the CLIN block, verbatim digits, no spaces (e.g. '0011509217', '0011487274'). May appear as 'PURCHASE REQUEST NUMBER', 'PR NUMBER', 'PR NO'. Null if not printed inside this CLIN block. Do NOT confuse with: (a) the box 1 'REQUISITION NUMBER' on the SF1449 form face (may equal or differ), (b) the contract number, (c) the CIN code, (d) ACRN code."
88
+ },
89
+ "psc_code": {
90
+ "anyOf": [
91
+ {
92
+ "type": "string"
93
+ },
94
+ {
95
+ "type": "null"
96
+ }
97
+ ],
98
+ "description": "The 'PSC CD:' (Product Service Code) printed inside the CLIN block, verbatim 4-digit code (e.g. '6550', '8415'). May appear as 'PSC CD', 'PSC CODE', 'PRODUCT SERVICE CODE'. Null if absent on the CLIN. Do NOT confuse with: NAICS code (box 9 of SF1449 face — typically 6 digits), DODAAC codes ('W56XNH', 'W912H7'), the CLIN/SLIN itself."
99
+ },
100
+ "acrn": {
101
+ "anyOf": [
102
+ {
103
+ "type": "string"
104
+ },
105
+ {
106
+ "type": "null"
107
+ }
108
+ ],
109
+ "description": "The Accounting Classification Reference Number printed at the bottom of the CLIN block as 'ACRN <code>' (e.g. 'AA', 'AB'). Two letters, uppercase, verbatim. If multiple ACRN lines appear on a single CLIN (split funding), use the FIRST printed ACRN here; the schema currently captures only ONE ACRN per row; additional ACRN lines on the same CLIN are not separately represented in this schema version (future-doc risk for split-funded CLINs). Null if no ACRN line is printed for the CLIN. Do NOT confuse with: NAICS code, PSC code, CIN code (GFEBS...), or DODAAC."
110
+ },
111
+ "cin": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ],
120
+ "description": "The CIN (Contract Identification Number) printed under the ACRN line as 'CIN: GFEBS...' or 'CIN: <digits>'. Verbatim, preserve case and digits exactly as printed. Null if absent. Do NOT confuse with the contract number, requisition number, PURCHASE REQUEST NUMBER, ACRN, PSC CD, NAICS code."
121
+ },
122
+ "net_amount": {
123
+ "anyOf": [
124
+ {
125
+ "type": "string"
126
+ },
127
+ {
128
+ "type": "null"
129
+ }
130
+ ],
131
+ "description": "The 'NET AMT' subtotal printed under the AMOUNT column for this CLIN (after the horizontal rule), verbatim with dollar sign and cents (e.g. '$148,225.00'). For single-funding CLINs this equals `amount`; for split-funded CLINs the NET AMT is the sum across ACRN allocations and may differ from `amount`. Null if no 'NET AMT' line is printed for this CLIN (e.g. 'NSP' / data-only line items). Do NOT confuse with: (a) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (b) the AMOUNT column value, (c) an individual ACRN allocation amount."
132
+ }
133
+ },
134
+ "required": [
135
+ "item_no",
136
+ "supplies_services",
137
+ "quantity",
138
+ "unit",
139
+ "unit_price",
140
+ "amount",
141
+ "contract_type",
142
+ "purchase_request_number",
143
+ "psc_code",
144
+ "acrn",
145
+ "cin",
146
+ "net_amount"
147
+ ],
148
+ "additionalProperties": false
149
+ }
150
+ },
151
+ "title": "DoDClinSchedule",
152
+ "type": "object",
153
+ "description": "Extraction of the DoD post-award contract or amendment ITEM-NO schedule from Part I Section B 'Supplies or Services and Prices'. Top-level fields capture the contract identifiers and totals from the SF-1449 / SF-26 / SF-30 form face; the long-doc list `clin_line_items` captures every CLIN/SLIN row in the Section B schedule. DOC-SCOPE POLICY: a single PDF in this corpus represents ONE primary award (the contract whose number is printed in box 2 of the first SF-1449 / SF-26 / SF-30 page). Even when the file is 'conformed' — i.e. the base contract page is followed by SF-30 modifications (P00001, P00002, …) that amend the same base contract — treat the whole stack as ONE contract: the primary contract's number, primary effective date, latest total, and the full conformed schedule (base CLINs + any SUBCLINs / additional CLINs added by mods). If the PDF additionally contains a DIFFERENT contract or task order (a separate SF-1449 / SF-26 / DD-1155 face with a DIFFERENT contract number in box 2, e.g. a child delivery order issued against an IDIQ), DO NOT mix its CLINs into `clin_line_items`. Extract ONLY the schedule of the primary (first / outermost) contract.",
154
+ "properties": {
155
+ "contract_number": {
156
+ "anyOf": [
157
+ {
158
+ "type": "string"
159
+ },
160
+ {
161
+ "type": "null"
162
+ }
163
+ ],
164
+ "description": "The PRIMARY contract's award number from the FIRST form face in the PDF, verbatim (e.g. 'W911QY20P0195', 'W911QY20C0047', 'W911QY20C0124'). On SF-1449 it sits in box 2 'CONTRACT NO.'; on SF-26 in box 2 'CONTRACT (Proc. Inst. Ident.) NO.'; on SF-30 amendments it appears as 'CONTRACT/ORDER NO.' (10A). Format: alphanumeric, typically beginning 'W' for Army (W911..., W912...) — preserve the case as printed and do NOT add spaces or dashes. Return EXACTLY ONE value — the number from the first/outermost award page in the PDF (NOT a comma-joined or semicolon-joined list of multiple contract numbers found later in the file). If a conformed file contains modifications referencing this same number, that's still one contract — return the base number once. If the file contains a separate child task order with a different number, IGNORE that number — it is NOT this field. Do NOT confuse with: (a) the amendment/modification number on SF-30 (box 2 'AMENDMENT/MODIFICATION NO.', e.g. 'P00001'), (b) the requisition number (box 1 on SF-1449), (c) the order number (box 4 on SF-1449), (d) the solicitation number (box 5 on SF-1449), (e) the purchase request number printed inside the CLIN blocks."
165
+ },
166
+ "effective_date": {
167
+ "anyOf": [
168
+ {
169
+ "type": "string"
170
+ },
171
+ {
172
+ "type": "null"
173
+ }
174
+ ],
175
+ "description": "The effective date of the PRIMARY contract award (NOT the latest amendment) from the FIRST form face in the PDF, verbatim as printed (e.g. '12-Jun-2020', '17 APR 2020', '04/17/2020', '24-Sep-2020'). On SF-1449 it sits in box 3 'AWARD/EFFECTIVE DATE'; on SF-26 in box 3 'EFFECTIVE DATE'. If the first page is itself an SF-30 amendment (no separate base SF-1449/SF-26 in the file), use the SF-30 'EFFECTIVE DATE' (box 3). Return EXACTLY ONE date — the base award's effective date, NOT a semicolon-joined list of every amendment's effective date. Preserve the printed format including case of the month abbreviation. Null if the cell is blank or redacted. Do NOT confuse with: (a) the date signed by the contractor (box 19C / 30c), (b) the date signed by the contracting officer (box 20C / 31c / 16C), (c) the solicitation issue date (box 6 on SF-1449), (d) any per-CLIN delivery date in Section F, (e) the effective date of any subsequent modification."
176
+ },
177
+ "total_amount": {
178
+ "anyOf": [
179
+ {
180
+ "type": "string"
181
+ },
182
+ {
183
+ "type": "null"
184
+ }
185
+ ],
186
+ "description": "The LATEST cumulative contract-level total dollar value after all conformed modifications, verbatim including dollar sign and cents (e.g. '$148,225.00', '$23,200.00', '$6,754,911.00'). On SF-1449 it sits in box 26 'TOTAL AWARD AMOUNT (For Govt. Use Only)'; on SF-26 in '15G. TOTAL AMOUNT OF CONTRACT'. For a conformed file with subsequent SF-30 mods, use the FINAL post-modification total — typically printed in each SF-30's 'SUMMARY OF CHANGES' as 'The total cost of this contract was increased/decreased by $X from $A to $B' — use the last 'to $B' value in the document. Return EXACTLY ONE value (a single dollar amount), NOT a semicolon-joined list of intermediate totals from each amendment. If the form face is fully redacted with no cumulative total printed anywhere, return the verbatim redaction marker (e.g. '(b) (4)'). NEVER emit image-markdown placeholders. Null if no total is printed anywhere and the cell is blank. Do NOT confuse with: (a) any individual CLIN AMOUNT or NET AMT, (b) per-delivery quantities or amounts, (c) the modification delta amount (the 'increased by $X' / 'decreased by $X' number on SF-30)."
187
+ },
188
+ "clin_line_items": {
189
+ "anyOf": [
190
+ {
191
+ "type": "array",
192
+ "items": {
193
+ "$ref": "#/$defs/ClinLineItem"
194
+ }
195
+ },
196
+ {
197
+ "type": "null"
198
+ }
199
+ ],
200
+ "description": "Ordered list of every CLIN/SLIN row from the PRIMARY contract's Section B 'Supplies or Services and Prices' schedule. Scope is the primary contract only — see DOC-SCOPE POLICY in the top-level schema description. One entry per CLIN block where a fresh 'ITEM NO' header introduces a new 4-digit (CLIN) or 6-digit (SLIN) identifier and the same 6-column row (ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT). Preserve the printed order top-to-bottom. INCLUDE: every numbered CLIN/SLIN of the primary contract even when its AMOUNT column prints 'NSP' (Not Separately Priced). INCLUDE: SUBCLINs / funding-only CLINs added by an SF-30 modification (e.g. SUBCLIN 000101 'Funding for CLIN 0001 / ACRN AB') in their printed order — these are part of the conformed primary contract's schedule. DEDUPLICATE: if the same CLIN appears multiple times across the primary contract's base + modifications (e.g. CLIN 0001 originally in the base + same CLIN 0001 referenced in a SUMMARY OF CHANGES block), emit it EXACTLY ONCE — use the LATEST printed values (the conformed state after all mods); do NOT emit a separate entry for each appearance. EXCLUDE: (a) rows from other tables that share similar column headers but are NOT Section B schedule rows, specifically the Shipment Information table, the Section F Delivery Information table (CLIN / DELIVERY DATE / QUANTITY / SHIP TO ADDRESS / DODAAC), the Section E Inspection And Acceptance Terms table (CLIN / INSPECT AT / INSPECT BY / ACCEPT AT / ACCEPT BY), any clause-list table (e.g. '52.246-2 Inspection Of Supplies'), the Section G 'Accounting and Appropriation Data' ACRN-allocation table, and the SF-30 'Description of Amendment' narrative outside the SUMMARY OF CHANGES / Section B blocks; (b) the entire CLIN schedule of any child task order or separate contract embedded later in the same PDF that uses a different contract number in box 2 — those are out of scope per DOC-SCOPE POLICY. STRICT: every emitted entry MUST have a non-empty item_no taken from a real 'ITEM NO' header — do NOT emit placeholder rows where item_no is null or empty, do NOT emit a row whose item_no is actually a contract number / a date / a section title ('TOTAL AMOUNT OF CONTRACT' is NOT an item_no), and do NOT emit a separate item for the 'NET AMT' subtotal line or the 'ACRN <code>' allocation line that follows a CLIN. If the document contains ONLY a SF1449 face page with 'SEE SCHEDULE' but no Section B schedule is included in the file, return an empty array `[]`."
201
+ }
202
+ },
203
+ "required": [
204
+ "contract_number",
205
+ "effective_date",
206
+ "total_amount",
207
+ "clin_line_items"
208
+ ],
209
+ "additionalProperties": false
210
+ }
tasks/long--gov-clin-schedule-0031-3e9a48dca4/instruction.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Extract structured data from the document file `./document.pdf` in the current directory.
2
+
3
+ Use only local file inspection and shell commands. Do not use web search, network calls, browser tools, or external services. Temporary scratch files inside the current directory are OK.
4
+
5
+ Return a single JSON object conforming to this schema as your final answer:
6
+
7
+ {"$defs": {"ClinLineItem": {"type": "object", "title": "ClinLineItem", "description": "One row of the Section B 'Supplies or Services and Prices' (a.k.a. ITEM-NO) schedule. One row == one CLIN/SLIN block introduced by an 'ITEM NO' header that gives the CLIN number plus the six tabular fields ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT. CLIN blocks include short narrative lines beneath (FFP, FOB, PURCHASE REQUEST NUMBER, PSC CD, ACRN, CIN) — those lines belong to the same CLIN, do NOT create a new line item for them.", "properties": {"item_no": {"type": "string", "description": "The CLIN or SLIN identifier from the leftmost 'ITEM NO' column of the Section B schedule, verbatim. Format: a 4-digit CLIN like '0001' or '0002', or a 6-digit SLIN like '000101', '000102'. May appear under labels 'ITEM NO', 'ITEM NO.', '19. ITEM NO.', '15A. ITEM NO.', or 'CLIN'. Always preserve leading zeros (e.g. '0001', NOT '1'). Do NOT confuse with: (a) the contract number from box 2 (W911QY20...), (b) the requisition / purchase request number, (c) ACRN codes ('AA', 'AB'), (d) DODAAC codes, (e) PSC CDs, (f) the CIN code (GFEBS...), or (g) row numbers in any other table (shipment information, delivery information, inspection list)."}, "supplies_services": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The short product/service title from the 'SUPPLIES/SERVICES' column for this CLIN, verbatim from the first line under that column (e.g. 'Sample Collection Kits', 'Face Covering - ReadyOne', 'CDRL A001: Manufacturability Report'). For funding-only SUBCLINs added by an SF-30 modification, this line typically reads 'Funding for CLIN <parent_clin> / ACRN <code>' (e.g. 'Funding for CLIN 0001 / ACRN AB') — capture that exact title. May appear under labels 'SUPPLIES/SERVICES', 'SCHEDULE OF SUPPLIES/SERVICES', '15B. SUPPLIES/SERVICES', or '20. SCHEDULE OF SUPPLIES/SERVICES'. Use the literal title line only — do NOT concatenate the longer paragraph description, do NOT include 'FFP'/'FFP-LOE' contract-type tags that appear on the next line, do NOT include the FOB / PURCHASE REQUEST NUMBER / PSC CD lines, and do NOT include any ACRN/CIN block. Null only if the cell is genuinely empty (no title line printed). Do NOT confuse with the high-level contract title from Section C (e.g. 'COVID-19 Face Protection')."}, "quantity": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The unit count from the 'QUANTITY' column for this CLIN, verbatim including any thousands separator the document uses. Format: numeric string ('4000', '1,482.25'), or 'N/A' if printed N/A. REDACTION POLICY: many DoD contracts overprint a FOIA exemption marker (most commonly '(b) (4)' for trade-secret pricing data; sometimes '(b)(4)', '(b) (3)', '(b)(6)') on top of a black box in this cell. When such an exemption marker is visible above/inside the black box, return the marker text VERBATIM as printed (e.g. '(b) (4)'). Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker). A black redaction box without any visible marker is also null. NEVER emit image-markdown placeholders (e.g. '![redacted](page_4_image_1.jpg)'); those are pipeline artifacts, not values — use null or the verbatim marker text instead. Do NOT confuse a redaction marker with the digit zero. May appear under labels 'QUANTITY', '15C. QUANTITY', '21. QUANTITY'. Do NOT confuse with: (a) box/kit counts in the separate Shipment Information table, (b) per-delivery quantities in the Section F Delivery Information table, (c) the total contract amount."}, "unit": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The unit-of-measure from the 'UNIT' column for this CLIN, verbatim (e.g. 'Each', 'EA', 'LO', 'Lot'). May appear under labels 'UNIT', '15D. UNIT', '22. UNIT'. Case-preserve as printed. Null if the cell is blank or 'N/A' is printed. Do NOT confuse with the UNIT PRICE column, the contract type tag ('FFP'), the AMOUNT column, or DODAAC."}, "unit_price": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The per-unit price from the 'UNIT PRICE' column for this CLIN, verbatim from the form as printed (e.g. '$37.05625', '2.90'). Preserve the currency sign and decimal places exactly as printed; do NOT round, do NOT add a '$' that is not printed. May appear under labels 'UNIT PRICE', '15E. UNIT PRICE', '23. UNIT PRICE'. REDACTION POLICY: same as quantity — when a FOIA exemption marker ('(b) (4)', '(b)(4)', etc.) is overprinted on a black box in this cell, return the marker text VERBATIM. Use null ONLY when the cell is genuinely empty (no text, no black redaction box, no marker) or when 'N/A' is printed. NEVER emit image-markdown placeholders (e.g. '![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT carry over the AMOUNT-column value into unit_price; if UNIT PRICE is redacted but AMOUNT is printed, unit_price still gets the redaction marker (or null), NOT the amount. Do NOT confuse with the AMOUNT column (= quantity x unit_price), the contract NET AMT, or the total contract value box."}, "amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The extended price from the 'AMOUNT' column for this CLIN, verbatim including dollar sign and exactly the printed cents (e.g. '$148,225.00', '$11,600.00', '$0.00'). Take ONLY the value that is printed on the same horizontal row as the 'ITEM NO' line, in the rightmost 'AMOUNT' column — even when that value is '$0.00' (funding-only SUBCLINs commonly print AMOUNT=$0.00 while the dollar amount appears on a separate 'ACRN <code>' allocation line below). May appear under labels 'AMOUNT', '15F. AMOUNT', '24. AMOUNT'. Use the literal value 'NSP' if 'NSP' (Not Separately Priced) is printed instead of a dollar amount; do NOT translate NSP to 0 or null. REDACTION POLICY: same as quantity/unit_price — if a FOIA exemption marker is overprinted on the AMOUNT cell, return the marker verbatim. Null only if the cell is blank with no marker. NEVER emit image-markdown placeholders ('![redacted](page_X_image_Y.jpg)'); use null or the verbatim marker instead. Do NOT confuse with: (a) the per-CLIN 'NET AMT' subtotal printed below the horizontal rule (use `net_amount` for that), (b) the dollar value printed on the 'ACRN <code>' allocation line directly under NET AMT (that is per-ACRN funding, NOT this column), (c) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (d) any modification/amendment delta amount."}, "contract_type": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The contract-type tag printed on its own line directly beneath the 'SUPPLIES/SERVICES' title (e.g. 'FFP' = Firm-Fixed Price, 'FFP-LOE', 'CPFF', 'T&M'). Verbatim as printed. Null if no such tag appears on the CLIN. Do NOT confuse with the product description that follows, with section names ('Section B', 'Section C'), or with the contract number."}, "purchase_request_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The 'PURCHASE REQUEST NUMBER:' value printed inside the CLIN block, verbatim digits, no spaces (e.g. '0011509217', '0011487274'). May appear as 'PURCHASE REQUEST NUMBER', 'PR NUMBER', 'PR NO'. Null if not printed inside this CLIN block. Do NOT confuse with: (a) the box 1 'REQUISITION NUMBER' on the SF1449 form face (may equal or differ), (b) the contract number, (c) the CIN code, (d) ACRN code."}, "psc_code": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The 'PSC CD:' (Product Service Code) printed inside the CLIN block, verbatim 4-digit code (e.g. '6550', '8415'). May appear as 'PSC CD', 'PSC CODE', 'PRODUCT SERVICE CODE'. Null if absent on the CLIN. Do NOT confuse with: NAICS code (box 9 of SF1449 face — typically 6 digits), DODAAC codes ('W56XNH', 'W912H7'), the CLIN/SLIN itself."}, "acrn": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The Accounting Classification Reference Number printed at the bottom of the CLIN block as 'ACRN <code>' (e.g. 'AA', 'AB'). Two letters, uppercase, verbatim. If multiple ACRN lines appear on a single CLIN (split funding), use the FIRST printed ACRN here; the schema currently captures only ONE ACRN per row; additional ACRN lines on the same CLIN are not separately represented in this schema version (future-doc risk for split-funded CLINs). Null if no ACRN line is printed for the CLIN. Do NOT confuse with: NAICS code, PSC code, CIN code (GFEBS...), or DODAAC."}, "cin": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The CIN (Contract Identification Number) printed under the ACRN line as 'CIN: GFEBS...' or 'CIN: <digits>'. Verbatim, preserve case and digits exactly as printed. Null if absent. Do NOT confuse with the contract number, requisition number, PURCHASE REQUEST NUMBER, ACRN, PSC CD, NAICS code."}, "net_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The 'NET AMT' subtotal printed under the AMOUNT column for this CLIN (after the horizontal rule), verbatim with dollar sign and cents (e.g. '$148,225.00'). For single-funding CLINs this equals `amount`; for split-funded CLINs the NET AMT is the sum across ACRN allocations and may differ from `amount`. Null if no 'NET AMT' line is printed for this CLIN (e.g. 'NSP' / data-only line items). Do NOT confuse with: (a) the contract-level total ('TOTAL AMOUNT OF CONTRACT', '26. TOTAL AWARD AMOUNT'), (b) the AMOUNT column value, (c) an individual ACRN allocation amount."}}, "required": ["item_no", "supplies_services", "quantity", "unit", "unit_price", "amount", "contract_type", "purchase_request_number", "psc_code", "acrn", "cin", "net_amount"], "additionalProperties": false}}, "title": "DoDClinSchedule", "type": "object", "description": "Extraction of the DoD post-award contract or amendment ITEM-NO schedule from Part I Section B 'Supplies or Services and Prices'. Top-level fields capture the contract identifiers and totals from the SF-1449 / SF-26 / SF-30 form face; the long-doc list `clin_line_items` captures every CLIN/SLIN row in the Section B schedule. DOC-SCOPE POLICY: a single PDF in this corpus represents ONE primary award (the contract whose number is printed in box 2 of the first SF-1449 / SF-26 / SF-30 page). Even when the file is 'conformed' — i.e. the base contract page is followed by SF-30 modifications (P00001, P00002, …) that amend the same base contract — treat the whole stack as ONE contract: the primary contract's number, primary effective date, latest total, and the full conformed schedule (base CLINs + any SUBCLINs / additional CLINs added by mods). If the PDF additionally contains a DIFFERENT contract or task order (a separate SF-1449 / SF-26 / DD-1155 face with a DIFFERENT contract number in box 2, e.g. a child delivery order issued against an IDIQ), DO NOT mix its CLINs into `clin_line_items`. Extract ONLY the schedule of the primary (first / outermost) contract.", "properties": {"contract_number": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The PRIMARY contract's award number from the FIRST form face in the PDF, verbatim (e.g. 'W911QY20P0195', 'W911QY20C0047', 'W911QY20C0124'). On SF-1449 it sits in box 2 'CONTRACT NO.'; on SF-26 in box 2 'CONTRACT (Proc. Inst. Ident.) NO.'; on SF-30 amendments it appears as 'CONTRACT/ORDER NO.' (10A). Format: alphanumeric, typically beginning 'W' for Army (W911..., W912...) — preserve the case as printed and do NOT add spaces or dashes. Return EXACTLY ONE value — the number from the first/outermost award page in the PDF (NOT a comma-joined or semicolon-joined list of multiple contract numbers found later in the file). If a conformed file contains modifications referencing this same number, that's still one contract — return the base number once. If the file contains a separate child task order with a different number, IGNORE that number — it is NOT this field. Do NOT confuse with: (a) the amendment/modification number on SF-30 (box 2 'AMENDMENT/MODIFICATION NO.', e.g. 'P00001'), (b) the requisition number (box 1 on SF-1449), (c) the order number (box 4 on SF-1449), (d) the solicitation number (box 5 on SF-1449), (e) the purchase request number printed inside the CLIN blocks."}, "effective_date": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The effective date of the PRIMARY contract award (NOT the latest amendment) from the FIRST form face in the PDF, verbatim as printed (e.g. '12-Jun-2020', '17 APR 2020', '04/17/2020', '24-Sep-2020'). On SF-1449 it sits in box 3 'AWARD/EFFECTIVE DATE'; on SF-26 in box 3 'EFFECTIVE DATE'. If the first page is itself an SF-30 amendment (no separate base SF-1449/SF-26 in the file), use the SF-30 'EFFECTIVE DATE' (box 3). Return EXACTLY ONE date — the base award's effective date, NOT a semicolon-joined list of every amendment's effective date. Preserve the printed format including case of the month abbreviation. Null if the cell is blank or redacted. Do NOT confuse with: (a) the date signed by the contractor (box 19C / 30c), (b) the date signed by the contracting officer (box 20C / 31c / 16C), (c) the solicitation issue date (box 6 on SF-1449), (d) any per-CLIN delivery date in Section F, (e) the effective date of any subsequent modification."}, "total_amount": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The LATEST cumulative contract-level total dollar value after all conformed modifications, verbatim including dollar sign and cents (e.g. '$148,225.00', '$23,200.00', '$6,754,911.00'). On SF-1449 it sits in box 26 'TOTAL AWARD AMOUNT (For Govt. Use Only)'; on SF-26 in '15G. TOTAL AMOUNT OF CONTRACT'. For a conformed file with subsequent SF-30 mods, use the FINAL post-modification total — typically printed in each SF-30's 'SUMMARY OF CHANGES' as 'The total cost of this contract was increased/decreased by $X from $A to $B' — use the last 'to $B' value in the document. Return EXACTLY ONE value (a single dollar amount), NOT a semicolon-joined list of intermediate totals from each amendment. If the form face is fully redacted with no cumulative total printed anywhere, return the verbatim redaction marker (e.g. '(b) (4)'). NEVER emit image-markdown placeholders. Null if no total is printed anywhere and the cell is blank. Do NOT confuse with: (a) any individual CLIN AMOUNT or NET AMT, (b) per-delivery quantities or amounts, (c) the modification delta amount (the 'increased by $X' / 'decreased by $X' number on SF-30)."}, "clin_line_items": {"anyOf": [{"type": "array", "items": {"$ref": "#/$defs/ClinLineItem"}}, {"type": "null"}], "description": "Ordered list of every CLIN/SLIN row from the PRIMARY contract's Section B 'Supplies or Services and Prices' schedule. Scope is the primary contract only — see DOC-SCOPE POLICY in the top-level schema description. One entry per CLIN block where a fresh 'ITEM NO' header introduces a new 4-digit (CLIN) or 6-digit (SLIN) identifier and the same 6-column row (ITEM NO / SUPPLIES/SERVICES / QUANTITY / UNIT / UNIT PRICE / AMOUNT). Preserve the printed order top-to-bottom. INCLUDE: every numbered CLIN/SLIN of the primary contract even when its AMOUNT column prints 'NSP' (Not Separately Priced). INCLUDE: SUBCLINs / funding-only CLINs added by an SF-30 modification (e.g. SUBCLIN 000101 'Funding for CLIN 0001 / ACRN AB') in their printed order — these are part of the conformed primary contract's schedule. DEDUPLICATE: if the same CLIN appears multiple times across the primary contract's base + modifications (e.g. CLIN 0001 originally in the base + same CLIN 0001 referenced in a SUMMARY OF CHANGES block), emit it EXACTLY ONCE — use the LATEST printed values (the conformed state after all mods); do NOT emit a separate entry for each appearance. EXCLUDE: (a) rows from other tables that share similar column headers but are NOT Section B schedule rows, specifically the Shipment Information table, the Section F Delivery Information table (CLIN / DELIVERY DATE / QUANTITY / SHIP TO ADDRESS / DODAAC), the Section E Inspection And Acceptance Terms table (CLIN / INSPECT AT / INSPECT BY / ACCEPT AT / ACCEPT BY), any clause-list table (e.g. '52.246-2 Inspection Of Supplies'), the Section G 'Accounting and Appropriation Data' ACRN-allocation table, and the SF-30 'Description of Amendment' narrative outside the SUMMARY OF CHANGES / Section B blocks; (b) the entire CLIN schedule of any child task order or separate contract embedded later in the same PDF that uses a different contract number in box 2 — those are out of scope per DOC-SCOPE POLICY. STRICT: every emitted entry MUST have a non-empty item_no taken from a real 'ITEM NO' header — do NOT emit placeholder rows where item_no is null or empty, do NOT emit a row whose item_no is actually a contract number / a date / a section title ('TOTAL AMOUNT OF CONTRACT' is NOT an item_no), and do NOT emit a separate item for the 'NET AMT' subtotal line or the 'ACRN <code>' allocation line that follows a CLIN. If the document contains ONLY a SF1449 face page with 'SEE SCHEDULE' but no Section B schedule is included in the file, return an empty array `[]`."}}, "required": ["contract_number", "effective_date", "total_amount", "clin_line_items"], "additionalProperties": false}
8
+
9
+ Rules:
10
+
11
+ - Use null for fields not present in the document.
12
+ - For list/array fields, enumerate every relevant row visible in the document; never collapse rows.
13
+ - For large regular tables, prefer writing and running a local script to parse/enumerate rows.
14
+ - For forms, prefer direct field extraction from the document content.
15
+ - Write the resulting JSON object to ./output.json and validate that it is valid JSON before stopping.
16
+ - Do not print the JSON to your assistant output.
tasks/long--gov-clin-schedule-0031-3e9a48dca4/solution/expected.json ADDED
@@ -0,0 +1,329 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "contract_number": "W911QY-18-D-0060",
3
+ "effective_date": "2020 May 04",
4
+ "total_amount": "$822,780.00",
5
+ "clin_line_items": [
6
+ {
7
+ "item_no": "0001",
8
+ "supplies_services": "Vaccine Administration Syringe Set",
9
+ "quantity": null,
10
+ "unit": null,
11
+ "unit_price": null,
12
+ "amount": "$0.00",
13
+ "contract_type": "FFP",
14
+ "purchase_request_number": null,
15
+ "psc_code": null,
16
+ "acrn": null,
17
+ "cin": null,
18
+ "net_amount": "$0.00"
19
+ },
20
+ {
21
+ "item_no": "0001AA",
22
+ "supplies_services": "Dispensing Syringe with Safety Needle",
23
+ "quantity": null,
24
+ "unit": null,
25
+ "unit_price": null,
26
+ "amount": null,
27
+ "contract_type": null,
28
+ "purchase_request_number": null,
29
+ "psc_code": null,
30
+ "acrn": "AA",
31
+ "cin": "GFEBS001149495500001",
32
+ "net_amount": null
33
+ },
34
+ {
35
+ "item_no": "0001AB",
36
+ "supplies_services": "Dispensing Syringe with Safety Needle",
37
+ "quantity": null,
38
+ "unit": null,
39
+ "unit_price": null,
40
+ "amount": null,
41
+ "contract_type": null,
42
+ "purchase_request_number": null,
43
+ "psc_code": null,
44
+ "acrn": "AA",
45
+ "cin": "GFEBS001149495500002",
46
+ "net_amount": null
47
+ },
48
+ {
49
+ "item_no": "0002",
50
+ "supplies_services": "Vaccine Administration Syringe Set",
51
+ "quantity": null,
52
+ "unit": null,
53
+ "unit_price": null,
54
+ "amount": null,
55
+ "contract_type": "FFP",
56
+ "purchase_request_number": null,
57
+ "psc_code": null,
58
+ "acrn": null,
59
+ "cin": null,
60
+ "net_amount": null
61
+ },
62
+ {
63
+ "item_no": "0002AA",
64
+ "supplies_services": "Dispensing Syringe with Safety Needle",
65
+ "quantity": null,
66
+ "unit": null,
67
+ "unit_price": null,
68
+ "amount": null,
69
+ "contract_type": null,
70
+ "purchase_request_number": null,
71
+ "psc_code": null,
72
+ "acrn": "AA",
73
+ "cin": "GFEBS001149495500003",
74
+ "net_amount": null
75
+ },
76
+ {
77
+ "item_no": "0001AC",
78
+ "supplies_services": "Needle, Safety",
79
+ "quantity": null,
80
+ "unit": null,
81
+ "unit_price": null,
82
+ "amount": null,
83
+ "contract_type": null,
84
+ "purchase_request_number": null,
85
+ "psc_code": null,
86
+ "acrn": "AA",
87
+ "cin": null,
88
+ "net_amount": null
89
+ },
90
+ {
91
+ "item_no": "0002AB",
92
+ "supplies_services": "Dispensing Syringe 1ml",
93
+ "quantity": null,
94
+ "unit": null,
95
+ "unit_price": null,
96
+ "amount": null,
97
+ "contract_type": null,
98
+ "purchase_request_number": null,
99
+ "psc_code": null,
100
+ "acrn": "AA",
101
+ "cin": "GFEBS001149495500004",
102
+ "net_amount": null
103
+ },
104
+ {
105
+ "item_no": "0001AD",
106
+ "supplies_services": "Luer Lock Syringe",
107
+ "quantity": null,
108
+ "unit": null,
109
+ "unit_price": null,
110
+ "amount": null,
111
+ "contract_type": null,
112
+ "purchase_request_number": null,
113
+ "psc_code": null,
114
+ "acrn": "AA",
115
+ "cin": "GFEBS001149495500014",
116
+ "net_amount": null
117
+ },
118
+ {
119
+ "item_no": "0002AC",
120
+ "supplies_services": "Dispensing Syringe 3ml",
121
+ "quantity": null,
122
+ "unit": null,
123
+ "unit_price": null,
124
+ "amount": null,
125
+ "contract_type": null,
126
+ "purchase_request_number": null,
127
+ "psc_code": null,
128
+ "acrn": "AA",
129
+ "cin": "GFEBS001149495500005",
130
+ "net_amount": null
131
+ },
132
+ {
133
+ "item_no": "0001AE",
134
+ "supplies_services": "Luer Lock Syringe",
135
+ "quantity": null,
136
+ "unit": null,
137
+ "unit_price": null,
138
+ "amount": null,
139
+ "contract_type": null,
140
+ "purchase_request_number": null,
141
+ "psc_code": null,
142
+ "acrn": "AA",
143
+ "cin": null,
144
+ "net_amount": null
145
+ },
146
+ {
147
+ "item_no": "0002AD",
148
+ "supplies_services": "Needle, Safety",
149
+ "quantity": null,
150
+ "unit": null,
151
+ "unit_price": null,
152
+ "amount": null,
153
+ "contract_type": null,
154
+ "purchase_request_number": null,
155
+ "psc_code": null,
156
+ "acrn": "AA",
157
+ "cin": "GFEBS001149495500006",
158
+ "net_amount": null
159
+ },
160
+ {
161
+ "item_no": "0002AF",
162
+ "supplies_services": "Standard Needle",
163
+ "quantity": null,
164
+ "unit": null,
165
+ "unit_price": null,
166
+ "amount": null,
167
+ "contract_type": null,
168
+ "purchase_request_number": null,
169
+ "psc_code": null,
170
+ "acrn": "AA",
171
+ "cin": null,
172
+ "net_amount": null
173
+ },
174
+ {
175
+ "item_no": "0002AG",
176
+ "supplies_services": "Luer Lock Syringe",
177
+ "quantity": null,
178
+ "unit": null,
179
+ "unit_price": null,
180
+ "amount": null,
181
+ "contract_type": null,
182
+ "purchase_request_number": null,
183
+ "psc_code": null,
184
+ "acrn": "AA",
185
+ "cin": null,
186
+ "net_amount": null
187
+ },
188
+ {
189
+ "item_no": "0002AH",
190
+ "supplies_services": "Luer Lock Syringe",
191
+ "quantity": null,
192
+ "unit": null,
193
+ "unit_price": null,
194
+ "amount": null,
195
+ "contract_type": null,
196
+ "purchase_request_number": null,
197
+ "psc_code": null,
198
+ "acrn": "AA",
199
+ "cin": null,
200
+ "net_amount": null
201
+ },
202
+ {
203
+ "item_no": "0002AE",
204
+ "supplies_services": "Dispensing Syringe with Standard Needle",
205
+ "quantity": null,
206
+ "unit": null,
207
+ "unit_price": null,
208
+ "amount": null,
209
+ "contract_type": null,
210
+ "purchase_request_number": null,
211
+ "psc_code": null,
212
+ "acrn": "AA",
213
+ "cin": null,
214
+ "net_amount": null
215
+ },
216
+ {
217
+ "item_no": "0002AJ",
218
+ "supplies_services": "Dispensing Syringe with Safety Needle",
219
+ "quantity": null,
220
+ "unit": null,
221
+ "unit_price": null,
222
+ "amount": null,
223
+ "contract_type": null,
224
+ "purchase_request_number": null,
225
+ "psc_code": null,
226
+ "acrn": "AA",
227
+ "cin": null,
228
+ "net_amount": null
229
+ },
230
+ {
231
+ "item_no": "0003",
232
+ "supplies_services": "Vaccine Administration Syringe Set",
233
+ "quantity": null,
234
+ "unit": null,
235
+ "unit_price": null,
236
+ "amount": null,
237
+ "contract_type": null,
238
+ "purchase_request_number": null,
239
+ "psc_code": null,
240
+ "acrn": null,
241
+ "cin": "GFEBS001149495500007",
242
+ "net_amount": null
243
+ },
244
+ {
245
+ "item_no": "0003AA",
246
+ "supplies_services": "Dispensing Syringe with Safety Needle",
247
+ "quantity": null,
248
+ "unit": null,
249
+ "unit_price": null,
250
+ "amount": null,
251
+ "contract_type": null,
252
+ "purchase_request_number": null,
253
+ "psc_code": null,
254
+ "acrn": "AA",
255
+ "cin": null,
256
+ "net_amount": null
257
+ },
258
+ {
259
+ "item_no": "0003AB",
260
+ "supplies_services": "Dispensing Syringe with Safety Needle",
261
+ "quantity": null,
262
+ "unit": null,
263
+ "unit_price": null,
264
+ "amount": null,
265
+ "contract_type": null,
266
+ "purchase_request_number": null,
267
+ "psc_code": null,
268
+ "acrn": "AA",
269
+ "cin": null,
270
+ "net_amount": null
271
+ },
272
+ {
273
+ "item_no": "0003AC",
274
+ "supplies_services": null,
275
+ "quantity": null,
276
+ "unit": null,
277
+ "unit_price": null,
278
+ "amount": null,
279
+ "contract_type": null,
280
+ "purchase_request_number": null,
281
+ "psc_code": null,
282
+ "acrn": "AA",
283
+ "cin": null,
284
+ "net_amount": null
285
+ },
286
+ {
287
+ "item_no": "0004",
288
+ "supplies_services": "CDRL A001 - Certificate of Analysis",
289
+ "quantity": null,
290
+ "unit": null,
291
+ "unit_price": null,
292
+ "amount": null,
293
+ "contract_type": null,
294
+ "purchase_request_number": null,
295
+ "psc_code": null,
296
+ "acrn": null,
297
+ "cin": null,
298
+ "net_amount": null
299
+ },
300
+ {
301
+ "item_no": "0003AD",
302
+ "supplies_services": "Luer Lock Syringe",
303
+ "quantity": null,
304
+ "unit": null,
305
+ "unit_price": null,
306
+ "amount": null,
307
+ "contract_type": null,
308
+ "purchase_request_number": null,
309
+ "psc_code": null,
310
+ "acrn": "AA",
311
+ "cin": null,
312
+ "net_amount": null
313
+ },
314
+ {
315
+ "item_no": "0003AE",
316
+ "supplies_services": "Luer Lock Syringe",
317
+ "quantity": null,
318
+ "unit": null,
319
+ "unit_price": null,
320
+ "amount": null,
321
+ "contract_type": null,
322
+ "purchase_request_number": null,
323
+ "psc_code": null,
324
+ "acrn": "AA",
325
+ "cin": null,
326
+ "net_amount": null
327
+ }
328
+ ]
329
+ }
tasks/long--gov-clin-schedule-0031-3e9a48dca4/solution/solve.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ cp /solution/expected.json /app/output.json
tasks/long--gov-clin-schedule-0031-3e9a48dca4/task.toml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+ artifacts = ["/app/output.json"]
3
+
4
+ [metadata]
5
+ source_repo = "llamaindex/ExtractBench"
6
+ source_revision = "51bf3a03eb7feeaef8952be1fc2fc7f924ee72dc"
7
+ source_case_id = "long/gov_clin_schedule_0031"
8
+ source_split = "long"
9
+ scorer_revision = "2f27f100730afc7c395602e26a2a87e07ea66b31"
10
+ prompt_source = "https://arxiv.org/html/2607.29677v1#A3.SS1"
11
+ tags = ["source:real", "challenge:T2.a", "challenge:T2.c", "challenge:T1.b", "structure:S3", "length:long", "domain:D3"]
12
+
13
+ [agent]
14
+ timeout_sec = 1800
15
+ network_mode = "allowlist"
16
+ allowed_hosts = []
17
+
18
+ [environment]
19
+ cpus = 2
20
+ memory_mb = 4096
21
+ storage_mb = 10240
22
+
23
+ [verifier]
24
+ environment_mode = "separate"
25
+ timeout_sec = 1800
26
+
27
+ [verifier.environment]
28
+ cpus = 2
29
+ memory_mb = 8192
30
+ network_mode = "no-network"
tasks/long--gov-clin-schedule-0031-3e9a48dca4/tests/Dockerfile ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ FROM python:3.12-slim-bookworm
2
+ RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
3
+ RUN pip install --no-cache-dir "llama-extract-bench @ git+https://github.com/run-llama/ExtractBench.git@2f27f100730afc7c395602e26a2a87e07ea66b31" "parse-bench==1.0.4"
4
+ WORKDIR /app
5
+ COPY . /tests/
tasks/long--gov-clin-schedule-0031-3e9a48dca4/tests/reference.test.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/long--gov-clin-schedule-0031-3e9a48dca4/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ python /tests/verifier.py
tasks/long--gov-clin-schedule-0031-3e9a48dca4/tests/verifier.py ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Harbor's file boundary into the existing ExtractBench evaluator."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import json
7
+ from collections.abc import Mapping, Sequence
8
+ from datetime import UTC, datetime
9
+ from pathlib import Path
10
+ from typing import Any
11
+
12
+ from extract_bench.evaluation.evaluators.extract import ExtractEvaluator
13
+ from extract_bench.evaluation.metrics.extract.unified_evidence_metric import ValueCell
14
+ from extract_bench.evaluation.score_case import load_extract_test_case
15
+ from extract_bench.schemas.extract_output import ExtractOutput
16
+ from extract_bench.schemas.pipeline_io import InferenceRequest, InferenceResult
17
+ from extract_bench.schemas.product import ProductType
18
+
19
+
20
+ def _feedback(cells: Sequence[ValueCell], metadata: Mapping[str, Any]) -> dict[str, Any]:
21
+ expected = sum(cell.gt_path is not None for cell in cells)
22
+ predicted = sum(cell.pred_path is not None for cell in cells)
23
+ matched = sum(cell.value_correct for cell in cells)
24
+ if (expected, predicted, matched) != (
25
+ metadata["expected_cells"],
26
+ metadata["predicted_cells"],
27
+ metadata["v_correct"],
28
+ ):
29
+ raise ValueError("Value feedback does not account for the scorer's cell counts")
30
+ denominator = expected + predicted
31
+ entries = []
32
+ for cell in cells:
33
+ if cell.gt_path is None:
34
+ outcome = "prediction_only"
35
+ elif cell.pred_path is None:
36
+ outcome = "reference_only"
37
+ else:
38
+ outcome = "matched" if cell.value_correct else "value_differs"
39
+ entries.append(
40
+ {
41
+ "reference_path": cell.gt_path,
42
+ "output_path": cell.pred_path,
43
+ "outcome": outcome,
44
+ "f1_credit": 2.0 / denominator if cell.value_correct else 0.0,
45
+ }
46
+ )
47
+ return {
48
+ "schema_version": 1,
49
+ "status": "scored",
50
+ "path_space": "normalized_scoring_inputs",
51
+ "counts": {"expected": expected, "predicted": predicted, "matched": matched},
52
+ "value_incomplete": metadata["value_incomplete"],
53
+ "cells": entries,
54
+ }
55
+
56
+
57
+ def score_prediction(test_json: Path, prediction: Any) -> tuple[dict[str, float], dict[str, Any]]:
58
+ """Use exactly the normal evaluator's normalization and metric selection."""
59
+ case = load_extract_test_case(test_json, source_file=Path("/app/document.pdf"))
60
+ now = datetime.now(UTC)
61
+ result = InferenceResult(
62
+ request=InferenceRequest(
63
+ example_id=case.test_id,
64
+ source_file_path=str(case.file_path),
65
+ product_type=ProductType.EXTRACT,
66
+ ),
67
+ pipeline_name="harbor",
68
+ product_type=ProductType.EXTRACT,
69
+ raw_output={},
70
+ output=ExtractOutput(
71
+ example_id=case.test_id,
72
+ pipeline_name="harbor",
73
+ extracted_data=prediction,
74
+ field_citations=[],
75
+ ),
76
+ started_at=now,
77
+ completed_at=now,
78
+ latency_in_ms=0,
79
+ )
80
+ cells: list[ValueCell] = []
81
+ bundle = ExtractEvaluator().compute_metrics(result, case, value_cells=cells)
82
+ metrics = {
83
+ metric.metric_name: metric.value
84
+ for metric in bundle.metrics
85
+ if metric.metric_name.startswith("extract_unified_value_")
86
+ }
87
+ value_f1 = next(metric for metric in bundle.metrics if metric.metric_name == "extract_unified_value_f1")
88
+ return metrics, _feedback(cells, value_f1.metadata)
89
+
90
+
91
+ def verify(test_json: Path, prediction_path: Path, log_dir: Path) -> dict[str, Any]:
92
+ """Bad/missing submissions earn zero; broken grading raises an error.
93
+
94
+ Only submission decoding is caught. A missing reference, loader error or
95
+ scorer failure must fail the verifier instead of becoming a model score.
96
+ """
97
+ log_dir.mkdir(parents=True, exist_ok=True)
98
+ reward_path = log_dir / "reward.txt"
99
+ for name in ("reward.txt", "metrics.json", "feedback.json"):
100
+ (log_dir / name).unlink(missing_ok=True)
101
+ try:
102
+ prediction = json.loads(prediction_path.read_text(encoding="utf-8"))
103
+ except (FileNotFoundError, UnicodeDecodeError, json.JSONDecodeError) as error:
104
+ report: dict[str, Any] = {"status": "invalid_submission", "error": str(error), "value_f1": 0.0}
105
+ else:
106
+ if not isinstance(prediction, dict):
107
+ report = {"status": "invalid_submission", "error": "Expected one JSON object", "value_f1": 0.0}
108
+ else:
109
+ metrics, feedback = score_prediction(test_json, prediction)
110
+ report = {
111
+ "status": "scored",
112
+ "value_f1": metrics["extract_unified_value_f1"],
113
+ "metrics": metrics,
114
+ }
115
+ if report["status"] == "invalid_submission":
116
+ feedback = {"schema_version": 1, "status": "invalid_submission", "error": report["error"], "cells": []}
117
+ report["perfect"] = int(report["value_f1"] == 1.0)
118
+ (log_dir / "metrics.json").write_text(json.dumps(report, indent=2, allow_nan=False) + "\n", encoding="utf-8")
119
+ (log_dir / "feedback.json").write_text(json.dumps(feedback, indent=2, allow_nan=False) + "\n", encoding="utf-8")
120
+ reward_path.write_text(f"{report['value_f1']}\n", encoding="utf-8")
121
+ return report
122
+
123
+
124
+ def main() -> None:
125
+ parser = argparse.ArgumentParser(description=__doc__)
126
+ parser.add_argument("--test-json", type=Path, default=Path("/tests/reference.test.json"))
127
+ parser.add_argument("--prediction", type=Path, default=Path("/app/output.json"))
128
+ parser.add_argument("--log-dir", type=Path, default=Path("/logs/verifier"))
129
+ args = parser.parse_args()
130
+ verify(args.test_json, args.prediction, args.log_dir)
131
+
132
+
133
+ if __name__ == "__main__":
134
+ main()
tasks/long--real-credit-strategies-full-ace220cdf3/environment/Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim-bookworm
2
+ RUN apt-get update && apt-get install -y --no-install-recommends \
3
+ poppler-utils tesseract-ocr curl git nodejs npm \
4
+ && rm -rf /var/lib/apt/lists/*
5
+ RUN pip install --no-cache-dir pymupdf==1.26.6 pypdf==6.4.0 pillow==12.0.0
6
+ WORKDIR /app
7
+ COPY document.pdf schema.json /app/
tasks/long--real-credit-strategies-full-ace220cdf3/environment/document.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5cd96b35269c4d95cf5acbd56de1adebe22f2549b76188cab2fbdc3a156d853
3
+ size 773678
tasks/long--real-credit-strategies-full-ace220cdf3/environment/schema.json ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "object",
3
+ "title": "Credit fund consolidated schedule of investments (real content)",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "fund_name": {
7
+ "type": "string",
8
+ "description": "Fund name printed in the page header."
9
+ },
10
+ "report_title": {
11
+ "type": "string",
12
+ "description": "Report title, e.g. 'Consolidated Schedule of Investments'."
13
+ },
14
+ "as_of_date": {
15
+ "type": "string",
16
+ "description": "Schedule date line, e.g. 'December 31, 2025'."
17
+ },
18
+ "total_investments_value": {
19
+ "type": "integer",
20
+ "description": "Total Investments value in USD as printed at the schedule tail."
21
+ },
22
+ "total_net_assets": {
23
+ "type": "integer",
24
+ "description": "Net Assets value in USD as printed at the schedule tail."
25
+ },
26
+ "holdings": {
27
+ "type": "array",
28
+ "description": "Every holding row of the consolidated schedule, in print order.",
29
+ "items": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "properties": {
33
+ "security_name": {
34
+ "type": "string",
35
+ "description": "Security text as printed on the row (issuer or series leg), without footnote markers."
36
+ },
37
+ "parent_company": {
38
+ "type": [
39
+ "string",
40
+ "null"
41
+ ],
42
+ "description": "Issuer group name printed on its own line above series legs (null for standalone rows)."
43
+ },
44
+ "asset_class": {
45
+ "type": [
46
+ "string",
47
+ "null"
48
+ ],
49
+ "description": "Top-level class heading, e.g. 'Asset-Backed Securities'."
50
+ },
51
+ "industry": {
52
+ "type": [
53
+ "string",
54
+ "null"
55
+ ],
56
+ "description": "Industry heading the row sits under (null when the class has no industry level)."
57
+ },
58
+ "series": {
59
+ "type": [
60
+ "string",
61
+ "null"
62
+ ],
63
+ "description": "Series token from the security text, e.g. '2022-1A'."
64
+ },
65
+ "tranche_class": {
66
+ "type": [
67
+ "string",
68
+ "null"
69
+ ],
70
+ "description": "Class token from the security text, e.g. 'CR' or 'D1'."
71
+ },
72
+ "reference_rate": {
73
+ "type": [
74
+ "string",
75
+ "null"
76
+ ],
77
+ "description": "Reference rate and spread as printed in parentheses, e.g. '3-mo. CME Term SOFR + 1.90%'."
78
+ },
79
+ "coupon_percent": {
80
+ "type": [
81
+ "number",
82
+ "null"
83
+ ],
84
+ "description": "Coupon percentage printed in the security text, e.g. 5.78."
85
+ },
86
+ "maturity_date": {
87
+ "type": [
88
+ "string",
89
+ "null"
90
+ ],
91
+ "description": "Maturity date MM/DD/YY printed in the security text."
92
+ },
93
+ "par_currency": {
94
+ "type": [
95
+ "string",
96
+ "null"
97
+ ],
98
+ "description": "Par currency code (USD/EUR/...) when printed on the row; null when the row does not print one."
99
+ },
100
+ "footnotes": {
101
+ "type": "array",
102
+ "items": {
103
+ "type": "string"
104
+ },
105
+ "description": "Single-letter footnote markers printed after the security text, e.g. ['a','b']."
106
+ },
107
+ "shares_or_par_thousands": {
108
+ "type": [
109
+ "integer",
110
+ "null"
111
+ ],
112
+ "description": "Shares or par amount (000s) as printed in the quantity column."
113
+ },
114
+ "value_usd": {
115
+ "type": "integer",
116
+ "description": "Market value in USD (0 when printed as an em dash)."
117
+ },
118
+ "source_page": {
119
+ "type": [
120
+ "integer",
121
+ "null"
122
+ ],
123
+ "description": "Page number as printed on the page where this holding row is printed. This document's printed page numbering is offset from the PDF page index; report the number printed on the page, not the PDF page position."
124
+ }
125
+ },
126
+ "required": [
127
+ "security_name",
128
+ "parent_company",
129
+ "asset_class",
130
+ "industry",
131
+ "series",
132
+ "tranche_class",
133
+ "reference_rate",
134
+ "coupon_percent",
135
+ "maturity_date",
136
+ "par_currency",
137
+ "footnotes",
138
+ "shares_or_par_thousands",
139
+ "value_usd",
140
+ "source_page"
141
+ ]
142
+ }
143
+ }
144
+ },
145
+ "required": [
146
+ "fund_name",
147
+ "report_title",
148
+ "as_of_date",
149
+ "total_investments_value",
150
+ "total_net_assets",
151
+ "holdings"
152
+ ]
153
+ }