@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.
- package/README.md +182 -183
- package/dist/commands/benchmark.d.ts.map +1 -1
- package/dist/commands/benchmark.js +60 -351
- package/dist/commands/benchmark.js.map +1 -1
- package/dist/commands/compile.d.ts.map +1 -1
- package/dist/commands/compile.js +43 -110
- package/dist/commands/compile.js.map +1 -1
- package/dist/commands/create-workflow-wizard.d.ts +4 -25
- package/dist/commands/create-workflow-wizard.d.ts.map +1 -1
- package/dist/commands/create-workflow-wizard.js +29 -214
- package/dist/commands/create-workflow-wizard.js.map +1 -1
- package/dist/commands/create.d.ts +2 -11
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +72 -461
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/default.d.ts.map +1 -1
- package/dist/commands/default.js +16 -28
- package/dist/commands/default.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +71 -340
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +12 -22
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/reset.d.ts.map +1 -1
- package/dist/commands/reset.js +27 -124
- package/dist/commands/reset.js.map +1 -1
- package/dist/commands/source-config-wizard.d.ts +11 -11
- package/dist/commands/source-config-wizard.d.ts.map +1 -1
- package/dist/commands/source-config-wizard.js +68 -69
- package/dist/commands/source-config-wizard.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +60 -56
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +59 -98
- package/dist/commands/verify.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-constants.js +1 -1
- package/dist/lib/agent-constants.js.map +1 -1
- package/dist/lib/benchmark-execution.d.ts.map +1 -1
- package/dist/lib/benchmark-execution.js +7 -16
- package/dist/lib/benchmark-execution.js.map +1 -1
- package/dist/lib/benchmark-targets.d.ts +3 -4
- package/dist/lib/benchmark-targets.d.ts.map +1 -1
- package/dist/lib/benchmark-targets.js +9 -55
- package/dist/lib/benchmark-targets.js.map +1 -1
- package/dist/lib/benchmark-types.d.ts +2 -3
- package/dist/lib/benchmark-types.d.ts.map +1 -1
- package/dist/lib/benchmark.d.ts +1 -1
- package/dist/lib/benchmark.d.ts.map +1 -1
- package/dist/lib/benchmark.js +1 -1
- package/dist/lib/benchmark.js.map +1 -1
- package/dist/lib/config.d.ts +1 -2
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +2 -4
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/discovery.d.ts +1 -1
- package/dist/lib/discovery.d.ts.map +1 -1
- package/dist/lib/discovery.js +7 -2
- package/dist/lib/discovery.js.map +1 -1
- package/dist/lib/eval-packs.d.ts +6 -52
- package/dist/lib/eval-packs.d.ts.map +1 -1
- package/dist/lib/eval-packs.js +11 -39
- package/dist/lib/eval-packs.js.map +1 -1
- package/dist/lib/interf-bootstrap.d.ts +3 -5
- package/dist/lib/interf-bootstrap.d.ts.map +1 -1
- package/dist/lib/interf-bootstrap.js +10 -57
- package/dist/lib/interf-bootstrap.js.map +1 -1
- package/dist/lib/interf-detect.d.ts +13 -11
- package/dist/lib/interf-detect.d.ts.map +1 -1
- package/dist/lib/interf-detect.js +59 -45
- package/dist/lib/interf-detect.js.map +1 -1
- package/dist/lib/interf-scaffold.d.ts +2 -5
- package/dist/lib/interf-scaffold.d.ts.map +1 -1
- package/dist/lib/interf-scaffold.js +98 -235
- package/dist/lib/interf-scaffold.js.map +1 -1
- package/dist/lib/interf-workflow-package.d.ts +1 -2
- package/dist/lib/interf-workflow-package.d.ts.map +1 -1
- package/dist/lib/interf-workflow-package.js +94 -90
- package/dist/lib/interf-workflow-package.js.map +1 -1
- package/dist/lib/interf.d.ts +4 -5
- package/dist/lib/interf.d.ts.map +1 -1
- package/dist/lib/interf.js +3 -6
- package/dist/lib/interf.js.map +1 -1
- package/dist/lib/local-workflows.d.ts +9 -8
- package/dist/lib/local-workflows.d.ts.map +1 -1
- package/dist/lib/local-workflows.js +42 -94
- package/dist/lib/local-workflows.js.map +1 -1
- package/dist/lib/obsidian.d.ts +1 -3
- package/dist/lib/obsidian.d.ts.map +1 -1
- package/dist/lib/obsidian.js +10 -81
- package/dist/lib/obsidian.js.map +1 -1
- package/dist/lib/registry.d.ts +6 -17
- package/dist/lib/registry.d.ts.map +1 -1
- package/dist/lib/registry.js +36 -50
- package/dist/lib/registry.js.map +1 -1
- package/dist/lib/runtime-contracts.d.ts +2 -3
- package/dist/lib/runtime-contracts.d.ts.map +1 -1
- package/dist/lib/runtime-contracts.js +10 -9
- package/dist/lib/runtime-contracts.js.map +1 -1
- package/dist/lib/runtime-reconcile.d.ts +2 -5
- package/dist/lib/runtime-reconcile.d.ts.map +1 -1
- package/dist/lib/runtime-reconcile.js +23 -176
- package/dist/lib/runtime-reconcile.js.map +1 -1
- package/dist/lib/runtime-runs.d.ts.map +1 -1
- package/dist/lib/runtime-runs.js +52 -57
- package/dist/lib/runtime-runs.js.map +1 -1
- package/dist/lib/runtime-types.d.ts +5 -6
- package/dist/lib/runtime-types.d.ts.map +1 -1
- package/dist/lib/runtime.d.ts +2 -2
- package/dist/lib/runtime.d.ts.map +1 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/runtime.js.map +1 -1
- package/dist/lib/schema.d.ts +53 -312
- package/dist/lib/schema.d.ts.map +1 -1
- package/dist/lib/schema.js +39 -206
- package/dist/lib/schema.js.map +1 -1
- package/dist/lib/source-config.d.ts +7 -7
- package/dist/lib/source-config.d.ts.map +1 -1
- package/dist/lib/source-config.js +55 -62
- package/dist/lib/source-config.js.map +1 -1
- package/dist/lib/state-artifacts.d.ts +5 -11
- package/dist/lib/state-artifacts.d.ts.map +1 -1
- package/dist/lib/state-artifacts.js +8 -18
- package/dist/lib/state-artifacts.js.map +1 -1
- package/dist/lib/state-health.d.ts +4 -8
- package/dist/lib/state-health.d.ts.map +1 -1
- package/dist/lib/state-health.js +27 -223
- package/dist/lib/state-health.js.map +1 -1
- package/dist/lib/state-io.d.ts +7 -12
- package/dist/lib/state-io.d.ts.map +1 -1
- package/dist/lib/state-io.js +26 -93
- package/dist/lib/state-io.js.map +1 -1
- package/dist/lib/state-view.d.ts +4 -6
- package/dist/lib/state-view.d.ts.map +1 -1
- package/dist/lib/state-view.js +62 -101
- package/dist/lib/state-view.js.map +1 -1
- package/dist/lib/state.d.ts +5 -5
- package/dist/lib/state.d.ts.map +1 -1
- package/dist/lib/state.js +4 -4
- package/dist/lib/state.js.map +1 -1
- package/dist/lib/summarize-plan.d.ts +2 -2
- package/dist/lib/summarize-plan.d.ts.map +1 -1
- package/dist/lib/summarize-plan.js +13 -13
- package/dist/lib/summarize-plan.js.map +1 -1
- package/dist/lib/{validate-kb.d.ts → validate-workspace.d.ts} +8 -8
- package/dist/lib/validate-workspace.d.ts.map +1 -0
- package/dist/lib/{validate-kb.js → validate-workspace.js} +44 -46
- package/dist/lib/validate-workspace.js.map +1 -0
- package/dist/lib/validate.d.ts +5 -7
- package/dist/lib/validate.d.ts.map +1 -1
- package/dist/lib/validate.js +6 -19
- package/dist/lib/validate.js.map +1 -1
- package/dist/lib/workflow-definitions.d.ts +14 -50
- package/dist/lib/workflow-definitions.d.ts.map +1 -1
- package/dist/lib/workflow-definitions.js +74 -349
- package/dist/lib/workflow-definitions.js.map +1 -1
- package/dist/lib/workflow-helpers.d.ts +3 -4
- package/dist/lib/workflow-helpers.d.ts.map +1 -1
- package/dist/lib/workflow-helpers.js +15 -49
- package/dist/lib/workflow-helpers.js.map +1 -1
- package/dist/lib/workflow-stage-runner.d.ts +1 -2
- package/dist/lib/workflow-stage-runner.d.ts.map +1 -1
- package/dist/lib/workflow-stage-runner.js +4 -6
- package/dist/lib/workflow-stage-runner.js.map +1 -1
- package/dist/lib/workflow-starter-docs.d.ts +3 -5
- package/dist/lib/workflow-starter-docs.d.ts.map +1 -1
- package/dist/lib/workflow-starter-docs.js +2 -17
- package/dist/lib/workflow-starter-docs.js.map +1 -1
- package/dist/lib/workflows.d.ts +9 -14
- package/dist/lib/workflows.d.ts.map +1 -1
- package/dist/lib/workflows.js +13 -30
- package/dist/lib/workflows.js.map +1 -1
- package/dist/lib/workspace-compile.d.ts +50 -0
- package/dist/lib/workspace-compile.d.ts.map +1 -0
- package/dist/lib/{workflows-kb.js → workspace-compile.js} +81 -89
- package/dist/lib/workspace-compile.js.map +1 -0
- package/package.json +9 -9
- package/skills/benchmark/SKILL.md +16 -24
- package/skills/workflow/create/SKILL.md +7 -14
- package/templates/workspace/README.md +23 -0
- package/templates/workspace/interfignore +2 -0
- package/dist/lib/bundled-templates.d.ts +0 -5
- package/dist/lib/bundled-templates.d.ts.map +0 -1
- package/dist/lib/bundled-templates.js +0 -23
- package/dist/lib/bundled-templates.js.map +0 -1
- package/dist/lib/interf-compile-plan.d.ts +0 -12
- package/dist/lib/interf-compile-plan.d.ts.map +0 -1
- package/dist/lib/interf-compile-plan.js +0 -143
- package/dist/lib/interf-compile-plan.js.map +0 -1
- package/dist/lib/validate-interface.d.ts +0 -79
- package/dist/lib/validate-interface.d.ts.map +0 -1
- package/dist/lib/validate-interface.js +0 -535
- package/dist/lib/validate-interface.js.map +0 -1
- package/dist/lib/validate-kb.d.ts.map +0 -1
- package/dist/lib/validate-kb.js.map +0 -1
- package/dist/lib/workflows-interface-contracts.d.ts +0 -24
- package/dist/lib/workflows-interface-contracts.d.ts.map +0 -1
- package/dist/lib/workflows-interface-contracts.js +0 -304
- package/dist/lib/workflows-interface-contracts.js.map +0 -1
- package/dist/lib/workflows-interface.d.ts +0 -72
- package/dist/lib/workflows-interface.d.ts.map +0 -1
- package/dist/lib/workflows-interface.js +0 -377
- package/dist/lib/workflows-interface.js.map +0 -1
- package/dist/lib/workflows-kb.d.ts +0 -50
- package/dist/lib/workflows-kb.d.ts.map +0 -1
- package/dist/lib/workflows-kb.js.map +0 -1
- package/skills/interface/analyze/SKILL.md +0 -191
- package/skills/interface/compile/SKILL.md +0 -152
- package/skills/interface/compile/references/output-format.md +0 -48
- package/skills/interface/create/SKILL.md +0 -87
- package/skills/interface/create/references/compile-plan-format.md +0 -109
- package/skills/interface/create/references/workflows.md +0 -35
- package/skills/interface/query/SKILL.md +0 -48
- package/skills/interface/retrieve/SKILL.md +0 -133
- package/skills/knowledge-base/compile/SKILL.md +0 -196
- package/skills/knowledge-base/compile/references/output-format.md +0 -48
- package/skills/knowledge-base/compile/references/stage-claims.md +0 -60
- package/skills/knowledge-base/compile/references/stage-entities.md +0 -46
- package/skills/knowledge-base/query/SKILL.md +0 -45
- package/skills/knowledge-base/summarize/SKILL.md +0 -152
- package/templates/interface/README.md +0 -159
- package/templates/interface/interfaces.md +0 -102
- package/templates/knowledge-base/README.md +0 -137
- package/templates/knowledge-base/interfignore +0 -19
- package/templates/knowledge-base/registry.md +0 -118
- package/templates/workflow-package/README.md +0 -16
- package/templates/workflow-package/create/SKILL.md +0 -8
- package/templates/workflow-package/interface-query/SKILL.md +0 -29
- package/templates/workflow-package/interface-stage/SKILL.md +0 -13
- package/templates/workflow-package/knowledge-base-query/SKILL.md +0 -36
- package/templates/workflow-package/knowledge-base-stage/SKILL.md +0 -13
- package/templates/workflow-starters/interface/interf/README.md +0 -13
- package/templates/workflow-starters/interface/interf/create/SKILL.md +0 -15
- package/templates/workflow-starters/knowledge-base/interf/README.md +0 -13
- 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
|