@interf/compiler 0.2.5 → 0.3.0

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 (240) hide show
  1. package/README.md +182 -183
  2. package/dist/commands/benchmark.d.ts.map +1 -1
  3. package/dist/commands/benchmark.js +60 -351
  4. package/dist/commands/benchmark.js.map +1 -1
  5. package/dist/commands/compile.d.ts.map +1 -1
  6. package/dist/commands/compile.js +43 -110
  7. package/dist/commands/compile.js.map +1 -1
  8. package/dist/commands/create-workflow-wizard.d.ts +4 -25
  9. package/dist/commands/create-workflow-wizard.d.ts.map +1 -1
  10. package/dist/commands/create-workflow-wizard.js +29 -214
  11. package/dist/commands/create-workflow-wizard.js.map +1 -1
  12. package/dist/commands/create.d.ts +2 -11
  13. package/dist/commands/create.d.ts.map +1 -1
  14. package/dist/commands/create.js +72 -461
  15. package/dist/commands/create.js.map +1 -1
  16. package/dist/commands/default.d.ts.map +1 -1
  17. package/dist/commands/default.js +16 -28
  18. package/dist/commands/default.js.map +1 -1
  19. package/dist/commands/init.d.ts.map +1 -1
  20. package/dist/commands/init.js +71 -340
  21. package/dist/commands/init.js.map +1 -1
  22. package/dist/commands/list.d.ts.map +1 -1
  23. package/dist/commands/list.js +12 -22
  24. package/dist/commands/list.js.map +1 -1
  25. package/dist/commands/reset.d.ts.map +1 -1
  26. package/dist/commands/reset.js +27 -124
  27. package/dist/commands/reset.js.map +1 -1
  28. package/dist/commands/source-config-wizard.d.ts +11 -11
  29. package/dist/commands/source-config-wizard.d.ts.map +1 -1
  30. package/dist/commands/source-config-wizard.js +68 -69
  31. package/dist/commands/source-config-wizard.js.map +1 -1
  32. package/dist/commands/status.d.ts.map +1 -1
  33. package/dist/commands/status.js +60 -56
  34. package/dist/commands/status.js.map +1 -1
  35. package/dist/commands/verify.d.ts.map +1 -1
  36. package/dist/commands/verify.js +59 -98
  37. package/dist/commands/verify.js.map +1 -1
  38. package/dist/index.d.ts +7 -7
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +4 -6
  41. package/dist/index.js.map +1 -1
  42. package/dist/lib/agent-constants.js +1 -1
  43. package/dist/lib/agent-constants.js.map +1 -1
  44. package/dist/lib/benchmark-execution.d.ts.map +1 -1
  45. package/dist/lib/benchmark-execution.js +7 -16
  46. package/dist/lib/benchmark-execution.js.map +1 -1
  47. package/dist/lib/benchmark-targets.d.ts +3 -4
  48. package/dist/lib/benchmark-targets.d.ts.map +1 -1
  49. package/dist/lib/benchmark-targets.js +9 -55
  50. package/dist/lib/benchmark-targets.js.map +1 -1
  51. package/dist/lib/benchmark-types.d.ts +2 -3
  52. package/dist/lib/benchmark-types.d.ts.map +1 -1
  53. package/dist/lib/benchmark.d.ts +1 -1
  54. package/dist/lib/benchmark.d.ts.map +1 -1
  55. package/dist/lib/benchmark.js +1 -1
  56. package/dist/lib/benchmark.js.map +1 -1
  57. package/dist/lib/config.d.ts +1 -2
  58. package/dist/lib/config.d.ts.map +1 -1
  59. package/dist/lib/config.js +2 -4
  60. package/dist/lib/config.js.map +1 -1
  61. package/dist/lib/discovery.d.ts +1 -1
  62. package/dist/lib/discovery.d.ts.map +1 -1
  63. package/dist/lib/discovery.js +7 -2
  64. package/dist/lib/discovery.js.map +1 -1
  65. package/dist/lib/eval-packs.d.ts +6 -52
  66. package/dist/lib/eval-packs.d.ts.map +1 -1
  67. package/dist/lib/eval-packs.js +11 -39
  68. package/dist/lib/eval-packs.js.map +1 -1
  69. package/dist/lib/interf-bootstrap.d.ts +3 -5
  70. package/dist/lib/interf-bootstrap.d.ts.map +1 -1
  71. package/dist/lib/interf-bootstrap.js +10 -57
  72. package/dist/lib/interf-bootstrap.js.map +1 -1
  73. package/dist/lib/interf-detect.d.ts +13 -11
  74. package/dist/lib/interf-detect.d.ts.map +1 -1
  75. package/dist/lib/interf-detect.js +59 -45
  76. package/dist/lib/interf-detect.js.map +1 -1
  77. package/dist/lib/interf-scaffold.d.ts +2 -5
  78. package/dist/lib/interf-scaffold.d.ts.map +1 -1
  79. package/dist/lib/interf-scaffold.js +98 -235
  80. package/dist/lib/interf-scaffold.js.map +1 -1
  81. package/dist/lib/interf-workflow-package.d.ts +1 -2
  82. package/dist/lib/interf-workflow-package.d.ts.map +1 -1
  83. package/dist/lib/interf-workflow-package.js +94 -90
  84. package/dist/lib/interf-workflow-package.js.map +1 -1
  85. package/dist/lib/interf.d.ts +4 -5
  86. package/dist/lib/interf.d.ts.map +1 -1
  87. package/dist/lib/interf.js +3 -6
  88. package/dist/lib/interf.js.map +1 -1
  89. package/dist/lib/local-workflows.d.ts +9 -8
  90. package/dist/lib/local-workflows.d.ts.map +1 -1
  91. package/dist/lib/local-workflows.js +42 -94
  92. package/dist/lib/local-workflows.js.map +1 -1
  93. package/dist/lib/obsidian.d.ts +1 -3
  94. package/dist/lib/obsidian.d.ts.map +1 -1
  95. package/dist/lib/obsidian.js +10 -81
  96. package/dist/lib/obsidian.js.map +1 -1
  97. package/dist/lib/registry.d.ts +6 -17
  98. package/dist/lib/registry.d.ts.map +1 -1
  99. package/dist/lib/registry.js +36 -50
  100. package/dist/lib/registry.js.map +1 -1
  101. package/dist/lib/runtime-contracts.d.ts +2 -3
  102. package/dist/lib/runtime-contracts.d.ts.map +1 -1
  103. package/dist/lib/runtime-contracts.js +10 -9
  104. package/dist/lib/runtime-contracts.js.map +1 -1
  105. package/dist/lib/runtime-reconcile.d.ts +2 -5
  106. package/dist/lib/runtime-reconcile.d.ts.map +1 -1
  107. package/dist/lib/runtime-reconcile.js +23 -176
  108. package/dist/lib/runtime-reconcile.js.map +1 -1
  109. package/dist/lib/runtime-runs.d.ts.map +1 -1
  110. package/dist/lib/runtime-runs.js +52 -57
  111. package/dist/lib/runtime-runs.js.map +1 -1
  112. package/dist/lib/runtime-types.d.ts +5 -6
  113. package/dist/lib/runtime-types.d.ts.map +1 -1
  114. package/dist/lib/runtime.d.ts +2 -2
  115. package/dist/lib/runtime.d.ts.map +1 -1
  116. package/dist/lib/runtime.js +1 -1
  117. package/dist/lib/runtime.js.map +1 -1
  118. package/dist/lib/schema.d.ts +53 -312
  119. package/dist/lib/schema.d.ts.map +1 -1
  120. package/dist/lib/schema.js +39 -206
  121. package/dist/lib/schema.js.map +1 -1
  122. package/dist/lib/source-config.d.ts +7 -7
  123. package/dist/lib/source-config.d.ts.map +1 -1
  124. package/dist/lib/source-config.js +55 -62
  125. package/dist/lib/source-config.js.map +1 -1
  126. package/dist/lib/state-artifacts.d.ts +5 -11
  127. package/dist/lib/state-artifacts.d.ts.map +1 -1
  128. package/dist/lib/state-artifacts.js +8 -18
  129. package/dist/lib/state-artifacts.js.map +1 -1
  130. package/dist/lib/state-health.d.ts +4 -8
  131. package/dist/lib/state-health.d.ts.map +1 -1
  132. package/dist/lib/state-health.js +27 -223
  133. package/dist/lib/state-health.js.map +1 -1
  134. package/dist/lib/state-io.d.ts +7 -12
  135. package/dist/lib/state-io.d.ts.map +1 -1
  136. package/dist/lib/state-io.js +26 -93
  137. package/dist/lib/state-io.js.map +1 -1
  138. package/dist/lib/state-view.d.ts +4 -6
  139. package/dist/lib/state-view.d.ts.map +1 -1
  140. package/dist/lib/state-view.js +62 -101
  141. package/dist/lib/state-view.js.map +1 -1
  142. package/dist/lib/state.d.ts +5 -5
  143. package/dist/lib/state.d.ts.map +1 -1
  144. package/dist/lib/state.js +4 -4
  145. package/dist/lib/state.js.map +1 -1
  146. package/dist/lib/summarize-plan.d.ts +2 -2
  147. package/dist/lib/summarize-plan.d.ts.map +1 -1
  148. package/dist/lib/summarize-plan.js +13 -13
  149. package/dist/lib/summarize-plan.js.map +1 -1
  150. package/dist/lib/{validate-kb.d.ts → validate-workspace.d.ts} +8 -8
  151. package/dist/lib/validate-workspace.d.ts.map +1 -0
  152. package/dist/lib/{validate-kb.js → validate-workspace.js} +44 -46
  153. package/dist/lib/validate-workspace.js.map +1 -0
  154. package/dist/lib/validate.d.ts +5 -7
  155. package/dist/lib/validate.d.ts.map +1 -1
  156. package/dist/lib/validate.js +6 -19
  157. package/dist/lib/validate.js.map +1 -1
  158. package/dist/lib/workflow-definitions.d.ts +14 -50
  159. package/dist/lib/workflow-definitions.d.ts.map +1 -1
  160. package/dist/lib/workflow-definitions.js +74 -349
  161. package/dist/lib/workflow-definitions.js.map +1 -1
  162. package/dist/lib/workflow-helpers.d.ts +3 -4
  163. package/dist/lib/workflow-helpers.d.ts.map +1 -1
  164. package/dist/lib/workflow-helpers.js +15 -49
  165. package/dist/lib/workflow-helpers.js.map +1 -1
  166. package/dist/lib/workflow-stage-runner.d.ts +1 -2
  167. package/dist/lib/workflow-stage-runner.d.ts.map +1 -1
  168. package/dist/lib/workflow-stage-runner.js +4 -6
  169. package/dist/lib/workflow-stage-runner.js.map +1 -1
  170. package/dist/lib/workflow-starter-docs.d.ts +3 -5
  171. package/dist/lib/workflow-starter-docs.d.ts.map +1 -1
  172. package/dist/lib/workflow-starter-docs.js +2 -17
  173. package/dist/lib/workflow-starter-docs.js.map +1 -1
  174. package/dist/lib/workflows.d.ts +9 -14
  175. package/dist/lib/workflows.d.ts.map +1 -1
  176. package/dist/lib/workflows.js +13 -30
  177. package/dist/lib/workflows.js.map +1 -1
  178. package/dist/lib/workspace-compile.d.ts +50 -0
  179. package/dist/lib/workspace-compile.d.ts.map +1 -0
  180. package/dist/lib/{workflows-kb.js → workspace-compile.js} +81 -89
  181. package/dist/lib/workspace-compile.js.map +1 -0
  182. package/package.json +9 -9
  183. package/skills/benchmark/SKILL.md +16 -24
  184. package/skills/workflow/create/SKILL.md +7 -14
  185. package/templates/workspace/README.md +23 -0
  186. package/templates/workspace/interfignore +2 -0
  187. package/dist/lib/bundled-templates.d.ts +0 -5
  188. package/dist/lib/bundled-templates.d.ts.map +0 -1
  189. package/dist/lib/bundled-templates.js +0 -23
  190. package/dist/lib/bundled-templates.js.map +0 -1
  191. package/dist/lib/interf-compile-plan.d.ts +0 -12
  192. package/dist/lib/interf-compile-plan.d.ts.map +0 -1
  193. package/dist/lib/interf-compile-plan.js +0 -143
  194. package/dist/lib/interf-compile-plan.js.map +0 -1
  195. package/dist/lib/validate-interface.d.ts +0 -79
  196. package/dist/lib/validate-interface.d.ts.map +0 -1
  197. package/dist/lib/validate-interface.js +0 -535
  198. package/dist/lib/validate-interface.js.map +0 -1
  199. package/dist/lib/validate-kb.d.ts.map +0 -1
  200. package/dist/lib/validate-kb.js.map +0 -1
  201. package/dist/lib/workflows-interface-contracts.d.ts +0 -24
  202. package/dist/lib/workflows-interface-contracts.d.ts.map +0 -1
  203. package/dist/lib/workflows-interface-contracts.js +0 -304
  204. package/dist/lib/workflows-interface-contracts.js.map +0 -1
  205. package/dist/lib/workflows-interface.d.ts +0 -72
  206. package/dist/lib/workflows-interface.d.ts.map +0 -1
  207. package/dist/lib/workflows-interface.js +0 -377
  208. package/dist/lib/workflows-interface.js.map +0 -1
  209. package/dist/lib/workflows-kb.d.ts +0 -50
  210. package/dist/lib/workflows-kb.d.ts.map +0 -1
  211. package/dist/lib/workflows-kb.js.map +0 -1
  212. package/skills/interface/analyze/SKILL.md +0 -191
  213. package/skills/interface/compile/SKILL.md +0 -152
  214. package/skills/interface/compile/references/output-format.md +0 -48
  215. package/skills/interface/create/SKILL.md +0 -87
  216. package/skills/interface/create/references/compile-plan-format.md +0 -109
  217. package/skills/interface/create/references/workflows.md +0 -35
  218. package/skills/interface/query/SKILL.md +0 -48
  219. package/skills/interface/retrieve/SKILL.md +0 -133
  220. package/skills/knowledge-base/compile/SKILL.md +0 -196
  221. package/skills/knowledge-base/compile/references/output-format.md +0 -48
  222. package/skills/knowledge-base/compile/references/stage-claims.md +0 -60
  223. package/skills/knowledge-base/compile/references/stage-entities.md +0 -46
  224. package/skills/knowledge-base/query/SKILL.md +0 -45
  225. package/skills/knowledge-base/summarize/SKILL.md +0 -152
  226. package/templates/interface/README.md +0 -159
  227. package/templates/interface/interfaces.md +0 -102
  228. package/templates/knowledge-base/README.md +0 -137
  229. package/templates/knowledge-base/interfignore +0 -19
  230. package/templates/knowledge-base/registry.md +0 -118
  231. package/templates/workflow-package/README.md +0 -16
  232. package/templates/workflow-package/create/SKILL.md +0 -8
  233. package/templates/workflow-package/interface-query/SKILL.md +0 -29
  234. package/templates/workflow-package/interface-stage/SKILL.md +0 -13
  235. package/templates/workflow-package/knowledge-base-query/SKILL.md +0 -36
  236. package/templates/workflow-package/knowledge-base-stage/SKILL.md +0 -13
  237. package/templates/workflow-starters/interface/interf/README.md +0 -13
  238. package/templates/workflow-starters/interface/interf/create/SKILL.md +0 -15
  239. package/templates/workflow-starters/knowledge-base/interf/README.md +0 -13
  240. package/templates/workflow-starters/knowledge-base/karpathy/README.md +0 -13
