@research-engineering/agentic-proofkit 0.1.157 → 0.1.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,33 @@
1
1
  {
2
- "schemaVersion": 1,
3
- "contractId": "proofkit.cli-contract.v1",
2
+ "schemaVersion": 2,
3
+ "contractId": "proofkit.cli-contract.v2",
4
4
  "packageName": "@research-engineering/agentic-proofkit",
5
5
  "processContract": {
6
6
  "successExitCode": 0,
7
7
  "failureExitCode": 1,
8
8
  "stdout": "Successful JSON commands write exactly one JSON value to stdout unless an admitted explicit output-file flag writes that JSON value to the selected path and leaves stdout empty. Successful text or help commands write text to stdout unless an admitted explicit output-file flag writes the selected representation to the selected path and leaves stdout empty. Commands do not write stderr on success.",
9
9
  "stderr": "Argument parsing, unsupported command, input admission, and output serialization failures write human diagnostics to stderr. Failed report commands may still write a machine-readable failed report to stdout when admission succeeds. Opt-in agent-envelope repair packets may write deterministic invalid-input JSON to stdout with exit code 1 and empty stderr.",
10
+ "globalOptions": {
11
+ "jsonLayout": {
12
+ "flag": "--json-layout",
13
+ "position": "before_command",
14
+ "values": [
15
+ "compact",
16
+ "pretty"
17
+ ],
18
+ "default": "pretty",
19
+ "scope": "json_output_only"
20
+ }
21
+ },
10
22
  "helpGrammar": {
11
- "rootHelpFlags": ["--help", "-h"],
12
- "commandHelpFlags": ["--help", "-h"],
23
+ "rootHelpFlags": [
24
+ "--help",
25
+ "-h"
26
+ ],
27
+ "commandHelpFlags": [
28
+ "--help",
29
+ "-h"
30
+ ],
13
31
  "helpCommandPositionalTarget": "optional_supported_command",
14
32
  "helpCatalogFormsSource": "proofkit/command-families.v1.json",
15
33
  "helpReadsCommandInput": false
@@ -132,8 +150,14 @@
132
150
  "readiness_closeout_input",
133
151
  "registry_consumer_input",
134
152
  "release_authority_input",
153
+ "requirement_context_catalog",
154
+ "requirement_context_repo_root",
155
+ "requirement_context_slice_input",
156
+ "requirement_semantic_diff_input",
135
157
  "requirement_source",
136
158
  "requirement_source_transition",
159
+ "requirement_traceability_graph_input",
160
+ "requirement_workspace_input",
137
161
  "scaffold_profile_plan",
138
162
  "scaffold_project_structure",
139
163
  "selective_evidence",
@@ -170,11 +194,14 @@
170
194
  "check_overview_claims",
171
195
  "decide_obligations",
172
196
  "inspect_coverage",
197
+ "inspect_requirement_context",
198
+ "inspect_requirement_traceability",
173
199
  "inventory_tests",
174
200
  "plan_selective_checks",
175
201
  "release_or_deploy_evidence",
176
202
  "render_human_view",
177
203
  "retire_local_infrastructure",
204
+ "review_requirement_change",
178
205
  "scaffold_first_module",
179
206
  "unknown",
180
207
  "validate_requirement_source",
@@ -249,6 +276,49 @@
249
276
  "This input contract describes agent-route admission only.",
250
277
  "It does not validate referenced file contents, execute commands, read repositories, or approve merge."
251
278
  ]
279
+ },
280
+ "outputContract": {
281
+ "contractId": "proofkit.agent-route.output.v2",
282
+ "schemaVersion": 2,
283
+ "authority": "deterministic route report derived from admitted agent-route input",
284
+ "requiredFields": [
285
+ "guidanceSlice",
286
+ "reportId",
287
+ "reportKind",
288
+ "schemaVersion",
289
+ "selectedRouteFamily",
290
+ "state"
291
+ ],
292
+ "fields": {
293
+ "schemaVersion": {
294
+ "value": 2
295
+ },
296
+ "selectedRouteFamily": {
297
+ "enum": [
298
+ "adoption",
299
+ "migration",
300
+ "release_and_deployment",
301
+ "rendered_views",
302
+ "repository_structure",
303
+ "requirement_proof_binding",
304
+ "requirement_source",
305
+ "selective_evidence",
306
+ "selective_planning",
307
+ "test_inventory_and_coverage",
308
+ "unknown"
309
+ ]
310
+ },
311
+ "guidanceSlice": {
312
+ "requiredFields": [
313
+ "routeFamily"
314
+ ],
315
+ "routeFamilyRule": "must equal selectedRouteFamily"
316
+ }
317
+ },
318
+ "changesFromV1": [
319
+ "selectedFamily is replaced by selectedRouteFamily",
320
+ "guidanceSlice.family is replaced by guidanceSlice.routeFamily"
321
+ ]
252
322
  }
253
323
  },
254
324
  {
@@ -974,10 +1044,82 @@
974
1044
  "--port",
975
1045
  "--scope",
976
1046
  "--serve",
1047
+ "--session-mode",
1048
+ "--session-timeout-seconds",
977
1049
  "--view"
978
1050
  ],
