@wowok/agent-mcp 3.4.2 → 3.4.3

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.
Files changed (308) hide show
  1. package/dist/.build-stamp.json +5 -0
  2. package/dist/chain-semantics/composition-truth.js +1 -1
  3. package/dist/chain-semantics/eval-order.js +1 -1
  4. package/dist/chain-semantics/field-capability.js +1 -1
  5. package/dist/chain-semantics/freeze-map.js +1 -1
  6. package/dist/chain-semantics/fund-flow.js +1 -1
  7. package/dist/chain-semantics/guard-verbs.js +1 -1
  8. package/dist/chain-semantics/object-graph.js +1 -1
  9. package/dist/composition/audit.js +1 -1
  10. package/dist/composition/compile.d.ts +10 -3
  11. package/dist/composition/compile.js +1 -1
  12. package/dist/composition/emit-phases.d.ts +30 -2
  13. package/dist/composition/emit-phases.js +1 -1
  14. package/dist/composition/guard-fill.d.ts +8 -0
  15. package/dist/composition/guard-fill.js +1 -1
  16. package/dist/composition/inflight.js +1 -1
  17. package/dist/composition/input-normalize.js +1 -1
  18. package/dist/composition/materialize.d.ts +2 -0
  19. package/dist/composition/materialize.js +1 -1
  20. package/dist/composition/mode-gates.js +1 -1
  21. package/dist/composition/param-disclosure.js +1 -1
  22. package/dist/composition/plan-retry-ledger.d.ts +16 -0
  23. package/dist/composition/plan-retry-ledger.js +1 -1
  24. package/dist/composition/plan.d.ts +15 -1
  25. package/dist/composition/plan.js +1 -1
  26. package/dist/config/config-audit.spec.js +1 -1
  27. package/dist/config/judgment.d.ts +5 -0
  28. package/dist/config/judgment.js +1 -1
  29. package/dist/evaluation/builtins/arbitration-score.d.ts +1 -0
  30. package/dist/evaluation/builtins/arbitration-score.js +1 -1
  31. package/dist/evaluation/builtins/demand-match.js +1 -1
  32. package/dist/evaluation/builtins/graph-service.d.ts +8 -0
  33. package/dist/evaluation/builtins/graph-service.js +1 -1
  34. package/dist/evaluation/capability.d.ts +9 -0
  35. package/dist/evaluation/engine.js +1 -1
  36. package/dist/evaluation/extract.d.ts +9 -1
  37. package/dist/evaluation/extract.js +1 -1
  38. package/dist/evaluation/match-operation.js +1 -1
  39. package/dist/evaluation/match-policy.d.ts +5 -3
  40. package/dist/evaluation/match-policy.js +1 -1
  41. package/dist/evaluation/standards.d.ts +1 -0
  42. package/dist/evaluation/standards.js +1 -1
  43. package/dist/evaluation/structured-lines.js +1 -1
  44. package/dist/evaluation/types.d.ts +1 -0
  45. package/dist/extensions/capability.js +1 -1
  46. package/dist/harness/recover.js +1 -1
  47. package/dist/index.js +1 -1
  48. package/dist/intent/types.d.ts +1 -1
  49. package/dist/intent/types.js +1 -1
  50. package/dist/knowledge/allocation-ledger.js +1 -1
  51. package/dist/knowledge/allocator-rail-verifier.d.ts +17 -1
  52. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  53. package/dist/knowledge/arb-fund-facts.d.ts +7 -0
  54. package/dist/knowledge/arb-fund-facts.js +1 -1
  55. package/dist/knowledge/arbitration-rail-verifier.d.ts +35 -0
  56. package/dist/knowledge/arbitration-rail-verifier.js +1 -0
  57. package/dist/knowledge/audit-rules.d.ts +11 -0
  58. package/dist/knowledge/audit-rules.js +1 -1
  59. package/dist/knowledge/baselines/judgment-baselines.json +1 -0
  60. package/dist/knowledge/baselines/rules/guard.json +7 -6
  61. package/dist/knowledge/baselines/rules/progress.json +4 -4
  62. package/dist/knowledge/baselines/rules/reward.json +118 -3
  63. package/dist/knowledge/builtin-templates.d.ts +3 -2
  64. package/dist/knowledge/builtin-templates.js +1 -1
  65. package/dist/knowledge/chain-query-registry.d.ts +14 -0
  66. package/dist/knowledge/chain-query-registry.js +1 -0
  67. package/dist/knowledge/event-semantics.js +1 -1
  68. package/dist/knowledge/fee-param-bindings.d.ts +2 -0
  69. package/dist/knowledge/fee-param-bindings.js +1 -1
  70. package/dist/knowledge/getting-started.js +1 -1
  71. package/dist/knowledge/guard-binding-table.js +1 -1
  72. package/dist/knowledge/guard-binding-verifier.d.ts +7 -0
  73. package/dist/knowledge/guard-binding-verifier.js +1 -1
  74. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  75. package/dist/knowledge/guard-design-patterns.js +1 -1
  76. package/dist/knowledge/guard-host-context.js +1 -1
  77. package/dist/knowledge/guard-lint.js +1 -1
  78. package/dist/knowledge/guard-node-gates.d.ts +3 -1
  79. package/dist/knowledge/guard-node-gates.js +1 -1
  80. package/dist/knowledge/guard-puzzle.js +1 -1
  81. package/dist/knowledge/guard-render.js +1 -1
  82. package/dist/knowledge/guard-risk.js +1 -1
  83. package/dist/knowledge/guard-templates.d.ts +2 -1
  84. package/dist/knowledge/guard-templates.js +1 -1
  85. package/dist/knowledge/guard-translation.js +1 -1
  86. package/dist/knowledge/index.d.ts +2 -0
  87. package/dist/knowledge/index.js +1 -1
  88. package/dist/knowledge/industry-registry.js +1 -1
  89. package/dist/knowledge/jsonrpc-enum.js +1 -1
  90. package/dist/knowledge/knob-docs.js +1 -1
  91. package/dist/knowledge/param-schema.d.ts +1 -1
  92. package/dist/knowledge/param-schema.js +1 -1
  93. package/dist/knowledge/param-tiers.d.ts +2 -0
  94. package/dist/knowledge/param-tiers.js +1 -1
  95. package/dist/knowledge/path-oracle/products/food-delivery.js +1 -1
  96. package/dist/knowledge/pattern-resolutions.d.ts +2 -0
  97. package/dist/knowledge/pattern-resolutions.js +1 -1
  98. package/dist/knowledge/product-detail-source.d.ts +37 -0
  99. package/dist/knowledge/product-detail-source.js +1 -0
  100. package/dist/knowledge/product-doc-b5.d.ts +16 -0
  101. package/dist/knowledge/product-doc-b5.js +1 -0
  102. package/dist/knowledge/progress-ledger.js +1 -1
  103. package/dist/knowledge/projection.spec.js +1 -1
  104. package/dist/knowledge/publish-gate.d.ts +20 -0
  105. package/dist/knowledge/publish-gate.js +1 -0
  106. package/dist/knowledge/publish-readiness.d.ts +25 -0
  107. package/dist/knowledge/publish-readiness.js +1 -0
  108. package/dist/knowledge/publish-surface-contract.d.ts +16 -0
  109. package/dist/knowledge/publish-surface-contract.js +1 -0
  110. package/dist/knowledge/rail-exit-satisfiability.d.ts +25 -0
  111. package/dist/knowledge/rail-exit-satisfiability.js +1 -0
  112. package/dist/knowledge/reward-ledger.d.ts +1 -1
  113. package/dist/knowledge/reward-ledger.js +1 -1
  114. package/dist/knowledge/reward-risk.d.ts +1 -1
  115. package/dist/knowledge/reward-risk.js +1 -1
  116. package/dist/knowledge/service-ledger.d.ts +3 -1
  117. package/dist/knowledge/service-ledger.js +1 -1
  118. package/dist/knowledge/template-loader.d.ts +41 -2
  119. package/dist/knowledge/template-loader.js +1 -1
  120. package/dist/knowledge/template-registry.js +1 -1
  121. package/dist/knowledge/template-scanner.d.ts +17 -0
  122. package/dist/knowledge/template-scanner.js +1 -1
  123. package/dist/knowledge/workflow-guidance.d.ts +4 -0
  124. package/dist/knowledge/workflow-guidance.js +1 -1
  125. package/dist/monitor/MonitorLoop.js +1 -1
  126. package/dist/monitor/normalize.d.ts +1 -1
  127. package/dist/monitor/normalize.js +1 -1
  128. package/dist/monitor/types.js +1 -1
  129. package/dist/participation/game-context.js +1 -1
  130. package/dist/participation/radar-core.js +1 -1
  131. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  132. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  133. package/dist/playbooks/service-build/merchant-guide.d.ts +28 -3
  134. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  135. package/dist/playbooks/service-build/object-panorama.d.ts +4 -0
  136. package/dist/playbooks/service-build/object-panorama.js +1 -1
  137. package/dist/playbooks/service-build/participation-radar.js +1 -1
  138. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  139. package/dist/playbooks/service-build/service-panorama.js +1 -1
  140. package/dist/playbooks/service-build/service-quote.js +1 -1
  141. package/dist/review/index.js +1 -1
  142. package/dist/review/order.js +1 -1
  143. package/dist/safety/confirm-gate.js +1 -1
  144. package/dist/schema/benchmark-migration/index.d.ts +24 -0
  145. package/dist/schema/benchmark-migration/index.js +1 -1
  146. package/dist/schema/call/allocation.d.ts +11 -7
  147. package/dist/schema/call/allocation.js +1 -1
  148. package/dist/schema/call/arbitration.d.ts +4 -0
  149. package/dist/schema/call/arbitration.js +1 -1
  150. package/dist/schema/call/base.d.ts +28 -0
  151. package/dist/schema/call/base.js +1 -1
  152. package/dist/schema/call/bridge.d.ts +21 -0
  153. package/dist/schema/call/contact.d.ts +4 -0
  154. package/dist/schema/call/demand.d.ts +4 -0
  155. package/dist/schema/call/guard.d.ts +12 -0
  156. package/dist/schema/call/handler.d.ts +1 -0
  157. package/dist/schema/call/handler.js +1 -1
  158. package/dist/schema/call/machine.d.ts +16 -8
  159. package/dist/schema/call/normalize-error.d.ts +1 -0
  160. package/dist/schema/call/normalize-error.js +1 -0
  161. package/dist/schema/call/order.d.ts +7 -3
  162. package/dist/schema/call/order.js +1 -1
  163. package/dist/schema/call/payment.d.ts +7 -3
  164. package/dist/schema/call/permission.d.ts +4 -0
  165. package/dist/schema/call/personal.d.ts +4 -0
  166. package/dist/schema/call/progress.d.ts +4 -0
  167. package/dist/schema/call/progress.js +1 -1
  168. package/dist/schema/call/proof.d.ts +8 -0
  169. package/dist/schema/call/receipt.js +1 -1
  170. package/dist/schema/call/repository.d.ts +4 -0
  171. package/dist/schema/call/reward.d.ts +6 -2
  172. package/dist/schema/call/reward.js +1 -1
  173. package/dist/schema/call/semantic.d.ts +2 -2
  174. package/dist/schema/call/semantic.js +1 -1
  175. package/dist/schema/call/service.d.ts +6 -2
  176. package/dist/schema/call/treasury.d.ts +10 -6
  177. package/dist/schema/common/index.js +1 -1
  178. package/dist/schema/envelope-unify.d.ts +1 -0
  179. package/dist/schema/envelope-unify.js +1 -1
  180. package/dist/schema/evaluation/index.d.ts +43 -0
  181. package/dist/schema/evaluation/index.js +1 -1
  182. package/dist/schema/goal/index.d.ts +14 -2
  183. package/dist/schema/goal/planning.d.ts +18 -0
  184. package/dist/schema/goal/planning.js +1 -1
  185. package/dist/schema/intent-radar/index.d.ts +12 -0
  186. package/dist/schema/intent-radar/index.js +1 -1
  187. package/dist/schema/keeper/index.d.ts +1 -0
  188. package/dist/schema/local/index.d.ts +10 -0
  189. package/dist/schema/local/index.js +1 -1
  190. package/dist/schema/local/wip.js +1 -1
  191. package/dist/schema/messenger/index.d.ts +1 -0
  192. package/dist/schema/messenger/index.js +1 -1
  193. package/dist/schema/operations.d.ts +95 -12
  194. package/dist/schema/operations.js +1 -1
  195. package/dist/schema/persona/index.d.ts +22 -0
  196. package/dist/schema/query/bi.d.ts +28 -2
  197. package/dist/schema/query/bi.js +1 -1
  198. package/dist/schema/query/index.d.ts +67 -61
  199. package/dist/schema/query/index.js +1 -1
  200. package/dist/schema/schema-version.js +1 -1
  201. package/dist/schema/workflow/index.js +1 -1
  202. package/dist/schema-query-impl/index.d.ts +1 -0
  203. package/dist/schema-query-impl/index.js +1 -1
  204. package/dist/schemas/account_operation.output.json +2 -1
  205. package/dist/schemas/benchmark_migration_operation.output.json +74 -0
  206. package/dist/schemas/benchmark_migration_operation.schema.json +32 -0
  207. package/dist/schemas/bridge_operation.output.json +2 -1
  208. package/dist/schemas/bridge_operation.schema.json +40 -0
  209. package/dist/schemas/evaluation_operation.output.json +96 -0
  210. package/dist/schemas/evaluation_operation.schema.json +39 -0
  211. package/dist/schemas/goal_operation.schema.json +32 -0
  212. package/dist/schemas/guard2file.schema.json +8 -0
  213. package/dist/schemas/index.json +1 -1
  214. package/dist/schemas/intent_radar.output.json +10 -2
  215. package/dist/schemas/intent_radar.schema.json +5 -1
  216. package/dist/schemas/keeper_operation.output.json +2 -1
  217. package/dist/schemas/local_cache_operation.output.json +2 -1
  218. package/dist/schemas/local_history_operation.output.json +2 -1
  219. package/dist/schemas/local_info_operation.output.json +2 -1
  220. package/dist/schemas/local_mark_operation.output.json +2 -1
  221. package/dist/schemas/local_mark_operation.schema.json +10 -1
  222. package/dist/schemas/machineNode2file.schema.json +8 -0
  223. package/dist/schemas/messenger_operation.output.json +2 -1
  224. package/dist/schemas/messenger_operation.schema.json +2 -1
  225. package/dist/schemas/monitor_events.output.json +2 -1
  226. package/dist/schemas/monitor_subscription.output.json +2 -1
  227. package/dist/schemas/onchain_events.output.json +206 -13
  228. package/dist/schemas/onchain_events.schema.json +16 -0
  229. package/dist/schemas/onchain_operations.output.json +22 -3
  230. package/dist/schemas/onchain_operations.schema.json +971 -326
  231. package/dist/schemas/onchain_operations_allocation.schema.json +19 -12
  232. package/dist/schemas/onchain_operations_arbitration.schema.json +9 -1
  233. package/dist/schemas/onchain_operations_contact.schema.json +8 -0
  234. package/dist/schemas/onchain_operations_demand.schema.json +8 -0
  235. package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
  236. package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
  237. package/dist/schemas/onchain_operations_guard.schema.json +654 -114
  238. package/dist/schemas/onchain_operations_machine.schema.json +11 -3
  239. package/dist/schemas/onchain_operations_order.schema.json +14 -11
  240. package/dist/schemas/onchain_operations_payment.schema.json +12 -9
  241. package/dist/schemas/onchain_operations_permission.schema.json +8 -0
  242. package/dist/schemas/onchain_operations_personal.schema.json +8 -0
  243. package/dist/schemas/onchain_operations_progress.schema.json +9 -1
  244. package/dist/schemas/onchain_operations_proof.schema.json +8 -0
  245. package/dist/schemas/onchain_operations_repository.schema.json +8 -0
  246. package/dist/schemas/onchain_operations_reward.schema.json +14 -11
  247. package/dist/schemas/onchain_operations_service.schema.json +13 -10
  248. package/dist/schemas/onchain_operations_treasury.schema.json +17 -19
  249. package/dist/schemas/onchain_table_data.output.json +52 -10
  250. package/dist/schemas/persona_operation.output.json +57 -0
  251. package/dist/schemas/persona_operation.schema.json +9 -0
  252. package/dist/schemas/query_toolkit.output.json +325 -22
  253. package/dist/schemas/query_toolkit.schema.json +18 -5
  254. package/dist/schemas/wip_file.output.json +2 -2
  255. package/dist/schemas/wip_file.schema.json +2 -2
  256. package/dist/schemas/workflow_operation.schema.json +1 -1
  257. package/dist/tools/error-catalog.d.ts +17 -0
  258. package/dist/tools/error-catalog.js +1 -0
  259. package/dist/tools/handlers/benchmark-migration.d.ts +20 -8
  260. package/dist/tools/handlers/benchmark-migration.js +1 -1
  261. package/dist/tools/handlers/config.js +1 -1
  262. package/dist/tools/handlers/entry-edge-recipe.d.ts +101 -0
  263. package/dist/tools/handlers/entry-edge-recipe.js +1 -0
  264. package/dist/tools/handlers/escrow-deficit.d.ts +10 -0
  265. package/dist/tools/handlers/escrow-deficit.js +1 -0
  266. package/dist/tools/handlers/evaluation.js +1 -1
  267. package/dist/tools/handlers/fund-rail-recipe.d.ts +10 -0
  268. package/dist/tools/handlers/fund-rail-recipe.js +1 -0
  269. package/dist/tools/handlers/intent-radar.js +1 -1
  270. package/dist/tools/handlers/local.js +1 -1
  271. package/dist/tools/handlers/mark-namespace.d.ts +30 -0
  272. package/dist/tools/handlers/mark-namespace.js +1 -0
  273. package/dist/tools/handlers/messenger.js +1 -1
  274. package/dist/tools/handlers/onchain-name-registration.d.ts +1 -0
  275. package/dist/tools/handlers/onchain-name-registration.js +1 -1
  276. package/dist/tools/handlers/onchain-name-registration.spec.js +1 -1
  277. package/dist/tools/handlers/onchain.d.ts +30 -1
  278. package/dist/tools/handlers/onchain.js +1 -1
  279. package/dist/tools/handlers/publish-binding-echo.d.ts +22 -0
  280. package/dist/tools/handlers/publish-binding-echo.js +1 -0
  281. package/dist/tools/handlers/query.d.ts +1 -1
  282. package/dist/tools/handlers/query.js +1 -1
  283. package/dist/tools/handlers/review-chain.d.ts +1 -0
  284. package/dist/tools/handlers/review-chain.js +1 -1
  285. package/dist/tools/handlers/schema-query.js +1 -1
  286. package/dist/tools/handlers/stale-build-check.d.ts +9 -0
  287. package/dist/tools/handlers/stale-build-check.js +1 -0
  288. package/dist/tools/handlers/submission-assembly.d.ts +55 -0
  289. package/dist/tools/handlers/submission-assembly.js +1 -0
  290. package/dist/tools/handlers/wip.js +1 -1
  291. package/dist/tools/index.d.ts +1 -0
  292. package/dist/tools/index.js +1 -1
  293. package/dist/tools/move-fn-index.gen.js +1 -1
  294. package/dist/tools/publish-gate-state.d.ts +5 -0
  295. package/dist/tools/publish-gate-state.js +1 -0
  296. package/dist/tools/registry/business.js +1 -1
  297. package/dist/tools/registry/onchain.js +1 -1
  298. package/dist/tools/registry/query.js +1 -1
  299. package/dist/tools/retry.js +1 -1
  300. package/dist/tools/runtime-health.js +1 -1
  301. package/dist/tools/shared.js +1 -1
  302. package/dist/tools/upgrade-check.d.ts +1 -0
  303. package/dist/tools/upgrade-check.js +1 -1
  304. package/dist/tools/wip-verify-ledger.d.ts +2 -0
  305. package/dist/tools/wip-verify-ledger.js +1 -1
  306. package/dist/tools/wrap.d.ts +15 -1
  307. package/dist/tools/wrap.js +1 -1
  308. package/package.json +5 -3
