@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,93 @@
1
+ {
2
+ "name": "spellkave_define_resource",
3
+ "label": "Define Resource (verb PoC)",
4
+ "description": "PoC (#1968 FIX②): author ONE resource_definitions row (a spell-slot/HP/charge-style pool) + its resource_definition_tag satellites (#1968 verb-UX round 2) in a single call — the scaffolding step placement-tool `resources` seeds and spellkave_define_behavior's `effect.write.resource`/`cost.pool` both need to already resolve against (neither verb fabricates bounds for a pool it didn't create). Self-scaffolds the `[[bundles]]` header if `bundle` has none yet. #1968 workspace idempotency: re-authoring the SAME bundle+id REPLACES the row + EVERY tag satellite wholesale (fewer tags on a re-run means the stale ones are gone, not left behind).",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "id",
9
+ "min_value",
10
+ "max_value"
11
+ ],
12
+ "properties": {
13
+ "bundle": {
14
+ "type": "string",
15
+ "description": "bundle_id stamped on the generated row. Omit to fall back to `context.defaultBundle` (#1968 smart default)."
16
+ },
17
+ "id": {
18
+ "type": "string",
19
+ "description": "Local resource stem; the full resource_definition_id is '<bundle>/<id>' (e.g. bundle='aoe_blast', id='hp' -> 'aoe_blast/hp')."
20
+ },
21
+ "display_name": {
22
+ "type": "string",
23
+ "description": "resource_definitions.display_name. Omit to derive a title-cased `id` (#1968 smart default)."
24
+ },
25
+ "min_value": {
26
+ "type": "number",
27
+ "description": "resource_definitions.min_value."
28
+ },
29
+ "max_value": {
30
+ "type": "number",
31
+ "description": "resource_definitions.max_value."
32
+ },
33
+ "initial_value": {
34
+ "type": "number",
35
+ "description": "resource_definitions.initial_value — the object_state seed for an un-instantiated pool. Omit to fall back to min_value at runtime (a charges/gold-shaped pool); set e.g. to max_value for an HP-shaped pool that must start full."
36
+ },
37
+ "recovery_rule": {
38
+ "anyOf": [
39
+ {
40
+ "type": "string",
41
+ "const": "none"
42
+ },
43
+ {
44
+ "type": "string",
45
+ "const": "persistent"
46
+ },
47
+ {
48
+ "type": "string",
49
+ "const": "long_rest"
50
+ },
51
+ {
52
+ "type": "string",
53
+ "const": "short_rest_partial_long_rest_full"
54
+ }
55
+ ],
56
+ "description": "resource_definitions.recovery_rule (default 'none'). Closed PoC enum over the corpus's own observed vocabulary — the field itself is open-string at the schema level (ADR-0018)."
57
+ },
58
+ "value_kind": {
59
+ "type": "string",
60
+ "description": "resource_definitions.value_kind (default 'int' — the only value observed corpus-wide)."
61
+ },
62
+ "description": {
63
+ "type": "string",
64
+ "description": "Sets the generated resource_definitions row's own `description` column (#1968)."
65
+ },
66
+ "tags": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "string"
70
+ },
71
+ "description": "One resource_definition_tag row per tag (#1968 verb-UX round 2 — mirrors spellkave_define_entity_type/_condition/_niche's own `tags` fold instead of a separate spellkave_write_rows call)."
72
+ }
73
+ }
74
+ },
75
+ "executionMode": "sequential",
76
+ "roles": [
77
+ "AUTHOR"
78
+ ],
79
+ "admission": {
80
+ "anyOf": [
81
+ {
82
+ "kind": "all",
83
+ "capabilities": [
84
+ "frontier.apply_manifest"
85
+ ]
86
+ },
87
+ {
88
+ "kind": "publisher"
89
+ }
90
+ ],
91
+ "ports": []
92
+ }
93
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "spellkave_define_roll_table",
3
+ "label": "Define Roll Table (verb)",
4
+ "description": "Author ONE roll_tables row + its ordered roll_table_entries (+ roll_table_tag/roll_table_entry_tag satellites) in a single call. Self-scaffolds the [[bundles]] header if `bundle` has none yet. #1968 workspace idempotency: re-authoring the SAME bundle+id REPLACES the row + EVERY satellite wholesale (fewer/reordered entries on a re-run means the stale ones are gone, not left behind).",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "id",
9
+ "result_kind",
10
+ "entries"
11
+ ],
12
+ "properties": {
13
+ "bundle": {
14
+ "type": "string",
15
+ "description": "bundle_id stamped on every generated row (roll_table_entries excepted — that row kind carries no bundle_id column). Omit to fall back to `context.defaultBundle` (#1968 smart default)."
16
+ },
17
+ "id": {
18
+ "type": "string",
19
+ "description": "Local roll_table_id stem; the full id is '<bundle>/<id>' (e.g. bundle='core', id='d20' -> 'core/d20')."
20
+ },
21
+ "display_name": {
22
+ "type": "string",
23
+ "description": "roll_tables.display_name. Omit to derive a title-cased `id` (#1968 smart default)."
24
+ },
25
+ "result_kind": {
26
+ "type": "string",
27
+ "description": "roll_tables.result_kind — an open string (the corpus already uses more than one value, e.g. 'int', 'outcome_graph'); no closed PoC enum."
28
+ },
29
+ "description": {
30
+ "type": "string",
31
+ "description": "roll_tables.description (#1968 first-class column)."
32
+ },
33
+ "tags": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "string"
37
+ },
38
+ "description": "One roll_table_tag row per tag."
39
+ },
40
+ "entries": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "object",
44
+ "required": [
45
+ "result_ref"
46
+ ],
47
+ "properties": {
48
+ "result_ref": {
49
+ "type": "string",
50
+ "description": "roll_table_entries.result_ref — the drawn value/reference text for this entry."
51
+ },
52
+ "weight": {
53
+ "type": "number",
54
+ "description": "roll_table_entries.weight (default 1)."
55
+ },
56
+ "tags": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "string"
60
+ },
61
+ "description": "One roll_table_entry_tag row per tag, for THIS entry."
62
+ }
63
+ }
64
+ },
65
+ "description": "One row per entry, in AUTHORED order. `authored_order` (1-based) and `roll_table_entry_id` ('<roll_table_id>:<authored_order>') are BOTH derived from array position + the parent id, matching the corpus convention verbatim — never hand-specified."
66
+ }
67
+ }
68
+ },
69
+ "executionMode": "sequential",
70
+ "roles": [
71
+ "AUTHOR"
72
+ ],
73
+ "admission": {
74
+ "anyOf": [
75
+ {
76
+ "kind": "all",
77
+ "capabilities": [
78
+ "frontier.apply_manifest"
79
+ ]
80
+ },
81
+ {
82
+ "kind": "publisher"
83
+ }
84
+ ],
85
+ "ports": []
86
+ }
87
+ }
@@ -0,0 +1,115 @@
1
+ {
2
+ "name": "spellkave_define_session",
3
+ "label": "Define Session (verb)",
4
+ "description": "Author ONE session_definitions row in a single call — the first-class shape for #2022 sessions: a long-running/timed solo session (smart defaults: turn_rule 'Sequential', visibility 'Public'; set round_duration_ms=6000 + a termination_pred for tick-paced expiry) or a combat encounter (point turn_scheduler_id / combat_grid_blueprint_id at already-authored rows — this verb never creates or ref-checks them; the validator's cross-row pass judges FKs at validate/apply). Busy policy (busy_allow_pred / busy_break_pred) governs what a busy participant may attempt; both absent = full block. Self-scaffolds the [[bundles]] header if `bundle` has none yet. #1968 workspace idempotency: re-authoring the SAME bundle+id REPLACES the row wholesale.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "id"
9
+ ],
10
+ "properties": {
11
+ "bundle": {
12
+ "type": "string",
13
+ "description": "bundle_id stamped on the session_definitions row. Omit to fall back to `context.defaultBundle` (#1968 smart default)."
14
+ },
15
+ "id": {
16
+ "type": "string",
17
+ "description": "Local session_def_id stem; the full id is '<bundle>/<id>' (e.g. bundle='core', id='long_running_action' -> 'core/long_running_action')."
18
+ },
19
+ "turn_rule": {
20
+ "type": "string",
21
+ "description": "session_definitions.turn_rule. Omit for 'Sequential' (smart default — the only rule `r_session_open`/`r_advance_turn` schedule today; other values pass through verbatim)."
22
+ },
23
+ "round_duration_ms": {
24
+ "type": "number",
25
+ "description": "session_definitions.round_duration_ms (ADR-0037 D-5). Omit for the schema default (0 = unbound). Set 6000 for a default-tick-paced session whose termination_pred should be re-evaluated every world tick (the `core/long_running_action` shape)."
26
+ },
27
+ "termination_pred": {
28
+ "type": "string",
29
+ "description": "session_definitions.termination_pred — DSL predicate evaluated after every turn advance; on match the session terminates 'completed'. For a time-bound session use \"world.tick - session.stat('opened_at') >= session.stat('promoted_duration_ticks')\". Omit for none (schema default: empty)."
30
+ },
31
+ "winner_predicate": {
32
+ "type": "string",
33
+ "description": "session_definitions.winner_predicate. Omit for the schema default (empty)."
34
+ },
35
+ "on_terminate": {
36
+ "type": "string",
37
+ "description": "session_definitions.on_terminate — a consequence_templates id applied on 'completed' termination, before the originating action's own on_success (#2022 binding order). Omit for none (schema default: empty)."
38
+ },
39
+ "participants_pred": {
40
+ "type": "string",
41
+ "description": "session_definitions.participants_pred. Omit for the schema default (empty; currently not validated at open — architecture Phase E/F)."
42
+ },
43
+ "busy_allow_pred": {
44
+ "type": "string",
45
+ "description": "session_definitions.busy_allow_pred (#2022) — actions matching this DSL predicate (attempted action tags via target.has_tag(...), id via target.text('action_id')) stay ALLOWED while a participant is busy in this session. Omit for none (with busy_break_pred also absent: full block)."
46
+ },
47
+ "busy_break_pred": {
48
+ "type": "string",
49
+ "description": "session_definitions.busy_break_pred (#2022) — actions matching this predicate ABANDON the session (abort semantics: on_failure + progress record), then proceed. Omit for none."
50
+ },
51
+ "legal_moves_csv": {
52
+ "type": "string",
53
+ "description": "session_definitions.legal_moves_csv — comma-separated move-template ids `r_session_move` accepts. Omit for the schema default (empty)."
54
+ },
55
+ "initial_state": {
56
+ "type": "string",
57
+ "description": "session_definitions.initial_state (JSON). Omit for the schema default (empty)."
58
+ },
59
+ "visibility_policy": {
60
+ "type": "string",
61
+ "description": "session_definitions.visibility_policy. Omit for 'Public' (smart default)."
62
+ },
63
+ "stakes_required": {
64
+ "type": "string",
65
+ "description": "session_definitions.stakes_required. Omit for the schema default (empty)."
66
+ },
67
+ "turn_scheduler_id": {
68
+ "type": "string",
69
+ "description": "session_definitions.turn_scheduler_id — FK into an ALREADY-authored turn_scheduler row (ADR-0037 D-3/D-4, e.g. a RolledOrder d20 initiative). Omit for the world-active scheduler (schema default: empty)."
70
+ },
71
+ "auto_join_on_targeting": {
72
+ "type": "boolean",
73
+ "description": "session_definitions.auto_join_on_targeting (ADR-0037 D-7). Omit for the schema default (false)."
74
+ },
75
+ "combat_grid_blueprint_id": {
76
+ "type": "string",
77
+ "description": "session_definitions.combat_grid_blueprint_id — FK into an ALREADY-authored combat_grid_blueprint row (ADR-0045/0052 tactical grid). Omit for no automatic grid (schema default: empty)."
78
+ },
79
+ "grid_edge_affordance_template_id": {
80
+ "type": "string",
81
+ "description": "session_definitions.grid_edge_affordance_template_id. Omit for the schema default (empty)."
82
+ },
83
+ "grid_edge_affordance_bindings_json": {
84
+ "type": "string",
85
+ "description": "session_definitions.grid_edge_affordance_bindings_json. Omit for the schema default (empty)."
86
+ },
87
+ "turn_eligibility_pred": {
88
+ "type": "string",
89
+ "description": "session_definitions.turn_eligibility_pred (ADR-0143) — Bool DSL predicate evaluated per participant as `actor` when the turn advances; a false result skips that participant without removing it (it stays targetable and counted). Actor-subject reads only (MF-VAL-334), e.g. \"actor.status('<condition_id>') == false\" or a Bool macro. Omit to hand every participant the turn."
90
+ },
91
+ "description": {
92
+ "type": "string",
93
+ "description": "session_definitions.description (#1968 first-class column)."
94
+ }
95
+ }
96
+ },
97
+ "executionMode": "sequential",
98
+ "roles": [
99
+ "AUTHOR"
100
+ ],
101
+ "admission": {
102
+ "anyOf": [
103
+ {
104
+ "kind": "all",
105
+ "capabilities": [
106
+ "frontier.apply_manifest"
107
+ ]
108
+ },
109
+ {
110
+ "kind": "publisher"
111
+ }
112
+ ],
113
+ "ports": []
114
+ }
115
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "spellkave_define_trace_kind",
3
+ "label": "Define Trace Kind (verb)",
4
+ "description": "Author ONE trace_kind_definitions row (+ optional place_node_traces satellites placing that kind at already-authored place nodes as standing, ambient traces) in a single call. Self-scaffolds the [[bundles]] header if `bundle` has none yet. #1968 workspace idempotency: re-authoring the SAME bundle+id REPLACES the parent row + every `places[]` satellite wholesale (fewer places on a re-run means the stale ones are gone, not left behind). Both `node_id` and `trace_kind_id` are validated at commit (sk-9ll.8): an unknown place_node or an unregistered trace kind now fails the commit instead of silently defaulting.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "id"
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
+ "id": {
16
+ "type": "string",
17
+ "description": "Local trace-kind id stem; full id '<bundle>/<id>'."
18
+ },
19
+ "location_kinds": {
20
+ "type": "string",
21
+ "description": "trace_kind_definitions.location_kinds — comma-joined registered scopes this kind can attach to (e.g. \"place_node\", or \"place_node,location_definition\"). Default 'place_node' — the scope every corpus trace kind uses today, and the only scope `places[]` (below) can target."
22
+ },
23
+ "description": {
24
+ "type": "string",
25
+ "description": "trace_kind_definitions.description — human-readable, for authors and operator tooling. Default ''."
26
+ },
27
+ "schema_json": {
28
+ "type": "string",
29
+ "description": "trace_kind_definitions.schema_json — canonical JSON schema for the trace payload (flat object mapping a required key to its type name, '?' suffix marks it optional, e.g. '{\"text\":\"string\",\"addressee\":\"integer?\"}'). Default '' (no contract — most trace kinds carry no structured payload)."
30
+ },
31
+ "perceptible_for_ticks": {
32
+ "type": "number",
33
+ "description": "trace_kind_definitions.perceptible_for_ticks — how many ticks after inscription this kind stays admissible to an ARRIVING observer (ADR-0040 seam B). Omit for unbounded (a standing mark — footprints, a slime trail, a scorch); 0 = perceptible only at the moment of inscription (an EVENT, not a mark — bead sk-n16)."
34
+ },
35
+ "places": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object",
39
+ "required": [
40
+ "node"
41
+ ],
42
+ "properties": {
43
+ "node": {
44
+ "type": "string",
45
+ "description": "place_node_traces.node_id — an already-authored place_node id (workspace, live, or the active target) this call never creates. Rejected at commit if it does not resolve to a place_node (sk-9ll.8: no more silent fallback to bundle 'core')."
46
+ }
47
+ }
48
+ },
49
+ "description": "place_node_traces rows binding this trace kind to already-authored place nodes as a standing, ambient trace. Omit to author only the vocabulary."
50
+ }
51
+ }
52
+ },
53
+ "executionMode": "sequential",
54
+ "roles": [
55
+ "AUTHOR"
56
+ ],
57
+ "admission": {
58
+ "anyOf": [
59
+ {
60
+ "kind": "all",
61
+ "capabilities": [
62
+ "frontier.apply_manifest"
63
+ ]
64
+ },
65
+ {
66
+ "kind": "publisher"
67
+ }
68
+ ],
69
+ "ports": []
70
+ }
71
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "spellkave_describe",
3
+ "label": "Describe",
4
+ "description": "Read one admitted authored entity, its place or containment chain and admitted containment, ownership and equipment. Publisher closure and caller-scoped reads use separate sources. Scoped relationships require both endpoints; an outside endpoint is marked outside_scope without its identity or label. Answers carry source and coverage information.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "kind",
9
+ "key"
10
+ ],
11
+ "properties": {
12
+ "kind": {
13
+ "type": "string",
14
+ "description": "Must be entities."
15
+ },
16
+ "key": {
17
+ "type": "string",
18
+ "description": "Authored entity_key or numeric id of an authored entity."
19
+ },
20
+ "bundle": {
21
+ "type": "string",
22
+ "description": "bundle_id when the key is not unique."
23
+ },
24
+ "limit": {
25
+ "type": "integer",
26
+ "minimum": 0,
27
+ "description": "Belonging-list cap (default 50)."
28
+ }
29
+ }
30
+ },
31
+ "executionMode": "sequential",
32
+ "promptSnippet": "Describe one placed authored entity and what belongs to it",
33
+ "cli": {
34
+ "positionals": [
35
+ "kind",
36
+ "key"
37
+ ],
38
+ "examples": [
39
+ {
40
+ "command": "sk describe entities elven_mini/adventure/item/loft_chest_1",
41
+ "description": "describe the loft chest and its contents"
42
+ }
43
+ ]
44
+ },
45
+ "roles": [
46
+ "AUTHOR"
47
+ ],
48
+ "admission": {
49
+ "anyOf": [
50
+ {
51
+ "kind": "all",
52
+ "capabilities": [
53
+ "frontier.read_hidden"
54
+ ]
55
+ },
56
+ {
57
+ "kind": "all",
58
+ "capabilities": [
59
+ "frontier.read_internal"
60
+ ]
61
+ },
62
+ {
63
+ "kind": "publisher"
64
+ }
65
+ ],
66
+ "ports": [
67
+ "readInstance"
68
+ ],
69
+ "limitations": [
70
+ "Only scoped comparable instance kinds; explicit incomplete coverage."
71
+ ]
72
+ }
73
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "name": "spellkave_diff",
3
+ "label": "Diff Manifests",
4
+ "description": "Compare two manifest TOML files semantically: rows matched by natural/composite identity, line order ignored. only-left = gaps (in the reference, missing from the export); only-right = snapshot/play; changed = same key, field-level diffs. Offline. Default ignore list drops snapshot/enrichment noise (elevation_class, visibility, expires_at_tick, place_node_id on entities/locations, object_state.bundle_id, value_bool beside value_int/value_text). Repeatable --map-key from=to rewrites entity/actor key prefixes (and fields that carry them) before compare.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "left",
9
+ "right"
10
+ ],
11
+ "properties": {
12
+ "left": {
13
+ "type": "string",
14
+ "description": "Reference manifest TOML (only-left rows are gaps)."
15
+ },
16
+ "right": {
17
+ "type": "string",
18
+ "description": "Compared manifest TOML (only-right rows are snapshot/play)."
19
+ },
20
+ "ignore_fields": {
21
+ "type": "string",
22
+ "description": "Comma-separated extra field names to ignore on every kind (merged with the default snapshot/enrichment list)."
23
+ },
24
+ "kinds": {
25
+ "type": "string",
26
+ "description": "Comma-separated row kinds to compare (default: every array-valued kind)."
27
+ },
28
+ "only": {
29
+ "anyOf": [
30
+ {
31
+ "type": "string",
32
+ "const": "gaps"
33
+ },
34
+ {
35
+ "type": "string",
36
+ "const": "snapshot"
37
+ },
38
+ {
39
+ "type": "string",
40
+ "const": "changed"
41
+ }
42
+ ],
43
+ "description": "Restrict the report: gaps = only-left, snapshot = only-right, changed = same key with field diffs."
44
+ },
45
+ "map_key": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ },
50
+ "description": "Repeatable from=to key-prefix maps (sk-0m4.54). Rewrites entity/actor keys and every string field that is or embeds that key before compare, so an export keyed candidate_1 can match a reference keyed hero_1."
51
+ }
52
+ }
53
+ },
54
+ "executionMode": "parallel",
55
+ "promptSnippet": "Diff two manifest TOML files by row identity (order-insensitive)",
56
+ "promptGuidelines": [
57
+ "spellkave_diff: pass two TOML paths; left is the reference (gaps), right is the export (snapshot/play).",
58
+ "spellkave_diff: a non-empty report is information, not failure — do not retry or treat it as invalid.",
59
+ "spellkave_diff: --map-key from=to (repeatable) rewrites entity/actor keys and reference fields before compare."
60
+ ],
61
+ "cli": {
62
+ "positionals": [
63
+ "left",
64
+ "right"
65
+ ],
66
+ "examples": [
67
+ {
68
+ "command": "sk diff packages/spellkave-adventure-elven-mini/fixtures/reference/renn.toml packages/spellkave-srd-cc/saves/<name>/elven_mini-adventure-candidate_1.toml --map-key elven_mini/adventure/candidate_1=elven_mini/adventure/hero_1",
69
+ "description": "compare a created candidate export to Renn without key-prefix noise"
70
+ }
71
+ ]
72
+ },
73
+ "roles": [
74
+ "AUTHOR"
75
+ ],
76
+ "admission": {
77
+ "anyOf": [
78
+ {
79
+ "kind": "prefix",
80
+ "prefix": "frontier."
81
+ },
82
+ {
83
+ "kind": "publisher"
84
+ }
85
+ ],
86
+ "ports": [
87
+ "node"
88
+ ]
89
+ }
90
+ }
@@ -0,0 +1,104 @@
1
+ {
2
+ "name": "spellkave_docs",
3
+ "label": "Modding Docs",
4
+ "description": "Orient on the packaged authoring corpus (DOCS-ONLY). Index (`shape: \"index\"`): id/title/kind/summary/has_example. Query (`shape: \"hits\"`): ranked summary+excerpt only (not full bodies). Doc (`shape: \"doc\"`): one id — oversized docs default to outline (headings); pass `section` for one heading or `full` for the entire body. Narrow hits with `doc_paths`; `limit` default 3. Reads ONLY the packaged corpus.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "properties": {
8
+ "query": {
9
+ "type": "string",
10
+ "description": "Free-text question about how to author something, e.g. 'how do I express object decay over time'. Matched (keyword/heading) against the packaged authoring corpus. Omit to list the bounded corpus index instead of querying it."
11
+ },
12
+ "doc": {
13
+ "type": "string",
14
+ "description": "Exact corpus id (a `rel` from the index or a hit, e.g. 'dm-oversight') — returns that ONE doc whole: its prose body, the worked-example walkthrough when the id has both halves, and the complete example manifest TOML when `has_example` is true. This is how you get something copyable rather than only readable. Mutually exclusive with `query`; takes precedence if both are set."
15
+ },
16
+ "section": {
17
+ "type": "string",
18
+ "description": "Optional heading text or anchor within `doc` — returns only that section's markdown instead of the full body. Unknown section fails (does not silently return the whole doc). Ignored without `doc`."
19
+ },
20
+ "outline": {
21
+ "type": "boolean",
22
+ "description": "With `doc`, return title + summary + heading list only (no full body). Default for oversized docs when neither `section` nor `full` is set."
23
+ },
24
+ "full": {
25
+ "type": "boolean",
26
+ "description": "With `doc`, force the complete body even when oversized (tool-reference, long references). Prefer `section` instead. Default false."
27
+ },
28
+ "doc_paths": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "string"
32
+ },
33
+ "description": "Optional corpus-id filter (substring match) restricting the search to specific packaged docs. Only applies with `query` set; can only narrow the corpus, never widen it."
34
+ },
35
+ "limit": {
36
+ "type": "number",
37
+ "description": "Max number of doc slices to return when `query` is set (default 3)."
38
+ }
39
+ }
40
+ },
41
+ "executionMode": "parallel",
42
+ "promptSnippet": "Query the packaged Spellkave authoring corpus or list its bounded index",
43
+ "promptGuidelines": [
44
+ "Use spellkave_docs to pull the smallest relevant authoring-doc slice before guessing a manifest row or DSL form.",
45
+ "spellkave_docs: index = summaries; query hits = summary+short excerpt only — never assume hit.body is the full doc.",
46
+ "spellkave_docs: tool-reference defaults to a verb index; open one tool with sk docs tool-reference <name>. Other large docs default to outline + --section.",
47
+ "spellkave_docs: start at onramp for AUTHOR + PLAYER tools."
48
+ ],
49
+ "cli": {
50
+ "positionals": [
51
+ "doc",
52
+ "section"
53
+ ],
54
+ "examples": [
55
+ {
56
+ "command": "sk docs onramp",
57
+ "description": "open the start-here guide"
58
+ },
59
+ {
60
+ "command": "sk docs --query \"how do I author a spell?\"",
61
+ "description": "search by authoring question"
62
+ },
63
+ {
64
+ "command": "sk docs manifest-format",
65
+ "description": "open one exact reference"
66
+ },
67
+ {
68
+ "command": "sk docs --doc onramp --section \"AUTHOR path\"",
69
+ "description": "open one section of a doc"
70
+ },
71
+ {
72
+ "command": "sk docs --query has_item",
73
+ "description": "find a troubleshooting repair by symptom"
74
+ },
75
+ {
76
+ "command": "sk docs tool-reference",
77
+ "description": "AUTHOR verb index (name + label + summary)"
78
+ },
79
+ {
80
+ "command": "sk docs tool-reference spellkave_define_session",
81
+ "description": "one verb's full parameter reference"
82
+ },
83
+ {
84
+ "command": "sk docs --doc tool-reference --full",
85
+ "description": "force the complete tool-reference body"
86
+ }
87
+ ]
88
+ },
89
+ "roles": [
90
+ "AUTHOR"
91
+ ],
92
+ "admission": {
93
+ "anyOf": [
94
+ {
95
+ "kind": "prefix",
96
+ "prefix": "frontier."
97
+ },
98
+ {
99
+ "kind": "publisher"
100
+ }
101
+ ],
102
+ "ports": []
103
+ }
104
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "spellkave_end_turn",
3
+ "label": "Spellkave End Turn",
4
+ "description": "End the connected actor's current turn in the in-world turn/scene (not the MCP connection), without supplying a session id. The world resolves active participation and rejects no-session/off-turn calls (`no_session` still allows exploration; or it is not your turn). NOTE: advancing the turn does NOT refresh the new current actor's available actions — only turn-gated (action-economy) rows are recomputed on a turn boundary; other available actions stay whatever they were. Movement is unaffected either way: spellkave_scene's exits are always current, so they are never stale from a missed refresh. On dispatch, the result carries `receipt` (what the world did) and a sibling `observation` (a fixed 'Your turn ends.' line on success, or 'Nothing happens.' on rejection). On a successful advance, the receipt also carries the NEW in-world `session` block (`in_session`/`current_actor`/`my_turn`) — whose turn it is next in that scene, not the MCP connection.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "properties": {}
8
+ },
9
+ "executionMode": "sequential",
10
+ "roles": [
11
+ "PLAYER"
12
+ ],
13
+ "admission": {
14
+ "anyOf": [
15
+ {
16
+ "kind": "character"
17
+ }
18
+ ],
19
+ "ports": []
20
+ }
21
+ }