979
1051
  "requiredFlags": [
980
1052
  "--view"
1053
+ ],
1054
+ "flagValueRequirements": [
1055
+ {
1056
+ "flag": "--session-mode",
1057
+ "requiredFlags": [
1058
+ "--open",
1059
+ "--serve",
1060
+ "--view"
1061
+ ],
1062
+ "value": "one-shot-question"
1063
+ }
1064
+ ],
1065
+ "inputContract": {
1066
+ "schemaVersion": 1,
1067
+ "workspaceRequiredFields": [
1068
+ "context",
1069
+ "schemaVersion",
1070
+ "workspaceId"
1071
+ ],
1072
+ "workspaceOptionalFields": [
1073
+ "diffInput",
1074
+ "graphInput"
1075
+ ],
1076
+ "sessionModeValues": [
1077
+ "browse",
1078
+ "one-shot-question"
1079
+ ],
1080
+ "sessionTimeoutSeconds": {
1081
+ "minimum": 1,
1082
+ "maximum": 7200,
1083
+ "requiresSessionMode": "one-shot-question"
1084
+ },
1085
+ "oneShotRequirements": {
1086
+ "open": true,
1087
+ "serve": true,
1088
+ "view": "workspace"
1089
+ },
1090
+ "jsonLayoutRule": "allowed for non-serving JSON plans; serving and one-shot modes reject the global layout option because one-shot terminal packets are fixed compact JSON"
1091
+ }
1092
+ },
1093
+ {
1094
+ "command": "requirement-context-compose",
1095
+ "input": "required",
1096
+ "stdin": true,
1097
+ "inputPointer": true,
1098
+ "scopeClass": "explicit_filesystem_scan",
1099
+ "outputModes": [
1100
+ "json"
1101
+ ],
1102
+ "allowedFlags": [
1103
+ "--input",
1104
+ "--input-pointer",
1105
+ "--repo-root"
1106
+ ],
1107
+ "requiredFlags": [
1108
+ "--repo-root"
1109
+ ]
1110
+ },
1111
+ {
1112
+ "command": "requirement-context-slice",
1113
+ "input": "required",
1114
+ "stdin": true,
1115
+ "inputPointer": true,
1116
+ "scopeClass": "explicit_caller_input",
1117
+ "outputModes": [
1118
+ "json"
1119
+ ],
1120
+ "allowedFlags": [
1121
+ "--input",
1122
+ "--input-pointer"
981
1123
  ]
982
1124
  },
983
1125
  {
@@ -1278,6 +1420,20 @@
1278
1420
  "--scope"
1279
1421
  ]
1280
1422
  },