@@ -3365,6 +3365,272 @@
3365
3365
  "additionalProperties": false,
3366
3366
  "description": "Returns U256. ESCROW-BOUND sum (query 1179, live cap v140): per-row min(row_value, order.amount, LIVE allocation.balance of the Order the row id names) — only funds still in escrow right now count, so a refunded or already-disbursed order contributes 0 naturally; a row whose Order has no allocation link also contributes 0, while an unreadable allocation object aborts the query (corruption is never a silent 0). A row keyed by anything that is not an Order contributes 0 (fail-closed). Unlike query_repository_data_sum_where (self-reported row values), a record cannot claim more than the escrow actually bound to it — the forgery-proof aggregate for threshold gates and Formula pricing. Use logic_as_u256_* to compare the sum."
3367
3367
  },
3368
+ {
3369
+ "type": "object",
3370
+ "properties": {
3371
+ "type": {
3372
+ "type": "string",
3373
+ "const": "query_repository_data_sum_where_bound_all"
3374
+ },
3375
+ "object": {
3376
+ "type": "object",
3377
+ "properties": {
3378
+ "identifier": {
3379
+ "type": "integer",
3380
+ "minimum": 0,
3381
+ "maximum": 255,
3382
+ "description": "Identifier (0-255) for data lookup in Guard table. Slot consensus (enforced on-chain at guard table construction): 0-220 = user slots (free for business guards); 221-253 = PROTOCOL-RESERVED (rejected on-chain — reserved so future protocol features get fixed slots without colliding with published guards); 255 = ONCE replay-protection slot on Allocation (byte-keyed, the submitted bytes are the once-key — use for per-period keys like period-<N>); 254 = ONCE-FOR-OBJECT slot on Allocation (chain-derived key = bcs(the Allocation's payment_info.for_object); the submitted bytes are ignored and the submission only arms the slot — use for one-shot per-order rails whose payee is NOT the order itself, such as settlement releases and incentive/bounty claims). NEVER arm 254 on a refund rail: a refund pays the submitted Order through user slot 0, and a refund leg re-entered in a later renewal period would abort E_ONCE_TRIGGERED (16) forever — refund once-ness comes from the terminal-node topology, never from a once slot. SLOT 0 SEMANTICS: slot 0 carries the transacted Order address by convention. As a submission slot it is legal on order/allocation/machine rails (the order exists when those verify), but FORBIDDEN on a Service buy_guard — the order does not exist when the buy-time passport is verified, so the mount is refused (service abort 43)."
3383
+ }
3384
+ },
3385
+ "required": [
3386
+ "identifier"
3387
+ ],
3388
+ "additionalProperties": false,
3389
+ "description": "Reference to the Repository object in the Guard table (must be Address type)."
3390
+ },
3391
+ "key": {
3392
+ "type": "object",
3393
+ "properties": {
3394
+ "identifier": {
3395
+ "type": "integer",
3396
+ "minimum": 0,
3397
+ "maximum": 255,
3398
+ "description": "Identifier (0-255) for data lookup in Guard table. Slot consensus (enforced on-chain at guard table construction): 0-220 = user slots (free for business guards); 221-253 = PROTOCOL-RESERVED (rejected on-chain — reserved so future protocol features get fixed slots without colliding with published guards); 255 = ONCE replay-protection slot on Allocation (byte-keyed, the submitted bytes are the once-key — use for per-period keys like period-<N>); 254 = ONCE-FOR-OBJECT slot on Allocation (chain-derived key = bcs(the Allocation's payment_info.for_object); the submitted bytes are ignored and the submission only arms the slot — use for one-shot per-order rails whose payee is NOT the order itself, such as settlement releases and incentive/bounty claims). NEVER arm 254 on a refund rail: a refund pays the submitted Order through user slot 0, and a refund leg re-entered in a later renewal period would abort E_ONCE_TRIGGERED (16) forever — refund once-ness comes from the terminal-node topology, never from a once slot. SLOT 0 SEMANTICS: slot 0 carries the transacted Order address by convention. As a submission slot it is legal on order/allocation/machine rails (the order exists when those verify), but FORBIDDEN on a Service buy_guard — the order does not exist when the buy-time passport is verified, so the mount is refused (service abort 43)."
3399
+ }
3400
+ },
3401
+ "required": [
3402
+ "identifier"
3403
+ ],
3404
+ "additionalProperties": false,
3405
+ "description": "Reference to the policy key (String type table entry) whose data table is scanned."
3406
+ },
3407
+ "where": {
3408
+ "oneOf": [
3409
+ {
3410
+ "type": "object",
3411
+ "properties": {
3412
+ "kind": {
3413
+ "type": "string",
3414
+ "const": "range"
3415
+ },
3416
+ "valueMin": {
3417
+ "description": "Optional lower bound (inclusive unless minInclusive=false). Plain number string (U256 semantics).",
3418
+ "type": "string"
3419
+ },
3420
+ "valueMax": {
3421
+ "description": "Optional upper bound (inclusive unless maxInclusive=false). Plain number string (U256 semantics).",
3422
+ "type": "string"
3423
+ },
3424
+ "minInclusive": {
3425
+ "description": "Default true. false makes the lower bound exclusive.",
3426
+ "type": "boolean"
3427
+ },
3428
+ "maxInclusive": {
3429
+ "description": "Default true. false makes the upper bound exclusive.",
3430
+ "type": "boolean"
3431
+ }
3432
+ },
3433
+ "required": [
3434
+ "kind"
3435
+ ],
3436
+ "additionalProperties": false,
3437
+ "description": "Numeric closed/open range. min=max inclusive is an equality match. At least one bound required."
3438
+ },
3439
+ {
3440
+ "type": "object",
3441
+ "properties": {
3442
+ "kind": {
3443
+ "type": "string",
3444
+ "const": "numEq"
3445
+ },
3446
+ "value": {
3447
+ "type": "string",
3448
+ "description": "Exact numeric match. Plain number string (U256 semantics)."
3449
+ }
3450
+ },
3451
+ "required": [
3452
+ "kind",
3453
+ "value"
3454
+ ],
3455
+ "additionalProperties": false
3456
+ },
3457
+ {
3458
+ "type": "object",
3459
+ "properties": {
3460
+ "kind": {
3461
+ "type": "string",
3462
+ "const": "gt"
3463
+ },
3464
+ "value": {
3465
+ "type": "string",
3466
+ "description": "Greater than. Plain number string (U256 semantics)."
3467
+ }
3468
+ },
3469
+ "required": [
3470
+ "kind",
3471
+ "value"
3472
+ ],
3473
+ "additionalProperties": false
3474
+ },
3475
+ {
3476
+ "type": "object",
3477
+ "properties": {
3478
+ "kind": {
3479
+ "type": "string",
3480
+ "const": "gte"
3481
+ },
3482
+ "value": {
3483
+ "type": "string",
3484
+ "description": "Greater than or equal. Plain number string (U256 semantics)."
3485
+ }
3486
+ },
3487
+ "required": [
3488
+ "kind",
3489
+ "value"
3490
+ ],
3491
+ "additionalProperties": false
3492
+ },
3493
+ {
3494
+ "type": "object",
3495
+ "properties": {
3496
+ "kind": {
3497
+ "type": "string",
3498
+ "const": "lt"
3499
+ },
3500
+ "value": {
3501
+ "type": "string",
3502
+ "description": "Less than. Plain number string (U256 semantics)."
3503
+ }
3504
+ },
3505
+ "required": [
3506
+ "kind",
3507
+ "value"
3508
+ ],
3509
+ "additionalProperties": false
3510
+ },
3511
+ {
3512
+ "type": "object",
3513
+ "properties": {
3514
+ "kind": {
3515
+ "type": "string",
3516
+ "const": "lte"
3517
+ },
3518
+ "value": {
3519
+ "type": "string",
3520
+ "description": "Less than or equal. Plain number string (U256 semantics)."
3521
+ }
3522
+ },
3523
+ "required": [
3524
+ "kind",
3525
+ "value"
3526
+ ],
3527
+ "additionalProperties": false
3528
+ },
3529
+ {
3530
+ "type": "object",
3531
+ "properties": {
3532
+ "kind": {
3533
+ "type": "string",
3534
+ "const": "addressEq"
3535
+ },
3536
+ "identifier": {
3537
+ "type": "integer",
3538
+ "minimum": 0,
3539
+ "maximum": 255,
3540
+ "description": "Identifier of the Address-type table entry to compare against."
3541
+ }
3542
+ },
3543
+ "required": [
3544
+ "kind",
3545
+ "identifier"
3546
+ ],
3547
+ "additionalProperties": false
3548
+ },
3549
+ {
3550
+ "type": "object",
3551
+ "properties": {
3552
+ "kind": {
3553
+ "type": "string",
3554
+ "const": "stringEq"
3555
+ },
3556
+ "value": {
3557
+ "type": "string",
3558
+ "description": "Exact string match (byte equality, UTF-8)."
3559
+ }
3560
+ },
3561
+ "required": [
3562
+ "kind",
3563
+ "value"
3564
+ ],
3565
+ "additionalProperties": false
3566
+ },
3567
+ {
3568
+ "type": "object",
3569
+ "properties": {
3570
+ "kind": {
3571
+ "type": "string",
3572
+ "const": "stringContains"
3573
+ },
3574
+ "value": {
3575
+ "type": "string",
3576
+ "description": "Substring match, case-sensitive."
3577
+ }
3578
+ },
3579
+ "required": [
3580
+ "kind",
3581
+ "value"
3582
+ ],
3583
+ "additionalProperties": false
3584
+ },
3585
+ {
3586
+ "type": "object",
3587
+ "properties": {
3588
+ "kind": {
3589
+ "type": "string",
3590
+ "const": "stringNoCaseContains"
3591
+ },
3592
+ "value": {
3593
+ "type": "string",
3594
+ "description": "Substring match, case-insensitive."
3595
+ }
3596
+ },
3597
+ "required": [
3598
+ "kind",
3599
+ "value"
3600
+ ],
3601
+ "additionalProperties": false
3602
+ },
3603
+ {
3604
+ "type": "object",
3605
+ "properties": {
3606
+ "kind": {
3607
+ "type": "string",
3608
+ "const": "boolEq"
3609
+ },
3610
+ "value": {
3611
+ "type": "boolean",
3612
+ "description": "Boolean equality."
3613
+ }
3614
+ },
3615
+ "required": [
3616
+ "kind",
3617
+ "value"
3618
+ ],
3619
+ "additionalProperties": false
3620
+ }
3621
+ ],
3622
+ "description": "Predicate filter applied to each row's data value."
3623
+ }
3624
+ },
3625
+ "required": [
3626
+ "type",
3627
+ "object",
3628
+ "key",
3629
+ "where"
3630
+ ],
3631
+ "additionalProperties": false,
3632
+ "description": "Returns U256. ALL-MODE escrow-bound sum (query 1181, flag enable_repository_data_sum_bound_all, protocol v141 — the query ABORTS while the flag is off): the 1179 per-row clamp min(row_value, order.amount, LIVE allocation.balance) over a DERIVED candidate set — the per-key RowRosterKey dynamic-field roster the framework maintains on every data write — instead of a caller-supplied ids list, so the aggregate no longer depends on the caller submitting an honest, complete candidate list (the ks13/HKS-04 ROSTER-01 face). No ids parameter. The roster is bounded by REPOSITORY_QUERY_MAX_CANDIDATES: a key with more rows aborts the query (fail-closed, never a silent truncation). Pre-flag rows (written before the roster was maintained, or under a disabled flag on an older binary) are NOT in the roster and contribute 0 — rebuild or re-touch rows after enabling. Use logic_as_u256_* to compare the sum."
3633
+ },
3368
3634
  {
3369
3635
  "type": "object",
3370
3636
  "properties": {
@@ -4311,6 +4577,14 @@
4311
4577
  "description": "Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify that an operation will succeed before committing. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only).",
4312
4578
  "type": "boolean"
4313
4579
  },
4580
+ "window_profile": {
4581
+ "description": "Time-window profile for trial runs (N8 ktt6 F-14 re-carving of the 'business windows are never test-compressed' ruling, 2026-11-04). 'production' (default): compressed time-window violations BLOCK publish exactly as before. 'test': compressed windows are ADMITTED so a disposable trial store can run its full lifecycle fast — R-TIME-PROFILE violations degrade to loud named disclosures, and the publish itself is BLOCKED on a real network (testnet/mainnet); point the trial at a local/dev chain (env.network='localnet'). Trial discipline: test-profile stores are throwaway — a production store must re-issue WITHOUT this flag (guards freeze at publish, so compressed windows are unrepairable except by rebuilding the store).",
4582
+ "type": "string",
4583
+ "enum": [
4584
+ "production",
4585
+ "test"
4586
+ ]
4587
+ },
4314
4588
  "response_level": {
4315
4589
  "description": "Write-success response size. 'compact' (default) trims the structured result to key fields (digest + created object references); 'full' includes the complete raw result. Default: compact.",
4316
4590
  "type": "string",
@@ -6279,117 +6553,400 @@
6279
6553
  "description": "GuardNode that returns the history index (U64 type). Typically an 'identifier' node referencing a U64 value from the Guard table.",
6280
6554
  "allOf": [
6281
6555
  {
6282
- "$ref": "#/definitions/__schema1"
6283
- }
6284
- ],
6285
- "$ref": "#/definitions/__schema0"
6286
- },
6287
- "sessionIdx": {
6288
- "description": "GuardNode that returns the session index (U64 type) within the history entry. Typically an 'identifier' node referencing a U64 value from the Guard table.",
6289
- "allOf": [
6556
+ "$ref": "#/definitions/__schema1"
6557
+ }
6558
+ ],
6559
+ "$ref": "#/definitions/__schema0"
6560
+ },
6561
+ "sessionIdx": {
6562
+ "description": "GuardNode that returns the session index (U64 type) within the history entry. Typically an 'identifier' node referencing a U64 value from the Guard table.",
6563
+ "allOf": [
6564
+ {
6565
+ "$ref": "#/definitions/__schema1"
6566
+ }
6567
+ ],
6568
+ "$ref": "#/definitions/__schema0"
6569
+ },
6570
+ "forwardIdx": {
6571
+ "description": "GuardNode that returns the forward operation index (U64 type) within the session. Typically an 'identifier' node referencing a U64 value from the Guard table.",
6572
+ "allOf": [
6573
+ {
6574
+ "$ref": "#/definitions/__schema1"
6575
+ }
6576
+ ],
6577
+ "$ref": "#/definitions/__schema0"
6578
+ }
6579
+ },
6580
+ "required": [
6581
+ "type",
6582
+ "object",
6583
+ "historyIdx",
6584
+ "sessionIdx",
6585
+ "forwardIdx"
6586
+ ],
6587
+ "additionalProperties": false,
6588
+ "description": "Returns U64. Counts the number of retained submissions within the specified forward operation."
6589
+ },
6590
+ {
6591
+ "type": "object",
6592
+ "properties": {
6593
+ "type": {
6594
+ "type": "string",
6595
+ "const": "query_progress_history_session_forward_retained_submission_value"
6596
+ },
6597
+ "object": {
6598
+ "type": "object",
6599
+ "properties": {
6600
+ "identifier": {
6601
+ "type": "integer",
6602
+ "minimum": 0,
6603
+ "maximum": 255,
6604
+ "description": "Identifier (0-255) for data lookup in Guard table. Slot consensus (enforced on-chain at guard table construction): 0-220 = user slots (free for business guards); 221-253 = PROTOCOL-RESERVED (rejected on-chain — reserved so future protocol features get fixed slots without colliding with published guards); 255 = ONCE replay-protection slot on Allocation (byte-keyed, the submitted bytes are the once-key — use for per-period keys like period-<N>); 254 = ONCE-FOR-OBJECT slot on Allocation (chain-derived key = bcs(the Allocation's payment_info.for_object); the submitted bytes are ignored and the submission only arms the slot — use for one-shot per-order rails whose payee is NOT the order itself, such as settlement releases and incentive/bounty claims). NEVER arm 254 on a refund rail: a refund pays the submitted Order through user slot 0, and a refund leg re-entered in a later renewal period would abort E_ONCE_TRIGGERED (16) forever — refund once-ness comes from the terminal-node topology, never from a once slot. SLOT 0 SEMANTICS: slot 0 carries the transacted Order address by convention. As a submission slot it is legal on order/allocation/machine rails (the order exists when those verify), but FORBIDDEN on a Service buy_guard — the order does not exist when the buy-time passport is verified, so the mount is refused (service abort 43)."
6605
+ }
6606
+ },
6607
+ "required": [
6608
+ "identifier"
6609
+ ],
6610
+ "additionalProperties": false,
6611
+ "description": "Reference to the Progress object in the Guard table (must be Address type)."
6612
+ },
6613
+ "historyIdx": {
6614
+ "description": "GuardNode that returns the history index (U64 type). Typically an 'identifier' node referencing a U64 value from the Guard table.",
6615
+ "allOf": [
6616
+ {
6617
+ "$ref": "#/definitions/__schema1"
6618
+ }
6619
+ ],
6620
+ "$ref": "#/definitions/__schema0"
6621
+ },
6622
+ "sessionIdx": {
6623
+ "description": "GuardNode that returns the session index (U64 type) within the history entry. Typically an 'identifier' node referencing a U64 value from the Guard table.",
6624
+ "allOf": [
6625
+ {
6626
+ "$ref": "#/definitions/__schema1"
6627
+ }
6628
+ ],
6629
+ "$ref": "#/definitions/__schema0"
6630
+ },
6631
+ "forwardIdx": {
6632
+ "description": "GuardNode that returns the forward operation index (U64 type) within the session. Typically an 'identifier' node referencing a U64 value from the Guard table.",
6633
+ "allOf": [
6634
+ {
6635
+ "$ref": "#/definitions/__schema1"
6636
+ }
6637
+ ],
6638
+ "$ref": "#/definitions/__schema0"
6639
+ },
6640
+ "identifier": {
6641
+ "description": "GuardNode that returns the submission identifier (U8 type) — which retained submission of the forward to read. Typically an 'identifier' node referencing a U8 value from the Guard table.",
6642
+ "allOf": [
6643
+ {
6644
+ "$ref": "#/definitions/__schema1"
6645
+ }
6646
+ ],
6647
+ "$ref": "#/definitions/__schema0"
6648
+ }
6649
+ },
6650
+ "required": [
6651
+ "type",
6652
+ "object",
6653
+ "historyIdx",
6654
+ "sessionIdx",
6655
+ "forwardIdx",
6656
+ "identifier"
6657
+ ],
6658
+ "additionalProperties": false,
6659
+ "description": "Returns VecU8 (the ONLY history query that does not return U64). Value of the specified retained submission of a HISTORY record (query 1281) — the history-side counterpart of the ACTIVE-SESSION-ONLY 1268 read, which goes blind once the session migrates into history. Use 1274/1275 to discover the history/session/forward indexes first. Throws error when the record carries no submission for the identifier (Guard validation fails)."
6660
+ },
6661
+ {
6662
+ "type": "object",
6663
+ "properties": {
6664
+ "type": {
6665
+ "type": "string",
6666
+ "const": "query_repository_data_count_where"
6667
+ },
6668
+ "object": {
6669
+ "type": "object",
6670
+ "properties": {
6671
+ "identifier": {
6672
+ "type": "integer",
6673
+ "minimum": 0,
6674
+ "maximum": 255,
6675
+ "description": "Identifier (0-255) for data lookup in Guard table. Slot consensus (enforced on-chain at guard table construction): 0-220 = user slots (free for business guards); 221-253 = PROTOCOL-RESERVED (rejected on-chain — reserved so future protocol features get fixed slots without colliding with published guards); 255 = ONCE replay-protection slot on Allocation (byte-keyed, the submitted bytes are the once-key — use for per-period keys like period-<N>); 254 = ONCE-FOR-OBJECT slot on Allocation (chain-derived key = bcs(the Allocation's payment_info.for_object); the submitted bytes are ignored and the submission only arms the slot — use for one-shot per-order rails whose payee is NOT the order itself, such as settlement releases and incentive/bounty claims). NEVER arm 254 on a refund rail: a refund pays the submitted Order through user slot 0, and a refund leg re-entered in a later renewal period would abort E_ONCE_TRIGGERED (16) forever — refund once-ness comes from the terminal-node topology, never from a once slot. SLOT 0 SEMANTICS: slot 0 carries the transacted Order address by convention. As a submission slot it is legal on order/allocation/machine rails (the order exists when those verify), but FORBIDDEN on a Service buy_guard — the order does not exist when the buy-time passport is verified, so the mount is refused (service abort 43)."
6676
+ }
6677
+ },
6678
+ "required": [
6679
+ "identifier"
6680
+ ],
6681
+ "additionalProperties": false,
6682
+ "description": "Reference to the Repository object in the Guard table (must be Address type)."
6683
+ },
6684
+ "key": {
6685
+ "type": "object",
6686
+ "properties": {
6687
+ "identifier": {
6688
+ "type": "integer",
6689
+ "minimum": 0,
6690
+ "maximum": 255,
6691
+ "description": "Identifier (0-255) for data lookup in Guard table. Slot consensus (enforced on-chain at guard table construction): 0-220 = user slots (free for business guards); 221-253 = PROTOCOL-RESERVED (rejected on-chain — reserved so future protocol features get fixed slots without colliding with published guards); 255 = ONCE replay-protection slot on Allocation (byte-keyed, the submitted bytes are the once-key — use for per-period keys like period-<N>); 254 = ONCE-FOR-OBJECT slot on Allocation (chain-derived key = bcs(the Allocation's payment_info.for_object); the submitted bytes are ignored and the submission only arms the slot — use for one-shot per-order rails whose payee is NOT the order itself, such as settlement releases and incentive/bounty claims). NEVER arm 254 on a refund rail: a refund pays the submitted Order through user slot 0, and a refund leg re-entered in a later renewal period would abort E_ONCE_TRIGGERED (16) forever — refund once-ness comes from the terminal-node topology, never from a once slot. SLOT 0 SEMANTICS: slot 0 carries the transacted Order address by convention. As a submission slot it is legal on order/allocation/machine rails (the order exists when those verify), but FORBIDDEN on a Service buy_guard — the order does not exist when the buy-time passport is verified, so the mount is refused (service abort 43)."
6692
+ }
6693
+ },
6694
+ "required": [
6695
+ "identifier"
6696
+ ],
6697
+ "additionalProperties": false,
6698
+ "description": "Reference to the policy key (String type table entry) whose data table is scanned."
6699
+ },
6700
+ "ids": {
6701
+ "type": "object",
6702
+ "properties": {
6703
+ "identifier": {
6704
+ "type": "integer",
6705
+ "minimum": 0,
6706
+ "maximum": 255,
6707
+ "description": "Identifier (0-255) for data lookup in Guard table. Slot consensus (enforced on-chain at guard table construction): 0-220 = user slots (free for business guards); 221-253 = PROTOCOL-RESERVED (rejected on-chain — reserved so future protocol features get fixed slots without colliding with published guards); 255 = ONCE replay-protection slot on Allocation (byte-keyed, the submitted bytes are the once-key — use for per-period keys like period-<N>); 254 = ONCE-FOR-OBJECT slot on Allocation (chain-derived key = bcs(the Allocation's payment_info.for_object); the submitted bytes are ignored and the submission only arms the slot — use for one-shot per-order rails whose payee is NOT the order itself, such as settlement releases and incentive/bounty claims). NEVER arm 254 on a refund rail: a refund pays the submitted Order through user slot 0, and a refund leg re-entered in a later renewal period would abort E_ONCE_TRIGGERED (16) forever — refund once-ness comes from the terminal-node topology, never from a once slot. SLOT 0 SEMANTICS: slot 0 carries the transacted Order address by convention. As a submission slot it is legal on order/allocation/machine rails (the order exists when those verify), but FORBIDDEN on a Service buy_guard — the order does not exist when the buy-time passport is verified, so the mount is refused (service abort 43)."
6708
+ }
6709
+ },
6710
+ "required": [
6711
+ "identifier"
6712
+ ],
6713
+ "additionalProperties": false,
6714
+ "description": "Reference to the candidate ID list (VecAddress type table entry). Duplicates are deduped; max 100 candidates."
6715
+ },
6716
+ "where": {
6717
+ "oneOf": [
6718
+ {
6719
+ "type": "object",
6720
+ "properties": {
6721
+ "kind": {
6722
+ "type": "string",
6723
+ "const": "range"
6724
+ },
6725
+ "valueMin": {
6726
+ "description": "Optional lower bound (inclusive unless minInclusive=false). Plain number string (U256 semantics).",
6727
+ "type": "string"
6728
+ },
6729
+ "valueMax": {
6730
+ "description": "Optional upper bound (inclusive unless maxInclusive=false). Plain number string (U256 semantics).",
6731
+ "type": "string"
6732
+ },
6733
+ "minInclusive": {
6734
+ "description": "Default true. false makes the lower bound exclusive.",
6735
+ "type": "boolean"
6736
+ },
6737
+ "maxInclusive": {
6738
+ "description": "Default true. false makes the upper bound exclusive.",
6739
+ "type": "boolean"
6740
+ }
6741
+ },
6742
+ "required": [
6743
+ "kind"
6744
+ ],
6745
+ "additionalProperties": false,
6746
+ "description": "Numeric closed/open range. min=max inclusive is an equality match. At least one bound required."
6747
+ },
6748
+ {
6749
+ "type": "object",
6750
+ "properties": {
6751
+ "kind": {
6752
+ "type": "string",
6753
+ "const": "numEq"
6754
+ },
6755
+ "value": {
6756
+ "type": "string",
6757
+ "description": "Exact numeric match. Plain number string (U256 semantics)."
6758
+ }
6759
+ },
6760
+ "required": [
6761
+ "kind",
6762
+ "value"
6763
+ ],
6764
+ "additionalProperties": false
6765
+ },
6766
+ {
6767
+ "type": "object",
6768
+ "properties": {
6769
+ "kind": {
6770
+ "type": "string",
6771
+ "const": "gt"
6772
+ },
6773
+ "value": {
6774
+ "type": "string",
6775
+ "description": "Greater than. Plain number string (U256 semantics)."
6776
+ }
6777
+ },
6778
+ "required": [
6779
+ "kind",
6780
+ "value"
6781
+ ],
6782
+ "additionalProperties": false
6783
+ },
6784
+ {
6785
+ "type": "object",
6786
+ "properties": {
6787
+ "kind": {
6788
+ "type": "string",
6789
+ "const": "gte"
6790
+ },
6791
+ "value": {
6792
+ "type": "string",
6793
+ "description": "Greater than or equal. Plain number string (U256 semantics)."
6794
+ }
6795
+ },
6796
+ "required": [
6797
+ "kind",
6798
+ "value"
6799
+ ],
6800
+ "additionalProperties": false
6801
+ },
6802
+ {
6803
+ "type": "object",
6804
+ "properties": {
6805
+ "kind": {
6806
+ "type": "string",
6807
+ "const": "lt"
6808
+ },
6809
+ "value": {
6810
+ "type": "string",
6811
+ "description": "Less than. Plain number string (U256 semantics)."
6812
+ }
6813
+ },
6814
+ "required": [
6815
+ "kind",
6816
+ "value"
6817
+ ],
6818
+ "additionalProperties": false
6819
+ },
6290
6820
  {
6291
- "$ref": "#/definitions/__schema1"
6292
- }
6293
- ],
6294
- "$ref": "#/definitions/__schema0"
6295
- },
6296
- "forwardIdx": {
6297
- "description": "GuardNode that returns the forward operation index (U64 type) within the session. Typically an 'identifier' node referencing a U64 value from the Guard table.",
6298
- "allOf": [
6821
+ "type": "object",
6822
+ "properties": {
6823
+ "kind": {
6824
+ "type": "string",
6825
+ "const": "lte"
6826
+ },
6827
+ "value": {
6828
+ "type": "string",
6829
+ "description": "Less than or equal. Plain number string (U256 semantics)."
6830
+ }
6831
+ },
6832
+ "required": [
6833
+ "kind",
6834
+ "value"
6835
+ ],
6836
+ "additionalProperties": false
6837
+ },
6299
6838
  {
6300
- "$ref": "#/definitions/__schema1"
6301
- }
6302
- ],
6303
- "$ref": "#/definitions/__schema0"
6304
- }
6305
- },
6306
- "required": [
6307
- "type",
6308
- "object",
6309
- "historyIdx",
6310
- "sessionIdx",
6311
- "forwardIdx"
6312
- ],
6313
- "additionalProperties": false,
6314
- "description": "Returns U64. Counts the number of retained submissions within the specified forward operation."
6315
- },
6316
- {
6317
- "type": "object",
6318
- "properties": {
6319
- "type": {
6320
- "type": "string",
6321
- "const": "query_progress_history_session_forward_retained_submission_value"
6322
- },
6323
- "object": {
6324
- "type": "object",
6325
- "properties": {
6326
- "identifier": {
6327
- "type": "integer",
6328
- "minimum": 0,
6329
- "maximum": 255,
6330
- "description": "Identifier (0-255) for data lookup in Guard table. Slot consensus (enforced on-chain at guard table construction): 0-220 = user slots (free for business guards); 221-253 = PROTOCOL-RESERVED (rejected on-chain — reserved so future protocol features get fixed slots without colliding with published guards); 255 = ONCE replay-protection slot on Allocation (byte-keyed, the submitted bytes are the once-key — use for per-period keys like period-<N>); 254 = ONCE-FOR-OBJECT slot on Allocation (chain-derived key = bcs(the Allocation's payment_info.for_object); the submitted bytes are ignored and the submission only arms the slot — use for one-shot per-order rails whose payee is NOT the order itself, such as settlement releases and incentive/bounty claims). NEVER arm 254 on a refund rail: a refund pays the submitted Order through user slot 0, and a refund leg re-entered in a later renewal period would abort E_ONCE_TRIGGERED (16) forever — refund once-ness comes from the terminal-node topology, never from a once slot. SLOT 0 SEMANTICS: slot 0 carries the transacted Order address by convention. As a submission slot it is legal on order/allocation/machine rails (the order exists when those verify), but FORBIDDEN on a Service buy_guard — the order does not exist when the buy-time passport is verified, so the mount is refused (service abort 43)."
6331
- }
6332
- },
6333
- "required": [
6334
- "identifier"
6335
- ],
6336
- "additionalProperties": false,
6337
- "description": "Reference to the Progress object in the Guard table (must be Address type)."
6338
- },
6339
- "historyIdx": {
6340
- "description": "GuardNode that returns the history index (U64 type). Typically an 'identifier' node referencing a U64 value from the Guard table.",
6341
- "allOf": [
6839
+ "type": "object",
6840
+ "properties": {
6841
+ "kind": {
6842
+ "type": "string",
6843
+ "const": "addressEq"
6844
+ },
6845
+ "identifier": {
6846
+ "type": "integer",
6847
+ "minimum": 0,
6848
+ "maximum": 255,
6849
+ "description": "Identifier of the Address-type table entry to compare against."
6850
+ }
6851
+ },
6852
+ "required": [
6853
+ "kind",
6854
+ "identifier"
6855
+ ],
6856
+ "additionalProperties": false
6857
+ },
6342
6858
  {
6343
- "$ref": "#/definitions/__schema1"
6344
- }
6345
- ],
6346
- "$ref": "#/definitions/__schema0"
6347
- },
6348
- "sessionIdx": {
6349
- "description": "GuardNode that returns the session index (U64 type) within the history entry. Typically an 'identifier' node referencing a U64 value from the Guard table.",
6350
- "allOf": [
6859
+ "type": "object",
6860
+ "properties": {
6861
+ "kind": {
6862
+ "type": "string",
6863
+ "const": "stringEq"
6864
+ },
6865
+ "value": {
6866
+ "type": "string",
6867
+ "description": "Exact string match (byte equality, UTF-8)."
6868
+ }
6869
+ },
6870
+ "required": [
6871
+ "kind",
6872
+ "value"
6873
+ ],
6874
+ "additionalProperties": false
6875
+ },
6351
6876
  {
6352
- "$ref": "#/definitions/__schema1"
6353
- }
6354
- ],
6355
- "$ref": "#/definitions/__schema0"
6356
- },
6357
- "forwardIdx": {
6358
- "description": "GuardNode that returns the forward operation index (U64 type) within the session. Typically an 'identifier' node referencing a U64 value from the Guard table.",
6359
- "allOf": [
6877
+ "type": "object",
6878
+ "properties": {
6879
+ "kind": {
6880
+ "type": "string",
6881
+ "const": "stringContains"
6882
+ },
6883
+ "value": {
6884
+ "type": "string",
6885
+ "description": "Substring match, case-sensitive."
6886
+ }
6887
+ },
6888
+ "required": [
6889
+ "kind",
6890
+ "value"
6891
+ ],
6892
+ "additionalProperties": false
6893
+ },
6360
6894
  {
6361
- "$ref": "#/definitions/__schema1"
6362
- }
6363
- ],
6364
- "$ref": "#/definitions/__schema0"
6365
- },
6366
- "identifier": {
6367
- "description": "GuardNode that returns the submission identifier (U8 type) — which retained submission of the forward to read. Typically an 'identifier' node referencing a U8 value from the Guard table.",
6368
- "allOf": [
6895
+ "type": "object",
6896
+ "properties": {
6897
+ "kind": {
6898
+ "type": "string",
6899
+ "const": "stringNoCaseContains"
6900
+ },
6901
+ "value": {
6902
+ "type": "string",
6903
+ "description": "Substring match, case-insensitive."
6904
+ }
6905
+ },
6906
+ "required": [
6907
+ "kind",
6908
+ "value"
6909
+ ],
6910
+ "additionalProperties": false
6911
+ },
6369
6912
  {
6370
- "$ref": "#/definitions/__schema1"
6913
+ "type": "object",
6914
+ "properties": {
6915
+ "kind": {
6916
+ "type": "string",
6917
+ "const": "boolEq"
6918
+ },
6919
+ "value": {
6920
+ "type": "boolean",
6921
+ "description": "Boolean equality."
6922
+ }
6923
+ },
6924
+ "required": [
6925
+ "kind",
6926
+ "value"
6927
+ ],
6928
+ "additionalProperties": false
6371
6929
  }
6372
6930
  ],
