@spellkave/tool-contracts 0.0.0-bootstrap

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/LICENSE +89 -0
  2. package/package.json +50 -0
  3. package/src/admission.ts +62 -0
  4. package/src/authoring-schemas.ts +3491 -0
  5. package/src/authoring-tool-names.ts +46 -0
  6. package/src/contract-data.ts +37 -0
  7. package/src/contract-guard.ts +377 -0
  8. package/src/contracts-metadata.json +6940 -0
  9. package/src/docs-metadata.ts +42 -0
  10. package/src/exploration.ts +248 -0
  11. package/src/git-batch.ts +36 -0
  12. package/src/grant-schemas.ts +38 -0
  13. package/src/index.ts +10 -0
  14. package/src/metadata.ts +48 -0
  15. package/src/owner-instance-read.ts +123 -0
  16. package/src/personas.generated.json +47 -0
  17. package/src/personas.ts +19 -0
  18. package/src/roster.ts +13 -0
  19. package/src/scene-schemas.ts +29 -0
  20. package/src/schema-registry.ts +197 -0
  21. package/src/schemas.ts +786 -0
  22. package/src/snapshot-storage.ts +133 -0
  23. package/src/tool-contracts.breaking-acknowledged.json +392 -0
  24. package/src/tool-contracts.snapshot/index.json +104 -0
  25. package/src/tool-contracts.snapshot/rosters/AUTHOR.json +54 -0
  26. package/src/tool-contracts.snapshot/rosters/DM.json +19 -0
  27. package/src/tool-contracts.snapshot/rosters/PLAYER.json +25 -0
  28. package/src/tool-contracts.snapshot/tools/spellkave_acting_context.json +35 -0
  29. package/src/tool-contracts.snapshot/tools/spellkave_actor_principals.json +23 -0
  30. package/src/tool-contracts.snapshot/tools/spellkave_annotate_place.json +82 -0
  31. package/src/tool-contracts.snapshot/tools/spellkave_apply_manifest_delta.json +66 -0
  32. package/src/tool-contracts.snapshot/tools/spellkave_applyset_apply.json +131 -0
  33. package/src/tool-contracts.snapshot/tools/spellkave_applyset_diff.json +122 -0
  34. package/src/tool-contracts.snapshot/tools/spellkave_attach_map_layer.json +114 -0
  35. package/src/tool-contracts.snapshot/tools/spellkave_author_place.json +132 -0
  36. package/src/tool-contracts.snapshot/tools/spellkave_bind_actor.json +79 -0
  37. package/src/tool-contracts.snapshot/tools/spellkave_bind_edge_affordance.json +69 -0
  38. package/src/tool-contracts.snapshot/tools/spellkave_can_i.json +123 -0
  39. package/src/tool-contracts.snapshot/tools/spellkave_communicate.json +44 -0
  40. package/src/tool-contracts.snapshot/tools/spellkave_declare_inexpressible.json +33 -0
  41. package/src/tool-contracts.snapshot/tools/spellkave_define_action.json +133 -0
  42. package/src/tool-contracts.snapshot/tools/spellkave_define_action_verb.json +215 -0
  43. package/src/tool-contracts.snapshot/tools/spellkave_define_affordance.json +69 -0
  44. package/src/tool-contracts.snapshot/tools/spellkave_define_behavior.json +505 -0
  45. package/src/tool-contracts.snapshot/tools/spellkave_define_bundle.json +67 -0
  46. package/src/tool-contracts.snapshot/tools/spellkave_define_capability.json +64 -0
  47. package/src/tool-contracts.snapshot/tools/spellkave_define_condition.json +244 -0
  48. package/src/tool-contracts.snapshot/tools/spellkave_define_consequence.json +65 -0
  49. package/src/tool-contracts.snapshot/tools/spellkave_define_entity_type.json +199 -0
  50. package/src/tool-contracts.snapshot/tools/spellkave_define_niche.json +88 -0
  51. package/src/tool-contracts.snapshot/tools/spellkave_define_resource.json +93 -0
  52. package/src/tool-contracts.snapshot/tools/spellkave_define_roll_table.json +87 -0
  53. package/src/tool-contracts.snapshot/tools/spellkave_define_session.json +115 -0
  54. package/src/tool-contracts.snapshot/tools/spellkave_define_trace_kind.json +71 -0
  55. package/src/tool-contracts.snapshot/tools/spellkave_describe.json +73 -0
  56. package/src/tool-contracts.snapshot/tools/spellkave_diff.json +90 -0
  57. package/src/tool-contracts.snapshot/tools/spellkave_docs.json +104 -0
  58. package/src/tool-contracts.snapshot/tools/spellkave_end_turn.json +21 -0
  59. package/src/tool-contracts.snapshot/tools/spellkave_entity.json +32 -0
  60. package/src/tool-contracts.snapshot/tools/spellkave_entity_body.json +32 -0
  61. package/src/tool-contracts.snapshot/tools/spellkave_entity_container.json +32 -0
  62. package/src/tool-contracts.snapshot/tools/spellkave_equip_item.json +49 -0
  63. package/src/tool-contracts.snapshot/tools/spellkave_eval.json +87 -0
  64. package/src/tool-contracts.snapshot/tools/spellkave_events.json +30 -0
  65. package/src/tool-contracts.snapshot/tools/spellkave_explain.json +83 -0
  66. package/src/tool-contracts.snapshot/tools/spellkave_export.json +66 -0
  67. package/src/tool-contracts.snapshot/tools/spellkave_export_grants.json +50 -0
  68. package/src/tool-contracts.snapshot/tools/spellkave_get.json +87 -0
  69. package/src/tool-contracts.snapshot/tools/spellkave_grant_role.json +80 -0
  70. package/src/tool-contracts.snapshot/tools/spellkave_hand_over_role.json +89 -0
  71. package/src/tool-contracts.snapshot/tools/spellkave_intervention_windows.json +32 -0
  72. package/src/tool-contracts.snapshot/tools/spellkave_inventory.json +40 -0
  73. package/src/tool-contracts.snapshot/tools/spellkave_item_detail.json +37 -0
  74. package/src/tool-contracts.snapshot/tools/spellkave_link_places.json +84 -0
  75. package/src/tool-contracts.snapshot/tools/spellkave_list_grants.json +56 -0
  76. package/src/tool-contracts.snapshot/tools/spellkave_manipulate.json +84 -0
  77. package/src/tool-contracts.snapshot/tools/spellkave_manipulation_context.json +62 -0
  78. package/src/tool-contracts.snapshot/tools/spellkave_map.json +109 -0
  79. package/src/tool-contracts.snapshot/tools/spellkave_map_graph.json +143 -0
  80. package/src/tool-contracts.snapshot/tools/spellkave_move.json +75 -0
  81. package/src/tool-contracts.snapshot/tools/spellkave_note_doc_gap.json +43 -0
  82. package/src/tool-contracts.snapshot/tools/spellkave_observer_knowledge.json +32 -0
  83. package/src/tool-contracts.snapshot/tools/spellkave_observer_place_knowledge.json +32 -0
  84. package/src/tool-contracts.snapshot/tools/spellkave_observer_trace_knowledge.json +32 -0
  85. package/src/tool-contracts.snapshot/tools/spellkave_offer_control.json +30 -0
  86. package/src/tool-contracts.snapshot/tools/spellkave_orient.json +39 -0
  87. package/src/tool-contracts.snapshot/tools/spellkave_pace_time.json +59 -0
  88. package/src/tool-contracts.snapshot/tools/spellkave_place_actor.json +190 -0
  89. package/src/tool-contracts.snapshot/tools/spellkave_place_entity.json +190 -0
  90. package/src/tool-contracts.snapshot/tools/spellkave_prepare_hand_over.json +57 -0
  91. package/src/tool-contracts.snapshot/tools/spellkave_query.json +290 -0
  92. package/src/tool-contracts.snapshot/tools/spellkave_react_option.json +47 -0
  93. package/src/tool-contracts.snapshot/tools/spellkave_reaction_options.json +32 -0
  94. package/src/tool-contracts.snapshot/tools/spellkave_release_claim.json +32 -0
  95. package/src/tool-contracts.snapshot/tools/spellkave_remove_entity.json +39 -0
  96. package/src/tool-contracts.snapshot/tools/spellkave_render_scene.json +59 -0
  97. package/src/tool-contracts.snapshot/tools/spellkave_return_npc_control.json +59 -0
  98. package/src/tool-contracts.snapshot/tools/spellkave_revoke_role.json +55 -0
  99. package/src/tool-contracts.snapshot/tools/spellkave_scene.json +74 -0
  100. package/src/tool-contracts.snapshot/tools/spellkave_scene_detail.json +37 -0
  101. package/src/tool-contracts.snapshot/tools/spellkave_self_states.json +77 -0
  102. package/src/tool-contracts.snapshot/tools/spellkave_self_summary.json +21 -0
  103. package/src/tool-contracts.snapshot/tools/spellkave_sense.json +68 -0
  104. package/src/tool-contracts.snapshot/tools/spellkave_sense_context.json +28 -0
  105. package/src/tool-contracts.snapshot/tools/spellkave_session_close.json +71 -0
  106. package/src/tool-contracts.snapshot/tools/spellkave_session_move.json +38 -0
  107. package/src/tool-contracts.snapshot/tools/spellkave_session_open.json +36 -0
  108. package/src/tool-contracts.snapshot/tools/spellkave_session_status.json +41 -0
  109. package/src/tool-contracts.snapshot/tools/spellkave_set_metadata.json +205 -0
  110. package/src/tool-contracts.snapshot/tools/spellkave_set_movement_default.json +58 -0
  111. package/src/tool-contracts.snapshot/tools/spellkave_stage_scene.json +55 -0
  112. package/src/tool-contracts.snapshot/tools/spellkave_status.json +23 -0
  113. package/src/tool-contracts.snapshot/tools/spellkave_stow_item.json +55 -0
  114. package/src/tool-contracts.snapshot/tools/spellkave_suggest_next_action.json +32 -0
  115. package/src/tool-contracts.snapshot/tools/spellkave_tag_entity.json +61 -0
  116. package/src/tool-contracts.snapshot/tools/spellkave_take_npc_control.json +64 -0
  117. package/src/tool-contracts.snapshot/tools/spellkave_trace_detail.json +36 -0
  118. package/src/tool-contracts.snapshot/tools/spellkave_traces.json +55 -0
  119. package/src/tool-contracts.snapshot/tools/spellkave_wake_up.json +23 -0
  120. package/src/tool-contracts.snapshot/tools/spellkave_withdraw_control.json +30 -0
  121. package/src/tool-contracts.snapshot/tools/spellkave_write_rows.json +62 -0
