Skip to content

Commit 226c3f2

Browse files
V41 Gate 5: harden ReadNeed prompt program
Rewrite ReadNeed PromptParts around exact read-request comprehension, source constraints, feedback lineage, and source-safe review boundaries. Add a package-backed Gate 5 hardening artifact, checker, generator, protocol tests, exports, workflow hooks, and refreshed V41 inventory/registry/benchmark roots. Tighten ReadNeed inference parsing with a strict schema and explicit sourceConstraints/reviewBoundary prompt context.
1 parent 9486249 commit 226c3f2

28 files changed

Lines changed: 2409 additions & 46 deletions

.bitcode/v41-promptpart-prompt-inventory.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13352,7 +13352,7 @@
1335213352
"rowRoot": "v41-prompt-inventory-row:69cd94133b96a279f631cbe7",
1335313353
"kind": "PromptPart",
1335413354
"sourcePath": "packages/prompts/src/raw_promptparts/specific/promptpart_specific_agent_comprehendread_plan_strategy.ts",
13355-
"sourceHash": "9daac6e3684949a9bbf08af4",
13355+
"sourceHash": "647f0673a2f5e203a14d8d09",
1335613356
"exportNames": [
1335713357
"PROMPTPART_SPECIFIC_AGENT_COMPREHENDREAD_PLAN_STRATEGY"
1335813358
],
@@ -13428,7 +13428,7 @@
1342813428
"rowRoot": "v41-prompt-inventory-row:24b890a3f81da9533becbd70",
1342913429
"kind": "PromptPart",
1343013430
"sourcePath": "packages/prompts/src/raw_promptparts/specific/promptpart_specific_agent_comprehendread_refine_optimization.ts",
13431-
"sourceHash": "c62b51c77222dedd2fd719c2",
13431+
"sourceHash": "289f59645fd696d9dfeb0697",
1343213432
"exportNames": [
1343313433
"PROMPTPART_SPECIFIC_AGENT_COMPREHENDREAD_REFINE_OPTIMIZATION"
1343413434
],
@@ -13504,7 +13504,7 @@
1350413504
"rowRoot": "v41-prompt-inventory-row:bf86a608fe6dfc8eeb8b34cf",
1350513505
"kind": "PromptPart",
1350613506
"sourcePath": "packages/prompts/src/raw_promptparts/specific/promptpart_specific_agent_comprehendread_retry_strategy.ts",
13507-
"sourceHash": "2bfc57ef6882d0bff23a1cfa",
13507+
"sourceHash": "11855e7a874e55f17cabe176",
1350813508
"exportNames": [
1350913509
"PROMPTPART_SPECIFIC_AGENT_COMPREHENDREAD_RETRY_STRATEGY"
1351013510
],
@@ -13583,7 +13583,7 @@
1358313583
"rowRoot": "v41-prompt-inventory-row:cc5d11c4b233afd6f7129479",
1358413584
"kind": "PromptPart",
1358513585
"sourcePath": "packages/prompts/src/raw_promptparts/specific/promptpart_specific_agent_comprehendread_system_instructions.ts",
13586-
"sourceHash": "169078b8ae3849d212f9934e",
13586+
"sourceHash": "84e4939b3446dcda67d6e489",
1358713587
"exportNames": [
1358813588
"PROMPTPART_SPECIFIC_AGENT_COMPREHENDREAD_SYSTEM_INSTRUCTIONS"
1358913589
],
@@ -13659,7 +13659,7 @@
1365913659
"rowRoot": "v41-prompt-inventory-row:6945e29247d03c1ffcda01ce",
1366013660
"kind": "PromptPart",
1366113661
"sourcePath": "packages/prompts/src/raw_promptparts/specific/promptpart_specific_agent_comprehendread_try_directives.ts",
13662-
"sourceHash": "ef49d20d7c91a2f01632e6c2",
13662+
"sourceHash": "cf2eab4599a557f0fc4b3e24",
1366313663
"exportNames": [
1366413664
"PROMPTPART_SPECIFIC_AGENT_COMPREHENDREAD_TRY_DIRECTIVES"
1366513665
],

.bitcode/v41-reading-prompt-benchmark-baselines.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@
181181
"embeddingPolicyCount": 10,
182182
"rankingCount": 17,
183183
"previewCount": 34,
184-
"quoteCount": 27,
185-
"settlementCount": 34,
184+
"quoteCount": 28,
185+
"settlementCount": 35,
186186
"repairCount": 0
187187
},
188188
"metricScores": {
@@ -324,8 +324,8 @@
324324
"embeddingPolicyCount": 10,
325325
"rankingCount": 17,
326326
"previewCount": 34,
327-
"quoteCount": 27,
328-
"settlementCount": 36,
327+
"quoteCount": 28,
328+
"settlementCount": 37,
329329
"repairCount": 0
330330
},
331331
"metricScores": {
@@ -461,8 +461,8 @@
461461
"embeddingPolicyCount": 10,
462462
"rankingCount": 17,
463463
"previewCount": 34,
464-
"quoteCount": 27,
465-
"settlementCount": 34,
464+
"quoteCount": 28,
465+
"settlementCount": 35,
466466
"repairCount": 0
467467
},
468468
"metricScores": {
@@ -1074,8 +1074,8 @@
10741074
"embeddingPolicyCount": 10,
10751075
"rankingCount": 25,
10761076
"previewCount": 255,
1077-
"quoteCount": 110,
1078-
"settlementCount": 110,
1077+
"quoteCount": 111,
1078+
"settlementCount": 111,
10791079
"repairCount": 30
10801080
},
10811081
"metricScores": {
@@ -1593,8 +1593,8 @@
15931593
"embeddingPolicyCount": 10,
15941594
"rankingCount": 17,
15951595
"previewCount": 34,
1596-
"quoteCount": 27,
1597-
"settlementCount": 34,
1596+
"quoteCount": 28,
1597+
"settlementCount": 35,
15981598
"repairCount": 0
15991599
},
16001600
"readneed-review-resynthesis-baseline": {
@@ -1626,8 +1626,8 @@
16261626
"embeddingPolicyCount": 10,
16271627
"rankingCount": 17,
16281628
"previewCount": 34,
1629-
"quoteCount": 27,
1630-
"settlementCount": 36,
1629+
"quoteCount": 28,
1630+
"settlementCount": 37,
16311631
"repairCount": 0
16321632
},
16331633
"readneed-measurement-pricing-baseline": {
@@ -1657,8 +1657,8 @@
16571657
"embeddingPolicyCount": 10,
16581658
"rankingCount": 17,
16591659
"previewCount": 34,
1660-
"quoteCount": 27,
1661-
"settlementCount": 34,
1660+
"quoteCount": 28,
1661+
"settlementCount": 35,
16621662
"repairCount": 0
16631663
},
16641664
"readfits-query-synthesis-baseline": {
@@ -1807,8 +1807,8 @@
18071807
"embeddingPolicyCount": 10,
18081808
"rankingCount": 25,
18091809
"previewCount": 255,
1810-
"quoteCount": 110,
1811-
"settlementCount": 110,
1810+
"quoteCount": 111,
1811+
"settlementCount": 111,
18121812
"repairCount": 30
18131813
},
18141814
"settlement-rights-delivery-baseline": {

0 commit comments

Comments
 (0)