6373
- "$ref": "#/definitions/__schema0"
6931
+ "description": "Predicate filter applied to each candidate's data value."
6374
6932
  }
6375
6933
  },
6376
6934
  "required": [
6377
6935
  "type",
6378
6936
  "object",
6379
- "historyIdx",
6380
- "sessionIdx",
6381
- "forwardIdx",
6382
- "identifier"
6937
+ "key",
6938
+ "ids",
6939
+ "where"
6383
6940
  ],
6384
6941
  "additionalProperties": false,
6385
- "description": "Returns VecU8 (the ONLY history query that does not return U64). Value of the specified retained submission of a HISTORY record (query 1281) — the history-side counterpart of the ACTIVE-SESSION-ONLY 1268 read, which goes blind once the session migrates into history. Use 1274/1275 to discover the history/session/forward indexes first. Throws error when the record carries no submission for the identifier (Guard validation fails)."
6942
+ "description": "Returns U64. Counts candidates whose stored value matches the predicate. Numeric predicates: U256 semantics (pass plain number strings). Range is closed interval per side (minInclusive/maxInclusive default true); a missing side is unbounded. numEq/gt/gte/lt/lte are sugar over range. Entries whose value type does not match the predicate kind are skipped (never error), so the count only reflects matching entries."
6386
6943
  },