@@ -1,118 +0,0 @@
1
- # Interf Registry
2
-
3
- The registry at `~/.interf/registry.json` tracks all knowledge bases and interfaces on this machine. The CLI and skills read it to list knowledge bases, show status, and navigate between them.
4
-
5
- ## Format
6
-
7
- ```json
8
- {
9
- "version": 5,
10
- "knowledgeBases": [
11
- {
12
- "name": "market-intel",
13
- "path": "/path/to/market-intel",
14
- "workflow": "interf",
15
- "created": "2026-03-30T14:00:00Z"
16
- },
17
- {
18
- "name": "ops",
19
- "path": "/path/to/ops",
20
- "workflow": "karpathy",
21
- "created": "2026-03-30T15:00:00Z"
22
- }
23
- ],
24
- "interfaces": [
25
- {
26
- "name": "q2-launch-brief",
27
- "path": "/path/to/q2-launch-brief",
28
- "knowledgeBase": "ops",
29
- "knowledgeBasePath": "/path/to/ops",
30
- "workflow": "interf",
31
- "created": "2026-03-30T16:00:00Z"
32
- },
33
- {
34
- "name": "pricing-gap-review",
35
- "path": "/path/to/pricing-gap-review",
36
- "knowledgeBase": "market-intel",
37
- "knowledgeBasePath": "/path/to/market-intel",
38
- "workflow": "interf",
39
- "created": "2026-03-30T16:30:00Z"
40
- }
41
- ]
42
- }
43
- ```
44
-
45
- ## Fields
46
-
47
- **Knowledge-base entry:**
48
- - `name` — short identifier
49
- - `path` — absolute path to knowledge-base root
50
- - `workflow` — selected methodology
51
- - `created` — ISO timestamp
52
-
53
- **Interface entry:**
54
- - `name` — short identifier
55
- - `path` — absolute path to interface root
56
- - `knowledgeBase` — name of the connected knowledge base
57
- - `knowledgeBasePath` — absolute path to the connected knowledge base
58
- - `workflow` — selected methodology (`interf` for the shipped default, or a local workflow id)
59
- - `created` — ISO timestamp
60
-
61
- ## When it's updated
62
-
63
- | Action | Registry change |
64
- |---|---|
65
- | `interf create knowledge-base` | Adds a knowledge-base entry |
66
- | `interf create interface` | Adds an interface entry |
67
- | `interf compile` | Does NOT update registry |
68
- | manual cleanup / future remove command | Removes entry (does not delete files) |
69
-
70
- The registry stores static info only: names, paths, connections. It never stores processing status.
71
-
72
- ## How status is computed (live, not stored)
73
-
74
- Processing status is always computed on demand from the filesystem:
75
-
76
- ```
77
- For each knowledge base:
78
- source_count = discover source files from source.path
79
- summary_count = count files in {path}/summaries/
80
- pending = source_count - summary_count
81
- status = pending > 0 ? "pending" : "compiled"
82
-
83
- For each interface:
84
- state = read {path}/.interf/state.json
85
- knowledge_base_summary = count files in {knowledgeBasePath}/summaries/
86
- stale = knowledge_base_summary > state.knowledge_base_summary_count_at_last_compile
87
- status = stale ? "stale" : "compiled"
88
- ```
89
-
90
- This avoids cached status going stale. Always compute fresh.
91
-
92
- ## CLI output
93
-
94
- ```
95
- $ interf list
96
-
97
- Knowledge Bases
98
- ─────────────────────────────────
99
- market-intel 1,240 files compiled
100
- ops 892 files 3 pending
101
-
102
- Interfaces
103
- ─────────────────────────────────
104
- q2-launch-brief → ops compiled
105
- pricing-gap-review → market-intel stale (12 new)
106
- ```
107
-
108
- ## Creation
109
-
110
- `interf create knowledge-base` or `interf create interface` creates `~/.interf/` and `registry.json` if they don't exist yet. The initial registry:
111
-
112
- ```json
113
- {
114
- "version": 5,
115
- "knowledgeBases": [],
116
- "interfaces": []
117
- }
118
- ```
@@ -1,16 +0,0 @@
1
- # {{workflow_label}}
2
-
3
- This is the local {{target_type}} workflow package. Interf uses it when you run `interf compile`.
4
-
5
- - `workflow.json` defines the stage graph and contract kinds for this workspace.
6
- - `create/` explains what the scaffold/setup step produces.
7
- - `compile/stages/` contains one stage folder per compile stage.
8
- - `use/query/` explains how to use the compiled knowledge base or interface in manual agent sessions.
9
-
10
- Workflow id: `{{workflow_id}}`
11
- Method: {{workflow_hint}}
12
-
13
- Compile stages:
14
- {{stage_lines}}
15
-
16
- Interf CLI remains the referee for contracts, proofs, validators, and runtime state under `.interf/`.
@@ -1,8 +0,0 @@
1
- # Create
2
-
3
- This doc explains what Interf scaffolded for the selected {{target_type}} workflow.
4
-
5
- - selected workflow: `{{workflow_id}}`
6
- - method: {{workflow_hint}}
7
- - the CLI owns create-time validation, folder creation, config writing, and bootstrap docs
8
- - edit this workflow package after scaffold if you want to refine how later compile/query behavior works
@@ -1,29 +0,0 @@
1
- # Interface Query
2
-
3
- {{top_preflight}}
4
- Use this skill when answering questions from inside this interface in a manual agent session.
5
- AGENTS.md should route manual questions here before an agent starts browsing notes on its own.
6
- Treat this as the interface-local query layer, not a replacement for the parent knowledge-base query loop.
7
- This is a workspace-local query doc, not a required globally installed slash-command skill.
8
-
9
- Default loop:
10
- - start with `AGENTS.md`, then `home.md`
11
- - browse local `knowledge/`, `briefs/`, and local `summaries/` first
12
- - answer direct target questions from the hero brief before widening scope
13
- - follow wikilinks and backlinks outward before treating one note as complete
14
- - if local interface artifacts are insufficient, load and follow the parent knowledge-base query guidance at `../../workflow/use/query/SKILL.md` before going raw
15
- - use parent knowledge-base artifacts in this order: `../../home.md`, then `../../knowledge/`, then `../../summaries/`
16
- - when a caller asks for a trace, audit log, or `artifacts_consulted` list, record local `workflow/use/query/SKILL.md` after you inspect it
17
- - when you climb to the parent knowledge-base query loop, record `../../workflow/use/query/SKILL.md` after you inspect it
18
-
19
- First-reply rule:
20
- {{first_reply_rule}}
21
-
22
- Task bias:
23
- - reuse the exact metric and period words from the question
24
- - if the target ledger marks a value approximate, say the literal word `approximate`
25
- - if the target ledger marks a value chart-derived or table-derived, say that literally
26
- - prefer the target ledger's `bin_choice` when the question is bin-shaped, and the `value_display` when the question asks for the approximate reading itself
27
- - do not add raw-access commentary unless the question asks about raw access
28
-
29
- Keep the interface-specific routing here. Keep raw-source, PDF/chart, and general fallback policy in `../../workflow/use/query/SKILL.md`.
@@ -1,13 +0,0 @@
1
- ---
2
- {
3
- "mode": "extend"
4
- }
5
- ---
6
- # {{stage_label}}
7
-
8
- This workflow stage customizes the built-in {{contract_type}} contract for the `{{workflow_id}}` interface workflow.
9
-
10
- - purpose: {{stage_description}}
11
- {{stage_notes}}
12
-
13
- Interf still enforces the same contract reads, writes, coverage proof rules, validators, and runtime reconciliation for this stage.
@@ -1,36 +0,0 @@
1
- # Knowledge Base Query
2
-
3
- {{top_preflight}}
4
- Use this skill when answering questions from inside this knowledge base in a manual agent session.
5
- AGENTS.md should route manual questions here before an agent starts browsing notes on its own.
6
- This is the canonical parent-knowledge-base query loop that attached interfaces can inherit before raw fallback.
7
- This is a workspace-local query doc, not a required globally installed slash-command skill.
8
-
9
- Default loop:
10
- - start with `AGENTS.md`, then `home.md`
11
- - browse `knowledge/` indexes, entities, and claims first
12
- - follow wikilinks and backlinks outward before treating one note as complete
13
- - use `summaries/` for deeper evidence
14
- - use raw source files only when needed for verification, direct quotes, ambiguity, or missing context
15
- - when a caller asks for a trace, audit log, or `artifacts_consulted` list, record `workflow/use/query/SKILL.md` after you inspect it
16
-
17
- Raw-source gate:
18
- - inspect `.interf/source-access.json` before depending on raw files
19
- - actually open and inspect at least one `suggested_checks` path before claiming raw-file verification; a plain existence check is not enough
20
- - if raw files are not reachable, say the answer is based on compiled knowledge-base artifacts only
21
- - when the question depends on exact figures, direct quotes, chart values, table values, or image-derived evidence, raw inspection is required before answering confidently
22
-
23
- PDF / chart rule:
24
- - if the source is a PDF, deck, or report and the needed evidence may live in charts, tables, or figures, do not assume the default text layer or existing notes captured everything
25
- - if summaries do not preserve the needed numeric detail, inspect the raw source and say whether the value was text-derived, table-derived, or chart-derived
26
- - opening the PDF with `Read` is not enough for an exact-value chart question; take a machine-readable extraction path before answering
27
- - choose that extraction path from the local environment you actually have instead of assuming specific tools
28
- - verify the chosen local extraction path is actually available before depending on it; if it is missing, switch once to another available local path
29
- - if the first local extraction method misses the number, attempt another local recovery path before settling for a visual estimate
30
- - if the chart does not expose exact numbers as text, say that clearly instead of pretending the compiled notes were sufficient
31
- - if you can only estimate from the chart, label the answer `approximate` and keep the precision gap explicit
32
-
33
- First-reply rule:
34
- {{first_reply_rule}}
35
-
36
- You can edit this file to bias manual question-answering behavior without changing workflow stage logic.
@@ -1,13 +0,0 @@
1
- ---
2
- {
3
- "mode": "extend"
4
- }
5
- ---
6
- # {{stage_label}}
7
-
8
- This workflow stage customizes the built-in {{contract_type}} contract for the `{{workflow_id}}` knowledge-base workflow.
9
-
10
- - purpose: {{stage_description}}
11
- {{stage_notes}}
12
-
13
- Interf still enforces the same contract reads, writes, proof rules, validators, and runtime reconciliation for this stage.
@@ -1,13 +0,0 @@
1
- ---
2
- {
3
- "mode": "extend"
4
- }
5
- ---
6
- # Interf Interface Workflow
7
-
8
- Bias this interface toward the concrete user task, durable evidence routing, and answer-ready outputs.
9
-
10
- - turn the requested task into a bounded target set before broadening scope
11
- - preserve named entities, periods, metrics, units, and comparators instead of collapsing them into generic prose
12
- - when exact values matter, keep text-derived, table-derived, and chart-derived evidence distinct
13
- - prefer one concise hero brief and the smallest supporting note set that lets weaker agents answer reliably
@@ -1,15 +0,0 @@
1
- ---
2
- {
3
- "mode": "extend"
4
- }
5
- ---
6
- # Interf Create Bias
7
-
8
- Turn the user's requested task into a concrete compile plan the later stages can actually execute.
9
-
10
- - treat `compile-plan.md` as the primary durable output of create; leave scaffolded `AGENTS.md` alone unless it is materially wrong
11
- - preserve the exact requested use-case line in `compile-plan.md` instead of leaving the generic workflow placeholder
12
- - carry named markets, years, metrics, units, comparators, and source families verbatim into the target ledger
13
- - if the task depends on exact values from reports, PDFs, charts, or tables, require a concrete local extraction path instead of vague raw-reading language
14
- - keep the interface bounded; do not widen into a general report summary unless a comparator or calibration anchor is genuinely needed
15
- - for automated runs, emit these canonical status markers verbatim and on their own lines: `STATUS: loaded interface creation contract.`, `STATUS: analyzed knowledge-base.`, `STATUS: wrote compile plan.`
@@ -1,13 +0,0 @@
1
- ---
2
- {
3
- "mode": "extend"
4
- }
5
- ---
6
- # Interf Knowledge Base Workflow
7
-
8
- Bias this knowledge base toward source-grounded summaries, explicit evidence tiers, and retrieval-ready compile outputs.
9
-
10
- - keep summary titles and abstracts conservative and source-grounded
11
- - preserve evidence tiers, truth modes, and draft-vs-final distinctions
12
- - compile durable entities, claims, indexes, and navigation that make later interfaces easier to retrieve from
13
- - prefer structures that help agents prove what they scanned, selected, and excluded before synthesis
@@ -1,13 +0,0 @@
1
- ---
2
- {
3
- "mode": "extend"
4
- }
5
- ---
6
- # Karpathy Knowledge Base Workflow
7
-
8
- Bias this knowledge base toward the source folder -> summaries -> compiled markdown knowledge-base loop.
9
-
10
- - keep per-source summaries legible and source-grounded
11
- - prefer markdown-native knowledge artifacts an agent can browse and file back into the base
12
- - preserve backlinks and local browseability across the knowledge layer
13
- - treat the compiled base as a maintained working surface for later questions, not just a one-shot export