1423
+ {
1424
+ "command": "requirement-semantic-diff",
1425
+ "input": "required",
1426
+ "stdin": true,
1427
+ "inputPointer": true,
1428
+ "scopeClass": "explicit_caller_input",
1429
+ "outputModes": [
1430
+ "json"
1431
+ ],
1432
+ "allowedFlags": [
1433
+ "--input",
1434
+ "--input-pointer"
1435
+ ]
1436
+ },
1281
1437
  {
1282
1438
  "command": "requirement-source-admission",
1283
1439
  "input": "required",
@@ -1331,7 +1487,15 @@
1331
1487
  "scopeClass": "explicit_caller_input",
1332
1488
  "inputContract": {
1333
1489
  "schemaVersion": 2,
1334
- "requiredFields": ["schemaVersion", "treeId", "rootNodeId", "callerAnnotations", "nodes", "edges", "overlays"],
1490
+ "requiredFields": [
1491
+ "schemaVersion",
1492
+ "treeId",
1493
+ "rootNodeId",
1494
+ "callerAnnotations",
1495
+ "nodes",
1496
+ "edges",
1497
+ "overlays"
1498
+ ],
1335
1499
  "callerTextAuthority": "callerAnnotations fields are untrusted presentation annotations and never command-owned nonClaims"
1336
1500
  },
1337
1501
  "outputModes": [
@@ -1350,7 +1514,15 @@
1350
1514
  "scopeClass": "explicit_caller_input",
1351
1515
  "inputContract": {
1352
1516
  "schemaVersion": 2,
1353
- "requiredFields": ["schemaVersion", "treeId", "rootNodeId", "callerAnnotations", "nodes", "edges", "overlays"],
1517
+ "requiredFields": [
1518
+ "schemaVersion",
1519
+ "treeId",
1520
+ "rootNodeId",
1521
+ "callerAnnotations",
1522
+ "nodes",
1523
+ "edges",
1524
+ "overlays"
1525
+ ],
1354
1526
  "callerTextAuthority": "callerAnnotations fields are untrusted presentation annotations and never command-owned nonClaims"
1355
1527
  },
1356
1528
  "outputModes": [
@@ -1368,7 +1540,10 @@
1368
1540
  "contractId": "proofkit.requirement-spec-tree-view.output.v2",
1369
1541
  "schemaVersion": 2,
1370
1542
  "authority": "requirement spec tree view output contract",
1371
- "nonJsonFormats": ["html", "markdown"],
1543
+ "nonJsonFormats": [
1544
+ "html",
1545
+ "markdown"
1546
+ ],
1372
1547
  "requiredFields": [
1373
1548
  "authority",
1374
1549
  "nodeCount",
@@ -1382,6 +1557,20 @@
1382
1557
  ]
1383
1558
  }
1384
1559
  },
1560
+ {
1561
+ "command": "requirement-traceability-graph",
1562
+ "input": "required",
1563
+ "stdin": true,
1564
+ "inputPointer": true,
1565
+ "scopeClass": "explicit_caller_input",
1566
+ "outputModes": [
1567
+ "json"
1568
+ ],
1569
+ "allowedFlags": [
1570
+ "--input",
1571
+ "--input-pointer"
1572
+ ]
1573
+ },
1385
1574
  {
1386
1575
  "command": "scaffold-profile-plan",
1387
1576
  "input": "required",
@@ -1836,7 +2025,71 @@
1836
2025
  ],
1837
2026
  "requiredFlags": [
1838
2027
  "--repo-root"
1839
- ]
2028
+ ],
2029
+ "inputContract": {
2030
+ "contractId": "proofkit.typescript-public-api-surfaces.input.v1",
2031
+ "schemaVersion": 1,
2032
+ "authority": "caller-owned manifest plus explicitly selected filesystem snapshot",
2033
+ "fields": {
2034
+ "schemaVersion": {
2035
+ "required": true,
2036
+ "value": 1
2037
+ },
2038
+ "machineContract": {
2039
+ "required": true,
2040
+ "value": "public_api_surfaces"
2041
+ },
2042
+ "entries": {
2043
+ "required": true,
2044
+ "maxItems": 1024,
2045
+ "item": {
2046
+ "requiredFields": [
2047
+ "exportConditions",
2048
+ "exportKey",
2049
+ "packageManifestPath",
2050
+ "packageName",
2051
+ "runtimeExports",
2052
+ "typeExports"
2053
+ ],
2054
+ "optionalFields": [
2055
+ "deniedExportKeys"
2056
+ ],
2057
+ "pathAuthority": "packageManifestPath names an explicit repo-relative package.json; every export condition names its explicit repo-relative non-JSX TypeScript sourcePath, and the canonical resolved source target must also have a .ts, .mts, or .cts extension",
2058
+ "setFields": "deniedExportKeys, runtimeExports, and typeExports are sorted unique arrays",
2059
+ "exportConditionsRule": "non-empty and sorted unique by condition"
2060
+ }
2061
+ }
2062
+ },
2063
+ "resourceBudgets": {
2064
+ "maxSourceFileBytes": 8388608,
2065
+ "maxPackageManifestBytes": 262144,
2066
+ "maxAggregateFileReadBytes": 67108864
2067
+ },
2068
+ "sourceGrammar": {
2069
+ "grammarId": "proofkit.typescript-public-api.export-subset.v1",
2070
+ "mode": "fail_closed",
2071
+ "identifierDomain": "direct ASCII identifiers in code; Unicode remains permitted inside comments and literals",
2072
+ "admittedExportForms": [
2073
+ "named runtime re-exports from a string module specifier",
2074
+ "named type re-exports from a string module specifier",
2075
+ "ASCII-named function, class, enum, interface, type, const, let, and var exports"
2076
+ ],
2077
+ "rejectedLexicalForms": [
2078
+ "slash tokens outside comments, including division and regular-expression literals",
2079
+ "template interpolation",
2080
+ "escaped or direct non-ASCII code identifiers",
2081
+ "unterminated comments or literals",
2082
+ "unbalanced delimiters",
2083
+ "top-level angle-bracket syntax in variable export declarations"
2084
+ ]
2085
+ },
2086
+ "nonClaims": [
2087
+ "The command does not infer conventional package or source layouts.",
2088
+ "The command does not parse JSX or admit TSX source files.",
2089
+ "The command does not parse unrestricted TypeScript; sources outside the documented export grammar fail closed.",
2090
+ "Caller-owned source-to-condition mappings do not prove compiler output provenance, checkout freshness, package-manager truth, merge readiness, or rollout."
2091
+ ]
2092
+ }
1840
2093
  },
1841
2094
  {
1842
2095
  "command": "witness-plan",
@@ -110,6 +110,17 @@
110
110
  "workspace-manifest-facts"
111
111
  ]
112
112
  },
113
+ {
114
+ "familyId": "requirement-context-and-traceability",
115
+ "label": "Requirement context and traceability",
116
+ "purpose": "Compose bounded semantic context and derive diff and traceability projections.",
117
+ "commands": [
118
+ "requirement-context-compose",
119
+ "requirement-context-slice",
120
+ "requirement-semantic-diff",
121
+ "requirement-traceability-graph"
122
+ ]
123
+ },
113
124
  {
114
125
  "familyId": "requirement-navigation-and-rendering",
115
126
  "label": "Requirement navigation and rendering",