@wowok/agent-mcp 3.4.1 → 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.
- package/dist/.build-stamp.json +5 -0
- package/dist/chain-semantics/composition-truth.js +1 -1
- package/dist/chain-semantics/eval-order.js +1 -1
- package/dist/chain-semantics/field-capability.js +1 -1
- package/dist/chain-semantics/freeze-map.js +1 -1
- package/dist/chain-semantics/fund-flow.js +1 -1
- package/dist/chain-semantics/guard-verbs.js +1 -1
- package/dist/chain-semantics/object-graph.js +1 -1
- package/dist/composition/audit.js +1 -1
- package/dist/composition/compile.d.ts +10 -3
- package/dist/composition/compile.js +1 -1
- package/dist/composition/emit-phases.d.ts +30 -2
- package/dist/composition/emit-phases.js +1 -1
- package/dist/composition/guard-fill.d.ts +8 -0
- package/dist/composition/guard-fill.js +1 -1
- package/dist/composition/inflight.js +1 -1
- package/dist/composition/input-normalize.js +1 -1
- package/dist/composition/materialize.d.ts +2 -0
- package/dist/composition/materialize.js +1 -1
- package/dist/composition/mode-gates.js +1 -1
- package/dist/composition/param-disclosure.js +1 -1
- package/dist/composition/plan-retry-ledger.d.ts +16 -0
- package/dist/composition/plan-retry-ledger.js +1 -1
- package/dist/composition/plan.d.ts +15 -1
- package/dist/composition/plan.js +1 -1
- package/dist/config/config-audit.spec.js +1 -1
- package/dist/config/judgment.d.ts +5 -0
- package/dist/config/judgment.js +1 -1
- package/dist/evaluation/builtins/arbitration-score.d.ts +1 -0
- package/dist/evaluation/builtins/arbitration-score.js +1 -1
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/graph-service.d.ts +8 -0
- package/dist/evaluation/builtins/graph-service.js +1 -1
- package/dist/evaluation/capability.d.ts +9 -0
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/extract.d.ts +9 -1
- package/dist/evaluation/extract.js +1 -1
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/evaluation/match-policy.d.ts +5 -3
- package/dist/evaluation/match-policy.js +1 -1
- package/dist/evaluation/standards.d.ts +1 -0
- package/dist/evaluation/standards.js +1 -1
- package/dist/evaluation/structured-lines.js +1 -1
- package/dist/evaluation/types.d.ts +1 -0
- package/dist/extensions/capability.js +1 -1
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/harness/recover.js +1 -1
- package/dist/index.js +1 -1
- package/dist/intent/types.d.ts +1 -1
- package/dist/intent/types.js +1 -1
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocator-rail-verifier.d.ts +17 -1
- package/dist/knowledge/allocator-rail-verifier.js +1 -1
- package/dist/knowledge/arb-fund-facts.d.ts +7 -0
- package/dist/knowledge/arb-fund-facts.js +1 -1
- package/dist/knowledge/arbitration-rail-verifier.d.ts +35 -0
- package/dist/knowledge/arbitration-rail-verifier.js +1 -0
- package/dist/knowledge/arbitration-templates.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +13 -1
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/judgment-baselines.json +1 -0
- package/dist/knowledge/baselines/rules/guard.json +7 -6
- package/dist/knowledge/baselines/rules/progress.json +4 -4
- package/dist/knowledge/baselines/rules/reward.json +118 -3
- package/dist/knowledge/builtin-templates.d.ts +19 -2
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/chain-query-registry.d.ts +14 -0
- package/dist/knowledge/chain-query-registry.js +1 -0
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/fee-param-bindings.d.ts +2 -0
- package/dist/knowledge/fee-param-bindings.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-binding-table.js +1 -1
- package/dist/knowledge/guard-binding-verifier.d.ts +7 -0
- package/dist/knowledge/guard-binding-verifier.js +1 -1
- package/dist/knowledge/guard-bindings.js +1 -1
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-field-cognition.js +1 -1
- package/dist/knowledge/guard-host-context.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-node-gates.d.ts +3 -1
- package/dist/knowledge/guard-node-gates.js +1 -1
- package/dist/knowledge/guard-puzzle.js +1 -1
- package/dist/knowledge/guard-render.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +2 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +2 -0
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/knob-docs.js +1 -1
- package/dist/knowledge/param-schema.d.ts +1 -1
- package/dist/knowledge/param-schema.js +1 -1
- package/dist/knowledge/param-tiers.d.ts +2 -0
- package/dist/knowledge/param-tiers.js +1 -1
- package/dist/knowledge/path-oracle/products/food-delivery.js +1 -1
- package/dist/knowledge/pattern-resolutions.d.ts +2 -0
- package/dist/knowledge/pattern-resolutions.js +1 -1
- package/dist/knowledge/product-detail-source.d.ts +37 -0
- package/dist/knowledge/product-detail-source.js +1 -0
- package/dist/knowledge/product-doc-b5.d.ts +16 -0
- package/dist/knowledge/product-doc-b5.js +1 -0
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/projection.spec.js +1 -1
- package/dist/knowledge/publish-gate.d.ts +20 -0
- package/dist/knowledge/publish-gate.js +1 -0
- package/dist/knowledge/publish-readiness.d.ts +25 -0
- package/dist/knowledge/publish-readiness.js +1 -0
- package/dist/knowledge/publish-surface-contract.d.ts +16 -0
- package/dist/knowledge/publish-surface-contract.js +1 -0
- package/dist/knowledge/rail-exit-satisfiability.d.ts +25 -0
- package/dist/knowledge/rail-exit-satisfiability.js +1 -0
- package/dist/knowledge/reward-ledger.d.ts +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +1 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/service-ledger.d.ts +3 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/template-loader.d.ts +41 -2
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +17 -0
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/template-test-profiles.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +4 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/normalize.d.ts +1 -1
- package/dist/monitor/normalize.js +1 -1
- package/dist/monitor/types.js +1 -1
- package/dist/participation/customer-interest.d.ts +4 -0
- package/dist/participation/customer-interest.js +1 -1
- package/dist/participation/game-context.js +1 -1
- package/dist/participation/node-action-advisor.d.ts +4 -0
- package/dist/participation/node-action-advisor.js +1 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/participation/time-window.d.ts +11 -0
- package/dist/participation/time-window.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +28 -3
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/object-panorama.d.ts +4 -0
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/review/order.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +24 -0
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/allocation.d.ts +11 -7
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/arbitration.d.ts +4 -0
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +28 -0
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +21 -0
- package/dist/schema/call/contact.d.ts +4 -0
- package/dist/schema/call/demand.d.ts +4 -0
- package/dist/schema/call/guard.d.ts +12 -0
- package/dist/schema/call/handler.d.ts +1 -0
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +16 -8
- package/dist/schema/call/normalize-error.d.ts +1 -0
- package/dist/schema/call/normalize-error.js +1 -0
- package/dist/schema/call/order.d.ts +7 -3
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/payment.d.ts +7 -3
- package/dist/schema/call/permission.d.ts +4 -0
- package/dist/schema/call/personal.d.ts +4 -0
- package/dist/schema/call/progress.d.ts +4 -0
- package/dist/schema/call/progress.js +1 -1
- package/dist/schema/call/proof.d.ts +8 -0
- package/dist/schema/call/proof.js +1 -1
- package/dist/schema/call/receipt.js +1 -1
- package/dist/schema/call/repository.d.ts +4 -0
- package/dist/schema/call/reward.d.ts +6 -2
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/semantic.d.ts +2 -2
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +21 -7
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +10 -6
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/envelope-unify.d.ts +1 -0
- package/dist/schema/envelope-unify.js +1 -1
- package/dist/schema/evaluation/index.d.ts +43 -0
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +14 -2
- package/dist/schema/goal/planning.d.ts +18 -0
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +12 -0
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/keeper/index.d.ts +1 -0
- package/dist/schema/local/index.d.ts +10 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/local/wip.js +1 -1
- package/dist/schema/messenger/index.d.ts +1 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +98 -13
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +22 -0
- package/dist/schema/query/bi.d.ts +28 -2
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +67 -61
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.js +1 -1
- package/dist/schema-query-impl/index.d.ts +1 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +2 -1
- package/dist/schemas/benchmark_migration_operation.output.json +74 -0
- package/dist/schemas/benchmark_migration_operation.schema.json +33 -1
- package/dist/schemas/bridge_operation.output.json +2 -1
- package/dist/schemas/bridge_operation.schema.json +40 -0
- package/dist/schemas/evaluation_operation.output.json +96 -0
- package/dist/schemas/evaluation_operation.schema.json +39 -0
- package/dist/schemas/goal_operation.schema.json +32 -0
- package/dist/schemas/guard2file.schema.json +8 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/intent_radar.output.json +10 -2
- package/dist/schemas/intent_radar.schema.json +5 -1
- package/dist/schemas/keeper_operation.output.json +2 -1
- package/dist/schemas/local_cache_operation.output.json +2 -1
- package/dist/schemas/local_history_operation.output.json +2 -1
- package/dist/schemas/local_info_operation.output.json +2 -1
- package/dist/schemas/local_mark_operation.output.json +2 -1
- package/dist/schemas/local_mark_operation.schema.json +10 -1
- package/dist/schemas/machineNode2file.schema.json +8 -0
- package/dist/schemas/messenger_operation.output.json +2 -1
- package/dist/schemas/messenger_operation.schema.json +2 -1
- package/dist/schemas/monitor_events.output.json +2 -1
- package/dist/schemas/monitor_subscription.output.json +2 -1
- package/dist/schemas/onchain_events.output.json +206 -13
- package/dist/schemas/onchain_events.schema.json +16 -0
- package/dist/schemas/onchain_operations.output.json +22 -3
- package/dist/schemas/onchain_operations.schema.json +982 -327
- package/dist/schemas/onchain_operations_allocation.schema.json +20 -13
- package/dist/schemas/onchain_operations_arbitration.schema.json +9 -1
- package/dist/schemas/onchain_operations_contact.schema.json +8 -0
- package/dist/schemas/onchain_operations_demand.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
- package/dist/schemas/onchain_operations_guard.schema.json +655 -115
- package/dist/schemas/onchain_operations_machine.schema.json +11 -3
- package/dist/schemas/onchain_operations_order.schema.json +14 -11
- package/dist/schemas/onchain_operations_payment.schema.json +12 -9
- package/dist/schemas/onchain_operations_permission.schema.json +8 -0
- package/dist/schemas/onchain_operations_personal.schema.json +8 -0
- package/dist/schemas/onchain_operations_progress.schema.json +9 -1
- package/dist/schemas/onchain_operations_proof.schema.json +9 -1
- package/dist/schemas/onchain_operations_repository.schema.json +8 -0
- package/dist/schemas/onchain_operations_reward.schema.json +14 -11
- package/dist/schemas/onchain_operations_service.schema.json +25 -12
- package/dist/schemas/onchain_operations_treasury.schema.json +17 -19
- package/dist/schemas/onchain_table_data.output.json +52 -10
- package/dist/schemas/persona_operation.output.json +57 -0
- package/dist/schemas/persona_operation.schema.json +9 -0
- package/dist/schemas/query_toolkit.output.json +326 -23
- package/dist/schemas/query_toolkit.schema.json +18 -5
- package/dist/schemas/wip_file.output.json +2 -2
- package/dist/schemas/wip_file.schema.json +2 -2
- package/dist/schemas/workflow_operation.schema.json +1 -1
- package/dist/tools/error-catalog.d.ts +17 -0
- package/dist/tools/error-catalog.js +1 -0
- package/dist/tools/handlers/benchmark-migration.d.ts +29 -8
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/entry-edge-recipe.d.ts +101 -0
- package/dist/tools/handlers/entry-edge-recipe.js +1 -0
- package/dist/tools/handlers/escrow-deficit.d.ts +10 -0
- package/dist/tools/handlers/escrow-deficit.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/fund-rail-recipe.d.ts +10 -0
- package/dist/tools/handlers/fund-rail-recipe.js +1 -0
- package/dist/tools/handlers/intent-radar.js +1 -1
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/mark-namespace.d.ts +30 -0
- package/dist/tools/handlers/mark-namespace.js +1 -0
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain-name-registration.d.ts +1 -0
- package/dist/tools/handlers/onchain-name-registration.js +1 -1
- package/dist/tools/handlers/onchain-name-registration.spec.js +1 -1
- package/dist/tools/handlers/onchain.d.ts +40 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/publish-binding-echo.d.ts +22 -0
- package/dist/tools/handlers/publish-binding-echo.js +1 -0
- package/dist/tools/handlers/query.d.ts +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/review-chain.d.ts +1 -0
- package/dist/tools/handlers/review-chain.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/stale-build-check.d.ts +9 -0
- package/dist/tools/handlers/stale-build-check.js +1 -0
- package/dist/tools/handlers/submission-assembly.d.ts +55 -0
- package/dist/tools/handlers/submission-assembly.js +1 -0
- package/dist/tools/handlers/wip.js +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.js +1 -1
- package/dist/tools/publish-gate-state.d.ts +5 -0
- package/dist/tools/publish-gate-state.js +1 -0
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/retry.js +1 -1
- package/dist/tools/runtime-health.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/upgrade-check.d.ts +1 -0
- package/dist/tools/upgrade-check.js +1 -1
- package/dist/tools/wip-verify-ledger.d.ts +2 -0
- package/dist/tools/wip-verify-ledger.js +1 -1
- package/dist/tools/wrap.d.ts +15 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{MS_PER_DAY,MS_PER_HOUR,TIME_GUARD_INSTANTIATIONS,TWIN_PARAM,unitScale}from'./pattern-resolutions.js';const HAND_WRITTEN_BINDINGS=[{'template':'delivery/restaurant-marketplace','guard_key':'deliver_confirm_timeout','param':'auto_confirm_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'buyer\x20silence\x20window'},{'template':'delivery/restaurant-marketplace','guard_key':'claim_filed','param':'claim_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'serial\x20claim\x20window\x20closes'},{'template':'delivery/restaurant-marketplace','guard_key':'settle_window_gate','param':'settle_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'settlement\x20opens'},{'template':'delivery/restaurant-marketplace','guard_key':'cancel_no_capacity','param':'dispatch_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'dispatch\x20timeout\x20—\x20penalty-free\x20platform\x20force-cancel\x20(INV-FD-2)'},{'template':'group_buy/platform-supplied-pickup','guard_key':'unclaimed_refund','param':'pickup_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'unclaimed\x20order\x20refunds'},{'template':'group_buy/platform-supplied-pickup','guard_key':'unclaimed_settle_open','param':'pickup_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'settlement\x20opens\x20after\x20pickup\x20window'},{'template':'group_buy/platform-supplied-pickup','guard_key':'unclaimed_refund_late','param':'pickup_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'keeper\x20late\x20refund\x20after\x20the\x20pickup\x20window\x20(the\x20refund_buyer\x20DEFAULT\x20exit,\x20dmcx\x20F-23)'},{'template':'group_buy/platform-supplied-pickup','guard_key':'claim_filed','param':'claim_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'serial\x20claim\x20window\x20closes'},{'template':'group_buy/platform-supplied-pickup','guard_key':'settle_window_gate','param':'settle_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'settlement\x20opens'},{'template':'group_buy/platform-supplied-pickup','guard_key':'return_window_pickup','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'return\x20window\x20after\x20pickup'},{'template':'group_buy/platform-supplied-pickup','guard_key':'return_window_claim','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'return\x20window\x20from\x20the\x20serial\x20claim\x20window\x20(M-T2:\x20the\x20keeper\x20can\x20open\x20claim_window\x20before\x20pickup\x20—\x20the\x20buyer\x20keeps\x20the\x20same\x20filing\x20right\x20from\x20THAT\x20rest\x20state)'},{'template':'group_buy/leader-sourced-community','guard_key':'return_window_delivered','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'return\x20window\x20after\x20delivery'},{'template':'group_buy/leader-sourced-community','guard_key':'return_window_claim','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'return\x20window\x20from\x20the\x20serial\x20claim\x20window\x20(M-T2:\x20distinct\x20edge,\x20own\x20key)'},{'template':'group_buy/leader-sourced-community','guard_key':'shortfall_claim','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'shortfall\x20(missing-items)\x20filing\x20window\x20—\x20the\x20SAME\x20after-sales\x20policy\x20as\x20the\x20return\x20twins\x20(the\x20author\x20literal\x20was\x20decorative\x20without\x20this\x20row)'},{'template':'retail/vertical-handmade','guard_key':'return_window','param':'settlement_delay_days','to':'duration_ms','scale':MS_PER_DAY,'note':'settle\x20delay\x20doubles\x20as\x20the\x20return\x20window\x20anchor'},{'template':'retail/vertical-handmade','guard_key':'review_window','param':'review_window_days','to':'duration_ms','scale':MS_PER_DAY,'note':'review\x20window'},{'template':'group_buy/platform-supplied-pickup','guard_key':'return_transit_timeout','param':'return_transit_days','to':'duration_ms','scale':MS_PER_DAY,'note':'return\x20transit\x20deadline'},{'template':'group_buy/leader-sourced-community','guard_key':'return_transit_timeout','param':'return_transit_days','to':'duration_ms','scale':MS_PER_DAY,'note':'return\x20transit\x20deadline'},{'template':'education/mooc-degree','guard_key':'review_window','param':'review_window_days','to':'duration_ms','scale':MS_PER_DAY,'note':'student\x20review\x20deadline\x20window'},{'template':'freelance/agent-task','guard_key':'auto_release','param':'evaluation_window_days','to':'claim_window_days','note':'auto-release\x20window'},{'template':'licensing/royalty-stream-auction','guard_key':'inspection_timeout','param':'inspection_window_days','to':'claim_window_days','note':'inspection\x20deadline'},{'template':'licensing/royalty-stream-auction','guard_key':'return_window','param':'inspection_window_days','to':'claim_window_days','note':'inspection\x20doubles\x20as\x20the\x20return\x20window'},{'template':'licensing/royalty-stream-auction','guard_key':'cancel_return','param':'inspection_window_days','to':'claim_window_days','note':'inspection\x20doubles\x20as\x20the\x20cancel\x20window'},{'template':'licensing/asset-license-metered','guard_key':'delivery_timeout','param':'delivery_window_days','to':'claim_window_days','note':'delivery\x20deadline'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'review_window','param':'review_window_days','to':'claim_window_days','note':'review\x20window'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'return_window','param':'return_window_days','to':'claim_window_days','note':'return\x20window'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'settle_clock','param':'settlement_delay_days','to':'claim_window_days','note':'settle\x20delay\x20after\x20delivery'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'review_settle_clock','param':'settlement_delay_days','to':'claim_window_days','note':'settle\x20delay\x20after\x20review'},{'template':'freelance/catalog-tiers','guard_key':'instant_cancel_24h','param':'instant_cancel_hours','to':'free_cancel_hours','note':'buyer\x20instant-cancel\x20window\x20(order.time\x20anchor)'},{'template':'travel/global-ota','guard_key':'no_show_evidence','param':'no_show_floor_hours','to':'not_before_hours','note':'no-show\x20evidence\x20floor'},{'template':'travel/global-ota','guard_key':'review_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'},{'template':'subscription/direct-fan-subscription','guard_key':'reward_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'},{'template':'licensing/royalty-stream-auction','guard_key':'review_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'},{'template':'licensing/asset-license-metered','guard_key':'review_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'},{'template':'retail/restock-supply','guard_key':'settle_alloc','param':'settlement_days','to':'claim_window_days','note':'serial\x20release\x20clock\x20on\x20the\x20allocator\x20(no\x20settlement\x20forward\x20exists)'},{'template':'travel/destination-experience','guard_key':'cancel_tier_1','param':'cancel_tier_1_boundary_hours','to':'lower_hours','note':'tier-1\x20lower\x20band\x20edge\x20(7\x20days\x20by\x20default)'},{'template':'travel/destination-experience','guard_key':'cancel_tier_2','param':'cancel_tier_1_boundary_hours','to':'upper_hours','note':'tier-1/tier-2\x20seam'},{'template':'travel/destination-experience','guard_key':'cancel_tier_2','param':'cancel_tier_2_boundary_hours','to':'lower_hours','note':'tier-2\x20lower\x20band\x20edge\x20(3\x20days\x20by\x20default)'},{'template':'travel/destination-experience','guard_key':'cancel_tier_3','param':'cancel_tier_2_boundary_hours','to':'upper_hours','note':'tier-2/tier-3\x20seam'},{'template':'travel/destination-experience','guard_key':'cancel_tier_3','param':'cancel_tier_3_boundary_hours','to':'lower_hours','note':'tier-3\x20lower\x20band\x20edge\x20(1\x20day\x20by\x20default)'},{'template':'travel/destination-experience','guard_key':'cancel_tier_4','param':'cancel_tier_3_boundary_hours','to':'upper_hours','note':'tier-3/tier-4\x20seam'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'reward_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'}];function derivedRows(){const a=[];for(const c of TIME_GUARD_INSTANTIATIONS){const d=c['days']!==undefined?'days':c['hours']!==undefined?'hours':undefined;if(d===undefined)continue;a['push']({'template':c['template'],'guard_key':c['guard_key'],'param':c['days']??c['hours'],'to':TWIN_PARAM[d],'scale':unitScale(d),...c['plus_days']!==undefined?{'plus':c['plus_days']}:{},'no_author_literal':!![],'note':c['note']});}return a;}export const FEE_PARAM_BINDINGS=[...HAND_WRITTEN_BINDINGS,...derivedRows()];const BY_SPEC=new Map();for(const b of FEE_PARAM_BINDINGS){const k=specKey(b['template'],b['guard_key']),rows=BY_SPEC['get'](k);if(rows===undefined)BY_SPEC['set'](k,[b]);else rows['push'](b);}function specKey(a,c){return a+'\x00'+c;}export function bindingsFor(a,c){return BY_SPEC['get'](specKey(a,c))??[];}export function applyFeeParamBindings(a,c,d,e,f){const g=BY_SPEC['get'](specKey(c,d));if(g===undefined)return a;let h=a;for(const i of g){const j=e[i['param']],l=j??f?.[i['param']];if(l===undefined||l===null)continue;const o=typeof l==='number'?l:Number(l);if(!Number['isFinite'](o))continue;let p=o;const q=i['plus']===undefined?[]:typeof i['plus']==='string'?[i['plus']]:i['plus'];let r=!![];for(const s of q){const t=e[s]??f?.[s],u=typeof t==='number'?t:Number(t);if(t===undefined||t===null||!Number['isFinite'](u)){r=![];break;}p+=u;}if(!r)continue;h={...h??{},[i['to']]:i['scale']===undefined?p:Math['round'](p*i['scale'])};}return h;}export function feeParamBindingIssues(a,c){const d=[],e=new Map(a['map'](f=>[f['id'],f]));for(const f of FEE_PARAM_BINDINGS){const h=e['get'](f['template']);if(h===undefined){d['push']({'binding':f,'problem':'template\x20\x27'+f['template']+'\x27\x20does\x20not\x20exist'});continue;}const i=h['fee_params'][f['param']];if(i===undefined){d['push']({'binding':f,'problem':'fee_param\x20\x27'+f['param']+'\x27\x20is\x20not\x20declared\x20by\x20'+f['template']});continue;}if(f['plus']!==undefined){const o=typeof f['plus']==='string'?[f['plus']]:f['plus'],p=o['filter'](q=>h['fee_params'][q]===undefined);if(p['length']>0x0){d['push']({'binding':f,'problem':'fee_param\x20\x27'+p['join']('\x27,\x20\x27')+'\x27\x20(plus)\x20is\x20not\x20declared\x20by\x20'+f['template']});continue;}}const j=h['guards']['find'](q=>q['key']===f['guard_key']);if(j===undefined){d['push']({'binding':f,'problem':'guard\x20key\x20\x27'+f['guard_key']+'\x27\x20is\x20not\x20declared\x20by\x20'+f['template']});continue;}const l=f['scale']===undefined?Number(i):Math['round'](Number(i)*f['scale']);if(f['no_author_literal']===!![])continue;const m=j['params']?.[f['to']];if(m!==undefined){Number(m)!==l&&d['push']({'binding':f,'problem':'literal\x20'+f['to']+'='+String(m)+'\x20!=\x20fee_param\x20'+f['param']+'='+String(i)+'\x20x\x20'+String(f['scale']??0x1)+'\x20('+l+')'});continue;}const n=c(j['template_id'],f['to']);if(n===undefined)d['push']({'binding':f,'problem':'guard\x20'+j['template_id']+'\x20declares\x20no\x20param\x20\x27'+f['to']+'\x27'});else Number(n)!==Number(i)&&d['push']({'binding':f,'problem':'guard\x20'+j['template_id']+'\x20default\x20'+f['to']+'='+n+'\x20!=\x20fee_param\x20'+f['param']+'='+String(i)+'\x20(no\x20literal\x20to\x20compare)'});}return d;}
|
|
1
|
+
import{MS_PER_DAY,MS_PER_HOUR,TIME_GUARD_INSTANTIATIONS,TWIN_PARAM,msKnobOf,unitScale}from'./pattern-resolutions.js';const HAND_WRITTEN_BINDINGS=[{'template':'delivery/restaurant-marketplace','guard_key':'deliver_confirm_timeout','param':'auto_confirm_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'buyer\x20silence\x20window'},{'template':'delivery/restaurant-marketplace','guard_key':'claim_filed','param':'claim_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'serial\x20claim\x20window\x20closes'},{'template':'delivery/restaurant-marketplace','guard_key':'settle_window_gate','param':'settle_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'settlement\x20opens'},{'template':'delivery/restaurant-marketplace','guard_key':'cancel_no_capacity','param':'dispatch_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'dispatch\x20timeout\x20—\x20penalty-free\x20platform\x20force-cancel\x20(INV-FD-2)'},{'template':'group_buy/platform-supplied-pickup','guard_key':'unclaimed_refund','param':'pickup_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'unclaimed\x20order\x20refunds'},{'template':'group_buy/platform-supplied-pickup','guard_key':'unclaimed_settle_open','param':'pickup_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'settlement\x20opens\x20after\x20pickup\x20window'},{'template':'group_buy/platform-supplied-pickup','guard_key':'unclaimed_refund_late','param':'pickup_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'keeper\x20late\x20refund\x20after\x20the\x20pickup\x20window\x20(the\x20refund_buyer\x20DEFAULT\x20exit,\x20dmcx\x20F-23)'},{'template':'group_buy/platform-supplied-pickup','guard_key':'claim_filed','param':'claim_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'serial\x20claim\x20window\x20closes'},{'template':'group_buy/platform-supplied-pickup','guard_key':'settle_window_gate','param':'settle_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'settlement\x20opens'},{'template':'group_buy/platform-supplied-pickup','guard_key':'return_window_pickup','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'return\x20window\x20after\x20pickup'},{'template':'group_buy/platform-supplied-pickup','guard_key':'return_window_claim','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'return\x20window\x20from\x20the\x20serial\x20claim\x20window\x20(M-T2:\x20the\x20keeper\x20can\x20open\x20claim_window\x20before\x20pickup\x20—\x20the\x20buyer\x20keeps\x20the\x20same\x20filing\x20right\x20from\x20THAT\x20rest\x20state)'},{'template':'group_buy/leader-sourced-community','guard_key':'return_window_delivered','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'return\x20window\x20after\x20delivery'},{'template':'group_buy/leader-sourced-community','guard_key':'return_window_claim','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'return\x20window\x20from\x20the\x20serial\x20claim\x20window\x20(M-T2:\x20distinct\x20edge,\x20own\x20key)'},{'template':'group_buy/leader-sourced-community','guard_key':'shortfall_claim','param':'return_window_hours','to':'duration_ms','scale':MS_PER_HOUR,'note':'shortfall\x20(missing-items)\x20filing\x20window\x20—\x20the\x20SAME\x20after-sales\x20policy\x20as\x20the\x20return\x20twins\x20(the\x20author\x20literal\x20was\x20decorative\x20without\x20this\x20row)'},{'template':'retail/vertical-handmade','guard_key':'return_window','param':'settlement_delay_days','to':'claim_window_days','note':'settle\x20delay\x20doubles\x20as\x20the\x20return\x20window\x20anchor'},{'template':'retail/vertical-handmade','guard_key':'review_window','param':'review_window_days','to':'duration_ms','scale':MS_PER_DAY,'note':'review\x20window'},{'template':'group_buy/platform-supplied-pickup','guard_key':'return_transit_timeout','param':'return_transit_days','to':'duration_ms','scale':MS_PER_DAY,'note':'return\x20transit\x20deadline'},{'template':'group_buy/leader-sourced-community','guard_key':'return_transit_timeout','param':'return_transit_days','to':'duration_ms','scale':MS_PER_DAY,'note':'return\x20transit\x20deadline'},{'template':'education/mooc-degree','guard_key':'review_window','param':'review_window_days','to':'duration_ms','scale':MS_PER_DAY,'note':'student\x20review\x20deadline\x20window'},{'template':'freelance/agent-task','guard_key':'auto_release','param':'evaluation_window_days','to':'claim_window_days','note':'auto-release\x20window'},{'template':'licensing/royalty-stream-auction','guard_key':'inspection_timeout','param':'inspection_window_days','to':'claim_window_days','note':'inspection\x20deadline'},{'template':'licensing/royalty-stream-auction','guard_key':'return_window','param':'inspection_window_days','to':'claim_window_days','note':'inspection\x20doubles\x20as\x20the\x20return\x20window'},{'template':'licensing/royalty-stream-auction','guard_key':'cancel_return','param':'inspection_window_days','to':'claim_window_days','note':'inspection\x20doubles\x20as\x20the\x20cancel\x20window'},{'template':'licensing/asset-license-metered','guard_key':'delivery_timeout','param':'delivery_window_days','to':'claim_window_days','note':'delivery\x20deadline'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'review_window','param':'review_window_days','to':'claim_window_days','note':'review\x20window'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'return_window','param':'return_window_days','to':'claim_window_days','note':'return\x20window'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'settle_clock','param':'settlement_delay_days','to':'claim_window_days','note':'settle\x20delay\x20after\x20delivery'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'review_settle_clock','param':'settlement_delay_days','to':'claim_window_days','note':'settle\x20delay\x20after\x20review'},{'template':'freelance/catalog-tiers','guard_key':'instant_cancel_24h','param':'instant_cancel_hours','to':'free_cancel_hours','note':'buyer\x20instant-cancel\x20window\x20(order.time\x20anchor)'},{'template':'travel/global-ota','guard_key':'no_show_evidence','param':'no_show_floor_hours','to':'not_before_hours','note':'no-show\x20evidence\x20floor'},{'template':'travel/global-ota','guard_key':'review_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'},{'template':'subscription/direct-fan-subscription','guard_key':'reward_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'},{'template':'licensing/royalty-stream-auction','guard_key':'review_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'},{'template':'licensing/asset-license-metered','guard_key':'review_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'},{'template':'retail/restock-supply','guard_key':'settle_alloc','param':'settlement_days','to':'claim_window_days','note':'serial\x20release\x20clock\x20on\x20the\x20allocator\x20(no\x20settlement\x20forward\x20exists)'},{'template':'travel/destination-experience','guard_key':'cancel_tier_1','param':'cancel_tier_1_boundary_hours','to':'lower_hours','note':'tier-1\x20lower\x20band\x20edge\x20(7\x20days\x20by\x20default)'},{'template':'travel/destination-experience','guard_key':'cancel_tier_2','param':'cancel_tier_1_boundary_hours','to':'upper_hours','note':'tier-1/tier-2\x20seam'},{'template':'travel/destination-experience','guard_key':'cancel_tier_2','param':'cancel_tier_2_boundary_hours','to':'lower_hours','note':'tier-2\x20lower\x20band\x20edge\x20(3\x20days\x20by\x20default)'},{'template':'travel/destination-experience','guard_key':'cancel_tier_3','param':'cancel_tier_2_boundary_hours','to':'upper_hours','note':'tier-2/tier-3\x20seam'},{'template':'travel/destination-experience','guard_key':'cancel_tier_3','param':'cancel_tier_3_boundary_hours','to':'lower_hours','note':'tier-3\x20lower\x20band\x20edge\x20(1\x20day\x20by\x20default)'},{'template':'travel/destination-experience','guard_key':'cancel_tier_4','param':'cancel_tier_3_boundary_hours','to':'upper_hours','note':'tier-3/tier-4\x20seam'},{'template':'crowdfunding/reward-campaign-fulfillment','guard_key':'reward_claim','param':'reward_claim_closes_after_days','to':'closes_after_days','note':'bounty\x20claim\x20deadline'},{'template':'freelance/catalog-tiers','guard_key':'post_accept_refund_window','param':'post_accept_refund_days','plus':'escrow_release_days','to':'claim_window_days','note':'post-acceptance\x20refund\x20mirror\x20=\x20auto-accept\x20window\x20+\x20grace\x20(delivered\x20anchor;\x207+14=21)'},{'template':'freelance/catalog-tiers','guard_key':'post_accept_revision_window','param':'post_accept_refund_days','plus':'escrow_release_days','to':'claim_window_days','note':'post-acceptance\x20revision\x20mirror\x20—\x20SAME\x20window\x20policy\x20as\x20the\x20refund\x20twin\x20(distinct\x20edge,\x20own\x20key)'}];function derivedRows(){const a=[];for(const c of TIME_GUARD_INSTANTIATIONS){const d=c['days']!==undefined?'days':c['hours']!==undefined?'hours':undefined;if(d===undefined)continue;a['push']({'template':c['template'],'guard_key':c['guard_key'],'param':c['days']??c['hours'],'to':TWIN_PARAM[d],'scale':unitScale(d),...c['plus_days']!==undefined?{'plus':c['plus_days']}:{},'no_author_literal':!![],'note':c['note']});const e=c['days']===undefined?undefined:msKnobOf(c['days']);if(c['multimount']===!![]||e===undefined)continue;const f=c['plus_days']===undefined?[]:typeof c['plus_days']==='string'?[c['plus_days']]:[...c['plus_days']],g=[];let h=!![];for(const i of f){const j=msKnobOf(i);if(j===undefined){h=![];break;}g['push'](j);}if(!h)continue;a['push']({'template':c['template'],'guard_key':c['guard_key'],'param':e,'to':'duration_ms','scale':0x1,...g['length']>0x0?{'plus':g}:{},'no_author_literal':!![],'ms_variant':!![],'note':c['note']+'\x20—\x20the\x20*_ms\x20knob\x27s\x20ms-slot-pair\x20landing\x20(nnd4\x20F-04:\x20duration_ms\x20beside\x20a\x20day-factor\x20of\x201)'});}return a;}export const FEE_PARAM_BINDINGS=[...HAND_WRITTEN_BINDINGS,...derivedRows()];const BY_SPEC=new Map();for(const b of FEE_PARAM_BINDINGS){const k=specKey(b['template'],b['guard_key']),rows=BY_SPEC['get'](k);if(rows===undefined)BY_SPEC['set'](k,[b]);else rows['push'](b);}function specKey(a,c){return a+'\x00'+c;}export function bindingsFor(a,c){return BY_SPEC['get'](specKey(a,c))??[];}export function hasMsKnobBinding(a,c){const d=msKnobOf(c);return d!==undefined&&FEE_PARAM_BINDINGS['some'](e=>e['template']===a&&e['param']===d);}export function applyFeeParamBindings(a,c,d,e,f){const g=BY_SPEC['get'](specKey(c,d));if(g===undefined)return a;let h=a;for(const i of g){const j=e[i['param']],l=j??f?.[i['param']];if(l===undefined||l===null)continue;const o=typeof l==='number'?l:Number(l);if(!Number['isFinite'](o))continue;let p=o;const q=i['plus']===undefined?[]:typeof i['plus']==='string'?[i['plus']]:i['plus'];let r=!![];for(const s of q){const t=e[s]??f?.[s],u=typeof t==='number'?t:Number(t);if(t===undefined||t===null||!Number['isFinite'](u)){r=![];break;}p+=u;}if(!r)continue;h={...h??{},[i['to']]:i['scale']===undefined?p:Math['round'](p*i['scale'])};}return h;}export function feeParamBindingIssues(a,c){const d=[],e=new Map(a['map'](f=>[f['id'],f]));for(const f of FEE_PARAM_BINDINGS){if(f['ms_variant']===!![])continue;const h=e['get'](f['template']);if(h===undefined){d['push']({'binding':f,'problem':'template\x20\x27'+f['template']+'\x27\x20does\x20not\x20exist'});continue;}const i=h['fee_params'][f['param']];if(i===undefined){d['push']({'binding':f,'problem':'fee_param\x20\x27'+f['param']+'\x27\x20is\x20not\x20declared\x20by\x20'+f['template']});continue;}if(f['plus']!==undefined){const q=typeof f['plus']==='string'?[f['plus']]:f['plus'],r=q['filter'](s=>h['fee_params'][s]===undefined);if(r['length']>0x0){d['push']({'binding':f,'problem':'fee_param\x20\x27'+r['join']('\x27,\x20\x27')+'\x27\x20(plus)\x20is\x20not\x20declared\x20by\x20'+f['template']});continue;}}const j=h['guards']['find'](s=>s['key']===f['guard_key']);if(j===undefined){d['push']({'binding':f,'problem':'guard\x20key\x20\x27'+f['guard_key']+'\x27\x20is\x20not\x20declared\x20by\x20'+f['template']});continue;}const l=f['plus']===undefined?[]:typeof f['plus']==='string'?[f['plus']]:f['plus'];let m=f['scale']===undefined?Number(i):Math['round'](Number(i)*f['scale']),n=!![];for(const s of l){const u=h['fee_params'][s];if(u===undefined){n=![];break;}m+=f['scale']===undefined?Number(u):Math['round'](Number(u)*f['scale']);}if(!n)continue;if(f['no_author_literal']===!![])continue;const o=j['params']?.[f['to']];if(o!==undefined){Number(o)!==m&&d['push']({'binding':f,'problem':'literal\x20'+f['to']+'='+String(o)+'\x20!=\x20fee_param\x20'+f['param']+'='+String(i)+'\x20x\x20'+String(f['scale']??0x1)+'\x20('+m+')'});continue;}const p=c(j['template_id'],f['to']);if(p===undefined)d['push']({'binding':f,'problem':'guard\x20'+j['template_id']+'\x20declares\x20no\x20param\x20\x27'+f['to']+'\x27'});else Number(p)!==Number(i)&&d['push']({'binding':f,'problem':'guard\x20'+j['template_id']+'\x20default\x20'+f['to']+'='+p+'\x20!=\x20fee_param\x20'+f['param']+'='+String(i)+'\x20(no\x20literal\x20to\x20compare)'});}return d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as a249a from'fs';import*as a249b from'os';import*as a249c from'path';export const SKILLS_PACKAGE='@wowok'+'/skills';export const SKILLS_INSTALL_COMMAND='npm\x20install\x20-g\x20@wowok'+'/skills';export const SKILLS_DOCTOR_COMMAND='wowok-skills\x20doctor';export const SKILLS_REPAIR_COMMAND='wowok-skills\x20init\x20--force';export const COLD_START_SECONDS=0x14;export const SKILL_ROLES=['wowok-onboard','wowok-provider','wowok-order','wowok-supplier','wowok-collaborator','wowok-machine','wowok-arbitrator','wowok-messenger','wowok-market','wowok-governance','wowok-planner','wowok-auditor','wowok-output'];export const COMMON_GOALS=[{'goal':'Onboard\x20a\x20new\x20merchant\x20and\x20publish\x20a\x20commercial\x20service\x20end-to-end','skills':['wowok-onboard','wowok-provider'],'tools':['goal_operation','onchain_operations','query_toolkit']},{'goal':'Design\x20or\x20modify\x20a\x20Machine\x20workflow\x20(nodes,\x20forwards,\x20guards)','skills':['wowok-machine','wowok-auditor'],'tools':['onchain_operations','machineNode2file','guard2file']},{'goal':'Evaluate\x20or\x20buy\x20a\x20service\x20/\x20handle\x20an\x20in-order\x20customer\x20lifecycle','skills':['wowok-order'],'tools':['query_toolkit','onchain_operations','messenger_operation']},{'goal':'Fulfill\x20a\x20sub-order\x20as\x20a\x20supplier\x20and\x20collect\x20settlement','skills':['wowok-supplier','wowok-collaborator'],'tools':['watch_operation','workflow_operation','keeper_operation']},{'goal':'Operate\x20order\x20workflows\x20/\x20advance\x20progress\x20on\x20behalf\x20of\x20a\x20merchant','skills':['wowok-collaborator'],'tools':['workflow_operation','watch_operation','keeper_operation']},{'goal':'Handle\x20a\x20dispute\x20or\x20run\x20an\x20arbitration\x20service','skills':['wowok-arbitrator','wowok-messenger'],'tools':['evaluation_operation','onchain_operations','messenger_operation']},{'goal':'Govern\x20permissions,\x20treasury\x20funds\x20and\x20the\x20on-chain\x20profile\x20after\x20setup','skills':['wowok-governance'],'tools':['permission_operation','onchain_operations','query_toolkit']},{'goal':'Obtain\x20WOW\x20gas\x20/\x20payment\x20tokens\x20before\x20the\x20first\x20transaction','skills':['wowok-onboard'],'tools':['wowok_buildin_info','bridge_operation','account_operation']}];function candidateSkillRoots(a){const b=a249b['homedir'](),c=[a249c['join'](b,'.claude','skills'),a249c['join'](b,'.agents','skills'),a249c['join'](b,'.codex','skills'),a249c['join'](b,'.cursor','skills'),a249c['join'](b,'.codebuddy','skills'),a249c['join'](b,'.kilo','skills'),a249c['join'](b,'.roo','skills'),a249c['join'](b,'.cline','skills'),a249c['join'](b,'.copilot','skills'),a249c['join'](b,'.codeium','windsurf','skills'),a249a['existsSync'](a249c['join'](b,'.trae-cn','skills'))?a249c['join'](b,'.trae-cn','skills'):a249c['join'](b,'.trae','skills')],d=['.agents/skills','.claude/skills','.cursor/skills','.trae/skills','.codebuddy/skills','.roo/skills','.cline/skills','.kilo/skills','.github/skills']['map'](e=>a249c['resolve'](a,e));return[...new Set([...c,...d])];}function rootHasWowokSkill(a){let b;try{b=a249a['readdirSync'](a,{'withFileTypes':!![]});}catch{return![];}if(b['some'](c=>c['isFile']()&&c['name']==='.wowok-skills.json'))return!![];return b['some'](c=>c['isDirectory']()&&c['name']['startsWith']('wowok-'));}export function detectInstalledSkills(a=process['cwd']()){const b=[];for(const c of candidateSkillRoots(a)){try{if(rootHasWowokSkill(c))b['push'](c);}catch{}}return{'status':b['length']>0x0?'detected':'not_detected','detected_roots':b};}export function getGettingStarted(a=process['cwd']()){return{'skills':{'what':'WoWok\x20Skills\x20are\x20role-based\x20playbooks\x20(SKILL.md\x20files\x20installed\x20into\x20AI\x20clients)\x20that\x20sit\x20on\x20top\x20of\x20this\x20MCP\x20server.\x20The\x20MCP\x20exposes\x20the\x20tools;\x20the\x20skills\x20tell\x20an\x20agent\x20WHEN\x20and\x20in\x20what\x20ORDER\x20to\x20use\x20them\x20for\x20complex\x20goals\x20(onboarding,\x20buying,\x20fulfillment,\x20arbitration,\x20governance),\x20and\x20materially\x20reduce\x20failed\x20calls.\x20This\x20server\x20works\x20without\x20them;\x20with\x20them\x20loaded,\x20agents\x20start\x20from\x20structured\x20guidance\x20instead\x20of\x20discovering\x20sub-tools\x20by\x20trial\x20and\x20error.','package':SKILLS_PACKAGE,'recommended':!![],'install_command':SKILLS_INSTALL_COMMAND,'doctor_command':SKILLS_DOCTOR_COMMAND,'repair_command':SKILLS_REPAIR_COMMAND,'detection':detectInstalledSkills(a),'detection_note':'Best-effort\x20scan\x20of\x20standard\x20client\x20skill\x20roots\x20on\x20this\x20machine.\x20`wowok-skills\x20doctor`\x20is\x20authoritative\x20and\x20also\x20reports\x20MCP\x20registration\x20state\x20per\x20client.\x20If\x20detection\x20says\x20not_detected\x20but\x20skills\x20were\x20installed\x20for\x20a\x20client\x20with\x20a\x20non-standard\x20root,\x20trust\x20doctor.','roles':[...SKILL_ROLES]},'cold_start':{'ready_seconds':COLD_START_SECONDS,'note':'The\x20first\x20call\x20after\x20the\x20server\x20boots\x20can\x20take\x20around\x2020\x20seconds\x20while\x20@wowok/agent-mcp\x20is\x20bootstrapped\x20(especially\x20via\x20npx\x20on\x20Windows).\x20A\x20transport\x20timeout\x20on\x20the\x20FIRST\x20call\x20is\x20startup\x20latency,\x20not\x20a\x20broken\x20server\x20—\x20wait\x20and\x20retry;\x20subsequent\x20calls\x20are\x20fast.\x20Never\x20interpret\x20a\x20delayed\x20first\x20response\x20as\x20a\x20failed\x20on-chain\x20transaction.'},'common_goals':COMMON_GOALS['map'](b=>({...b,'skills':[...b['skills']],'tools':[...b['tools']]})),'first_calls':['wowok_buildin_info\x20info=\x27getting\x20started\x27\x20—\x20this\x20orientation','wowok_buildin_info\x20info=\x27current\x20network\x27\x20—\x20which\x20chain\x20(mainnet/testnet)\x20the\x20SDK\x20defaults\x20to','wowok_buildin_info\x20info=\x27funding\x20guidance\x27\x20—\x20testnet\x20faucet\x20/\x20mainnet\x20bridge\x20/\x20airdrop','wowok_buildin_info\x20info=\x27upgrade_check\x27\x20—\x20whether\x20the\x20MCP\x20server\x20and\x20SDK\x20are\x20current','schema_query\x20action=\x27list\x27\x20—\x20enumerate\x20every\x20sub-tool\x20and\x20fetch\x20its\x20input\x20schema']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{MS_PER_HOUR}from'./pattern-resolutions.js';export const BINDING_ROWS=[{'id':'bind.identity_single.pinned_ruler','intent':'pattern.identity_check_single','binding':{'kind':'guard_template','id':'tpl_identity_check_single'},'derive':[],'note':'Single-ruler\x20forwards\x20(the\x20independent\x20triager\x27s\x20four\x20ruling\x20edges\x20on\x20freelance/bug-bounty,\x20the\x20judge\x27s\x20two\x20on\x20freelance/design-contest):\x20the\x20catalog\x27s\x20level-1\x20twin\x20ships\x20the\x20pinned-address\x20leg.\x20RAIL\x20SPLIT\x20(tpl\x20creation\x20notes):\x20the\x20entity\x20slot\x20rides\x20the\x20forward\x27s\x20permission_index;\x20this\x20guard\x20adds\x20the\x20address\x20pin,\x20so\x20BOTH\x20must\x20hold.\x20pinned_address\x20keeps\x20the\x20tpl\x27s\x20deliberate\x20EMPTY\x20default\x20—\x20the\x20edge\x20compiles\x20FAIL-CLOSED\x20(unsatisfiable\x20until\x20the\x20builder\x20pins\x20the\x20real\x20ruler\x20address\x20at\x20generation)\x20instead\x20of\x20shipping\x20the\x20forward\x20with\x20NO\x20Guard\x20at\x20all,\x20which\x20is\x20what\x20a\x20pending\x20spec\x20does.'},{'id':'bind.repo_write.groupbuy_contribution','intent':'pattern.repository_write_authorization','site':{'template':'group_buy/leader-sourced-community','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_order_holder'},'derive':[],'note':'Contribution-ledger\x20write_guard:\x20the\x20policy\x20is\x20ORDER-KEYED\x20(id_from\x20none)\x20and\x20the\x20writer\x20set\x20is\x20the\x20two-holder\x20union\x20—\x20the\x20backer\x20(order.owner\x20==\x20Signer)\x20or\x20their\x20registered\x20agent\x20—\x20reading\x20THE\x20SAME\x20submitted\x20Order\x20slot\x20the\x20row\x20is\x20keyed\x20by,\x20so\x20write\x20authorization\x20and\x20row\x20keying\x20cannot\x20diverge.\x20The\x20backer\x27s\x20tooling\x20zeroes\x20the\x20row\x20on\x20withdrawal\x20so\x20the\x20escrow-bound\x20aggregate\x20stops\x20counting\x20the\x20pledge;\x20the\x20guard\x20is\x20the\x20ATTRIBUTION\x20boundary\x20and\x20the\x20bound\x20aggregate\x20the\x20VALUE\x20truth\x20—\x20ship\x20both\x20(R-X1-17).'},{'id':'bind.rail.preorder.deposit_forfeit','intent':'pattern.progress_state_check','site':{'template':'retail/preorder-deposit','key':'deposit_forfeit'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'reservation_cancelled'}],'note':'Kill-fee\x20deposit-exit\x20forfeit\x20(selector-gated:\x20mounts\x20only\x20when\x20deposit_exit_policy\x20==\x20\x27kill_fee\x27;\x20dropped\x20keys\x20never\x20reach\x20resolution).\x20The\x20purpose\x20names\x20ONE\x20refund\x20terminal;\x20the\x20guard\x20serves\x20both\x20Rate\x20legs\x20of\x20the\x20group\x20(merchant\x20kill_fee_bps\x20+\x20buyer\x20remainder,\x20summing\x2010000).\x20Node\x20gate\x20and\x20caller-authorization\x20leg\x20ship\x20IN\x20the\x20twin\x20root\x20(decision\x2011:\x20no\x20claimed_by\x20leg\x20—\x20fund\x20rails\x20never\x20read\x20the\x20payout\x20stamp).'},{'id':'bind.rail.preorder.full_refund','intent':'pattern.progress_state_check','site':{'template':'retail/preorder-deposit','key':'full_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'Post-balance\x20full\x20refund:\x20the\x20purpose\x20names\x20the\x20twin\x20and\x20the\x20single\x20terminal\x20explicitly\x20(a\x20paid-in-full\x20buyer\x20is\x20always\x20made\x20whole;\x20reservation_cancelled\x20is\x20a\x20DISTINCT\x20node\x20so\x20the\x20kill-fee\x20selector\x20never\x20touches\x20a\x20paid-in-full\x20order).'},{'id':'bind.rail.restock.full_refund','intent':'pattern.progress_state_check','site':{'template':'retail/restock-supply','key':'full_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'Full-pool\x20refund\x20at\x20the\x20cancel\x20terminal\x20(the\x20purpose\x20names\x20the\x20twin\x20and\x20the\x20node;\x20refunds\x20read\x20BALANCE\x20so\x20the\x20buyer\x20is\x20always\x20made\x20whole).'},{'id':'bind.rail.talent.refund_gate','intent':'pattern.progress_state_check','site':{'template':'freelance/enterprise-talent-market','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'Pre-award\x20refund\x20rail;\x20the\x20purpose\x20names\x20the\x20twin\x20and\x20the\x20node\x20gate\x20(anti-hijack\x20is\x20structural:\x20the\x20GuardIdentifier(0)\x20order-anchored\x20recipient,\x20not\x20a\x20signer\x20leg\x20—\x20CAT-B2;\x20decision\x2011:\x20the\x20twin\x20carries\x20no\x20claimed_by\x20leg).'},{'id':'bind.rail.tiers.refund_gate','intent':'pattern.progress_state_check','site':{'template':'freelance/catalog-tiers','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'Same\x20shape\x20as\x20the\x20enterprise-talent\x20rail;\x20the\x20paired\x20recover\x20rail\x20(terminal-node-gated)\x20keeps\x20the\x20awarded\x20escrow\x20exiting\x20—\x20two\x20independent\x20node-keyed\x20exits,\x20no\x20polarity\x20coupling\x20(decision\x2011).'},{'id':'bind.rail.contest.refund_gate','intent':'pattern.progress_state_check','site':{'template':'freelance/design-contest','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'},{'param':'refund_node_alt','value':'voided'}],'note':'TWO\x20refund\x20terminals\x20named\x20by\x20the\x20purpose\x20(the\x20void\x20terminal\x20is\x20mandatory\x20—\x20omitting\x20it\x20deadlocks\x20the\x20escrow,\x20OFN\x20#P-02);\x20alt2\x20defaults\x20to\x20the\x20primary\x20(duplicate\x20tautology\x20leg,\x20legal\x20per\x20the\x20twin).'},{'id':'bind.rail.longstay.nofault','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'nofault_refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'No-fault\x20exit\x20full\x20sweep\x20(a\x20full\x20sweep\x20is\x20correct:\x20no\x20rent\x20release\x20can\x20have\x20fired\x20yet\x20—\x20month_1\x20opens\x2030\x20days\x20after\x20handover).'},{'id':'bind.rail.longstay.deposit_refund','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'deposit_refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'completed'}],'note':'Deposit\x20refund\x20at\x20the\x20golden-path\x20terminal,\x20node-gated\x20per\x20the\x20purpose\x20(decision\x2011:\x20the\x20twin\x20carries\x20no\x20claimed_by\x20leg).\x20Amount\x20leg\x20self-limits;\x20no\x20once\x20slot\x20by\x20design\x20(refund\x20rails\x20arm\x20no\x20254).'},{'id':'bind.rail.longstay.damage','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'damage_refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'damage_confirmed'}],'note':'ONE\x20guard\x20serves\x20BOTH\x20allocator\x20rows\x20of\x20the\x20group\x20(landlord\x20Amount\x20capped\x20at\x20damage_max_amount\x20+\x20tenant\x20Rate\x20remainder);\x20the\x20node\x20pin\x20is\x20the\x20state\x20the\x20purpose\x20names.'},{'id':'bind.rail.longstay.early_exit','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'early_exit_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'early_terminated'}],'note':'Same\x20two-row\x20group\x20shape\x20as\x20the\x20damage\x20rail\x20(penalty\x20Amount\x20to\x20the\x20landlord\x20+\x20remainder\x20Rate\x20to\x20the\x20tenant)\x20at\x20the\x20early-termination\x20terminal.'},{'id':'bind.rail.liveclass.refund_gate','intent':'pattern.progress_state_check','site':{'template':'education/live-class-cohort','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'withdrawn'}],'note':'Pre-start\x20full\x20refund\x20at\x20the\x20withdrawn\x20terminal\x20(post-start\x20withdrawals\x20ride\x20the\x20terminal_settlement\x20residual\x20sweep\x20below\x20—\x20earned\x20tuition\x20has\x20already\x20left\x20via\x20the\x20per-session\x20releases).'},{'id':'bind.rail.mooc.refund_gate','intent':'pattern.progress_state_check','site':{'template':'education/mooc-single-course','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'returned'}],'note':'Refund\x20at\x20the\x20returned\x20terminal;\x20the\x20purpose\x20names\x20the\x20twin\x20and\x20the\x20node\x20gate\x20(decision\x2011:\x20no\x20claimed_by\x20leg),\x20and\x20forbids\x20both\x20the\x20254\x20slot\x20(the\x20twin\x20arms\x20none)\x20and\x20the\x20dispute-count\x20gate\x20(append-only\x20one-way\x20door).'},{'id':'bind.rail.groupbuy.missed_refund','intent':'pattern.progress_state_check','site':{'template':'group_buy/leader-sourced-community','key':'missed_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'missed_refunded'}],'note':'Missed-round\x20pledge\x20refund;\x20disjoint\x20from\x20withdraw_refund\x20BY\x20NODE\x20PREDICATE\x20(the\x20purpose\x27s\x20own\x20words),\x20not\x20by\x20a\x20once\x20slot.'},{'id':'bind.rail.groupbuy.withdraw_refund','intent':'pattern.progress_state_check','site':{'template':'group_buy/leader-sourced-community','key':'withdraw_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'withdrawn'}],'note':'Pre-deadline\x20withdrawal\x20refund;\x20the\x20backer\x27s\x20tooling\x20zeroes\x20the\x20contribution\x20row\x20for\x20the\x20aggregate\x20to\x20stop\x20counting\x20it\x20(the\x20write\x20side\x20is\x20the\x20batch-one\x20order-holder\x20row).'},{'id':'bind.rail.handmade.refund_execute','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'retail/vertical-handmade','key':'refund_execute'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'returned'},{'param':'refund_node_alt','value':'closed_cancel'}],'note':'BOTH\x20refund\x20terminals\x20covered\x20(FUND-EXIT-01).\x20Residual\x20disclosed:\x20the\x20purpose\x27s\x20optional\x20program-executor\x20slot\x20and\x20arbiter\x20spelling\x20stay\x20a\x20caller\x20resolution\x20—\x20the\x20twin\x27s\x20caller\x20leg\x20authorizes\x20buyer\x20OR\x20service-permission\x20staff,\x20the\x20dynamic\x20form\x20the\x20purposes\x20describe.'},{'id':'bind.rail.preorder.refund_execute','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'retail/preorder-deposit','key':'refund_execute'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'returned'},{'param':'refund_node_alt','value':'refunded'}],'note':'Pays\x20at\x20returned\x20(RMA\x20evidenced)\x20and\x20stays\x20TRIGGERABLE\x20at\x20the\x20refunded\x20record\x20terminal\x20(a\x20balance-exhausted\x20no-op\x20after\x20the\x20drain\x20—\x20the\x20FUND-EXIT-01\x20proof\x20that\x20the\x20refunded\x20terminal\x20keeps\x20a\x20fund\x20exit).'},{'id':'bind.rail.errand.refund_full','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'delivery/on-demand-errand','key':'refund_full'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'The\x20money\x20authority\x20for\x20closed_cancel;\x20the\x20purpose\x20demands\x20the\x20node\x20gate\x20(the\x20twin\x27s\x20only\x20state\x20leg\x20—\x20decision\x2011:\x20no\x20claimed_by\x20leg)\x20and\x20no\x20254\x20(the\x20twin\x20arms\x20none).'},{'id':'bind.rail.errand.refund_kill','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'delivery/on-demand-errand','key':'refund_kill'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_kill'}],'note':'Kill-fee\x20money\x20authority\x20for\x20closed_kill;\x20a\x20DIFFERENT\x20guard\x20key\x20from\x20refund_full\x20so\x20a\x20kill\x20and\x20a\x20full\x20refund\x20can\x20never\x20double-fire\x20(the\x20purpose\x27s\x20allocator-disjointness).'},{'id':'bind.rail.groupbuy.refund_full','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'group_buy/leader-sourced-community','key':'refund_full'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'claim_closed'}],'note':'Pre-award\x20arbitration-refund\x20authority:\x20node-gated\x20at\x20claim_closed\x20(decision\x2011\x20two-rail\x20independence\x20—\x20the\x20refund\x20rail\x20completes\x20by\x20node\x20state\x20and\x20never\x20reads\x20the\x20claim\x20stamp;\x20a\x20refund\x20plus\x20a\x20claimed\x20indemnity\x20is\x20disclosed\x20double\x20collection\x20at\x20the\x20MCP\x20confirmation\x20gate,\x20not\x20a\x20polarity\x20condition).'},{'id':'bind.forward.warehouse.pick','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'retail/warehouse-club','key':'pick'},'binding':{'kind':'guard_template','id':'tpl_forward_staff_node_check'},'derive':[{'param':'expected_node','value':'paid'},{'param':'staff_permission_index','value':0x3e9}],'note':'The\x20purpose\x20names\x20the\x20forward\x20operator\x27s\x20STAFF\x20identity\x20and\x20the\x20edge\x20ships\x20its\x20own\x20chain-side\x20operator\x20gate\x20(1001):\x20the\x20twin\x20pins\x20the\x20mount\x27s\x20own\x20prev\x20(paid\x20—\x20the\x20mount\x20edge\x20IS\x20the\x20pin),\x20binds\x20the\x20submitted\x20Permission\x20to\x20the\x20Service\x27s\x20live\x20org\x20(1488\x20—\x20rotation-proof)\x20and\x20reads\x20the\x20staff\x20slot\x20through\x20query\x201008\x20(Signer,\x20index\x201001\x20—\x20the\x20edge\x27s\x20own\x20permission_index\x20as\x20reviewed\x20template\x20data).\x20Additive\x20to\x20the\x20chain\x20gate,\x20never\x20a\x20replacement\x20(the\x20twin\x27s\x20creation\x20notes:\x20guard-is-additive).\x20service_name\x20is\x20kernel-seeded;\x20the\x20Order/Permission\x20slots\x20are\x20runtime\x20submissions.'},{'id':'bind.rail.creatorzero.settle','intent':'pattern.progress_state_check','site':{'template':'freelance/creator-zero-commission','key':'settle'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle_once'},'derive':[{'param':'settle_node','value':'completed'}],'note':'The\x20purpose\x20names\x20settle_once\x20explicitly\x20(node\x20gate\x20+\x20the\x20chain-derived\x20254\x20once\x20key\x20ship\x20in\x20its\x20root\x20—\x20decision\x2011:\x20no\x20claimed_by\x20leg);\x20completed\x20is\x20the\x20only\x20settle\x20terminal\x20on\x20this\x20shape\x20(closed_cancel\x20is\x20the\x20refund\x20rail\x27s).\x20Alts\x20default\x20to\x20the\x20primary.'},{'id':'bind.rail.liveclass.terminal_settlement','intent':'pattern.progress_state_check','site':{'template':'education/live-class-cohort','key':'terminal_settlement'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle_once'},'derive':[{'param':'settle_node','value':'completed'},{'param':'settle_node_alt','value':'renewal_window'},{'param':'settle_node_alt2','value':'withdrawn'}],'note':'FUND-EXIT-01\x20always-on\x20residual\x20sweep\x20over\x20ALL\x20THREE\x20terminals\x20the\x20purpose\x20enumerates\x20—\x20the\x20settle_once\x20twin\x27s\x20three\x20node\x20slots\x20fit\x20exactly.\x20Dormant\x20on\x20the\x20golden\x20path\x20(empty\x20pool\x20aborts\x2014\x20harmlessly);\x20residue\x20exits\x20to\x20the\x20buyer\x20instead\x20of\x20stranding.'},{'id':'bind.rail.longstay.residual_sweep','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'terminal_residual_sweep'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle_once'},'derive':[{'param':'settle_node','value':'completed'}],'note':'KLK-P0-2\x20residual\x20sweep.\x20DELIBERATE\x20UPGRADE\x20over\x20the\x20purpose\x27s\x20255\x20spelling:\x20the\x20sweep\x20is\x20single-shot\x20at\x20a\x20TERMINAL\x20node,\x20so\x20the\x20settle_once\x20twin\x27s\x20chain-derived\x20254\x20(exactly-once\x20per\x20order,\x20publicly\x20unforgeable)\x20is\x20the\x20stricter\x20once\x20key\x20for\x20the\x20same\x20semantics\x20—\x20255\x27s\x20history-count\x20key\x20was\x20the\x20pre-settle_once\x20idiom\x20and\x20an\x20off-by-one\x20keeper\x20permanently\x20locks\x20a\x20255\x20sweep\x20(the\x20KLK\x20live\x20face).\x20Node\x20pin\x20and\x20the\x20caller\x20leg\x20ship\x20in\x20the\x20twin\x20root\x20(the\x20former\x20claimed_by-false\x20leg\x20is\x20removed\x20by\x20decision\x2011).'},{'id':'bind.rail.p2p.payout_release','intent':'pattern.progress_state_check','site':{'template':'rental/p2p-shortstay','key':'payout_release_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'payout_released'},{'param':'window_node','value':'claim_window'},{'param':'claim_window_days','from':'fee_params','key':'claim_window_days'}],'note':'Serial\x20release\x20(ABNB2-validated\x20shape):\x20the\x20reached-node\x20pin\x20plus\x20the\x20claim-window\x20lock.\x20DELIBERATELY\x20NOT\x20settle_once:\x20the\x20payout\x20must\x20stay\x20contestable\x20through\x20the\x20claim\x20window,\x20and\x20only\x20the\x20serial-window\x20twin\x20carries\x20the\x20Clock\x20window\x20lock\x20(settle_once\x20has\x20no\x20window\x20vocabulary\x20—\x20and\x20since\x20decision\x2011\x20neither\x20twin\x20reads\x20order.claimed_by,\x20the\x20old\x20denied-claim\x20weld\x20argument\x20is\x20moot;\x20the\x20window\x20lock\x20is\x20the\x20standing\x20reason).\x20The\x20twin\x27s\x20Clock\x20leg\x20carries\x20the\x20window\x20lock\x20(and\x20the\x20Clock\x20exemption\x20of\x20the\x20caller-authorization\x20gate);\x20the\x20window\x20length\x20rides\x20the\x20template\x27s\x20own\x20fee\x20knob\x20so\x20the\x20merchant\x27s\x20knob\x20moves\x20the\x20chain.'},{'id':'bind.rail.creatormb.settle_rail','intent':'pattern.progress_state_check','site':{'template':'subscription/creator-membership','key':'settle_rail'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle'},'derive':[{'param':'settle_node','value':'completed'}],'note':'Per-period\x20release\x20(state-based,\x20the\x20completed\x20advance\x20is\x20the\x20keeper\x27s\x20clock\x20duty):\x20the\x20255\x20once\x20key\x20pins\x20to\x20the\x20monotonic\x20history\x20count\x20so\x20each\x20renewal\x20period\x20gets\x20a\x20fresh\x20key\x20—\x20settle_once\x27s\x20per-order\x20254\x20would\x20abort\x20from\x20period\x202\x20(the\x20twin\x20description\x27s\x20own\x20split).'},{'id':'bind.rail.directfan.settle_rail','intent':'pattern.progress_state_check','site':{'template':'subscription/direct-fan-subscription','key':'settle_rail'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle'},'derive':[{'param':'settle_node','value':'completed'}],'note':'Same\x20per-period\x20shape;\x20the\x20guard\x20is\x20shared\x20by\x20the\x20settlement\x20row\x20and\x20the\x20Rate-0\x20ORDER\x20anchor\x20row\x20(they\x20merge\x20into\x20ONE\x20allocator\x20—\x2010000\x20+\x200\x20=\x2010000).'},{'id':'bind.rail.deliverymb.settle_rail','intent':'pattern.progress_state_check','site':{'template':'subscription/delivery-membership','key':'settle_rail'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle'},'derive':[{'param':'settle_node','value':'completed'}],'note':'Same\x20per-period\x20shape;\x20the\x20merchant\x20leg\x20and\x20the\x20Rate-0\x20ORDER\x20anchor\x20leg\x20share\x20the\x20ONE\x20allocator\x20through\x20this\x20guard.'},{'id':'bind.repo_write.scale_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'retail/scale-marketplace','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'Evidence\x20policy\x20is\x20order-keyed\x20(id_from\x20none)\x20and\x20the\x20writer\x20set\x20is\x20the\x20union\x20the\x20purpose\x20names:\x20merchant\x20staff\x20through\x20the\x20live\x20permission\x20object,\x20or\x20the\x20order\x20holder/agent.\x20The\x20tracking/return-receipt/lost-package\x20rows\x20behind\x20the\x20ship\x20and\x20evidence\x20gates\x20can\x20then\x20only\x20be\x20authored\x20by\x20these\x20writers\x20(R-X1-17).'},{'id':'bind.repo_write.preorder_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'retail/preorder-deposit','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'Same\x20union\x20shape;\x20the\x20policy\x27s\x20order-keying\x20is\x20the\x20azq9\x20TPL-B\x20fix\x20(a\x20signer-keyed\x20policy\x20would\x20collide\x20every\x20order\x27s\x20evidence\x20rows\x20into\x20one\x20writer-keyed\x20row).'},{'id':'bind.repo_write.restock_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'retail/restock-supply','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'Supplier-side\x20spelling\x20of\x20the\x20same\x20union\x20(the\x20purpose\x27s\x20writer\x20set\x20names\x20the\x20supplier\x20staff\x20slot);\x20the\x20order-keyed\x20pairing\x20discipline\x20is\x20identical.'},{'id':'bind.repo_write.warehouse_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'retail/warehouse-club','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'Club-floor\x20staff\x20are\x20the\x20operational\x20writers\x20(the\x20picking\x20stage\x20is\x20evidenced\x20staff\x20labor);\x20the\x20testnet\x20HIGH-04\x20open-write\x20face\x20closes\x20with\x20this\x20row.'},{'id':'bind.repo_write.errand_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'delivery/on-demand-errand','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'The\x20desk\x27s\x20dispatcher/settlement\x20staff\x20write\x20the\x20dispatch/pickup/handover\x20rows;\x20the\x20RUNNER\x20writes\x20nothing\x20(the\x20roster\x20authorizes\x20the\x20runner\x27s\x20FORWARD,\x20never\x20a\x20repository\x20write\x20—\x20the\x20purpose\x27s\x20own\x20boundary).'},{'id':'bind.repo_data.scale.ship','intent':'pattern.repository_data_check','site':{'template':'retail/scale-marketplace','key':'ship'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'shipped'}],'note':'Tracking-hash\x20row\x20must\x20exist\x20(value\x20carries\x20the\x20\x27shipped\x27\x20marker\x20+\x20the\x20hash)\x20before\x20the\x20merchant\x27s\x20ship\x20forward\x20passes.'},{'id':'bind.repo_data.scale.return_received','intent':'pattern.repository_data_check','site':{'template':'retail/scale-marketplace','key':'return_received'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'RMA'}],'note':'RMA\x20receipt\x20row\x20under\x20the\x20same\x20order-keyed\x20evidence\x20policy\x20gates\x20return_in_transit\x20->\x20returned.'},{'id':'bind.repo_data.scale.lost_evidence','intent':'pattern.repository_data_check','site':{'template':'retail/scale-marketplace','key':'lost_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'item_lost'}],'note':'Carrier\x20lost-package\x20record\x20(same\x20writer\x20authorization\x20as\x20tracking\x20rows)\x20gates\x20the\x20item_lost\x20filing.'},{'id':'bind.repo_data.preorder.ship','intent':'pattern.repository_data_check','site':{'template':'retail/preorder-deposit','key':'ship'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'shipped'}],'note':'Tracking\x20hash\x20in\x20the\x20order-keyed\x20evidence\x20policy\x20gates\x20balance_paid\x20->\x20shipped.'},{'id':'bind.repo_data.preorder.return_received','intent':'pattern.repository_data_check','site':{'template':'retail/preorder-deposit','key':'return_received'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'RMA'}],'note':'RMA\x20row\x20under\x20the\x20SAME\x20order-keyed\x20evidence\x20policy\x20as\x20the\x20tracking\x20rows\x20(the\x20purpose\x27s\x20pairing)\x20gates\x20return_in_transit\x20->\x20returned.'},{'id':'bind.repo_data.restock.ship','intent':'pattern.repository_data_check','site':{'template':'retail/restock-supply','key':'ship'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'shipped'}],'note':'Carrier\x20tracking\x20hash\x20gates\x20paid\x20->\x20shipped\x20on\x20the\x20supplier\x20side.'},{'id':'bind.repo_data.warehouse.ship','intent':'pattern.repository_data_check','site':{'template':'retail/warehouse-club','key':'ship'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'shipped'}],'note':'Tracking\x20hash\x20gates\x20picking\x20->\x20shipped\x20(the\x20club\x27s\x20staff-labor\x20stage\x20is\x20upstream).'},{'id':'bind.repo_data.warehouse.return_received','intent':'pattern.repository_data_check','site':{'template':'retail/warehouse-club','key':'return_received'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'RMA'}],'note':'RMA\x20receipt\x20row\x20gates\x20the\x20return\x20advance.'},{'id':'bind.repo_data.warehouse.lost_evidence','intent':'pattern.repository_data_check','site':{'template':'retail/warehouse-club','key':'lost_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'item_lost'}],'note':'Lost-package\x20record\x20gates\x20the\x20item_lost\x20filing.'},{'id':'bind.repo_data.bugbounty.submit_evidence','intent':'pattern.repository_data_check','site':{'template':'freelance/bug-bounty','key':'submit_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'report'},{'param':'evidence_marker','value':'0x'}],'note':'The\x20report\x20policy\x27s\x20row\x20value\x20IS\x20the\x20hunter\x27s\x20address,\x20so\x20the\x20marker\x20is\x20the\x20address\x20prefix\x20—\x20the\x20gate\x20proves\x20an\x20address-valued\x20report\x20row\x20exists\x20for\x20THIS\x20order\x20(the\x20order-pin\x20leg),\x20and\x20the\x20recorded\x20reporter\x20is\x20the\x20anchor\x20the\x20settlement\x20Signer-binding\x20leg\x20reads.\x20The\x20write\x20side\x20is\x20the\x20template\x27s\x20own\x20hunter-bound\x20report_write\x20guard.'},{'id':'bind.repo_data.errand.dispatch_record','intent':'pattern.repository_data_check','site':{'template':'delivery/on-demand-errand','key':'dispatch_record'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'dispatch'}],'note':'The\x20desk\x27s\x20dispatch\x20row\x20(runner\x20assignment\x20id,\x20fee-table\x20version\x20LOCKED\x20at\x20order\x20time)\x20must\x20exist\x20before\x20the\x20assignment\x20is\x20on\x20chain\x20—\x20the\x20runner\x20assignment\x20itself\x20is\x20an\x20off-chain\x20keeper\x20decision,\x20this\x20row\x20is\x20its\x20record.'},{'id':'bind.repo_data.groupbuy.sourcing','intent':'pattern.repository_data_check','site':{'template':'group_buy/leader-sourced-community','key':'sourcing_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'sourcing'},{'param':'evidence_marker','value':'sourcing'}],'note':'Supplier-order\x20row\x20(refs,\x20unit\x20costs,\x20quantities\x20for\x20THIS\x20round)\x20gates\x20SourceGoods\x20—\x20the\x20round\x27s\x20money\x20trail\x20starts\x20here.\x20Row\x20name\x20follows\x20the\x20W5-13\x20five-way\x20evidence\x20split\x20(one\x20evidence\x20KIND\x20per\x20policy\x20so\x20kinds\x20cannot\x20overwrite\x20each\x20other).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20sourcing_write\x20staff-allowlist\x20guard.'},{'id':'bind.repo_data.groupbuy.distribution','intent':'pattern.repository_data_check','site':{'template':'group_buy/leader-sourced-community','key':'distribution_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'distribution'},{'param':'evidence_marker','value':'distribution'}],'note':'Community-point\x20distribution\x20row\x20(batch\x20id,\x20quantities\x20delivered)\x20gates\x20DistributeGoods.\x20Row\x20name\x20follows\x20the\x20W5-13\x20five-way\x20evidence\x20split.\x20Write\x20side:\x20the\x20template\x27s\x20own\x20distribution_write\x20staff-allowlist\x20guard.'},{'id':'bind.repo_data.contest.final_files','intent':'pattern.repository_data_check','site':{'template':'freelance/design-contest','key':'final_files'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'final_files'},{'param':'evidence_marker','value':'0x'}],'note':'The\x20winner\x27s\x20final\x20source-file\x20WIP-hash\x20row\x20(order-keyed,\x20so\x20the\x20twin\x27s\x20order-pin\x20holds)\x20must\x20exist\x20before\x20DeliverFinal\x20passes\x20—\x20the\x20sponsor\x20accepts\x20against\x20a\x20tamper-evident\x20artifact,\x20not\x20prose.\x20The\x20marker\x20is\x20the\x20hash-prefix\x20idiom\x20(the\x20row\x20value\x20IS\x20the\x20hash\x20—\x20the\x20bug-bounty\x20report\x20face).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20final_files_write\x20guard;\x20deliberately\x20NO\x20write_once\x20so\x20a\x20revision\x20round\x20(Redeliver)\x20re-delivers\x20and\x20re-writes.'},{'id':'bind.repo_data.longstay.handover','intent':'pattern.repository_data_check','site':{'template':'rental/institutional-longstay','key':'handover'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'handover'},{'param':'evidence_marker','value':'handover'}],'note':'Move-in\x20checklist\x20hash\x20row\x20gates\x20deposit_paid\x20->\x20in_use;\x20the\x20writer\x20embeds\x20the\x20\x27handover\x27\x20token\x20(the\x20scale-marketplace\x20composite-value\x20convention).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20handover_write\x20guard.'},{'id':'bind.repo_data.longstay.damage','intent':'pattern.repository_data_check','site':{'template':'rental/institutional-longstay','key':'damage_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'damage_evidence'},{'param':'evidence_marker','value':'damage'}],'note':'Pre+post\x20evidence-diff\x20row\x20gates\x20the\x20damage\x20verdict\x20(verdict_damage,\x20verifier\x20slot\x201002);\x20the\x20natural-wear\x20exclusion\x20stays\x20prose\x20—\x20a\x20policy\x20authorizes\x20WHO\x20writes,\x20never\x20compares\x20VALUES\x20(upw-mn-261016\x20F-01).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20damage_evidence_write\x20guard.'},{'id':'bind.repo_data.creatormb.content_hash','intent':'pattern.repository_data_check','site':{'template':'subscription/creator-membership','key':'content_hash'},'binding':{'kind':'guard_template','id':'tpl_repository_row_equals_order_field'},'derive':[{'param':'row_name','value':'content_hash'},{'param':'order_field','value':'order.item.wip_hash'}],'note':'The\x20EQUALITY\x20twin,\x20not\x20mere\x20presence:\x20the\x20purpose\x20demands\x20the\x20submission\x20MATCH\x20the\x20order\x20item\x20commitment,\x20and\x20the\x20order-keyed\x20read\x20(query\x201167\x20with\x20THE\x20SUBMITTED\x20ORDER\x20—\x20no\x20candidate\x20list\x20to\x20pad)\x20is\x20chain-bound.\x20Deliberately\x20NO\x20write_once:\x20each\x20renewal\x20period\x20re-writes\x20the\x20row\x20(the\x20OFN5-10\x20known\x20face\x20—\x20content\x20evidence\x20is\x20per-order;\x20period-N\x20keyed\x20rows\x20stay\x20the\x20protocol\x20decision\x20list).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20content_write\x20guard.'},{'id':'bind.repo_data.contest.appeal','intent':'pattern.repository_data_check','site':{'template':'freelance/design-contest','key':'appeal_filed'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present_signer'},'derive':[{'param':'row_name','value':'entry'},{'param':'evidence_marker','value':'0x'}],'note':'Signer-pinned\x20presence:\x20the\x20entry\x20policy\x20is\x20SIGNER-keyed\x20(id_from\x20signer\x20—\x20one\x20row\x20per\x20designer),\x20so\x20the\x20twin\x27s\x20candidate\x20set\x20is\x20stringContains(0x)\x20rows\x20and\x20the\x20context(Signer)\x20pin\x20proves\x20the\x20appellant\x20AUTHORED\x20an\x20entry\x20(a\x20bystander\x20with\x20no\x20entry\x20of\x20their\x20own\x20cannot\x20grieve\x20the\x20contest).\x20The\x200x\x20marker\x20is\x20a\x20DECLARED\x20write-point\x20convention:\x20entry\x20values\x20are\x20WIP-hash\x20strings\x20(entry_write,\x20the\x200x\x20hash-prefix\x20idiom\x20same\x20as\x20final_files)\x20—\x20a\x20policy\x20authorizes\x20WHO\x20writes\x20and\x20never\x20compares\x20VALUES,\x20so\x20the\x20convention\x20had\x20to\x20be\x20declared\x20at\x20the\x20write\x20side\x20before\x20any\x20read\x20could\x20match\x20it.\x20Write\x20side:\x20the\x20template\x27s\x20own\x20entry_write\x20guard.'},{'id':'bind.rail.p2p.claim_paid','intent':'pattern.progress_state_check','site':{'template':'rental/p2p-shortstay','key':'claim_paid_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_claim_settle'},'derive':[{'param':'settle_node','value':'claim_paid'}],'note':'Host-side\x20settlement\x20from\x20the\x20intact\x20booking\x20pool\x20at\x20the\x20single\x20terminal\x20claim_paid\x20(the\x20alt\x20slots\x20default\x20to\x20it;\x20claim_paid\x20is\x20single-entry\x20with\x20no\x20back\x20edge\x20and\x20mutually\x20exclusive\x20with\x20guest_claim_paid,\x20so\x20exactly-once\x20is\x20topological\x20—\x20the\x20twin\x20arms\x20no\x20254\x20slot\x20by\x20design).\x20DELIBERATELY\x20NO\x20claimed_by\x20leg\x20(the\x202026-10-30\x20polarity\x20ruling,\x20generalized\x20to\x20decision\x2011\x20two-rail\x20independence):\x20the\x20arbitration\x20award\x20(compensation\x20fund\x20->\x20order\x20owner)\x20and\x20this\x20booking\x20pool\x20(->\x20host)\x20are\x20independent\x20channels,\x20and\x20claimed_by\x20records\x20the\x20compensation\x20EVENT,\x20not\x20the\x20winner\x27s\x20direction\x20(D-BUG-2)\x20—\x20a\x20claimed_by==false\x20leg\x20would\x20weld\x20the\x20pool\x20shut\x20on\x20a\x20split\x20award\x20or\x20a\x20zero-award\x20ruling\x20on\x20an\x20upheld\x20appeal,\x20either\x20of\x20which\x20still\x20writes\x20claimed_by\x20before\x20the\x20host\x27s\x20share\x20is\x20paid.\x20NO\x20order.service\x20binding\x20either\x20(bsw4\x20F-06\x20—\x20the\x20settle\x20family\x20dropped\x20the\x20host\x20pin\x20under\x20v148\x27s\x20chain-side\x20task-binding\x20check).'},{'id':'bind.rail.liveclass.session_release','intent':'pattern.identity_check_order_holder','site':{'template':'education/live-class-cohort','key':'session_release_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_session_release'},'derive':[{'param':'session_node','value':'session_1'},{'param':'session_node_alt','value':'session_2'},{'param':'session_node_alt2','value':'session_3'},{'param':'session_node_alt3','value':'completed_ready'},{'param':'session_node_alt4','value':'completed'},{'param':'session_node_alt5','value':'renewal_window'}],'note':'Per-session\x20staged\x20settlement\x20—\x20the\x20purpose\x27s\x20release-sequence\x20lock\x20MATERIALIZED:\x20the\x20255\x20once\x20leg\x20pins\x20the\x20monotonic\x20progress.history\x20count,\x20so\x20each\x20attended\x20session\x27s\x20release\x20gets\x20a\x20fresh\x20chain\x20OnceKey\x20and\x20a\x20same-session\x20replay\x20aborts\x2016\x20(OFN\x20#P-04),\x20and\x20the\x20six-node\x20qualifying\x20set\x20keeps\x20the\x20finalization\x20states\x20admissible\x20as\x20the\x20exit\x20safety\x20net\x20(FUND-EXIT-01).\x20The\x20caller\x20rail\x20is\x20BUYER-ONLY\x20by\x20ruling\x20(2026-10-30):\x20the\x20institution\x20advances\x20the\x20workflow\x20but\x20can\x20never\x20self-claim\x20attendance\x20money;\x20a\x20parent-gone\x20order\x20still\x20exits\x20via\x20the\x20terminal\x20residual\x20sweep\x20(bind.rail.liveclass.terminal_settlement)\x20and\x20its\x20recover\x20twin.\x20DELIBERATELY\x20NO\x20claimed_by\x20leg\x20(decision\x2011)\x20—\x20a\x20staged\x20rail\x20must\x20keep\x20firing\x20after\x20an\x20award\x20pays;\x20award\x20and\x20release\x20are\x20independent\x20channels.'},{'id':'bind.rail.creatormb.refund_gate','intent':'pattern.identity_check_order_holder','site':{'template':'subscription/creator-membership','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund_renewal'},'derive':[{'param':'refund_node','value':'subscribed'},{'param':'refund_node_alt','value':'charging'},{'param':'refund_node_alt2','value':'delivering'},{'param':'refund_node_alt3','value':'closed_cancel'},{'param':'refund_node_alt4','value':'expired'}],'note':'RAIL-03\x20resolution\x20(ruling\x202026-10-30,\x20recast\x20decision\x2011):\x20the\x20twin\x20is\x20node-gated\x20over\x20the\x20refundable\x20node\x20set\x20—\x20the\x20former\x20claimed_by\x20some\x20==\x20false\x20polarity\x20leg\x20was\x20removed\x20template-wide,\x20so\x20the\x20old\x20polarity-disjointness\x20argument\x20vs\x20awarded_recover\x20is\x20retired;\x20both\x20rails\x20now\x20key\x20on\x20NODE\x20state\x20and\x20their\x20overlap\x20is\x20a\x20disclosed\x20double-collection\x20surface\x20at\x20the\x20MCP\x20confirmation\x20gate.\x20Plus\x20the\x20255\x20history-count\x20once\x20key\x20(\x27period-<N>\x27)\x20for\x20the\x20re-enterable\x20refund\x20nodes\x20and\x20the\x20BUYER-OR-KEEPER\x20caller\x20leg:\x20the\x20lapsed\x20member\x20is\x20gone\x20at\x20expired\x20and\x20needs\x20a\x20keeper\x20to\x20fire\x20(K-4),\x20while\x20the\x20order-anchored\x20recipient\x20binds\x20WHERE\x20funds\x20land,\x20so\x20the\x20keeper\x20can\x20only\x20pay\x20the\x20member,\x20never\x20themselves.\x20The\x20five-node\x20set\x20covers\x20every\x20refundable\x20node\x20AND\x20both\x20mandatory\x20terminals\x20(closed_cancel,\x20expired\x20—\x20OFN\x20#P-02).'},{'id':'bind.rail.deliverymb.refund_gate','intent':'pattern.identity_check_order_holder','site':{'template':'subscription/delivery-membership','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund_renewal'},'derive':[{'param':'refund_node','value':'subscribed'},{'param':'refund_node_alt','value':'charging'},{'param':'refund_node_alt2','value':'active'},{'param':'refund_node_alt3','value':'closed_cancel'}],'note':'Same\x20renewal-safe\x20twin,\x20four-node\x20set\x20{subscribed,\x20charging,\x20active,\x20closed_cancel}:\x20this\x20shape\x20has\x20NO\x20expired\x20terminal,\x20so\x20the\x20twin\x27s\x20fifth\x20slot\x20rides\x20its\x20duplicate-tautology\x20default\x20(a\x20legal\x20tautology,\x20never\x20a\x20dead\x20literal).\x20Caller-leg\x20rationale\x20as\x20the\x20creator-membership\x20row\x20—\x20the\x20keeper\x20leg\x20covers\x20the\x20mid-period\x20cancel\x20whose\x20member\x20has\x20walked\x20away\x20(decision\x2011:\x20no\x20polarity\x20leg;\x20node-keyed\x20exits,\x20overlap\x20disclosed\x20at\x20the\x20MCP\x20confirmation\x20gate).'},{'id':'bind.rail.p2p.tier1_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_1_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-1\x20(flexible)\x20guest-cancel\x20refund:\x20full-refund\x20legs\x20(Rate\x2010000\x20to\x20the\x20order\x20anchor).\x20Node\x20gate\x20+\x20caller\x20legs\x20ship\x20in\x20the\x20twin\x20root\x20(decision\x2011:\x20no\x20claimed_by\x20leg)\x20—\x20the\x20same\x20shape\x20the\x20template\x27s\x20own\x20confirm_expire_refund\x20/\x20host_cancel_refund\x20specs\x20already\x20instantiate\x20directly.\x20The\x20band\x20disclosure\x20above\x20applies:\x20cancellation\x20timing\x20is\x20not\x20on-chain-enforceable,\x20the\x20selector\x20scopes\x20the\x20economics.'},{'id':'bind.rail.p2p.tier2_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_2_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-2\x20(moderate)\x20guest-cancel\x20refund:\x20full-refund\x20legs;\x20same\x20shape\x20and\x20disclosure\x20as\x20the\x20tier-1\x20row.'},{'id':'bind.rail.p2p.tier3_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_3_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-3\x20(firm)\x20guest-cancel\x20refund:\x20full-refund\x20legs;\x20same\x20shape\x20and\x20disclosure\x20as\x20the\x20tier-1\x20row.'},{'id':'bind.rail.p2p.tier4_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_4_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-4\x20(strict)\x20guest-cancel\x20refund:\x20full-refund\x20legs;\x20same\x20shape\x20and\x20disclosure\x20as\x20the\x20tier-1\x20row.'},{'id':'bind.rail.p2p.tier5_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_5_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-5\x20(strict-partial)\x20guest-cancel\x20refund:\x20the\x20group\x27s\x20own\x20legs\x20are\x20the\x20PARTIAL\x20split\x20(tier5_guest_bps\x20to\x20the\x20order\x20anchor\x20+\x20tier5_host_bps\x20to\x20the\x20host,\x20sum\x2010000)\x20—\x20the\x20guard\x20is\x20the\x20same\x20node-gate\x20twin;\x20the\x20split\x20economics\x20live\x20in\x20the\x20allocator\x20rows,\x20not\x20the\x20guard.'},{'id':'bind.rail.p2p.tier6_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_6_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-6\x20(long-stay)\x20guest-cancel\x20refund:\x20partial\x20split\x20like\x20tier\x205\x20(tier6_guest_bps\x20+\x20tier6_host_bps,\x20sum\x2010000);\x20same\x20node-gate\x20twin\x20and\x20disclosure.'},{'id':'bind.rail.p2p.residual_sweep','intent':'pattern.progress_state_check','site':{'template':'rental/p2p-shortstay','key':'terminal_residual_sweep'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle_once'},'derive':[{'param':'settle_node','value':'completed'}],'note':'KLK-P0-2\x20terminal\x20residual\x20sweep\x20(longstay\x20parity):\x20the\x20sweep\x20is\x20single-shot\x20at\x20a\x20TERMINAL\x20node,\x20so\x20the\x20settle_once\x20twin\x27s\x20chain-derived\x20254\x20(exactly-once\x20per\x20order,\x20publicly\x20unforgeable)\x20is\x20the\x20stricter\x20once\x20key\x20for\x20the\x20same\x20semantics;\x20Node\x20pin\x20and\x20the\x20caller\x20leg\x20ship\x20in\x20the\x20twin\x20root\x20(the\x20former\x20claimed_by-false\x20leg\x20is\x20removed\x20by\x20decision\x2011).\x20rk3b-tn-261030:\x20resolving\x20the\x20tier\x20refund\x20rails\x20emptied\x20the\x20pending-allocator\x20bucket\x20and\x20FUND-EXIT-01\x20flipped\x20CRITICAL\x20on\x20completed\x20—\x20the\x20strand\x20this\x20sweep\x20closes\x20(the\x20keeper\x20finalizes\x20past\x20payout_released/claim_paid\x20without\x20firing\x20the\x20release\x20alloc;\x20Machine+Allocator\x20are\x20immutable\x20after\x20publish)\x20was\x20real\x20the\x20whole\x20time,\x20the\x20medium\x20tier\x20had\x20merely\x20been\x20hiding\x20it\x20behind\x20an\x20unrelated\x20pending\x20design.'},{'id':'bind.rail.longstay.month1','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_1_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x1e}],'note':'Month\x201\x20of\x20the\x20staged\x20rent\x20schedule:\x20the\x20Amount\x20rail\x20opens\x2030\x20days\x20after\x20the\x20handover\x20entry.\x20The\x20release_node\x20pin\x20IS\x20the\x20mid-lease\x20stay\x20(alloc\x20evaluates\x20while\x20the\x20order\x20sits\x20at\x20in_use)\x20and\x20the\x20opening\x20clock\x20makes\x20same-day\x20double\x20releases\x20impossible\x20(each\x20month\x27s\x20rail\x20opens\x20only\x20at\x20its\x20own\x2030-day\x20mark\x20—\x20the\x20single-shared-Guard\x20hazard\x20the\x20template\x27s\x20staged-release\x20comment\x20names).\x20A\x20pending\x20rail\x20aborted\x20alloc_by_guard:\x20rent\x20releases\x20stranded\x20and\x20the\x20sweep\x20paid\x20the\x20landlord\x27s\x20income\x20to\x20the\x20tenant.'},{'id':'bind.rail.longstay.month2','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_2_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x3c}],'note':'Month\x202:\x20opens\x2060\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month3','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_3_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x5a}],'note':'Month\x203:\x20opens\x2090\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month4','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_4_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x78}],'note':'Month\x204:\x20opens\x20120\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month5','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_5_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x96}],'note':'Month\x205:\x20opens\x20150\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month6','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_6_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0xb4}],'note':'Month\x206:\x20opens\x20180\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month7','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_7_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0xd2}],'note':'Month\x207:\x20opens\x20210\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month8','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_8_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0xf0}],'note':'Month\x208:\x20opens\x20240\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month9','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_9_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x10e}],'note':'Month\x209:\x20opens\x20270\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month10','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_10_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x12c}],'note':'Month\x2010:\x20opens\x20300\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month11','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_11_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x14a}],'note':'Month\x2011:\x20opens\x20330\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month12','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_12_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x168}],'note':'Month\x2012\x20(final):\x20opens\x20360\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.directfan.expired_settle','intent':'pattern.time_lock_progress','site':{'template':'subscription/direct-fan-subscription','key':'expired_settle'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle'},'derive':[{'param':'settle_node','value':'expired'}],'note':'Lapsed-period\x20settlement\x20(D-30\x20completion):\x20the\x20rail\x20row\x20has\x20existed\x20since\x20the\x20D-30\x20fix\x20but\x20its\x20guard\x20stayed\x20pending,\x20so\x20alloc_by_guard\x20kept\x20aborting\x20and\x20the\x20natural\x20lapse\x20still\x20stranded\x20the\x20escrow.\x20The\x20255\x20once\x20key\x20matches\x20the\x20sibling\x20settle_rail\x20row\x27s\x20per-period\x20discipline.'},{'id':'bind.rail.longstay.inspect_timeout','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'inspect_timeout'},'binding':{'kind':'guard_template','id':'tpl_time_lock_progress'},'derive':[{'param':'expected_node','value':'inspected'},{'param':'duration_ms','from':'fee_params','key':'inspection_deadline_hours','scale':'hours_to_ms'}],'note':'Verifier\x20no-show\x20opener:\x20the\x20tenant\x20may\x20self-complete\x20only\x20after\x20inspection_deadline_hours\x20from\x20the\x20inspected\x20entry\x20—\x20the\x20fee\x20knob\x20stops\x20being\x20prose.\x20Anchor\x20=\x20the\x20mount\x27s\x20prev\x20(single\x20buyer\x20mount,\x20NODE-MATCH-01\x20safe);\x20the\x20resolved\x20spec\x20displaces\x20the\x20F05\x20identity\x20injection\x20on\x20this\x20edge\x20(a\x20resolved\x20spec\x20wins\x20—\x20f05\x20doctrine),\x20leaving\x20the\x20deadline\x20as\x20the\x20designed\x20nofault\x20gate.'},{'id':'bind.rail.longstay.no_inspect_timeout','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'no_inspect_timeout'},'binding':{'kind':'guard_template','id':'tpl_time_lock_progress'},'derive':[{'param':'expected_node','value':'returned'},{'param':'duration_ms','from':'fee_params','key':'inspection_deadline_hours','scale':'hours_to_ms'}],'note':'Inspection-never-started\x20opener:\x20the\x20tenant\x20may\x20self-complete\x20after\x20inspection_deadline_hours\x20from\x20the\x20RETURN\x20entry\x20(the\x20verifier\x20never\x20opened\x20the\x20inspection).\x20Same\x20shape\x20and\x20rationale\x20as\x20the\x20inspect_timeout\x20row.'},{'id':'bind.rail.p2p.claim_window_open','intent':'pattern.time_window_upper_bound','site':{'template':'rental/p2p-shortstay','key':'claim_window_open'},'binding':{'kind':'guard_template','id':'tpl_time_window_upper_deadline_days'},'derive':[{'param':'expected_node','value':'claim_window'},{'param':'claim_window_days','from':'fee_params','key':'claim_window_days'}],'note':'Host\x20filing\x20deadline\x20—\x20the\x20keeper\x20mirror\x20of\x20the\x20census-resolved\x20guest_claim_window_open\x20row:\x20the\x20filing\x20host\x20may\x20open\x20a\x20claim\x20only\x20INSIDE\x20claim_window_days\x20of\x20the\x20claim_window\x20entry.\x20The\x20window\x20length\x20rides\x20the\x20template\x27s\x20own\x20fee\x20knob;\x20after\x20expiry\x20the\x20no-claim\x20release\x20rail\x20(claim_window_closed,\x20census-resolved)\x20is\x20the\x20only\x20exit,\x20so\x20a\x20late\x20claim\x20strands\x20nothing.'},{'id':'bind.rail.longstay.inspect_window','intent':'pattern.time_window_upper_bound','site':{'template':'rental/institutional-longstay','key':'inspect_window'},'binding':{'kind':'guard_template','id':'tpl_time_window_upper_deadline'},'derive':[{'param':'expected_node','value':'inspected'},{'param':'duration_ms','from':'fee_params','key':'inspection_deadline_hours','scale':'hours_to_ms'}],'note':'Verifier\x20pass\x20window:\x20the\x20inspection\x20may\x20be\x20passed\x20only\x20INSIDE\x20inspection_deadline_hours\x20of\x20the\x20inspected\x20entry;\x20after\x20expiry\x20the\x20tenant\x27s\x20self-complete\x20opener\x20(the\x20inspect_timeout\x20row\x20above)\x20is\x20the\x20only\x20advance\x20—\x20the\x20designed\x20deadline/opener\x20belt\x20on\x20one\x20fee\x20knob.'}];export const BINDING_NOTES=[{'scope':'pattern.required_info_evidence_gate','status':'deliberate-pending','reason':'COMPOSITION\x20PRESCRIPTION\x20(amz9-ln-261023\x20A-4):\x20customer_required\x20is\x20DECLARATIVE\x20—\x20the\x20purchase\x20entry\x20never\x20reads\x20it\x20and\x20order.required_info\x20is\x20an\x20Option\x20the\x20buyer\x20may\x20leave\x20empty,\x20so\x20an\x20unconditional\x20presence\x20gate\x20bricks\x20every\x20order\x20of\x20an\x20info-free\x20shop.\x20The\x20ENFORCED\x20form\x20is\x20an\x20inline\x20AND-composition\x20(the\x20mount\x27s\x20identity\x20root\x20AND\x20tpl_required_info_present)\x20resolved\x20per\x20shop\x20via\x20guard_resolutions\x20—\x20never\x20a\x20standalone\x20tpl\x20mount.\x20A\x20binding\x20row\x20can\x20only\x20mount\x20ONE\x20tpl,\x20so\x20this\x20family\x20is\x20out\x20of\x20the\x20table\x27s\x20expressiveness\x20by\x20design.'},{'scope':'pattern.identity_check_allowlist','status':'deliberate-pending','reason':'TPL-02/F3-01\x20+\x20rex3\x20ruling\x20④:\x20an\x20allowlist\x20has\x20NO\x20safe\x20instanceable\x20default\x20—\x20an\x20empty/default\x20vector\x20denies\x20every\x20buyer\x20(brick)\x20and\x20a\x20populated\x20one\x20fabricates\x20an\x20eligibility\x20policy\x20the\x20merchant\x20never\x20stated.\x20Open\x20stores\x20drop\x20the\x20gate\x20via\x20guard_resolutions\x20({kind:\x27omit\x27}\x20on\x20unbound\x20designs).'},{'scope':'pattern.buy_guard_blocklist','status':'deliberate-pending','reason':'Same\x20no-safe-default\x20family\x20as\x20the\x20allowlist:\x20the\x20five\x20freelance\x20buy\x20gates\x20encode\x20\x27Passport-gated\x20purchase\x20once\x20set\x27\x20—\x20a\x20disjoint-identity\x20policy\x20(funder/triager/hunter\x20three-way)\x20whose\x20default\x20shape\x20would\x20fabricate\x20either\x20an\x20open\x20or\x20a\x20bricked\x20store.\x20Merchant\x20resolution\x20only.'},{'scope':'pattern.time_lock_progress\x20/\x20pattern.time_window_upper_bound\x20(absolute-date\x20class:\x20p2p\x20tier\x20forwards\x20cancel_tier_1..6,\x20checkin_gate,\x20checkout_gate,\x20host_cancel)','status':'deferred','reason':'ABSOLUTE-DATE\x20typed\x20gates:\x20the\x20policy\x20counts\x20from\x20a\x20per-order\x20real-world\x20date\x20(check-in\x2016:00,\x20departure\x2011:00,\x20\x27until\x2024h\x20before\x20check-in\x27)\x20and\x20the\x20booking\x20dates\x20have\x20NO\x20on-chain\x20row\x20—\x20the\x20progress-anchored\x20twins\x20cannot\x20express\x20them,\x20and\x20a\x20relative\x20pin\x20would\x20enforce\x20a\x20DIFFERENT\x20policy\x20(an\x20order.time-anchored\x20window\x20expires\x20before\x20the\x20stay\x20even\x20starts\x20when\x20the\x20lead\x20time\x20is\x20long\x20—\x20TIME-ANCHOR-01).\x20Needs\x20a\x20future\x20booking-date\x20repository\x20row\x20+\x20Clock\x20comparison\x20twin\x20(protocol-train\x20adjacent).\x20The\x20tier\x20refund\x20RAILS\x20left\x20this\x20note\x20in\x20batch\x20six\x20(bind.rail.p2p.tier1-6_refund):\x20the\x20selector\x20plus\x20the\x20per-tier\x20allocator\x20legs\x20carry\x20the\x20economics,\x20disclosed\x20weakening.'},{'scope':'pattern.time_lock_progress\x20(p2p\x20claim_review)','status':'deliberate-pending','reason':'COMPOSITE\x20ADJUDICATION\x20PRESCRIPTION:\x20the\x20purpose\x20is\x20an\x20evidence\x20pre+post\x20comparison\x20chain\x20+\x20a\x2024h\x20guest\x20response\x20window\x20+\x20any\x20arbitration\x20ruling\x20—\x20a\x20composition,\x20not\x20one\x20clock.\x20No\x20single-clock\x20twin\x20expresses\x20it;\x20an\x20inline\x20guard_resolutions\x20composite\x20resolved\x20per\x20shop\x20is\x20the\x20sanctioned\x20form\x20(the\x20deliver_work\x20family\x27s\x20disposition).'},{'scope':'pattern.time_lock_progress\x20(institutional\x20early_exit_window)','status':'deliberate-pending','reason':'The\x20purpose\x27s\x20own\x20DIRECTION\x20CAVEAT\x20refuses\x20a\x20default:\x20an\x20early\x20exit\x20is\x20typically\x20allowed\x20THROUGHOUT\x20the\x20lease\x20and\x20the\x20penalty\x20allocator\x20carries\x20the\x20economics\x20—\x20a\x20default\x20time\x20leg\x20would\x20fabricate\x20policy\x20(opening\x20=\x20notice-period-elapsed,\x20closing\x20=\x20exit-by\x20deadline;\x20bind\x20only\x20deliberately).'},{'scope':'pattern.repository_data_check\x20(catalog-tiers\x20deliver_work,\x20p2p-shortstay\x20guest_claim_evidence)','status':'deliberate-pending','reason':'COMPOSITION\x20PRESCRIPTIONS\x20—\x20out\x20of\x20the\x20table\x27s\x20one-tpl\x20expressiveness\x20by\x20design.\x20deliver_work:\x20the\x20evidence\x20is\x20a\x20retained_submission\x20in\x20progress\x20history,\x20not\x20a\x20repository\x20row\x20—\x20no\x20row_present\x20mapping\x20exists.\x20guest_claim_evidence:\x20the\x20purpose\x20is\x20an\x20inline\x20composition\x20recipe;\x20a\x20standalone\x20mount\x20is\x20forbidden.\x20The\x20bug-bounty\x20refund_gate\x20face\x20left\x20this\x20list:\x20its\x20FOUR-node\x20refundable\x20set\x20{rejected,\x20closed_cancel,\x20duplicate,\x20withdrawn}\x20resolved\x20through\x20the\x20twin\x27s\x20shipped\x20fourth\x20node\x20slot\x20(refund_node_alt3,\x20table\x20identifier\x207)\x20—\x20the\x20declaration\x20now\x20mounts\x20tpl_allocator_node_gate_refund\x20directly,\x20no\x20by-copy\x20extension.'},{'scope':'pattern.repository_data_check\x20(direct-fan\x20content_hash,\x20after\x20the\x20template-data\x20fix)','status':'deliberate-pending','reason':'COMPOSITION\x20PRESCRIPTION\x20—\x20the\x20purpose\x20demands\x20the\x20content\x20row\x20EQUAL\x20the\x20order\x20item\x20commitment\x20AND\x20allocation.balance\x20>=\x20order.amount\x20(query\x201051\x20+\x20witness,\x20ofn5\x20F-04:\x20a\x20drained\x20pool\x20must\x20stop\x20fulfillment\x20structurally);\x20a\x20binding\x20row\x20mounts\x20ONE\x20tpl,\x20so\x20only\x20a\x20guard_resolution\x20can\x20ship\x20both\x20legs.\x20The\x20content_hash\x20policy\x20IS\x20declared\x20(content_write)\x20for\x20that\x20resolution\x20to\x20bind\x20—\x20creator-membership,\x20whose\x20purpose\x20carries\x20NO\x20balance\x20leg,\x20takes\x20the\x20plain\x20equality\x20row.'},{'scope':'pattern.repository_write_authorization\x20(member_roster_write)','status':'deliberate-pending','reason':'SIGNER-KEYED\x20PAIRING\x20PROHIBITION:\x20the\x20member\x20roster\x20is\x20deliberately\x20signer-keyed\x20(row\x20id\x20=\x20the\x20member\x27s\x20own\x20address;\x20the\x20T-11\x20credentialed\x20buy\x20guard\x20reads\x20row\x20id\x20=\x20the\x20calling\x20Signer),\x20and\x20BOTH\x20repository-write\x20twins\x20in\x20the\x20library\x20are\x20ORDER-KEYED\x20—\x20their\x20creation\x20notes\x20forbid\x20pairing\x20with\x20a\x20signer-keyed\x20policy\x20(the\x20order-keyed\x20identity\x20leaf\x20would\x20re-key\x20rows\x20and\x20break\x20the\x20signer-addressed\x20roster\x20read).\x20Pending\x20is\x20correct\x20until\x20a\x20signer-keyed\x20identity-write\x20twin\x20(a\x20future\x20library\x20contribution)\x20exists.'},{'scope':'pattern.verifier_evidence_philosophy','status':'deliberate-pending','reason':'Benchmark-cap\x20buy\x20gates\x20(max\x20prepay\x20/\x20max\x20sessions\x20/\x20rent-sum\x20equality):\x20the\x20numbers\x20are\x20per-shop\x20commercial\x20policy,\x20the\x20check\x20shapes\x20vary\x20per\x20template,\x20and\x20no\x20single\x20twin\x20exists.\x20Merchant/judgment\x20surface\x20by\x20design.'},{'scope':'retail/warehouse-club\x20buy\x20(tpl_buy_guard_payment_voucher)','status':'deliberate-pending','reason':'Already\x20a\x20direct\x20tpl_*\x20ref\x20—\x20out\x20of\x20the\x20table\x27s\x20channel\x20entirely.\x20Its\x20GUARD_TEMPLATE_PARAMS\x20failure\x20is\x20the\x20designed\x20wizard\x20question\x20(merchant_address\x20has\x20no\x20declarable\x20default:\x20the\x20club\x27s\x20claimable\x20wallet\x20is\x20a\x20real-world\x20answer),\x20not\x20an\x20unresolved\x20design.'}];const ALLOCATOR_ROW_FIELD='allocator.rows[].',FEE_PARAM_FIELD='fee_params.';function discriminantsMatch(a,b,c){for(const e of a['discriminants']??[]){if(e['field']['startsWith'](ALLOCATOR_ROW_FIELD)){const f=e['field']['slice'](ALLOCATOR_ROW_FIELD['length']),g=c['allocator']?.['rows']??[];if(!g['some'](h=>h[f]===e['equals']))return![];}else{if(e['field']==='spec.key'){if(b['key']!==e['equals'])return![];}else{if(e['field']==='host'){if(b['host']!==e['equals'])return![];}else{if(e['field']['startsWith'](FEE_PARAM_FIELD)){if(c['fee_params']?.[e['field']['slice'](FEE_PARAM_FIELD['length'])]!==e['equals'])return![];}else return![];}}}}return!![];}export function lookupBinding(a,b){if(a['template_id']['startsWith']('tpl_'))return undefined;for(const c of BINDING_ROWS){if(c['intent']!==a['template_id'])continue;if(c['host']!==undefined&&c['host']!==a['host'])continue;if(c['site']!==undefined){if(c['site']['template']!==b['id'])continue;if(c['site']['key']!==undefined&&c['site']['key']!==a['key'])continue;}if(!discriminantsMatch(c,a,b))continue;const e={};for(const f of c['derive']??[]){if(f['value']!==undefined)e[f['param']]=f['value'];else{if(f['from']==='fee_params'){const g=b['fee_params']?.[f['key']??f['param']];if(typeof g==='number'&&f['scale']==='hours_to_ms')e[f['param']]=g*MS_PER_HOUR;else g!==undefined&&(e[f['param']]=g);}}}return{'row':c['id'],'template_id':c['binding']['id'],'params':e};}return undefined;}
|
|
1
|
+
import{MS_PER_HOUR}from'./pattern-resolutions.js';export const BINDING_ROWS=[{'id':'bind.identity_single.pinned_ruler','intent':'pattern.identity_check_single','binding':{'kind':'guard_template','id':'tpl_identity_check_single'},'derive':[],'note':'Single-ruler\x20forwards\x20(the\x20independent\x20triager\x27s\x20four\x20ruling\x20edges\x20on\x20freelance/bug-bounty,\x20the\x20judge\x27s\x20two\x20on\x20freelance/design-contest):\x20the\x20catalog\x27s\x20level-1\x20twin\x20ships\x20the\x20pinned-address\x20leg.\x20RAIL\x20SPLIT\x20(tpl\x20creation\x20notes):\x20the\x20entity\x20slot\x20rides\x20the\x20forward\x27s\x20permission_index;\x20this\x20guard\x20adds\x20the\x20address\x20pin,\x20so\x20BOTH\x20must\x20hold.\x20pinned_address\x20keeps\x20the\x20tpl\x27s\x20deliberate\x20EMPTY\x20default\x20—\x20the\x20edge\x20compiles\x20FAIL-CLOSED\x20(unsatisfiable\x20until\x20the\x20builder\x20pins\x20the\x20real\x20ruler\x20address\x20at\x20generation)\x20instead\x20of\x20shipping\x20the\x20forward\x20with\x20NO\x20Guard\x20at\x20all,\x20which\x20is\x20what\x20a\x20pending\x20spec\x20does.'},{'id':'bind.repo_write.groupbuy_contribution','intent':'pattern.repository_write_authorization','site':{'template':'group_buy/leader-sourced-community','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_order_holder'},'derive':[],'note':'Contribution-ledger\x20write_guard:\x20the\x20policy\x20is\x20ORDER-KEYED\x20(id_from\x20none)\x20and\x20the\x20writer\x20set\x20is\x20the\x20two-holder\x20union\x20—\x20the\x20backer\x20(order.owner\x20==\x20Signer)\x20or\x20their\x20registered\x20agent\x20—\x20reading\x20THE\x20SAME\x20submitted\x20Order\x20slot\x20the\x20row\x20is\x20keyed\x20by,\x20so\x20write\x20authorization\x20and\x20row\x20keying\x20cannot\x20diverge.\x20The\x20backer\x27s\x20tooling\x20zeroes\x20the\x20row\x20on\x20withdrawal\x20so\x20the\x20escrow-bound\x20aggregate\x20stops\x20counting\x20the\x20pledge;\x20the\x20guard\x20is\x20the\x20ATTRIBUTION\x20boundary\x20and\x20the\x20bound\x20aggregate\x20the\x20VALUE\x20truth\x20—\x20ship\x20both\x20(R-X1-17).'},{'id':'bind.rail.preorder.deposit_forfeit','intent':'pattern.progress_state_check','site':{'template':'retail/preorder-deposit','key':'deposit_forfeit'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'reservation_cancelled'}],'note':'Kill-fee\x20deposit-exit\x20forfeit\x20(selector-gated:\x20mounts\x20only\x20when\x20deposit_exit_policy\x20==\x20\x27kill_fee\x27;\x20dropped\x20keys\x20never\x20reach\x20resolution).\x20The\x20purpose\x20names\x20ONE\x20refund\x20terminal;\x20the\x20guard\x20serves\x20both\x20Rate\x20legs\x20of\x20the\x20group\x20(merchant\x20kill_fee_bps\x20+\x20buyer\x20remainder,\x20summing\x2010000).\x20Node\x20gate\x20and\x20caller-authorization\x20leg\x20ship\x20IN\x20the\x20twin\x20root\x20(decision\x2011:\x20no\x20claimed_by\x20leg\x20—\x20fund\x20rails\x20never\x20read\x20the\x20payout\x20stamp).'},{'id':'bind.rail.preorder.full_refund','intent':'pattern.progress_state_check','site':{'template':'retail/preorder-deposit','key':'full_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'Post-balance\x20full\x20refund:\x20the\x20purpose\x20names\x20the\x20twin\x20and\x20the\x20single\x20terminal\x20explicitly\x20(a\x20paid-in-full\x20buyer\x20is\x20always\x20made\x20whole;\x20reservation_cancelled\x20is\x20a\x20DISTINCT\x20node\x20so\x20the\x20kill-fee\x20selector\x20never\x20touches\x20a\x20paid-in-full\x20order).'},{'id':'bind.rail.restock.full_refund','intent':'pattern.progress_state_check','site':{'template':'retail/restock-supply','key':'full_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'Full-pool\x20refund\x20at\x20the\x20cancel\x20terminal\x20(the\x20purpose\x20names\x20the\x20twin\x20and\x20the\x20node;\x20refunds\x20read\x20BALANCE\x20so\x20the\x20buyer\x20is\x20always\x20made\x20whole).'},{'id':'bind.rail.talent.refund_gate','intent':'pattern.progress_state_check','site':{'template':'freelance/enterprise-talent-market','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'Pre-award\x20refund\x20rail;\x20the\x20purpose\x20names\x20the\x20twin\x20and\x20the\x20node\x20gate\x20(anti-hijack\x20is\x20structural:\x20the\x20GuardIdentifier(0)\x20order-anchored\x20recipient,\x20not\x20a\x20signer\x20leg\x20—\x20CAT-B2;\x20decision\x2011:\x20the\x20twin\x20carries\x20no\x20claimed_by\x20leg).'},{'id':'bind.rail.tiers.refund_gate','intent':'pattern.progress_state_check','site':{'template':'freelance/catalog-tiers','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'Same\x20shape\x20as\x20the\x20enterprise-talent\x20rail;\x20the\x20paired\x20recover\x20rail\x20(terminal-node-gated)\x20keeps\x20the\x20awarded\x20escrow\x20exiting\x20—\x20two\x20independent\x20node-keyed\x20exits,\x20no\x20polarity\x20coupling\x20(decision\x2011).'},{'id':'bind.rail.contest.refund_gate','intent':'pattern.progress_state_check','site':{'template':'freelance/design-contest','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'},{'param':'refund_node_alt','value':'voided'},{'param':'refund_node_alt2','value':'refunded'}],'note':'THREE\x20refund\x20terminals\x20named\x20by\x20the\x20purpose\x20—\x20pre-submission\x20void\x20(closed_cancel),\x20judged\x20no-valid-entry\x20(voided),\x20and\x20the\x20T-5\x20post-settlement\x20money-back\x20terminal\x20`refunded`\x20(nnd3-mn-261103;\x20omitting\x20it\x20would\x20strand\x20the\x20return\x20terminal,\x20RAIL_TERMINAL_UNCOVERED/OFN\x20#P-02);\x20alt3\x20defaults\x20to\x20the\x20primary\x20(duplicate\x20tautology\x20leg,\x20legal\x20per\x20the\x20twin).\x20The\x20prize\x20rail\x20node-gates\x20{settled}\x20alone,\x20so\x20the\x20two\x20sets\x20stay\x20disjoint\x20(D-BUG-2).'},{'id':'bind.rail.longstay.nofault','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'nofault_refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'No-fault\x20exit\x20full\x20sweep\x20(a\x20full\x20sweep\x20is\x20correct:\x20no\x20rent\x20release\x20can\x20have\x20fired\x20yet\x20—\x20month_1\x20opens\x2030\x20days\x20after\x20handover).'},{'id':'bind.rail.longstay.deposit_refund','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'deposit_refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'completed'}],'note':'Deposit\x20refund\x20at\x20the\x20golden-path\x20terminal,\x20node-gated\x20per\x20the\x20purpose\x20(decision\x2011:\x20the\x20twin\x20carries\x20no\x20claimed_by\x20leg).\x20Amount\x20leg\x20self-limits;\x20no\x20once\x20slot\x20by\x20design\x20(refund\x20rails\x20arm\x20no\x20254).'},{'id':'bind.rail.longstay.damage','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'damage_refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'damage_confirmed'}],'note':'ONE\x20guard\x20serves\x20BOTH\x20allocator\x20rows\x20of\x20the\x20group\x20(landlord\x20Amount\x20capped\x20at\x20damage_max_amount\x20+\x20tenant\x20Rate\x20remainder);\x20the\x20node\x20pin\x20is\x20the\x20state\x20the\x20purpose\x20names.'},{'id':'bind.rail.longstay.early_exit','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'early_exit_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'early_terminated'}],'note':'Same\x20two-row\x20group\x20shape\x20as\x20the\x20damage\x20rail\x20(penalty\x20Amount\x20to\x20the\x20landlord\x20+\x20remainder\x20Rate\x20to\x20the\x20tenant)\x20at\x20the\x20early-termination\x20terminal.'},{'id':'bind.rail.liveclass.refund_gate','intent':'pattern.progress_state_check','site':{'template':'education/live-class-cohort','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'withdrawn'}],'note':'Pre-start\x20full\x20refund\x20at\x20the\x20withdrawn\x20terminal\x20(post-start\x20withdrawals\x20ride\x20the\x20terminal_settlement\x20residual\x20sweep\x20below\x20—\x20earned\x20tuition\x20has\x20already\x20left\x20via\x20the\x20per-session\x20releases).'},{'id':'bind.rail.mooc.refund_gate','intent':'pattern.progress_state_check','site':{'template':'education/mooc-single-course','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'returned'}],'note':'Refund\x20at\x20the\x20returned\x20terminal;\x20the\x20purpose\x20names\x20the\x20twin\x20and\x20the\x20node\x20gate\x20(decision\x2011:\x20no\x20claimed_by\x20leg),\x20and\x20forbids\x20both\x20the\x20254\x20slot\x20(the\x20twin\x20arms\x20none)\x20and\x20the\x20dispute-count\x20gate\x20(append-only\x20one-way\x20door).'},{'id':'bind.rail.groupbuy.missed_refund','intent':'pattern.progress_state_check','site':{'template':'group_buy/leader-sourced-community','key':'missed_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'missed_refunded'}],'note':'Missed-round\x20pledge\x20refund;\x20disjoint\x20from\x20withdraw_refund\x20BY\x20NODE\x20PREDICATE\x20(the\x20purpose\x27s\x20own\x20words),\x20not\x20by\x20a\x20once\x20slot.'},{'id':'bind.rail.groupbuy.withdraw_refund','intent':'pattern.progress_state_check','site':{'template':'group_buy/leader-sourced-community','key':'withdraw_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'withdrawn'}],'note':'Pre-deadline\x20withdrawal\x20refund;\x20the\x20backer\x27s\x20tooling\x20zeroes\x20the\x20contribution\x20row\x20for\x20the\x20aggregate\x20to\x20stop\x20counting\x20it\x20(the\x20write\x20side\x20is\x20the\x20batch-one\x20order-holder\x20row).'},{'id':'bind.rail.handmade.refund_execute','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'retail/vertical-handmade','key':'refund_execute'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'returned'},{'param':'refund_node_alt','value':'closed_cancel'}],'note':'BOTH\x20refund\x20terminals\x20covered\x20(FUND-EXIT-01).\x20Residual\x20disclosed:\x20the\x20purpose\x27s\x20optional\x20program-executor\x20slot\x20and\x20arbiter\x20spelling\x20stay\x20a\x20caller\x20resolution\x20—\x20the\x20twin\x27s\x20caller\x20leg\x20authorizes\x20buyer\x20OR\x20service-permission\x20staff,\x20the\x20dynamic\x20form\x20the\x20purposes\x20describe.'},{'id':'bind.rail.preorder.refund_execute','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'retail/preorder-deposit','key':'refund_execute'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'returned'},{'param':'refund_node_alt','value':'refunded'}],'note':'Pays\x20at\x20returned\x20(RMA\x20evidenced)\x20and\x20stays\x20TRIGGERABLE\x20at\x20the\x20refunded\x20record\x20terminal\x20(a\x20balance-exhausted\x20no-op\x20after\x20the\x20drain\x20—\x20the\x20FUND-EXIT-01\x20proof\x20that\x20the\x20refunded\x20terminal\x20keeps\x20a\x20fund\x20exit).'},{'id':'bind.rail.errand.refund_full','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'delivery/on-demand-errand','key':'refund_full'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_cancel'}],'note':'The\x20money\x20authority\x20for\x20closed_cancel;\x20the\x20purpose\x20demands\x20the\x20node\x20gate\x20(the\x20twin\x27s\x20only\x20state\x20leg\x20—\x20decision\x2011:\x20no\x20claimed_by\x20leg)\x20and\x20no\x20254\x20(the\x20twin\x20arms\x20none).'},{'id':'bind.rail.errand.refund_kill','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'delivery/on-demand-errand','key':'refund_kill'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'closed_kill'}],'note':'Kill-fee\x20money\x20authority\x20for\x20closed_kill;\x20a\x20DIFFERENT\x20guard\x20key\x20from\x20refund_full\x20so\x20a\x20kill\x20and\x20a\x20full\x20refund\x20can\x20never\x20double-fire\x20(the\x20purpose\x27s\x20allocator-disjointness).'},{'id':'bind.rail.groupbuy.refund_full','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'group_buy/leader-sourced-community','key':'refund_full'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'claim_closed'}],'note':'Pre-award\x20arbitration-refund\x20authority:\x20node-gated\x20at\x20claim_closed\x20(decision\x2011\x20two-rail\x20independence\x20—\x20the\x20refund\x20rail\x20completes\x20by\x20node\x20state\x20and\x20never\x20reads\x20the\x20claim\x20stamp;\x20a\x20refund\x20plus\x20a\x20claimed\x20indemnity\x20is\x20disclosed\x20double\x20collection\x20at\x20the\x20MCP\x20confirmation\x20gate,\x20not\x20a\x20polarity\x20condition).'},{'id':'bind.forward.warehouse.pick','intent':'pattern.identity_check_service_provider_dynamic','site':{'template':'retail/warehouse-club','key':'pick'},'binding':{'kind':'guard_template','id':'tpl_forward_staff_node_check'},'derive':[{'param':'expected_node','value':'paid'},{'param':'staff_permission_index','value':0x3e9}],'note':'The\x20purpose\x20names\x20the\x20forward\x20operator\x27s\x20STAFF\x20identity\x20and\x20the\x20edge\x20ships\x20its\x20own\x20chain-side\x20operator\x20gate\x20(1001):\x20the\x20twin\x20pins\x20the\x20mount\x27s\x20own\x20prev\x20(paid\x20—\x20the\x20mount\x20edge\x20IS\x20the\x20pin),\x20binds\x20the\x20submitted\x20Permission\x20to\x20the\x20Service\x27s\x20live\x20org\x20(1488\x20—\x20rotation-proof)\x20and\x20reads\x20the\x20staff\x20slot\x20through\x20query\x201008\x20(Signer,\x20index\x201001\x20—\x20the\x20edge\x27s\x20own\x20permission_index\x20as\x20reviewed\x20template\x20data).\x20Additive\x20to\x20the\x20chain\x20gate,\x20never\x20a\x20replacement\x20(the\x20twin\x27s\x20creation\x20notes:\x20guard-is-additive).\x20service_name\x20is\x20kernel-seeded;\x20the\x20Order/Permission\x20slots\x20are\x20runtime\x20submissions.'},{'id':'bind.rail.creatorzero.settle','intent':'pattern.progress_state_check','site':{'template':'freelance/creator-zero-commission','key':'settle'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle_once'},'derive':[{'param':'settle_node','value':'completed'}],'note':'The\x20purpose\x20names\x20settle_once\x20explicitly\x20(node\x20gate\x20+\x20the\x20chain-derived\x20254\x20once\x20key\x20ship\x20in\x20its\x20root\x20—\x20decision\x2011:\x20no\x20claimed_by\x20leg);\x20completed\x20is\x20the\x20only\x20settle\x20terminal\x20on\x20this\x20shape\x20(closed_cancel\x20is\x20the\x20refund\x20rail\x27s).\x20Alts\x20default\x20to\x20the\x20primary.'},{'id':'bind.rail.liveclass.terminal_settlement','intent':'pattern.progress_state_check','site':{'template':'education/live-class-cohort','key':'terminal_settlement'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle_once'},'derive':[{'param':'settle_node','value':'completed'},{'param':'settle_node_alt','value':'renewal_window'},{'param':'settle_node_alt2','value':'withdrawn'}],'note':'FUND-EXIT-01\x20always-on\x20residual\x20sweep\x20over\x20ALL\x20THREE\x20terminals\x20the\x20purpose\x20enumerates\x20—\x20the\x20settle_once\x20twin\x27s\x20three\x20node\x20slots\x20fit\x20exactly.\x20Dormant\x20on\x20the\x20golden\x20path\x20(empty\x20pool\x20aborts\x2014\x20harmlessly);\x20residue\x20exits\x20to\x20the\x20buyer\x20instead\x20of\x20stranding.'},{'id':'bind.rail.longstay.residual_sweep','intent':'pattern.progress_state_check','site':{'template':'rental/institutional-longstay','key':'terminal_residual_sweep'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle_once'},'derive':[{'param':'settle_node','value':'completed'}],'note':'KLK-P0-2\x20residual\x20sweep.\x20DELIBERATE\x20UPGRADE\x20over\x20the\x20purpose\x27s\x20255\x20spelling:\x20the\x20sweep\x20is\x20single-shot\x20at\x20a\x20TERMINAL\x20node,\x20so\x20the\x20settle_once\x20twin\x27s\x20chain-derived\x20254\x20(exactly-once\x20per\x20order,\x20publicly\x20unforgeable)\x20is\x20the\x20stricter\x20once\x20key\x20for\x20the\x20same\x20semantics\x20—\x20255\x27s\x20history-count\x20key\x20was\x20the\x20pre-settle_once\x20idiom\x20and\x20an\x20off-by-one\x20keeper\x20permanently\x20locks\x20a\x20255\x20sweep\x20(the\x20KLK\x20live\x20face).\x20Node\x20pin\x20and\x20the\x20caller\x20leg\x20ship\x20in\x20the\x20twin\x20root\x20(the\x20former\x20claimed_by-false\x20leg\x20is\x20removed\x20by\x20decision\x2011).'},{'id':'bind.rail.p2p.payout_release','intent':'pattern.progress_state_check','site':{'template':'rental/p2p-shortstay','key':'payout_release_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'payout_released'},{'param':'window_node','value':'claim_window'},{'param':'claim_window_days','from':'fee_params','key':'claim_window_days'}],'note':'Serial\x20release\x20(ABNB2-validated\x20shape):\x20the\x20reached-node\x20pin\x20plus\x20the\x20claim-window\x20lock.\x20DELIBERATELY\x20NOT\x20settle_once:\x20the\x20payout\x20must\x20stay\x20contestable\x20through\x20the\x20claim\x20window,\x20and\x20only\x20the\x20serial-window\x20twin\x20carries\x20the\x20Clock\x20window\x20lock\x20(settle_once\x20has\x20no\x20window\x20vocabulary\x20—\x20and\x20since\x20decision\x2011\x20neither\x20twin\x20reads\x20order.claimed_by,\x20the\x20old\x20denied-claim\x20weld\x20argument\x20is\x20moot;\x20the\x20window\x20lock\x20is\x20the\x20standing\x20reason).\x20The\x20twin\x27s\x20Clock\x20leg\x20carries\x20the\x20window\x20lock\x20(and\x20the\x20Clock\x20exemption\x20of\x20the\x20caller-authorization\x20gate);\x20the\x20window\x20length\x20rides\x20the\x20template\x27s\x20own\x20fee\x20knob\x20so\x20the\x20merchant\x27s\x20knob\x20moves\x20the\x20chain.'},{'id':'bind.rail.creatormb.settle_rail','intent':'pattern.progress_state_check','site':{'template':'subscription/creator-membership','key':'settle_rail'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle'},'derive':[{'param':'settle_node','value':'completed'}],'note':'Per-period\x20release\x20(state-based,\x20the\x20completed\x20advance\x20is\x20the\x20keeper\x27s\x20clock\x20duty):\x20the\x20255\x20once\x20key\x20pins\x20to\x20the\x20monotonic\x20history\x20count\x20so\x20each\x20renewal\x20period\x20gets\x20a\x20fresh\x20key\x20—\x20settle_once\x27s\x20per-order\x20254\x20would\x20abort\x20from\x20period\x202\x20(the\x20twin\x20description\x27s\x20own\x20split).'},{'id':'bind.rail.directfan.settle_rail','intent':'pattern.progress_state_check','site':{'template':'subscription/direct-fan-subscription','key':'settle_rail'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle'},'derive':[{'param':'settle_node','value':'completed'}],'note':'Same\x20per-period\x20shape;\x20the\x20guard\x20is\x20shared\x20by\x20the\x20settlement\x20row\x20and\x20the\x20Rate-0\x20ORDER\x20anchor\x20row\x20(they\x20merge\x20into\x20ONE\x20allocator\x20—\x2010000\x20+\x200\x20=\x2010000).'},{'id':'bind.rail.deliverymb.settle_rail','intent':'pattern.progress_state_check','site':{'template':'subscription/delivery-membership','key':'settle_rail'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle'},'derive':[{'param':'settle_node','value':'completed'}],'note':'Same\x20per-period\x20shape;\x20the\x20merchant\x20leg\x20and\x20the\x20Rate-0\x20ORDER\x20anchor\x20leg\x20share\x20the\x20ONE\x20allocator\x20through\x20this\x20guard.'},{'id':'bind.repo_write.scale_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'retail/scale-marketplace','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'Evidence\x20policy\x20is\x20order-keyed\x20(id_from\x20none)\x20and\x20the\x20writer\x20set\x20is\x20the\x20union\x20the\x20purpose\x20names:\x20merchant\x20staff\x20through\x20the\x20live\x20permission\x20object,\x20or\x20the\x20order\x20holder/agent.\x20The\x20tracking/return-receipt/lost-package\x20rows\x20behind\x20the\x20ship\x20and\x20evidence\x20gates\x20can\x20then\x20only\x20be\x20authored\x20by\x20these\x20writers\x20(R-X1-17).'},{'id':'bind.repo_write.preorder_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'retail/preorder-deposit','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'Same\x20union\x20shape;\x20the\x20policy\x27s\x20order-keying\x20is\x20the\x20azq9\x20TPL-B\x20fix\x20(a\x20signer-keyed\x20policy\x20would\x20collide\x20every\x20order\x27s\x20evidence\x20rows\x20into\x20one\x20writer-keyed\x20row).'},{'id':'bind.repo_write.restock_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'retail/restock-supply','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'Supplier-side\x20spelling\x20of\x20the\x20same\x20union\x20(the\x20purpose\x27s\x20writer\x20set\x20names\x20the\x20supplier\x20staff\x20slot);\x20the\x20order-keyed\x20pairing\x20discipline\x20is\x20identical.'},{'id':'bind.repo_write.warehouse_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'retail/warehouse-club','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'Club-floor\x20staff\x20are\x20the\x20operational\x20writers\x20(the\x20picking\x20stage\x20is\x20evidenced\x20staff\x20labor);\x20the\x20testnet\x20HIGH-04\x20open-write\x20face\x20closes\x20with\x20this\x20row.'},{'id':'bind.repo_write.errand_staff_union','intent':'pattern.repository_write_authorization','site':{'template':'delivery/on-demand-errand','key':'repo_write'},'binding':{'kind':'guard_template','id':'tpl_repository_write_staff_union'},'derive':[],'note':'The\x20desk\x27s\x20dispatcher/settlement\x20staff\x20write\x20the\x20dispatch/pickup/handover\x20rows;\x20the\x20RUNNER\x20writes\x20nothing\x20(the\x20roster\x20authorizes\x20the\x20runner\x27s\x20FORWARD,\x20never\x20a\x20repository\x20write\x20—\x20the\x20purpose\x27s\x20own\x20boundary).'},{'id':'bind.repo_data.scale.ship','intent':'pattern.repository_data_check','site':{'template':'retail/scale-marketplace','key':'ship'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'shipped'}],'note':'Tracking-hash\x20row\x20must\x20exist\x20(value\x20carries\x20the\x20\x27shipped\x27\x20marker\x20+\x20the\x20hash)\x20before\x20the\x20merchant\x27s\x20ship\x20forward\x20passes.'},{'id':'bind.repo_data.scale.return_received','intent':'pattern.repository_data_check','site':{'template':'retail/scale-marketplace','key':'return_received'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'RMA'}],'note':'RMA\x20receipt\x20row\x20under\x20the\x20same\x20order-keyed\x20evidence\x20policy\x20gates\x20return_in_transit\x20->\x20returned.'},{'id':'bind.repo_data.scale.lost_evidence','intent':'pattern.repository_data_check','site':{'template':'retail/scale-marketplace','key':'lost_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'item_lost'}],'note':'Carrier\x20lost-package\x20record\x20(same\x20writer\x20authorization\x20as\x20tracking\x20rows)\x20gates\x20the\x20item_lost\x20filing.'},{'id':'bind.repo_data.preorder.ship','intent':'pattern.repository_data_check','site':{'template':'retail/preorder-deposit','key':'ship'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'shipped'}],'note':'Tracking\x20hash\x20in\x20the\x20order-keyed\x20evidence\x20policy\x20gates\x20balance_paid\x20->\x20shipped.'},{'id':'bind.repo_data.preorder.return_received','intent':'pattern.repository_data_check','site':{'template':'retail/preorder-deposit','key':'return_received'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'RMA'}],'note':'RMA\x20row\x20under\x20the\x20SAME\x20order-keyed\x20evidence\x20policy\x20as\x20the\x20tracking\x20rows\x20(the\x20purpose\x27s\x20pairing)\x20gates\x20return_in_transit\x20->\x20returned.'},{'id':'bind.repo_data.restock.ship','intent':'pattern.repository_data_check','site':{'template':'retail/restock-supply','key':'ship'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'shipped'}],'note':'Carrier\x20tracking\x20hash\x20gates\x20paid\x20->\x20shipped\x20on\x20the\x20supplier\x20side.'},{'id':'bind.repo_data.warehouse.ship','intent':'pattern.repository_data_check','site':{'template':'retail/warehouse-club','key':'ship'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'shipped'}],'note':'Tracking\x20hash\x20gates\x20picking\x20->\x20shipped\x20(the\x20club\x27s\x20staff-labor\x20stage\x20is\x20upstream).'},{'id':'bind.repo_data.warehouse.return_received','intent':'pattern.repository_data_check','site':{'template':'retail/warehouse-club','key':'return_received'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'RMA'}],'note':'RMA\x20receipt\x20row\x20gates\x20the\x20return\x20advance.'},{'id':'bind.repo_data.warehouse.lost_evidence','intent':'pattern.repository_data_check','site':{'template':'retail/warehouse-club','key':'lost_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'item_lost'}],'note':'Lost-package\x20record\x20gates\x20the\x20item_lost\x20filing.'},{'id':'bind.repo_data.bugbounty.submit_evidence','intent':'pattern.repository_data_check','site':{'template':'freelance/bug-bounty','key':'submit_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'report'},{'param':'evidence_marker','value':'0x'}],'note':'The\x20report\x20policy\x27s\x20row\x20value\x20IS\x20the\x20hunter\x27s\x20address,\x20so\x20the\x20marker\x20is\x20the\x20address\x20prefix\x20—\x20the\x20gate\x20proves\x20an\x20address-valued\x20report\x20row\x20exists\x20for\x20THIS\x20order\x20(the\x20order-pin\x20leg),\x20and\x20the\x20recorded\x20reporter\x20is\x20the\x20anchor\x20the\x20settlement\x20Signer-binding\x20leg\x20reads.\x20The\x20write\x20side\x20is\x20the\x20template\x27s\x20own\x20hunter-bound\x20report_write\x20guard.'},{'id':'bind.repo_data.errand.dispatch_record','intent':'pattern.repository_data_check','site':{'template':'delivery/on-demand-errand','key':'dispatch_record'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'evidence'},{'param':'evidence_marker','value':'dispatch'}],'note':'The\x20desk\x27s\x20dispatch\x20row\x20(runner\x20assignment\x20id,\x20fee-table\x20version\x20LOCKED\x20at\x20order\x20time)\x20must\x20exist\x20before\x20the\x20assignment\x20is\x20on\x20chain\x20—\x20the\x20runner\x20assignment\x20itself\x20is\x20an\x20off-chain\x20keeper\x20decision,\x20this\x20row\x20is\x20its\x20record.'},{'id':'bind.repo_data.groupbuy.sourcing','intent':'pattern.repository_data_check','site':{'template':'group_buy/leader-sourced-community','key':'sourcing_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'sourcing'},{'param':'evidence_marker','value':'sourcing'}],'note':'Supplier-order\x20row\x20(refs,\x20unit\x20costs,\x20quantities\x20for\x20THIS\x20round)\x20gates\x20SourceGoods\x20—\x20the\x20round\x27s\x20money\x20trail\x20starts\x20here.\x20Row\x20name\x20follows\x20the\x20W5-13\x20five-way\x20evidence\x20split\x20(one\x20evidence\x20KIND\x20per\x20policy\x20so\x20kinds\x20cannot\x20overwrite\x20each\x20other).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20sourcing_write\x20staff-allowlist\x20guard.'},{'id':'bind.repo_data.groupbuy.distribution','intent':'pattern.repository_data_check','site':{'template':'group_buy/leader-sourced-community','key':'distribution_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'distribution'},{'param':'evidence_marker','value':'distribution'}],'note':'Community-point\x20distribution\x20row\x20(batch\x20id,\x20quantities\x20delivered)\x20gates\x20DistributeGoods.\x20Row\x20name\x20follows\x20the\x20W5-13\x20five-way\x20evidence\x20split.\x20Write\x20side:\x20the\x20template\x27s\x20own\x20distribution_write\x20staff-allowlist\x20guard.'},{'id':'bind.repo_data.contest.final_files','intent':'pattern.repository_data_check','site':{'template':'freelance/design-contest','key':'final_files'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'final_files'},{'param':'evidence_marker','value':'0x'}],'note':'The\x20winner\x27s\x20final\x20source-file\x20WIP-hash\x20row\x20(order-keyed,\x20so\x20the\x20twin\x27s\x20order-pin\x20holds)\x20must\x20exist\x20before\x20DeliverFinal\x20passes\x20—\x20the\x20sponsor\x20accepts\x20against\x20a\x20tamper-evident\x20artifact,\x20not\x20prose.\x20The\x20marker\x20is\x20the\x20hash-prefix\x20idiom\x20(the\x20row\x20value\x20IS\x20the\x20hash\x20—\x20the\x20bug-bounty\x20report\x20face).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20final_files_write\x20guard;\x20deliberately\x20NO\x20write_once\x20so\x20a\x20revision\x20round\x20(Redeliver)\x20re-delivers\x20and\x20re-writes.'},{'id':'bind.repo_data.longstay.handover','intent':'pattern.repository_data_check','site':{'template':'rental/institutional-longstay','key':'handover'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'handover'},{'param':'evidence_marker','value':'handover'}],'note':'Move-in\x20checklist\x20hash\x20row\x20gates\x20deposit_paid\x20->\x20in_use;\x20the\x20writer\x20embeds\x20the\x20\x27handover\x27\x20token\x20(the\x20scale-marketplace\x20composite-value\x20convention).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20handover_write\x20guard.'},{'id':'bind.repo_data.longstay.damage','intent':'pattern.repository_data_check','site':{'template':'rental/institutional-longstay','key':'damage_evidence'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present'},'derive':[{'param':'row_name','value':'damage_evidence'},{'param':'evidence_marker','value':'damage'}],'note':'Pre+post\x20evidence-diff\x20row\x20gates\x20the\x20damage\x20verdict\x20(verdict_damage,\x20verifier\x20slot\x201002);\x20the\x20natural-wear\x20exclusion\x20stays\x20prose\x20—\x20a\x20policy\x20authorizes\x20WHO\x20writes,\x20never\x20compares\x20VALUES\x20(upw-mn-261016\x20F-01).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20damage_evidence_write\x20guard.'},{'id':'bind.repo_data.creatormb.content_hash','intent':'pattern.repository_data_check','site':{'template':'subscription/creator-membership','key':'content_hash'},'binding':{'kind':'guard_template','id':'tpl_repository_row_equals_order_field'},'derive':[{'param':'row_name','value':'content_hash'},{'param':'order_field','value':'order.item.wip_hash'}],'note':'The\x20EQUALITY\x20twin,\x20not\x20mere\x20presence:\x20the\x20purpose\x20demands\x20the\x20submission\x20MATCH\x20the\x20order\x20item\x20commitment,\x20and\x20the\x20order-keyed\x20read\x20(query\x201167\x20with\x20THE\x20SUBMITTED\x20ORDER\x20—\x20no\x20candidate\x20list\x20to\x20pad)\x20is\x20chain-bound.\x20Deliberately\x20NO\x20write_once:\x20each\x20renewal\x20period\x20re-writes\x20the\x20row\x20(the\x20OFN5-10\x20known\x20face\x20—\x20content\x20evidence\x20is\x20per-order;\x20period-N\x20keyed\x20rows\x20stay\x20the\x20protocol\x20decision\x20list).\x20Write\x20side:\x20the\x20template\x27s\x20own\x20content_write\x20guard.'},{'id':'bind.repo_data.contest.appeal','intent':'pattern.repository_data_check','site':{'template':'freelance/design-contest','key':'appeal_filed'},'binding':{'kind':'guard_template','id':'tpl_repository_row_present_signer'},'derive':[{'param':'row_name','value':'entry'},{'param':'evidence_marker','value':'0x'}],'note':'Signer-pinned\x20presence:\x20the\x20entry\x20policy\x20is\x20SIGNER-keyed\x20(id_from\x20signer\x20—\x20one\x20row\x20per\x20designer),\x20so\x20the\x20twin\x27s\x20candidate\x20set\x20is\x20stringContains(0x)\x20rows\x20and\x20the\x20context(Signer)\x20pin\x20proves\x20the\x20appellant\x20AUTHORED\x20an\x20entry\x20(a\x20bystander\x20with\x20no\x20entry\x20of\x20their\x20own\x20cannot\x20grieve\x20the\x20contest).\x20The\x200x\x20marker\x20is\x20a\x20DECLARED\x20write-point\x20convention:\x20entry\x20values\x20are\x20WIP-hash\x20strings\x20(entry_write,\x20the\x200x\x20hash-prefix\x20idiom\x20same\x20as\x20final_files)\x20—\x20a\x20policy\x20authorizes\x20WHO\x20writes\x20and\x20never\x20compares\x20VALUES,\x20so\x20the\x20convention\x20had\x20to\x20be\x20declared\x20at\x20the\x20write\x20side\x20before\x20any\x20read\x20could\x20match\x20it.\x20Write\x20side:\x20the\x20template\x27s\x20own\x20entry_write\x20guard.'},{'id':'bind.rail.p2p.claim_paid','intent':'pattern.progress_state_check','site':{'template':'rental/p2p-shortstay','key':'claim_paid_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_claim_settle'},'derive':[{'param':'settle_node','value':'claim_paid'}],'note':'Host-side\x20settlement\x20from\x20the\x20intact\x20booking\x20pool\x20at\x20the\x20single\x20terminal\x20claim_paid\x20(the\x20alt\x20slots\x20default\x20to\x20it;\x20claim_paid\x20is\x20single-entry\x20with\x20no\x20back\x20edge\x20and\x20mutually\x20exclusive\x20with\x20guest_claim_paid,\x20so\x20exactly-once\x20is\x20topological\x20—\x20the\x20twin\x20arms\x20no\x20254\x20slot\x20by\x20design).\x20DELIBERATELY\x20NO\x20claimed_by\x20leg\x20(the\x202026-10-30\x20polarity\x20ruling,\x20generalized\x20to\x20decision\x2011\x20two-rail\x20independence):\x20the\x20arbitration\x20award\x20(compensation\x20fund\x20->\x20order\x20owner)\x20and\x20this\x20booking\x20pool\x20(->\x20host)\x20are\x20independent\x20channels,\x20and\x20claimed_by\x20records\x20the\x20compensation\x20EVENT,\x20not\x20the\x20winner\x27s\x20direction\x20(D-BUG-2)\x20—\x20a\x20claimed_by==false\x20leg\x20would\x20weld\x20the\x20pool\x20shut\x20on\x20a\x20split\x20award\x20or\x20a\x20zero-award\x20ruling\x20on\x20an\x20upheld\x20appeal,\x20either\x20of\x20which\x20still\x20writes\x20claimed_by\x20before\x20the\x20host\x27s\x20share\x20is\x20paid.\x20NO\x20order.service\x20binding\x20either\x20(bsw4\x20F-06\x20—\x20the\x20settle\x20family\x20dropped\x20the\x20host\x20pin\x20under\x20v148\x27s\x20chain-side\x20task-binding\x20check).'},{'id':'bind.rail.liveclass.session_release','intent':'pattern.identity_check_order_holder','site':{'template':'education/live-class-cohort','key':'session_release_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_session_release'},'derive':[{'param':'session_node','value':'session_1'},{'param':'session_node_alt','value':'session_2'},{'param':'session_node_alt2','value':'session_3'},{'param':'session_node_alt3','value':'completed_ready'},{'param':'session_node_alt4','value':'completed'},{'param':'session_node_alt5','value':'renewal_window'}],'note':'Per-session\x20staged\x20settlement\x20—\x20the\x20purpose\x27s\x20release-sequence\x20lock\x20MATERIALIZED:\x20the\x20255\x20once\x20leg\x20pins\x20the\x20monotonic\x20progress.history\x20count,\x20so\x20each\x20attended\x20session\x27s\x20release\x20gets\x20a\x20fresh\x20chain\x20OnceKey\x20and\x20a\x20same-session\x20replay\x20aborts\x2016\x20(OFN\x20#P-04),\x20and\x20the\x20six-node\x20qualifying\x20set\x20keeps\x20the\x20finalization\x20states\x20admissible\x20as\x20the\x20exit\x20safety\x20net\x20(FUND-EXIT-01).\x20The\x20caller\x20rail\x20is\x20BUYER-ONLY\x20by\x20ruling\x20(2026-10-30):\x20the\x20institution\x20advances\x20the\x20workflow\x20but\x20can\x20never\x20self-claim\x20attendance\x20money;\x20a\x20parent-gone\x20order\x20still\x20exits\x20via\x20the\x20terminal\x20residual\x20sweep\x20(bind.rail.liveclass.terminal_settlement)\x20and\x20its\x20recover\x20twin.\x20DELIBERATELY\x20NO\x20claimed_by\x20leg\x20(decision\x2011)\x20—\x20a\x20staged\x20rail\x20must\x20keep\x20firing\x20after\x20an\x20award\x20pays;\x20award\x20and\x20release\x20are\x20independent\x20channels.'},{'id':'bind.rail.creatormb.refund_gate','intent':'pattern.identity_check_order_holder','site':{'template':'subscription/creator-membership','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund_renewal'},'derive':[{'param':'refund_node','value':'subscribed'},{'param':'refund_node_alt','value':'charging'},{'param':'refund_node_alt2','value':'delivering'},{'param':'refund_node_alt3','value':'closed_cancel'},{'param':'refund_node_alt4','value':'expired'}],'note':'RAIL-03\x20resolution\x20(ruling\x202026-10-30,\x20recast\x20decision\x2011):\x20the\x20twin\x20is\x20node-gated\x20over\x20the\x20refundable\x20node\x20set\x20—\x20the\x20former\x20claimed_by\x20some\x20==\x20false\x20polarity\x20leg\x20was\x20removed\x20template-wide,\x20so\x20the\x20old\x20polarity-disjointness\x20argument\x20vs\x20awarded_recover\x20is\x20retired;\x20both\x20rails\x20now\x20key\x20on\x20NODE\x20state\x20and\x20their\x20overlap\x20is\x20a\x20disclosed\x20double-collection\x20surface\x20at\x20the\x20MCP\x20confirmation\x20gate.\x20Plus\x20the\x20255\x20history-count\x20once\x20key\x20(\x27period-<N>\x27)\x20for\x20the\x20re-enterable\x20refund\x20nodes\x20and\x20the\x20BUYER-OR-KEEPER\x20caller\x20leg:\x20the\x20lapsed\x20member\x20is\x20gone\x20at\x20expired\x20and\x20needs\x20a\x20keeper\x20to\x20fire\x20(K-4),\x20while\x20the\x20order-anchored\x20recipient\x20binds\x20WHERE\x20funds\x20land,\x20so\x20the\x20keeper\x20can\x20only\x20pay\x20the\x20member,\x20never\x20themselves.\x20The\x20five-node\x20set\x20covers\x20every\x20refundable\x20node\x20AND\x20both\x20mandatory\x20terminals\x20(closed_cancel,\x20expired\x20—\x20OFN\x20#P-02).'},{'id':'bind.rail.deliverymb.refund_gate','intent':'pattern.identity_check_order_holder','site':{'template':'subscription/delivery-membership','key':'refund_gate'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund_renewal'},'derive':[{'param':'refund_node','value':'subscribed'},{'param':'refund_node_alt','value':'charging'},{'param':'refund_node_alt2','value':'active'},{'param':'refund_node_alt3','value':'closed_cancel'}],'note':'Same\x20renewal-safe\x20twin,\x20four-node\x20set\x20{subscribed,\x20charging,\x20active,\x20closed_cancel}:\x20this\x20shape\x20has\x20NO\x20expired\x20terminal,\x20so\x20the\x20twin\x27s\x20fifth\x20slot\x20rides\x20its\x20duplicate-tautology\x20default\x20(a\x20legal\x20tautology,\x20never\x20a\x20dead\x20literal).\x20Caller-leg\x20rationale\x20as\x20the\x20creator-membership\x20row\x20—\x20the\x20keeper\x20leg\x20covers\x20the\x20mid-period\x20cancel\x20whose\x20member\x20has\x20walked\x20away\x20(decision\x2011:\x20no\x20polarity\x20leg;\x20node-keyed\x20exits,\x20overlap\x20disclosed\x20at\x20the\x20MCP\x20confirmation\x20gate).'},{'id':'bind.rail.p2p.tier1_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_1_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-1\x20(flexible)\x20guest-cancel\x20refund:\x20full-refund\x20legs\x20(Rate\x2010000\x20to\x20the\x20order\x20anchor).\x20Node\x20gate\x20+\x20caller\x20legs\x20ship\x20in\x20the\x20twin\x20root\x20(decision\x2011:\x20no\x20claimed_by\x20leg)\x20—\x20the\x20same\x20shape\x20the\x20template\x27s\x20own\x20confirm_expire_refund\x20/\x20host_cancel_refund\x20specs\x20already\x20instantiate\x20directly.\x20The\x20band\x20disclosure\x20above\x20applies:\x20cancellation\x20timing\x20is\x20not\x20on-chain-enforceable,\x20the\x20selector\x20scopes\x20the\x20economics.'},{'id':'bind.rail.p2p.tier2_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_2_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-2\x20(moderate)\x20guest-cancel\x20refund:\x20full-refund\x20legs;\x20same\x20shape\x20and\x20disclosure\x20as\x20the\x20tier-1\x20row.'},{'id':'bind.rail.p2p.tier3_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_3_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-3\x20(firm)\x20guest-cancel\x20refund:\x20full-refund\x20legs;\x20same\x20shape\x20and\x20disclosure\x20as\x20the\x20tier-1\x20row.'},{'id':'bind.rail.p2p.tier4_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_4_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-4\x20(strict)\x20guest-cancel\x20refund:\x20full-refund\x20legs;\x20same\x20shape\x20and\x20disclosure\x20as\x20the\x20tier-1\x20row.'},{'id':'bind.rail.p2p.tier5_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_5_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-5\x20(strict-partial)\x20guest-cancel\x20refund:\x20the\x20group\x27s\x20own\x20legs\x20are\x20the\x20PARTIAL\x20split\x20(tier5_guest_bps\x20to\x20the\x20order\x20anchor\x20+\x20tier5_host_bps\x20to\x20the\x20host,\x20sum\x2010000)\x20—\x20the\x20guard\x20is\x20the\x20same\x20node-gate\x20twin;\x20the\x20split\x20economics\x20live\x20in\x20the\x20allocator\x20rows,\x20not\x20the\x20guard.'},{'id':'bind.rail.p2p.tier6_refund','intent':'pattern.time_lock_progress','site':{'template':'rental/p2p-shortstay','key':'cancel_tier_6_refund'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_refund'},'derive':[{'param':'refund_node','value':'guest_cancelled'}],'note':'Tier-6\x20(long-stay)\x20guest-cancel\x20refund:\x20partial\x20split\x20like\x20tier\x205\x20(tier6_guest_bps\x20+\x20tier6_host_bps,\x20sum\x2010000);\x20same\x20node-gate\x20twin\x20and\x20disclosure.'},{'id':'bind.rail.p2p.residual_sweep','intent':'pattern.progress_state_check','site':{'template':'rental/p2p-shortstay','key':'terminal_residual_sweep'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle_once'},'derive':[{'param':'settle_node','value':'completed'}],'note':'KLK-P0-2\x20terminal\x20residual\x20sweep\x20(longstay\x20parity):\x20the\x20sweep\x20is\x20single-shot\x20at\x20a\x20TERMINAL\x20node,\x20so\x20the\x20settle_once\x20twin\x27s\x20chain-derived\x20254\x20(exactly-once\x20per\x20order,\x20publicly\x20unforgeable)\x20is\x20the\x20stricter\x20once\x20key\x20for\x20the\x20same\x20semantics;\x20Node\x20pin\x20and\x20the\x20caller\x20leg\x20ship\x20in\x20the\x20twin\x20root\x20(the\x20former\x20claimed_by-false\x20leg\x20is\x20removed\x20by\x20decision\x2011).\x20rk3b-tn-261030:\x20resolving\x20the\x20tier\x20refund\x20rails\x20emptied\x20the\x20pending-allocator\x20bucket\x20and\x20FUND-EXIT-01\x20flipped\x20CRITICAL\x20on\x20completed\x20—\x20the\x20strand\x20this\x20sweep\x20closes\x20(the\x20keeper\x20finalizes\x20past\x20payout_released/claim_paid\x20without\x20firing\x20the\x20release\x20alloc;\x20Machine+Allocator\x20are\x20immutable\x20after\x20publish)\x20was\x20real\x20the\x20whole\x20time,\x20the\x20medium\x20tier\x20had\x20merely\x20been\x20hiding\x20it\x20behind\x20an\x20unrelated\x20pending\x20design.'},{'id':'bind.rail.longstay.month1','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_1_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x1e}],'note':'Month\x201\x20of\x20the\x20staged\x20rent\x20schedule:\x20the\x20Amount\x20rail\x20opens\x2030\x20days\x20after\x20the\x20handover\x20entry.\x20The\x20release_node\x20pin\x20IS\x20the\x20mid-lease\x20stay\x20(alloc\x20evaluates\x20while\x20the\x20order\x20sits\x20at\x20in_use)\x20and\x20the\x20opening\x20clock\x20makes\x20same-day\x20double\x20releases\x20impossible\x20(each\x20month\x27s\x20rail\x20opens\x20only\x20at\x20its\x20own\x2030-day\x20mark\x20—\x20the\x20single-shared-Guard\x20hazard\x20the\x20template\x27s\x20staged-release\x20comment\x20names).\x20A\x20pending\x20rail\x20aborted\x20alloc_by_guard:\x20rent\x20releases\x20stranded\x20and\x20the\x20sweep\x20paid\x20the\x20landlord\x27s\x20income\x20to\x20the\x20tenant.'},{'id':'bind.rail.longstay.month2','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_2_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x3c}],'note':'Month\x202:\x20opens\x2060\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month3','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_3_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x5a}],'note':'Month\x203:\x20opens\x2090\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month4','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_4_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x78}],'note':'Month\x204:\x20opens\x20120\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month5','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_5_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x96}],'note':'Month\x205:\x20opens\x20150\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month6','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_6_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0xb4}],'note':'Month\x206:\x20opens\x20180\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month7','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_7_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0xd2}],'note':'Month\x207:\x20opens\x20210\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month8','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_8_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0xf0}],'note':'Month\x208:\x20opens\x20240\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month9','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_9_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x10e}],'note':'Month\x209:\x20opens\x20270\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month10','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_10_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x12c}],'note':'Month\x2010:\x20opens\x20300\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month11','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_11_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x14a}],'note':'Month\x2011:\x20opens\x20330\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.longstay.month12','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'month_12_release'},'binding':{'kind':'guard_template','id':'tpl_allocator_serial_window_release'},'derive':[{'param':'release_node','value':'in_use'},{'param':'window_node','value':'in_use'},{'param':'claim_window_days','value':0x168}],'note':'Month\x2012\x20(final):\x20opens\x20360\x20days\x20after\x20handover;\x20rationale\x20as\x20the\x20month-1\x20row.'},{'id':'bind.rail.directfan.expired_settle','intent':'pattern.time_lock_progress','site':{'template':'subscription/direct-fan-subscription','key':'expired_settle'},'binding':{'kind':'guard_template','id':'tpl_allocator_node_gate_settle'},'derive':[{'param':'settle_node','value':'expired'}],'note':'Lapsed-period\x20settlement\x20(D-30\x20completion):\x20the\x20rail\x20row\x20has\x20existed\x20since\x20the\x20D-30\x20fix\x20but\x20its\x20guard\x20stayed\x20pending,\x20so\x20alloc_by_guard\x20kept\x20aborting\x20and\x20the\x20natural\x20lapse\x20still\x20stranded\x20the\x20escrow.\x20The\x20255\x20once\x20key\x20matches\x20the\x20sibling\x20settle_rail\x20row\x27s\x20per-period\x20discipline.'},{'id':'bind.rail.longstay.inspect_timeout','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'inspect_timeout'},'binding':{'kind':'guard_template','id':'tpl_time_lock_progress'},'derive':[{'param':'expected_node','value':'inspected'},{'param':'duration_ms','from':'fee_params','key':'inspection_deadline_hours','scale':'hours_to_ms'}],'note':'Verifier\x20no-show\x20opener:\x20the\x20tenant\x20may\x20self-complete\x20only\x20after\x20inspection_deadline_hours\x20from\x20the\x20inspected\x20entry\x20—\x20the\x20fee\x20knob\x20stops\x20being\x20prose.\x20Anchor\x20=\x20the\x20mount\x27s\x20prev\x20(single\x20buyer\x20mount,\x20NODE-MATCH-01\x20safe);\x20the\x20resolved\x20spec\x20displaces\x20the\x20F05\x20identity\x20injection\x20on\x20this\x20edge\x20(a\x20resolved\x20spec\x20wins\x20—\x20f05\x20doctrine),\x20leaving\x20the\x20deadline\x20as\x20the\x20designed\x20nofault\x20gate.'},{'id':'bind.rail.longstay.no_inspect_timeout','intent':'pattern.time_lock_progress','site':{'template':'rental/institutional-longstay','key':'no_inspect_timeout'},'binding':{'kind':'guard_template','id':'tpl_time_lock_progress'},'derive':[{'param':'expected_node','value':'returned'},{'param':'duration_ms','from':'fee_params','key':'inspection_deadline_hours','scale':'hours_to_ms'}],'note':'Inspection-never-started\x20opener:\x20the\x20tenant\x20may\x20self-complete\x20after\x20inspection_deadline_hours\x20from\x20the\x20RETURN\x20entry\x20(the\x20verifier\x20never\x20opened\x20the\x20inspection).\x20Same\x20shape\x20and\x20rationale\x20as\x20the\x20inspect_timeout\x20row.'},{'id':'bind.rail.p2p.claim_window_open','intent':'pattern.time_window_upper_bound','site':{'template':'rental/p2p-shortstay','key':'claim_window_open'},'binding':{'kind':'guard_template','id':'tpl_time_window_upper_deadline_days'},'derive':[{'param':'expected_node','value':'claim_window'},{'param':'claim_window_days','from':'fee_params','key':'claim_window_days'}],'note':'Host\x20filing\x20deadline\x20—\x20the\x20keeper\x20mirror\x20of\x20the\x20census-resolved\x20guest_claim_window_open\x20row:\x20the\x20filing\x20host\x20may\x20open\x20a\x20claim\x20only\x20INSIDE\x20claim_window_days\x20of\x20the\x20claim_window\x20entry.\x20The\x20window\x20length\x20rides\x20the\x20template\x27s\x20own\x20fee\x20knob;\x20after\x20expiry\x20the\x20no-claim\x20release\x20rail\x20(claim_window_closed,\x20census-resolved)\x20is\x20the\x20only\x20exit,\x20so\x20a\x20late\x20claim\x20strands\x20nothing.'},{'id':'bind.rail.longstay.inspect_window','intent':'pattern.time_window_upper_bound','site':{'template':'rental/institutional-longstay','key':'inspect_window'},'binding':{'kind':'guard_template','id':'tpl_time_window_upper_deadline'},'derive':[{'param':'expected_node','value':'inspected'},{'param':'duration_ms','from':'fee_params','key':'inspection_deadline_hours','scale':'hours_to_ms'}],'note':'Verifier\x20pass\x20window:\x20the\x20inspection\x20may\x20be\x20passed\x20only\x20INSIDE\x20inspection_deadline_hours\x20of\x20the\x20inspected\x20entry;\x20after\x20expiry\x20the\x20tenant\x27s\x20self-complete\x20opener\x20(the\x20inspect_timeout\x20row\x20above)\x20is\x20the\x20only\x20advance\x20—\x20the\x20designed\x20deadline/opener\x20belt\x20on\x20one\x20fee\x20knob.'}];export const BINDING_NOTES=[{'scope':'pattern.required_info_evidence_gate','status':'deliberate-pending','reason':'COMPOSITION\x20PRESCRIPTION\x20(amz9-ln-261023\x20A-4):\x20customer_required\x20is\x20DECLARATIVE\x20—\x20the\x20purchase\x20entry\x20never\x20reads\x20it\x20and\x20order.required_info\x20is\x20an\x20Option\x20the\x20buyer\x20may\x20leave\x20empty,\x20so\x20an\x20unconditional\x20presence\x20gate\x20bricks\x20every\x20order\x20of\x20an\x20info-free\x20shop.\x20The\x20ENFORCED\x20form\x20is\x20an\x20inline\x20AND-composition\x20(the\x20mount\x27s\x20identity\x20root\x20AND\x20tpl_required_info_present)\x20resolved\x20per\x20shop\x20via\x20guard_resolutions\x20—\x20never\x20a\x20standalone\x20tpl\x20mount.\x20A\x20binding\x20row\x20can\x20only\x20mount\x20ONE\x20tpl,\x20so\x20this\x20family\x20is\x20out\x20of\x20the\x20table\x27s\x20expressiveness\x20by\x20design.'},{'scope':'pattern.identity_check_allowlist','status':'deliberate-pending','reason':'TPL-02/F3-01\x20+\x20rex3\x20ruling\x20④:\x20an\x20allowlist\x20has\x20NO\x20safe\x20instanceable\x20default\x20—\x20an\x20empty/default\x20vector\x20denies\x20every\x20buyer\x20(brick)\x20and\x20a\x20populated\x20one\x20fabricates\x20an\x20eligibility\x20policy\x20the\x20merchant\x20never\x20stated.\x20Open\x20stores\x20drop\x20the\x20gate\x20via\x20guard_resolutions\x20({kind:\x27omit\x27}\x20on\x20unbound\x20designs).'},{'scope':'pattern.buy_guard_blocklist','status':'deliberate-pending','reason':'Same\x20no-safe-default\x20family\x20as\x20the\x20allowlist:\x20the\x20five\x20freelance\x20buy\x20gates\x20encode\x20\x27Passport-gated\x20purchase\x20once\x20set\x27\x20—\x20a\x20disjoint-identity\x20policy\x20(funder/triager/hunter\x20three-way)\x20whose\x20default\x20shape\x20would\x20fabricate\x20either\x20an\x20open\x20or\x20a\x20bricked\x20store.\x20Merchant\x20resolution\x20only.'},{'scope':'pattern.time_lock_progress\x20/\x20pattern.time_window_upper_bound\x20(absolute-date\x20class:\x20p2p\x20tier\x20forwards\x20cancel_tier_1..6,\x20checkin_gate,\x20checkout_gate,\x20host_cancel)','status':'deferred','reason':'ABSOLUTE-DATE\x20typed\x20gates:\x20the\x20policy\x20counts\x20from\x20a\x20per-order\x20real-world\x20date\x20(check-in\x2016:00,\x20departure\x2011:00,\x20\x27until\x2024h\x20before\x20check-in\x27)\x20and\x20the\x20booking\x20dates\x20have\x20NO\x20on-chain\x20row\x20—\x20the\x20progress-anchored\x20twins\x20cannot\x20express\x20them,\x20and\x20a\x20relative\x20pin\x20would\x20enforce\x20a\x20DIFFERENT\x20policy\x20(an\x20order.time-anchored\x20window\x20expires\x20before\x20the\x20stay\x20even\x20starts\x20when\x20the\x20lead\x20time\x20is\x20long\x20—\x20TIME-ANCHOR-01).\x20Needs\x20a\x20future\x20booking-date\x20repository\x20row\x20+\x20Clock\x20comparison\x20twin\x20(protocol-train\x20adjacent).\x20The\x20tier\x20refund\x20RAILS\x20left\x20this\x20note\x20in\x20batch\x20six\x20(bind.rail.p2p.tier1-6_refund):\x20the\x20selector\x20plus\x20the\x20per-tier\x20allocator\x20legs\x20carry\x20the\x20economics,\x20disclosed\x20weakening.'},{'scope':'pattern.time_lock_progress\x20(p2p\x20claim_review)','status':'deliberate-pending','reason':'COMPOSITE\x20ADJUDICATION\x20PRESCRIPTION:\x20the\x20purpose\x20is\x20an\x20evidence\x20pre+post\x20comparison\x20chain\x20+\x20a\x2024h\x20guest\x20response\x20window\x20+\x20any\x20arbitration\x20ruling\x20—\x20a\x20composition,\x20not\x20one\x20clock.\x20No\x20single-clock\x20twin\x20expresses\x20it;\x20an\x20inline\x20guard_resolutions\x20composite\x20resolved\x20per\x20shop\x20is\x20the\x20sanctioned\x20form\x20(the\x20deliver_work\x20family\x27s\x20disposition).'},{'scope':'pattern.time_lock_progress\x20(institutional\x20early_exit_window)','status':'deliberate-pending','reason':'The\x20purpose\x27s\x20own\x20DIRECTION\x20CAVEAT\x20refuses\x20a\x20default:\x20an\x20early\x20exit\x20is\x20typically\x20allowed\x20THROUGHOUT\x20the\x20lease\x20and\x20the\x20penalty\x20allocator\x20carries\x20the\x20economics\x20—\x20a\x20default\x20time\x20leg\x20would\x20fabricate\x20policy\x20(opening\x20=\x20notice-period-elapsed,\x20closing\x20=\x20exit-by\x20deadline;\x20bind\x20only\x20deliberately).'},{'scope':'pattern.repository_data_check\x20(catalog-tiers\x20deliver_work,\x20p2p-shortstay\x20guest_claim_evidence)','status':'deliberate-pending','reason':'COMPOSITION\x20PRESCRIPTIONS\x20—\x20out\x20of\x20the\x20table\x27s\x20one-tpl\x20expressiveness\x20by\x20design.\x20deliver_work:\x20the\x20evidence\x20is\x20a\x20retained_submission\x20in\x20progress\x20history,\x20not\x20a\x20repository\x20row\x20—\x20no\x20row_present\x20mapping\x20exists.\x20guest_claim_evidence:\x20the\x20purpose\x20is\x20an\x20inline\x20composition\x20recipe;\x20a\x20standalone\x20mount\x20is\x20forbidden.\x20The\x20bug-bounty\x20refund_gate\x20face\x20left\x20this\x20list:\x20its\x20FOUR-node\x20refundable\x20set\x20{rejected,\x20closed_cancel,\x20duplicate,\x20withdrawn}\x20resolved\x20through\x20the\x20twin\x27s\x20shipped\x20fourth\x20node\x20slot\x20(refund_node_alt3,\x20table\x20identifier\x207)\x20—\x20the\x20declaration\x20now\x20mounts\x20tpl_allocator_node_gate_refund\x20directly,\x20no\x20by-copy\x20extension.'},{'scope':'pattern.repository_data_check\x20(direct-fan\x20content_hash,\x20after\x20the\x20template-data\x20fix)','status':'deliberate-pending','reason':'COMPOSITION\x20PRESCRIPTION\x20—\x20the\x20purpose\x20demands\x20the\x20content\x20row\x20EQUAL\x20the\x20order\x20item\x20commitment\x20AND\x20allocation.balance\x20>=\x20order.amount\x20(query\x201051\x20+\x20witness,\x20ofn5\x20F-04:\x20a\x20drained\x20pool\x20must\x20stop\x20fulfillment\x20structurally);\x20a\x20binding\x20row\x20mounts\x20ONE\x20tpl,\x20so\x20only\x20a\x20guard_resolution\x20can\x20ship\x20both\x20legs.\x20The\x20content_hash\x20policy\x20IS\x20declared\x20(content_write)\x20for\x20that\x20resolution\x20to\x20bind\x20—\x20creator-membership,\x20whose\x20purpose\x20carries\x20NO\x20balance\x20leg,\x20takes\x20the\x20plain\x20equality\x20row.'},{'scope':'pattern.repository_write_authorization\x20(member_roster_write)','status':'deliberate-pending','reason':'SIGNER-KEYED\x20PAIRING\x20PROHIBITION:\x20the\x20member\x20roster\x20is\x20deliberately\x20signer-keyed\x20(row\x20id\x20=\x20the\x20member\x27s\x20own\x20address;\x20the\x20T-11\x20credentialed\x20buy\x20guard\x20reads\x20row\x20id\x20=\x20the\x20calling\x20Signer),\x20and\x20BOTH\x20repository-write\x20twins\x20in\x20the\x20library\x20are\x20ORDER-KEYED\x20—\x20their\x20creation\x20notes\x20forbid\x20pairing\x20with\x20a\x20signer-keyed\x20policy\x20(the\x20order-keyed\x20identity\x20leaf\x20would\x20re-key\x20rows\x20and\x20break\x20the\x20signer-addressed\x20roster\x20read).\x20Pending\x20is\x20correct\x20until\x20a\x20signer-keyed\x20identity-write\x20twin\x20(a\x20future\x20library\x20contribution)\x20exists.'},{'scope':'pattern.verifier_evidence_philosophy','status':'deliberate-pending','reason':'Benchmark-cap\x20buy\x20gates\x20(max\x20prepay\x20/\x20max\x20sessions\x20/\x20rent-sum\x20equality):\x20the\x20numbers\x20are\x20per-shop\x20commercial\x20policy,\x20the\x20check\x20shapes\x20vary\x20per\x20template,\x20and\x20no\x20single\x20twin\x20exists.\x20Merchant/judgment\x20surface\x20by\x20design.'},{'scope':'retail/warehouse-club\x20buy\x20(tpl_buy_guard_payment_voucher)','status':'deliberate-pending','reason':'Already\x20a\x20direct\x20tpl_*\x20ref\x20—\x20out\x20of\x20the\x20table\x27s\x20channel\x20entirely.\x20Its\x20GUARD_TEMPLATE_PARAMS\x20failure\x20is\x20the\x20designed\x20wizard\x20question\x20(merchant_address\x20has\x20no\x20declarable\x20default:\x20the\x20club\x27s\x20claimable\x20wallet\x20is\x20a\x20real-world\x20answer),\x20not\x20an\x20unresolved\x20design.'}];const ALLOCATOR_ROW_FIELD='allocator.rows[].',FEE_PARAM_FIELD='fee_params.';function discriminantsMatch(a,b,c){for(const e of a['discriminants']??[]){if(e['field']['startsWith'](ALLOCATOR_ROW_FIELD)){const f=e['field']['slice'](ALLOCATOR_ROW_FIELD['length']),g=c['allocator']?.['rows']??[];if(!g['some'](h=>h[f]===e['equals']))return![];}else{if(e['field']==='spec.key'){if(b['key']!==e['equals'])return![];}else{if(e['field']==='host'){if(b['host']!==e['equals'])return![];}else{if(e['field']['startsWith'](FEE_PARAM_FIELD)){if(c['fee_params']?.[e['field']['slice'](FEE_PARAM_FIELD['length'])]!==e['equals'])return![];}else return![];}}}}return!![];}export function lookupBinding(a,b){if(a['template_id']['startsWith']('tpl_'))return undefined;for(const c of BINDING_ROWS){if(c['intent']!==a['template_id'])continue;if(c['host']!==undefined&&c['host']!==a['host'])continue;if(c['site']!==undefined){if(c['site']['template']!==b['id'])continue;if(c['site']['key']!==undefined&&c['site']['key']!==a['key'])continue;}if(!discriminantsMatch(c,a,b))continue;const e={};for(const f of c['derive']??[]){if(f['value']!==undefined)e[f['param']]=f['value'];else{if(f['from']==='fee_params'){const g=b['fee_params']?.[f['key']??f['param']];if(typeof g==='number'&&f['scale']==='hours_to_ms')e[f['param']]=g*MS_PER_HOUR;else g!==undefined&&(e[f['param']]=g);}}}return{'row':c['id'],'template_id':c['binding']['id'],'params':e};}return undefined;}
|
|
@@ -4,17 +4,24 @@ export interface BindingHostFacts {
|
|
|
4
4
|
order_submission_declared?: boolean;
|
|
5
5
|
demand_guard_count?: number;
|
|
6
6
|
open_write_aggregate_rows?: boolean;
|
|
7
|
+
source_node?: string;
|
|
8
|
+
pinned_node_names?: string[];
|
|
9
|
+
declared_permission_indexes?: number[];
|
|
10
|
+
host_permission_indexes?: number[];
|
|
11
|
+
host_permission_entity_count?: number;
|
|
7
12
|
}
|
|
8
13
|
export interface BindingFinding {
|
|
9
14
|
code: string;
|
|
10
15
|
host: string;
|
|
11
16
|
level: "critical" | "warning" | "info";
|
|
12
17
|
detail: string;
|
|
18
|
+
guard?: string;
|
|
13
19
|
}
|
|
14
20
|
export interface GuardBindingInput {
|
|
15
21
|
host: string;
|
|
16
22
|
root?: unknown;
|
|
17
23
|
facts?: BindingHostFacts;
|
|
24
|
+
guard_ref?: string;
|
|
18
25
|
}
|
|
19
26
|
export declare function verifyGuardBinding(input: GuardBindingInput): BindingFinding[];
|
|
20
27
|
export declare function auditGuardRelies(input: {
|