@@ -0,0 +1,132 @@
1
+ {
2
+ "name": "spellkave_author_place",
3
+ "label": "Author Place (verb PoC)",
4
+ "description": "PoC (#1968): author ONE place_graph + its place_nodes (+ optional place_edges) in a single call, wrapping the existing patchManifest place ops. Self-scaffolds the `[[bundles]]` header if `bundle` has none yet (FIX②b). Nodes get metric positions (explicit x/y or auto circle/line) and optional elevation. substrate defaults to outdoor; pass substrate:'indoor' for buildings. PoC boundary: one place_graph per call. map_graph draws outdoor world-compose by default; pass graph=<id> to draw an indoor plan. Top-level `description` sets the GRAPH's own description; each `nodes[].description` sets that ONE node's own arrival prose instead (T5 follow-up) — author both when a node deserves its own sensory detail beyond the graph-level blurb.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "nodes",
9
+ "edges"
10
+ ],
11
+ "properties": {
12
+ "bundle": {
13
+ "type": "string",
14
+ "description": "bundle_id stamped on every generated row. Omit to fall back to `context.defaultBundle` (#1968 smart default)."
15
+ },
16
+ "substrate": {
17
+ "type": "string",
18
+ "description": "substrate_id for the graph and every node (core: outdoor | indoor | tactical). Default 'outdoor'. Houses/interiors should use 'indoor'."
19
+ },
20
+ "parent_graph_id": {
21
+ "type": "string",
22
+ "description": "Composition parent place_graph_id (ADR-0029 / Item 25). Empty/omit = root. Nested outdoor graphs project into the parent frame on the world map."
23
+ },
24
+ "origin_cell_res10": {
25
+ "type": "string",
26
+ "description": "Root outdoor H3 res10 anchor as decimal u64 string. Only composition roots should set this; res7/res4 parents are derived. Nested graphs omit (origin stays 0)."
27
+ },
28
+ "bearing": {
29
+ "type": "number",
30
+ "description": "Clockwise rotation degrees relative to parent/world frame (ADR-0029). Default 0."
31
+ },
32
+ "metres_per_unit": {
33
+ "type": "number",
34
+ "description": "Graph unit → metres (ADR-0029). Default 1. Outdoor world maps often use >1."
35
+ },
36
+ "display_name": {
37
+ "type": "string",
38
+ "description": "place_graph display_name; default title-cased graph local id."
39
+ },
40
+ "nodes": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "object",
44
+ "required": [
45
+ "id"
46
+ ],
47
+ "properties": {
48
+ "id": {
49
+ "type": "string",
50
+ "description": "Fully-qualified place-node id '<place_graph_id>/<local_id>' (e.g. 'aoe_blast/arena/center'). PoC boundary: bare local ids are not supported."
51
+ },
52
+ "name": {
53
+ "type": "string",
54
+ "description": "display_name; defaults to a title-cased local id."
55
+ },
56
+ "x": {
57
+ "type": "number",
58
+ "description": "Optional metric graph-local pos_x (integer graph units). When any node omits x/y, author_place auto-layouts all nodes on a circle (n>=3) or a line (n=1..2)."
59
+ },
60
+ "y": {
61
+ "type": "number",
62
+ "description": "Optional metric graph-local pos_y (integer graph units). See `x`."
63
+ },
64
+ "elevation": {
65
+ "type": "number",
66
+ "description": "Optional graph-local pose_elevation (metres-ish via graph metres_per_unit). Use for floors/cellars (e.g. 0 ground, -3 cellar). Omit for 0 with pose_elevation_present=true."
67
+ },
68
+ "cell_res10": {
69
+ "type": "string",
70
+ "description": "Optional outdoor H3 res10 cell as decimal u64 string (parents res7/res4 derived via h3-js). Prefer strings so values above MAX_SAFE_INTEGER stay exact."
71
+ },
72
+ "description": {
73
+ "type": "string",
74
+ "description": "Sets THIS node's own `place_nodes.description` column (T5 follow-up, #1968 pattern: a first-class field, never a metadata_attachments detour — same shape as the top-level `description` param below, which sets the GRAPH's own description instead). Read by movement-observation tools (e.g. spellkave_move) as the arrival prose for THIS node; falls back to the graph's own description only on a graph-crossing move when omitted."
75
+ },
76
+ "extent_shape_id": {
77
+ "type": "string",
78
+ "description": "place_nodes.extent_shape_id (place-node-extent D-2, sk-71u): an explicit spatial extent for THIS node — one of the KNOWN_AREA_SHAPE_IDS kernel shapes (e.g. 'core/area/sphere', 'core/area/cube'). Overrides the bundle's own default_extent_shape_id (spellkave_define_bundle) for this node only. Pair with `extent_params_json`; omit both to fall back to the bundle default."
79
+ },
80
+ "extent_params_json": {
81
+ "type": "string",
82
+ "description": "place_nodes.extent_params_json — the params_json paired with `extent_shape_id` (e.g. '{\"radius_m\": 2.5}' for core/area/sphere). Only meaningful alongside `extent_shape_id`."
83
+ }
84
+ }
85
+ },
86
+ "description": "One or more place nodes. Every id must share ONE common parent path (one place_graph per call — a PoC boundary); the FIRST node becomes the place_graph's anchor_node_id."
87
+ },
88
+ "edges": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "array",
92
+ "items": {
93
+ "type": "string"
94
+ },
95
+ "minItems": 2,
96
+ "maxItems": 2
97
+ },
98
+ "description": "[from_node_id, to_node_id] pairs; both ends must be in `nodes`. Pass [] for disconnected nodes (e.g. two same-radius cells with no traversal edge between them, as the worked example does)."
99
+ },
100
+ "description": {
101
+ "type": "string",
102
+ "description": "Sets the generated place_graph's own `description` column (#1968 — a first-class, never load-bearing authoring field, not a metadata_attachments row)."
103
+ }
104
+ }
105
+ },
106
+ "executionMode": "sequential",
107
+ "promptSnippet": "Author one place_graph with nodes and edges (outdoor or indoor)",
108
+ "promptGuidelines": [
109
+ "Use spellkave_author_place for topology (nodes+edges); pass nodes[].x/y for layout or omit for auto circle; nodes[].elevation for floors.",
110
+ "Houses/interiors: substrate:'indoor'. Outdoor regions: omit or substrate:'outdoor'.",
111
+ "Author nodes[].description for a node's own 1-2 sentence arrival prose; it wins over the graph-level description on that node's own moves.",
112
+ "After authoring, spellkave_map_graph shows the picture (pass graph= for indoor); for live worlds call spellkave_apply_manifest_delta with no args to commit the scratch.",
113
+ "Deeper spatial playbook: spellkave_docs doc=place-graph-occupancy (read path) or spatial-minimal-cell (row shape)."
114
+ ],
115
+ "roles": [
116
+ "AUTHOR"
117
+ ],
118
+ "admission": {
119
+ "anyOf": [
120
+ {
121
+ "kind": "all",
122
+ "capabilities": [
123
+ "frontier.apply_manifest"
124
+ ]
125
+ },
126
+ {
127
+ "kind": "publisher"
128
+ }
129
+ ],
130
+ "ports": []
131
+ }
132
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "spellkave_bind_actor",
3
+ "label": "Bind Actor (verb)",
4
+ "description": "#1968 verb-UX round 6: bind an already-placed actor's identity (actor_identities, upsert-by-entity_key) and, optionally, grant it one or more capabilities (actor_capabilities) in a single call — folds the genesis-window self-grant idiom (an identity bind + a `frontier.apply_manifest` grant, the `srd/regdar`/`phandelver/hero` pattern every ad-hoc live-authored actor bundle needs post-core/player-retirement) from 2 spellkave_write_rows calls into 1. `entity_key` must already carry an actor_spatial_locations row (workspace, live, or the active target) — place it first via spellkave_place_actor (mirrors spellkave_define_behavior's own `grant_to` precondition). #1968 workspace idempotency: re-authoring the SAME entity_key's identity bind REPLACES it (never duplicates — the server itself upserts on (actor_id, identity), and every corpus fixture binds one entity_key to exactly one identity); each capabilities[] grant upserts by (actor_entity_key, capability_id, source), mirroring add-capability-grant.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "entity_key"
9
+ ],
10
+ "properties": {
11
+ "bundle": {
12
+ "type": "string",
13
+ "description": "bundle_id stamped on every generated row. Omit to fall back to `context.defaultBundle` (#1968 smart default)."
14
+ },
15
+ "entity_key": {
16
+ "type": "string",
17
+ "description": "entity_key of an already-placed actor (e.g. via spellkave_place_actor) — must already carry an actor_spatial_locations row (workspace, live, or the active target); this call does not place one."
18
+ },
19
+ "identity": {
20
+ "type": "string",
21
+ "description": "actor_identities.identity. Default '$sender' resolves to whoever submits the applying delta. Pass a concrete identity hex string only when binding to a KNOWN, fixed identity instead."
22
+ },
23
+ "role": {
24
+ "type": "string",
25
+ "description": "actor_identities.role. Default 'primary' (the corpus-dominant value; 'dm' is the one observed override). NOT a cosmetic label: r_claim_actor refuses every value but 'primary', so authoring 'dm' deliberately makes the seat un-self-claimable — right for a human DM anchor handed over by the operator, wrong for a programmatic seat that wants the self-claim path. It never affects visibility or write authority, which come from the capability grant alone."
26
+ },
27
+ "capabilities": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "object",
31
+ "required": [
32
+ "capability_id"
33
+ ],
34
+ "properties": {
35
+ "capability_id": {
36
+ "type": "string",
37
+ "description": "actor_capabilities.capability_id — must already resolve to an authored capability_definitions row (workspace, live, or the active target); this call does not auto-create it. Privileged frontier.* ids use spellkave_grant_role with an explicit role and extent."
38
+ },
39
+ "source": {
40
+ "type": "string",
41
+ "description": "actor_capabilities.source. Omit for the schema default 'manifest' (mirrors `add-capability-grant`'s own default). This is grant provenance, not authority over a role or extent."
42
+ },
43
+ "visibility": {
44
+ "type": "string",
45
+ "description": "actor_capabilities.visibility (ADR-0120 read-visibility override)."
46
+ },
47
+ "extent_ref": {
48
+ "type": "string",
49
+ "description": "actor_capabilities.extent_ref (ADR-0007 D-4 see-as scope)."
50
+ },
51
+ "extent_kind_ref": {
52
+ "type": "string",
53
+ "description": "actor_capabilities.extent_kind_ref."
54
+ }
55
+ }
56
+ },
57
+ "description": "actor_capabilities grants issued to the SAME entity_key, alongside the identity bind. Default `[]` (identity-only bind — no grant). Ordinary capability rows are supported; frontier.* capability requests are refused with a pointer to spellkave_grant_role."
58
+ }
59
+ }
60
+ },
61
+ "executionMode": "sequential",
62
+ "roles": [
63
+ "AUTHOR"
64
+ ],
65
+ "admission": {
66
+ "anyOf": [
67
+ {
68
+ "kind": "all",
69
+ "capabilities": [
70
+ "frontier.apply_manifest"
71
+ ]
72
+ },
73
+ {
74
+ "kind": "publisher"
75
+ }
76
+ ],
77
+ "ports": []
78
+ }
79
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "spellkave_bind_edge_affordance",
3
+ "label": "Bind Edge Affordance",
4
+ "description": "Attach a place_edge_affordance to an edge that ALREADY exists (author it first via spellkave_link_places / spellkave_author_place) — closes the write_rows-only gap where a raw place_edge_affordance write validated nothing against edge_key (sk-9ll.2). Derives edge_key(s) exactly as spellkave_link_places does (from->to), validates the edge AND the affordance_template_id both already resolve (workspace, live, or the active target), then upserts by (edge_key, affordance_template_id, mode_id) — re-authoring the SAME triple REPLACES bindings_json rather than duplicating (mirrors the Rust add-place-edge-affordance patch op; ADR-0101 widened the key with mode_id). Optionally also REPLACES the edge's own inherit_movement_default flag (requires the edge already authored in THIS workspace).",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "from",
9
+ "to",
10
+ "affordance_template_id"
11
+ ],
12
+ "properties": {
13
+ "from": {
14
+ "type": "string",
15
+ "description": "place_edges.from_node_id of an edge that ALREADY exists (workspace, live, or the active target) — this call never creates one. Author it first via spellkave_link_places / spellkave_author_place."
16
+ },
17
+ "to": {
18
+ "type": "string",
19
+ "description": "place_edges.to_node_id of the same already-existing edge."
20
+ },
21
+ "affordance_template_id": {
22
+ "type": "string",
23
+ "description": "place_edge_affordance.affordance_template_id — must already resolve to an authored affordance_templates row (workspace, live, or the active target); this call does not auto-create it."
24
+ },
25
+ "bindings_json": {
26
+ "type": "string",
27
+ "description": "place_edge_affordance.bindings_json (default \"\"). e.g. '{\"movement_reach_resource\":\"srd/speed-walk\"}' for srd Step."
28
+ },
29
+ "mode_id": {
30
+ "type": "string",
31
+ "description": "place_edge_affordance.mode_id (ADR-0101 D-1, default \"\" — the implicit default mode). An open author-chosen id (e.g. \"fly\", \"swim\") — rows sharing one (edge_key, mode_id) AND-join (all must pass); distinct mode_ids on the SAME edge OR (the cheapest passing mode charges and supplies the long-running-move session). Upserts by (edge_key, affordance_template_id, mode_id) — the SAME template under two different mode_ids on one edge is a sibling row, not a replace."
32
+ },
33
+ "bidirectional": {
34
+ "type": "boolean",
35
+ "description": "Attach to both from->to and to->from edges (default true) — mirrors spellkave_link_places' own default. Both edges must already exist when true. Pass false to bind only the from->to direction."
36
+ },
37
+ "inherit_movement_default": {
38
+ "type": "boolean",
39
+ "description": "place_edges.inherit_movement_default (ADR-0101 D-1, schema default true) — REPLACES the flag on every already-existing edge this call targets (from->to, and to->from too when bidirectional). false means the edge owns its FULL mode set from its own place_edge_affordance rows alone (the fly-only-chasm idiom); true (or omitting this param) leaves/restores the resolved bundle/graph movement_default in play. Requires the edge to already be an authored [[place_edges]] row IN THIS WORKSPACE (not just live/target) — this is a whole-row re-author under the hood, so it needs the edge's other columns already in hand to avoid silently dropping them."
40
+ }
41
+ }
42
+ },
43
+ "executionMode": "sequential",
44
+ "promptSnippet": "Attach a place_edge_affordance to an existing edge (edge + template both FK-validated)",
45
+ "promptGuidelines": [
46
+ "from/to must already form an edge (author_place / link_places first) — this call never creates one.",
47
+ "bidirectional:true (default) attaches to both from->to and to->from; pass false for a one-way gate.",
48
+ "Idempotent: re-calling with the same (from, to, affordance_template_id, mode_id) replaces bindings_json in place.",
49
+ "mode_id groups AND-joined rows on one edge; a distinct mode_id on the same edge is an alternative (OR) the kernel picks the cheapest passing one from.",
50
+ "inherit_movement_default:false detaches the edge from the bundle/graph movement_default — pair it with an explicit mode_id-tagged row (e.g. a fly-only chasm)."
51
+ ],
52
+ "roles": [
53
+ "AUTHOR"
54
+ ],
55
+ "admission": {
56
+ "anyOf": [
57
+ {
58
+ "kind": "all",
59
+ "capabilities": [
60
+ "frontier.apply_manifest"
61
+ ]
62
+ },
63
+ {
64
+ "kind": "publisher"
65
+ }
66
+ ],
67
+ "ports": []
68
+ }
69
+ }
@@ -0,0 +1,123 @@
1
+ {
2
+ "name": "spellkave_can_i",
3
+ "label": "Can I",
4
+ "description": "Ask a running world whether one body may perform one action on one target now, and which admission check decides. Calls the world's probe. Does not evaluate a predicate, select a template, or perform the act. admitted and disclosed are reported side by side.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "action",
9
+ "as",
10
+ "target"
11
+ ],
12
+ "properties": {
13
+ "action": {
14
+ "type": "string",
15
+ "description": "The action id."
16
+ },
17
+ "as": {
18
+ "type": "string",
19
+ "description": "The body the question is about, as its authored entity key or its entity id."
20
+ },
21
+ "target": {
22
+ "anyOf": [
23
+ {
24
+ "type": "string",
25
+ "description": "An authored entity key, entity id, or world."
26
+ },
27
+ {
28
+ "type": "object",
29
+ "required": [
30
+ "kind"
31
+ ],
32
+ "properties": {
33
+ "kind": {
34
+ "anyOf": [
35
+ {
36
+ "type": "string",
37
+ "const": "entity"
38
+ },
39
+ {
40
+ "type": "string",
41
+ "const": "place_node"
42
+ },
43
+ {
44
+ "type": "string",
45
+ "const": "place_edge"
46
+ },
47
+ {
48
+ "type": "string",
49
+ "const": "location"
50
+ },
51
+ {
52
+ "type": "string",
53
+ "const": "world"
54
+ }
55
+ ]
56
+ },
57
+ "id": {
58
+ "type": "string"
59
+ }
60
+ }
61
+ }
62
+ ],
63
+ "description": "The target of the attempt, as an authored key, entity id, or target reference."
64
+ },
65
+ "args": {
66
+ "type": "object",
67
+ "patternProperties": {
68
+ "^.*$": {}
69
+ },
70
+ "description": "Literal manipulation arguments for the probe. Supply the same selected items and either fresh expected_participants or participant_context as the intended dispatch; can-i does not compose a participant context."
71
+ },
72
+ "expect": {
73
+ "anyOf": [
74
+ {
75
+ "type": "string",
76
+ "const": "admitted"
77
+ },
78
+ {
79
+ "type": "string",
80
+ "const": "refused"
81
+ }
82
+ ],
83
+ "description": "Closed-door expectation. A differing answer is a rejection."
84
+ }
85
+ }
86
+ },
87
+ "executionMode": "sequential",
88
+ "promptSnippet": "Ask the world whether this actor may perform this action, and which check decides",
89
+ "cli": {
90
+ "positionals": [
91
+ "action",
92
+ "as",
93
+ "target"
94
+ ],
95
+ "examples": [
96
+ {
97
+ "command": "sk can-i core/cast_mark --as core/hero --target core/mark",
98
+ "description": "ask whether the hero may cast mark"
99
+ },
100
+ {
101
+ "command": "sk can-i core/cast_mark --as core/bystander --target core/mark --expect refused",
102
+ "description": "closed-door: expect a refusal"
103
+ }
104
+ ]
105
+ },
106
+ "roles": [
107
+ "AUTHOR"
108
+ ],
109
+ "admission": {
110
+ "anyOf": [
111
+ {
112
+ "kind": "prefix",
113
+ "prefix": "frontier."
114
+ },
115
+ {
116
+ "kind": "publisher"
117
+ }
118
+ ],
119
+ "ports": [
120
+ "canI"
121
+ ]
122
+ }
123
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "spellkave_communicate",
3
+ "label": "Spellkave Communicate",
4
+ "description": "Attempt one authored speech act against one typed target. Use an observed participant or world target and an authored speech_act_id; the world authoritatively validates fresh state. An accepted utterance is echoed, may observe one bounded reply, and leaves later speech delivery in pushes. A prompt-bound answer (args_json.semantic_context), or an utterance on an action that carries an authored input form (a name or text field), also returns the next open prompt row as receipt.next_prompt, waited for inside the same reply window plus a short grace after the reply, so the next answer needs no manipulation_context read; next_prompt.status says whether a row opened, was already open, or timed out. An action's input.fields[].channel (from spellkave_manipulation_context) says how a field travels: \"utterance\" fields are read from what you say (plain text for one field, a JSON object keyed by field name for several); sending them in args_json is refused as utterance_required before dispatch.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "target_id",
9
+ "speech_act_id"
10
+ ],
11
+ "properties": {
12
+ "target_id": {
13
+ "type": "string",
14
+ "description": "Typed target reference to communicate with — use an observed participant or location reference (e.g. 'entity:42'). The world authoritatively validates the attempt; a bare numeric id is ambiguous and may be rejected or misresolved.",
15
+ "minLength": 1
16
+ },
17
+ "speech_act_id": {
18
+ "type": "string",
19
+ "description": "Speech-act identifier to perform.",
20
+ "minLength": 1
21
+ },
22
+ "utterance": {
23
+ "type": "string",
24
+ "description": "Optional words to say. On acceptance they are delivered to the world as dispatch_text, echoed in the receipt, and may open the bounded reply window."
25
+ },
26
+ "args_json": {
27
+ "type": "string",
28
+ "description": "Optional JSON argument blob, passed 1:1 to the world. Defaults to '{}'. For an authored session opener, participant_entity_ids is a nonempty list of up to 64 distinct runtime body ids; the session definition and grid remain authored, and older modules refuse this argument before dispatch. For an action that creates an entity, definition_ref names an allowed definition; the world checks the choice against the action's authored limits. A prompt-bound answer (a speech_act_id listed in a prompts[] row's responseActionIds in spellkave_manipulation_context, e.g. dm/dialog/choice/2) must carry that prompts[] row here as {\"semantic_context\": <row>}; without it the world rejects the answer with prompt_context_required."
29
+ }
30
+ }
31
+ },
32
+ "executionMode": "sequential",
33
+ "roles": [
34
+ "PLAYER"
35
+ ],
36
+ "admission": {
37
+ "anyOf": [
38
+ {
39
+ "kind": "character"
40
+ }
41
+ ],
42
+ "ports": []
43
+ }
44
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "spellkave_declare_inexpressible",
3
+ "label": "Declare Inexpressible",
4
+ "description": "Declare that no documented row kind / DSL form can express this intent within the validator's surface — a runtime/schema gap surfaced through authoring. A well-justified 'I cannot express this' is a SUCCESSFUL finding, not a failure.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "reason"
9
+ ],
10
+ "properties": {
11
+ "reason": {
12
+ "type": "string",
13
+ "description": "Precisely why no documented row kind / DSL form can express this intent within the validator's surface."
14
+ }
15
+ }
16
+ },
17
+ "executionMode": "sequential",
18
+ "roles": [
19
+ "AUTHOR"
20
+ ],
21
+ "admission": {
22
+ "anyOf": [
23
+ {
24
+ "kind": "prefix",
25
+ "prefix": "frontier."
26
+ },
27
+ {
28
+ "kind": "publisher"
29
+ }
30
+ ],
31
+ "ports": []
32
+ }
33
+ }
@@ -0,0 +1,133 @@
1
+ {
2
+ "name": "spellkave_define_action",
3
+ "label": "Define Action (verb)",
4
+ "description": "Author ONE action_definitions row (+ action_definition_tag satellites) in a single call, with NO actor grant (contrast spellkave_define_behavior, which always binds its generated action to a `grant_to` caster). `required_capability` must already resolve (workspace, live, or the active target) — this verb never auto-creates it (use spellkave_define_capability first). Self-scaffolds the [[bundles]] header if `bundle` has none yet. #1968 workspace idempotency: re-authoring the SAME bundle+id REPLACES the row + its tag satellite wholesale.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "id",
9
+ "required_capability",
10
+ "on_success"
11
+ ],
12
+ "properties": {
13
+ "bundle": {
14
+ "type": "string",
15
+ "description": "bundle_id stamped on the action_definitions row. Omit to fall back to `context.defaultBundle` (#1968 smart default)."
16
+ },
17
+ "id": {
18
+ "type": "string",
19
+ "description": "Local action_id stem; the full id is '<bundle>/<id>' (e.g. bundle='core', id='pickup' -> 'core/pickup')."
20
+ },
21
+ "required_capability": {
22
+ "type": "string",
23
+ "description": "action_definitions.required_capability — an ALREADY-authored capability_definitions id (workspace, live, or the active target, e.g. via spellkave_define_capability) this call never creates."
24
+ },
25
+ "on_success": {
26
+ "type": "string",
27
+ "description": "action_definitions.on_success — the consequence_templates id (e.g. via spellkave_define_consequence) applied when this action resolves successfully."
28
+ },
29
+ "on_failure": {
30
+ "type": "string",
31
+ "description": "action_definitions.on_failure — the consequence_templates id applied on failure. Omit for none (schema default: empty string)."
32
+ },
33
+ "display_name": {
34
+ "type": "string",
35
+ "description": "action_definitions.display_name. Omit to derive a title-cased `id` (#1968 smart default)."
36
+ },
37
+ "cost_time_ms": {
38
+ "type": "number",
39
+ "description": "action_definitions.cost_time_ms in fiction milliseconds. With spends_channel, omit or set 0 to spend one full channel pool; without a channel, 0 is unmetered."
40
+ },
41
+ "resolution_mode": {
42
+ "anyOf": [
43
+ {
44
+ "type": "string",
45
+ "const": "Deterministic"
46
+ },
47
+ {
48
+ "type": "string",
49
+ "const": "Stochastic"
50
+ },
51
+ {
52
+ "type": "string",
53
+ "const": "Deferred"
54
+ }
55
+ ],
56
+ "description": "action_definitions.resolution_mode. Omit for the schema default ('Deterministic')."
57
+ },
58
+ "resolution_predicate_source": {
59
+ "type": "string",
60
+ "description": "action_definitions.resolution_predicate_source — authored boolean DSL for Stochastic resolution. Omit for empty (Deterministic/Deferred)."
61
+ },
62
+ "resolution_scope": {
63
+ "type": "string",
64
+ "description": "action_definitions.resolution_scope — open authored id selecting scoped actor-side roll modifiers. Omit for no narrow scope."
65
+ },
66
+ "non_steering": {
67
+ "type": "boolean",
68
+ "description": "Explicit author assertion that target effects are cooperative/non-steering and need no target claim. Omit/false for conservative automatic classification; marking a hostile effect true is a content bug."
69
+ },
70
+ "session_def_id": {
71
+ "type": "string",
72
+ "description": "action_definitions.session_def_id. Omit for the schema default (empty string)."
73
+ },
74
+ "resumable": {
75
+ "type": "boolean",
76
+ "description": "action_definitions.resumable (#2022) — interrupted long-running progress is credited on the next matching promotion (same actor, action, target). Omit for the schema default (false)."
77
+ },
78
+ "self_eligible": {
79
+ "type": "boolean",
80
+ "description": "action_definitions.self_eligible. Omit for the schema default (false)."
81
+ },
82
+ "self_only": {
83
+ "type": "boolean",
84
+ "description": "action_definitions.self_only (ADR-0075). Omit for the schema default (false)."
85
+ },
86
+ "spends_channel": {
87
+ "type": "string",
88
+ "description": "action_definitions.spends_channel — an open FK into economy_channel_definitions.id (action-economy budgeting). Omit for unmetered (schema default: absent)."
89
+ },
90
+ "reaction_eligibility": {
91
+ "type": "string",
92
+ "description": "action_definitions.reaction_eligibility — a DSL predicate over a candidate reactor (§8.4 WHO axis). Omit for not-a-reaction-candidate (schema default: absent)."
93
+ },
94
+ "reaction_window_ms": {
95
+ "type": "number",
96
+ "description": "action_definitions.reaction_window_ms. Omit for an implementation default when `reaction_eligibility` is set."
97
+ },
98
+ "reaction_trigger": {
99
+ "type": "string",
100
+ "description": "action_definitions.reaction_trigger — a DSL predicate over the triggering event (§8.4 WHAT axis). Omit to provoke on every co-located trigger (schema default: absent)."
101
+ },
102
+ "description": {
103
+ "type": "string",
104
+ "description": "action_definitions.description (#1968 first-class column)."
105
+ },
106
+ "tags": {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "string"
110
+ },
111
+ "description": "One action_definition_tag row per tag."
112
+ }
113
+ }
114
+ },
115
+ "executionMode": "sequential",
116
+ "roles": [
117
+ "AUTHOR"
118
+ ],
119
+ "admission": {
120
+ "anyOf": [
121
+ {
122
+ "kind": "all",
123
+ "capabilities": [
124
+ "frontier.apply_manifest"
125
+ ]
126
+ },
127
+ {
128
+ "kind": "publisher"
129
+ }
130
+ ],
131
+ "ports": []
132
+ }
133
+ }