6387
6944
  {
6388
6945
  "type": "object",
6389
6946
  "properties": {
6390
6947
  "type": {
6391
6948
  "type": "string",
6392
- "const": "query_repository_data_count_where"
6949
+ "const": "query_repository_data_sum_where"
6393
6950
  },
6394
6951
  "object": {
6395
6952
  "type": "object",
@@ -6665,14 +7222,14 @@
6665
7222
  "where"
6666
7223
  ],
6667
7224
  "additionalProperties": false,
6668
- "description": "Returns U64. Counts candidates whose stored value matches the predicate. Numeric predicates: U256 semantics (pass plain number strings). Range is closed interval per side (minInclusive/maxInclusive default true); a missing side is unbounded. numEq/gt/gte/lt/lte are sugar over range. Entries whose value type does not match the predicate kind are skipped (never error), so the count only reflects matching entries."
7225
+ "description": "Returns U256. Sums the numeric payloads of candidates whose stored value matches the predicate (on-chain checked add, overflow aborts). Non-numeric or mismatching entries contribute 0. Use logic_as_u256_* to compare the sum."
6669
7226
  },
6670
7227
  {
6671
7228
  "type": "object",
6672
7229
  "properties": {
6673
7230
  "type": {
6674
7231
  "type": "string",
6675
- "const": "query_repository_data_sum_where"
7232
+ "const": "query_repository_data_sum_where_bound"
6676
7233
  },
6677
7234
  "object": {
6678
7235
  "type": "object",
@@ -6720,7 +7277,7 @@
6720
7277
  "identifier"
6721
7278
  ],
6722
7279
  "additionalProperties": false,
6723
- "description": "Reference to the candidate ID list (VecAddress type table entry). Duplicates are deduped; max 100 candidates."
7280
+ "description": "Reference to the candidate ID list (VecAddress type table entry). Each id should be an ORDER address (e.g. order-keyed contribution rows). Duplicates are deduped; max 100 candidates."
6724
7281
  },
6725
7282
  "where": {
6726
7283
  "oneOf": [
@@ -6948,14 +7505,14 @@
6948
7505
  "where"
6949
7506
  ],
6950
7507
  "additionalProperties": false,
6951
- "description": "Returns U256. Sums the numeric payloads of candidates whose stored value matches the predicate (on-chain checked add, overflow aborts). Non-numeric or mismatching entries contribute 0. Use logic_as_u256_* to compare the sum."
7508
+ "description": "Returns U256. ESCROW-BOUND sum (query 1179, live cap v140): per-row min(row_value, order.amount, LIVE allocation.balance of the Order the row id names) — only funds still in escrow right now count, so a refunded or already-disbursed order contributes 0 naturally; a row whose Order has no allocation link also contributes 0, while an unreadable allocation object aborts the query (corruption is never a silent 0). A row keyed by anything that is not an Order contributes 0 (fail-closed). Unlike query_repository_data_sum_where (self-reported row values), a record cannot claim more than the escrow actually bound to it — the forgery-proof aggregate for threshold gates and Formula pricing. Use logic_as_u256_* to compare the sum."
6952
7509
  },
6953
7510
  {
6954
7511
  "type": "object",
6955
7512
  "properties": {
6956
7513
  "type": {
6957
7514
  "type": "string",
6958
- "const": "query_repository_data_sum_where_bound"
7515
+ "const": "query_repository_data_sum_where_bound_all"
6959
7516
  },
6960
7517
  "object": {
6961
7518
  "type": "object",
@@ -6989,22 +7546,6 @@
6989
7546
  "additionalProperties": false,
6990
7547
  "description": "Reference to the policy key (String type table entry) whose data table is scanned."
6991
7548
  },
6992
- "ids": {
6993
- "type": "object",
6994
- "properties": {
6995
- "identifier": {
6996
- "type": "integer",
6997
- "minimum": 0,
6998
- "maximum": 255,
6999
- "description": "Identifier (0-255) for data lookup in Guard table. Slot consensus (enforced on-chain at guard table construction): 0-220 = user slots (free for business guards); 221-253 = PROTOCOL-RESERVED (rejected on-chain — reserved so future protocol features get fixed slots without colliding with published guards); 255 = ONCE replay-protection slot on Allocation (byte-keyed, the submitted bytes are the once-key — use for per-period keys like period-<N>); 254 = ONCE-FOR-OBJECT slot on Allocation (chain-derived key = bcs(the Allocation's payment_info.for_object); the submitted bytes are ignored and the submission only arms the slot — use for one-shot per-order rails whose payee is NOT the order itself, such as settlement releases and incentive/bounty claims). NEVER arm 254 on a refund rail: a refund pays the submitted Order through user slot 0, and a refund leg re-entered in a later renewal period would abort E_ONCE_TRIGGERED (16) forever — refund once-ness comes from the terminal-node topology, never from a once slot. SLOT 0 SEMANTICS: slot 0 carries the transacted Order address by convention. As a submission slot it is legal on order/allocation/machine rails (the order exists when those verify), but FORBIDDEN on a Service buy_guard — the order does not exist when the buy-time passport is verified, so the mount is refused (service abort 43)."
7000
- }
7001
- },
7002
- "required": [
7003
- "identifier"
7004
- ],
7005
- "additionalProperties": false,
7006
- "description": "Reference to the candidate ID list (VecAddress type table entry). Each id should be an ORDER address (e.g. order-keyed contribution rows). Duplicates are deduped; max 100 candidates."
7007
- },
7008
7549
  "where": {
7009
7550
  "oneOf": [
7010
7551
  {
@@ -7220,18 +7761,17 @@
7220
7761
  "additionalProperties": false
7221
7762
  }
7222
7763
  ],
7223
- "description": "Predicate filter applied to each candidate's data value."
7764
+ "description": "Predicate filter applied to each row's data value."
7224
7765
  }
7225
7766
  },
7226
7767
  "required": [
7227
7768
  "type",
7228
7769
  "object",
7229
7770
  "key",
7230
- "ids",
7231
7771
  "where"
7232
7772
  ],
7233
7773
  "additionalProperties": false,
7234
- "description": "Returns U256. ESCROW-BOUND sum (query 1179, live cap v140): per-row min(row_value, order.amount, LIVE allocation.balance of the Order the row id names) — only funds still in escrow right now count, so a refunded or already-disbursed order contributes 0 naturally; a row whose Order has no allocation link also contributes 0, while an unreadable allocation object aborts the query (corruption is never a silent 0). A row keyed by anything that is not an Order contributes 0 (fail-closed). Unlike query_repository_data_sum_where (self-reported row values), a record cannot claim more than the escrow actually bound to it — the forgery-proof aggregate for threshold gates and Formula pricing. Use logic_as_u256_* to compare the sum."
7774
+ "description": "Returns U256. ALL-MODE escrow-bound sum (query 1181, flag enable_repository_data_sum_bound_all, protocol v141 — the query ABORTS while the flag is off): the 1179 per-row clamp min(row_value, order.amount, LIVE allocation.balance) over a DERIVED candidate set — the per-key RowRosterKey dynamic-field roster the framework maintains on every data write — instead of a caller-supplied ids list, so the aggregate no longer depends on the caller submitting an honest, complete candidate list (the ks13/HKS-04 ROSTER-01 face). No ids parameter. The roster is bounded by REPOSITORY_QUERY_MAX_CANDIDATES: a key with more rows aborts the query (fail-closed, never a silent truncation). Pre-flag rows (written before the roster was maintained, or under a disabled flag on an older binary) are NOT in the roster and contribute 0 — rebuild or re-touch rows after enabling. Use logic_as_u256_* to compare the sum."
7235
7775
  },
7236
7776
  {
7237
7777
  "type": "object",