@x12i/memorix-skills 0.1.1 → 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 +17 -0
- package/agents/BLOCKS.md +21 -0
- package/agents/README.md +13 -0
- package/agents/evidence-summary/README.md +5 -0
- package/agents/evidence-summary/fixtures/evidence-summary.json +23 -0
- package/agents/evidence-summary/process.json +96 -0
- package/agents/evidence-summary/processing/check.example-outputs/index.json +21 -0
- package/agents/evidence-summary/processing/check.example-outputs/output.json +9 -0
- package/agents/evidence-summary/processing/check.example-outputs/result.json +3 -0
- package/agents/evidence-summary/processing/draft.example-outputs/index.json +21 -0
- package/agents/evidence-summary/processing/draft.example-outputs/output.json +12 -0
- package/agents/evidence-summary/processing/draft.example-outputs/result.json +3 -0
- package/agents/evidence-summary/processing/incomplete.example-outputs/index.json +21 -0
- package/agents/evidence-summary/processing/incomplete.example-outputs/output.json +11 -0
- package/agents/evidence-summary/processing/incomplete.example-outputs/result.json +3 -0
- package/agents/evidence-summary/processing/publish.example-outputs/index.json +21 -0
- package/agents/evidence-summary/processing/publish.example-outputs/output.json +12 -0
- package/agents/evidence-summary/schemas/summary.json +9 -0
- package/agents/foundation/README.md +20 -0
- package/agents/foundation/auditing/entity-overview.audit.md +32 -0
- package/agents/foundation/auditing/list-overview.audit.md +32 -0
- package/agents/foundation/blocks/overview-sections.md +13 -0
- package/agents/foundation/processing/entity-overview.md +25 -0
- package/agents/foundation/processing/list-overview.md +27 -0
- package/agents/record-brief/README.md +7 -0
- package/agents/record-brief/edges/summary-when-long.mjs +10 -0
- package/agents/record-brief/fixtures/record-brief.json +22 -0
- package/agents/record-brief/models.json +18 -0
- package/agents/record-brief/process.json +143 -0
- package/agents/record-brief/processing/count-briefs.example-outputs/index.json +21 -0
- package/agents/record-brief/processing/count-briefs.example-outputs/output.json +9 -0
- package/agents/record-brief/processing/index-terms.example-outputs/index.json +21 -0
- package/agents/record-brief/processing/index-terms.example-outputs/output.json +12 -0
- package/agents/record-brief/processing/normalize-note.example-outputs/index.json +21 -0
- package/agents/record-brief/processing/normalize-note.example-outputs/output.json +11 -0
- package/agents/record-brief/processing/summarize-note.example-outputs/index.json +21 -0
- package/agents/record-brief/processing/summarize-note.example-outputs/output.json +11 -0
- package/agents/record-brief/prompts/summarize.md +1 -0
- package/agents/record-brief/steps/count-briefs.mjs +6 -0
- package/agents/record-brief/steps/index-terms.mjs +6 -0
- package/agents/record-brief/steps/normalize-note.mjs +16 -0
- package/agents/record-brief/steps/summarize-note.mjs +36 -0
- package/agents/system/README.md +37 -0
- package/agents/system/internal/audit-prompt.md +28 -0
- package/agents/system/internal/audit-result.md +28 -0
- package/agents/system/internal/fix-attempt.md +17 -0
- package/agents/system/internal/improve-prompt.md +17 -0
- package/agents/system/internal/investigate-audit.md +9 -0
- package/agents/system/internal/investigate-context.md +9 -0
- package/agents/system/internal/investigate-contract.md +9 -0
- package/agents/system/internal/investigate-execution.md +9 -0
- package/agents/system/internal/investigate-inputs.md +9 -0
- package/agents/system/internal/investigate-instructions.md +9 -0
- package/agents/system/internal/investigate-provenance.md +9 -0
- package/agents/system/internal/investigate-response.md +9 -0
- package/agents/system/internal/investigate-synthesis.md +19 -0
- package/agents/tryout/README.md +7 -0
- package/agents/tryout/fixtures/tryout.json +28 -0
- package/agents/tryout/process.json +88 -0
- package/agents/tryout/processing/echo-stamp.example-outputs/index.json +16 -0
- package/agents/tryout/processing/echo-stamp.example-outputs/output.json +10 -0
- package/agents/tryout/processing/name-label.example-outputs/index.json +16 -0
- package/agents/tryout/processing/name-label.example-outputs/output.json +9 -0
- package/agents/tryout/processing/stamp-note.example-outputs/index.json +16 -0
- package/agents/tryout/processing/stamp-note.example-outputs/output.json +10 -0
- package/agents/tryout/steps/echo-stamp.mjs +11 -0
- package/agents/tryout/steps/name-label.mjs +8 -0
- package/agents/tryout/steps/stamp-note.mjs +11 -0
- package/dist/blocks.d.ts +20 -0
- package/dist/blocks.d.ts.map +1 -0
- package/dist/blocks.js +80 -0
- package/dist/blocks.js.map +1 -0
- package/dist/classify.d.ts +26 -0
- package/dist/classify.d.ts.map +1 -0
- package/dist/classify.js +85 -0
- package/dist/classify.js.map +1 -0
- package/dist/create-memorix-skills.d.ts +10 -0
- package/dist/create-memorix-skills.d.ts.map +1 -1
- package/dist/create-memorix-skills.js +22 -2
- package/dist/create-memorix-skills.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +21 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +139 -0
- package/dist/internal.js.map +1 -0
- package/dist/shared-packs.d.ts +15 -0
- package/dist/shared-packs.d.ts.map +1 -0
- package/dist/shared-packs.js +63 -0
- package/dist/shared-packs.js.map +1 -0
- package/dist/skills.d.ts +6 -3
- package/dist/skills.d.ts.map +1 -1
- package/dist/skills.js +38 -29
- package/dist/skills.js.map +1 -1
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -9,6 +9,23 @@ This package **only runs a skill**:
|
|
|
9
9
|
|
|
10
10
|
It does not orchestrate pipelines, land records, or call Nexum.
|
|
11
11
|
|
|
12
|
+
## Internal actions
|
|
13
|
+
|
|
14
|
+
`agents/system/internal/{key}.md` is a helper call, not a sequence step. This package ships that folder. A system folder placed beside a running pack replaces the shipped file with the same key. A real pack's `internal/` folder is ignored.
|
|
15
|
+
|
|
16
|
+
## Package agents and blocks
|
|
17
|
+
|
|
18
|
+
`agents/` in this package is the published agent root: `foundation`, `system`, and the samples `record-brief`, `evidence-summary`, and `tryout`. Real packs stay outside this package. A skill key is loaded from the running pack, then `foundation`, then `system`. `{{block:name.md}}` inserts `blocks/name.md` before Rendrix fills the other tokens. The same order applies. See `agents/BLOCKS.md`.
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
const response = await skills.runInternal({
|
|
22
|
+
action: "audit-prompt",
|
|
23
|
+
input: { prompt: "Write the note." },
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`listInternalActions(skillsDir)` and `renderInternalAction(action, input)` prepare the call without sending it.
|
|
28
|
+
|
|
12
29
|
## Usage
|
|
13
30
|
|
|
14
31
|
```ts
|
package/agents/BLOCKS.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Blocks
|
|
2
|
+
|
|
3
|
+
A block is a markdown file in a pack's `blocks/` folder. A prompt inserts that file with a token:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
{{block:overview-sections.md}}
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The name is the file name, including `.md`. It is one file in `blocks/`, not a path.
|
|
10
|
+
|
|
11
|
+
The token is replaced with the file before Rendrix runs. Rendrix then fills the tokens in that text on the same render: `{{input}}`, catalog fields, and a nested `{{block:…}}`. A block that includes itself fails. A missing file fails.
|
|
12
|
+
|
|
13
|
+
Search order:
|
|
14
|
+
|
|
15
|
+
1. The pack's own `blocks/{name}.md`
|
|
16
|
+
2. `foundation/blocks/{name}.md`
|
|
17
|
+
3. `system/blocks/{name}.md`
|
|
18
|
+
|
|
19
|
+
`foundation` and `system` ship inside `@x12i/memorix-skills` at `agents/`. A real pack lives in `.memorix-agents/` and is not in that npm package. When a real pack is published for a run, the run stores a snapshot of `foundation` and `system` under `shared/`. That snapshot is what the run reads.
|
|
20
|
+
|
|
21
|
+
`overview-sections.md` is the shared heading block used by `entity-overview` and `list-overview`.
|
package/agents/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Package agents
|
|
2
|
+
|
|
3
|
+
These folders ship with `@x12i/memorix-skills`. Real packs stay in the repository `.memorix-agents/` folder and are not part of this package.
|
|
4
|
+
|
|
5
|
+
| Folder | Role |
|
|
6
|
+
|---|---|
|
|
7
|
+
| `foundation` | Shared skills and blocks. `entity-overview`, `list-overview`, and `blocks/overview-sections.md`. Not a job. |
|
|
8
|
+
| `system` | Helper actions in `internal/`: audit a prompt, audit a result, improve a prompt, investigation, and fix. Not a job. |
|
|
9
|
+
| `record-brief` | Sample process. |
|
|
10
|
+
| `evidence-summary` | Sample process. |
|
|
11
|
+
| `tryout` | Sample process. A note points at a label. |
|
|
12
|
+
|
|
13
|
+
A skill key is loaded from the pack that is running, then `foundation`, then `system`. Blocks are described in [BLOCKS.md](BLOCKS.md).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Evidence summary
|
|
2
|
+
|
|
3
|
+
A pure JSON process. It drafts a summary, checks it, and either publishes or refines inside a declared loop. There are no step or edge modules.
|
|
4
|
+
|
|
5
|
+
Shared packs sit beside this folder. `foundation` has reusable skills (`entity-overview`, `list-overview`) and blocks. `system` has the helper actions. An instruction can insert `{{block:name.md}}`. This pack's `blocks/` file wins, then foundation, then system. A skill key that this pack does not define is loaded from foundation, then system.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packId": "evidence-summary",
|
|
3
|
+
"processId": "evidence-summary",
|
|
4
|
+
"subjects": [
|
|
5
|
+
{
|
|
6
|
+
"recordId": "fx-subject",
|
|
7
|
+
"objectType": "record"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"documents": [],
|
|
11
|
+
"relations": [],
|
|
12
|
+
"inputs": {
|
|
13
|
+
"subject": {
|
|
14
|
+
"recordId": "fx-subject"
|
|
15
|
+
},
|
|
16
|
+
"evidence": [
|
|
17
|
+
{
|
|
18
|
+
"id": "ev-1",
|
|
19
|
+
"text": "Observed once."
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "memorix.process/v2",
|
|
3
|
+
"id": "evidence-summary",
|
|
4
|
+
"initiation": [],
|
|
5
|
+
"modelProfile": "analysis",
|
|
6
|
+
"runtime": { "maxAiCalls": 6, "maxWallTimeMs": 180000 },
|
|
7
|
+
"entryNodes": ["draft"],
|
|
8
|
+
"inputs": {
|
|
9
|
+
"subject": { "required": true },
|
|
10
|
+
"evidence": { "required": true }
|
|
11
|
+
},
|
|
12
|
+
"nodes": [
|
|
13
|
+
{
|
|
14
|
+
"id": "draft",
|
|
15
|
+
"kind": "action",
|
|
16
|
+
"action": "ai.generate",
|
|
17
|
+
"scope": "invocation",
|
|
18
|
+
"instructions": "Summarize the supplied evidence. Cite evidence IDs. Address feedback when present. Do not invent missing observations.",
|
|
19
|
+
"inputs": {
|
|
20
|
+
"evidence": { "ref": "process.inputs.evidence" },
|
|
21
|
+
"feedback": { "ref": "nodes.check.output.feedback", "loop": "refinement", "iteration": "previous", "optional": true }
|
|
22
|
+
},
|
|
23
|
+
"output": { "schemaRef": "./schemas/summary.json", "persistence": "execution" }
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "check",
|
|
27
|
+
"kind": "action",
|
|
28
|
+
"action": "data.validate",
|
|
29
|
+
"scope": "invocation",
|
|
30
|
+
"validators": ["summary-contract", "evidence-references"],
|
|
31
|
+
"inputs": {
|
|
32
|
+
"candidate": { "ref": "nodes.draft.output" },
|
|
33
|
+
"evidence": { "ref": "process.inputs.evidence" }
|
|
34
|
+
},
|
|
35
|
+
"output": { "schemaRef": "./schemas/validation-result.json", "persistence": "execution" }
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "publish",
|
|
39
|
+
"kind": "action",
|
|
40
|
+
"action": "output.emit",
|
|
41
|
+
"scope": "invocation",
|
|
42
|
+
"inputs": {
|
|
43
|
+
"subject": { "ref": "process.inputs.subject" },
|
|
44
|
+
"result": { "ref": "nodes.draft.output", "loop": "refinement", "iteration": "exiting" }
|
|
45
|
+
},
|
|
46
|
+
"output": { "contentType": "summary", "schemaRef": "./schemas/summary.json", "persistence": "derived" }
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "incomplete",
|
|
50
|
+
"kind": "action",
|
|
51
|
+
"action": "data.project",
|
|
52
|
+
"scope": "invocation",
|
|
53
|
+
"value": { "status": "incomplete", "reasonCode": "REFINEMENT_LIMIT", "coverage": "incomplete" },
|
|
54
|
+
"output": { "persistence": "execution" }
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"edges": [
|
|
58
|
+
{ "id": "draft-check", "from": "draft", "to": "check", "on": "succeeded" },
|
|
59
|
+
{
|
|
60
|
+
"id": "check-publish",
|
|
61
|
+
"from": "check",
|
|
62
|
+
"to": "publish",
|
|
63
|
+
"on": "succeeded",
|
|
64
|
+
"when": { "op": "eq", "args": [{ "ref": "nodes.check.output.accepted" }, true] }
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "check-refine",
|
|
68
|
+
"from": "check",
|
|
69
|
+
"to": "draft",
|
|
70
|
+
"on": "succeeded",
|
|
71
|
+
"when": { "op": "eq", "args": [{ "ref": "nodes.check.output.accepted" }, false] },
|
|
72
|
+
"advanceLoop": "refinement"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"loops": [
|
|
76
|
+
{
|
|
77
|
+
"id": "refinement",
|
|
78
|
+
"members": ["draft", "check"],
|
|
79
|
+
"entries": ["draft"],
|
|
80
|
+
"feedbackEdges": ["check-refine"],
|
|
81
|
+
"maxIterations": 3,
|
|
82
|
+
"onLimit": { "to": "incomplete" }
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"outputs": {
|
|
86
|
+
"result": { "ref": "nodes.publish.output", "optional": true },
|
|
87
|
+
"incomplete": { "ref": "nodes.incomplete.output", "optional": true }
|
|
88
|
+
},
|
|
89
|
+
"completion": {
|
|
90
|
+
"mode": "any",
|
|
91
|
+
"successNodes": ["publish"],
|
|
92
|
+
"incompleteNodes": ["incomplete"],
|
|
93
|
+
"requiredExportsOnSuccess": ["result"],
|
|
94
|
+
"remainingWork": "drainRequired"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packId": "evidence-summary",
|
|
3
|
+
"skill": "check",
|
|
4
|
+
"subjects": [
|
|
5
|
+
{
|
|
6
|
+
"id": "record",
|
|
7
|
+
"objectType": "record",
|
|
8
|
+
"contentType": "execution",
|
|
9
|
+
"recordId": "fx-subject",
|
|
10
|
+
"documents": [
|
|
11
|
+
{
|
|
12
|
+
"objectType": "record",
|
|
13
|
+
"contentType": "execution",
|
|
14
|
+
"recordId": "fx-subject",
|
|
15
|
+
"file": "output.json"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"absent": []
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packId": "evidence-summary",
|
|
3
|
+
"skill": "draft",
|
|
4
|
+
"subjects": [
|
|
5
|
+
{
|
|
6
|
+
"id": "record",
|
|
7
|
+
"objectType": "record",
|
|
8
|
+
"contentType": "execution",
|
|
9
|
+
"recordId": "fx-subject",
|
|
10
|
+
"documents": [
|
|
11
|
+
{
|
|
12
|
+
"objectType": "record",
|
|
13
|
+
"contentType": "execution",
|
|
14
|
+
"recordId": "fx-subject",
|
|
15
|
+
"file": "output.json"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"absent": []
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packId": "evidence-summary",
|
|
3
|
+
"skill": "incomplete",
|
|
4
|
+
"subjects": [
|
|
5
|
+
{
|
|
6
|
+
"id": "record",
|
|
7
|
+
"objectType": "record",
|
|
8
|
+
"contentType": "execution",
|
|
9
|
+
"recordId": "fx-subject",
|
|
10
|
+
"documents": [
|
|
11
|
+
{
|
|
12
|
+
"objectType": "record",
|
|
13
|
+
"contentType": "execution",
|
|
14
|
+
"recordId": "fx-subject",
|
|
15
|
+
"file": "output.json"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"absent": []
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packId": "evidence-summary",
|
|
3
|
+
"skill": "publish",
|
|
4
|
+
"subjects": [
|
|
5
|
+
{
|
|
6
|
+
"id": "record",
|
|
7
|
+
"objectType": "record",
|
|
8
|
+
"contentType": "summary",
|
|
9
|
+
"recordId": "fx-subject",
|
|
10
|
+
"documents": [
|
|
11
|
+
{
|
|
12
|
+
"objectType": "record",
|
|
13
|
+
"contentType": "summary",
|
|
14
|
+
"recordId": "fx-subject",
|
|
15
|
+
"file": "output.json"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"absent": []
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Foundation
|
|
2
|
+
|
|
3
|
+
Shared skills and blocks. A domain pack loads a key from here when it does not have that file itself. This folder is not a process you start. It has no `process.json`, so a save does not run it and it is not a job target.
|
|
4
|
+
|
|
5
|
+
## Skills
|
|
6
|
+
|
|
7
|
+
| Key | What it writes |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `entity-overview` | An overview of one entity: title, summary, highlights, risk signals, and optional open questions. |
|
|
10
|
+
| `list-overview` | The same shape for a list of entities. The title names the set. Highlights are about the set. |
|
|
11
|
+
|
|
12
|
+
A pack that has its own `entity-overview` keeps that file. Neo Networks does, because its open questions must be emit strings from its unknown-questions catalog. The section headings both skills share live in `blocks/overview-sections.md`.
|
|
13
|
+
|
|
14
|
+
## Blocks
|
|
15
|
+
|
|
16
|
+
`blocks/{name}.md` is a markdown fragment. A prompt inserts it with `{{block:overview-sections.md}}`. The domain pack's `blocks/` file wins, then this pack, then `system`. Tokens inside the block, including another `{{block:…}}` and `{{input}}`, are filled by the same Rendrix render.
|
|
17
|
+
|
|
18
|
+
## Code
|
|
19
|
+
|
|
20
|
+
A reusable code skill is `code/{key}.mjs` exporting `run`. None is required yet.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
kind: auditing
|
|
3
|
+
provider: openrouter
|
|
4
|
+
model: openai/gpt-6-luna
|
|
5
|
+
reasoningEffort: high
|
|
6
|
+
audits: entity-overview
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
You are auditing one stored entity overview. You do not rewrite the stored object.
|
|
10
|
+
|
|
11
|
+
Read the record in `{{input}}`. Use `data` and `_markdown` when both are present. A previous `_audit` is not in the input. A missing field is not proof that the claim is false.
|
|
12
|
+
|
|
13
|
+
Fail or warn when any of these are true:
|
|
14
|
+
|
|
15
|
+
- A fact in `title`, `summary`, `highlights`, or `riskSignals` is not supported by the record in the input.
|
|
16
|
+
- `openQuestions` contains `none`, or a question the input does not support.
|
|
17
|
+
- The answer is empty, or a required section other than `openQuestions` is missing. Omitting `openQuestions` is allowed.
|
|
18
|
+
|
|
19
|
+
`pass` means none of those problems are present. `warn` means the answer is usable but a fact is thin. `fail` means a rule above was broken.
|
|
20
|
+
|
|
21
|
+
Do not invent a corrected object. Do not claim a model or a reasoning effort. The host records those.
|
|
22
|
+
|
|
23
|
+
Respond in markdown only (no code fences), exactly these sections:
|
|
24
|
+
|
|
25
|
+
# verdict
|
|
26
|
+
pass | warn | fail
|
|
27
|
+
|
|
28
|
+
# summary
|
|
29
|
+
<one sentence>
|
|
30
|
+
|
|
31
|
+
# findings
|
|
32
|
+
- <one broken rule, or omit the bullets when the verdict is pass>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
kind: auditing
|
|
3
|
+
provider: openrouter
|
|
4
|
+
model: openai/gpt-6-luna
|
|
5
|
+
reasoningEffort: high
|
|
6
|
+
audits: list-overview
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
You are auditing one stored list overview. You do not rewrite the stored object.
|
|
10
|
+
|
|
11
|
+
Read the record in `{{input}}`. Use `data` and `_markdown` when both are present. A previous `_audit` is not in the input.
|
|
12
|
+
|
|
13
|
+
Fail or warn when any of these are true:
|
|
14
|
+
|
|
15
|
+
- The overview describes one row as if it were the whole list, or states a fact the list does not support.
|
|
16
|
+
- `openQuestions` contains `none`, or a question the input does not support.
|
|
17
|
+
- The answer is empty, or a required section other than `openQuestions` is missing. Omitting `openQuestions` is allowed.
|
|
18
|
+
|
|
19
|
+
`pass` means none of those problems are present. `warn` means the answer is usable but a fact is thin. `fail` means a rule above was broken.
|
|
20
|
+
|
|
21
|
+
Do not invent a corrected object. Do not claim a model or a reasoning effort. The host records those.
|
|
22
|
+
|
|
23
|
+
Respond in markdown only (no code fences), exactly these sections:
|
|
24
|
+
|
|
25
|
+
# verdict
|
|
26
|
+
pass | warn | fail
|
|
27
|
+
|
|
28
|
+
# summary
|
|
29
|
+
<one sentence>
|
|
30
|
+
|
|
31
|
+
# findings
|
|
32
|
+
- <one broken rule, or omit the bullets when the verdict is pass>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# title
|
|
2
|
+
<short human title>
|
|
3
|
+
|
|
4
|
+
# summary
|
|
5
|
+
<2-4 sentences. A material unresolved fact still belongs here or in riskSignals.>
|
|
6
|
+
|
|
7
|
+
# highlights
|
|
8
|
+
- <key fact 1>
|
|
9
|
+
- <key fact 2>
|
|
10
|
+
- <key fact 3>
|
|
11
|
+
|
|
12
|
+
# riskSignals
|
|
13
|
+
- <notable risk or uncertainty, or "none observed">
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
kind: processing
|
|
3
|
+
provider: openrouter
|
|
4
|
+
model: openai/gpt-6-luna
|
|
5
|
+
reasoningEffort: low
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Entity overview
|
|
9
|
+
|
|
10
|
+
You are writing an overview of one entity.
|
|
11
|
+
|
|
12
|
+
Use only the record below. Do not invent facts the record does not support.
|
|
13
|
+
|
|
14
|
+
Respond in **markdown only** (no code fences), using exactly this structure so it converts cleanly to JSON:
|
|
15
|
+
|
|
16
|
+
{{block:overview-sections.md}}
|
|
17
|
+
|
|
18
|
+
# openQuestions
|
|
19
|
+
- <one unresolved question, or omit this section>
|
|
20
|
+
Do not invent a question. Do not write "none".
|
|
21
|
+
Omitting this section is not a claim that the record is complete.
|
|
22
|
+
|
|
23
|
+
Entity record:
|
|
24
|
+
|
|
25
|
+
{{input}}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
kind: processing
|
|
3
|
+
provider: openrouter
|
|
4
|
+
model: openai/gpt-6-luna
|
|
5
|
+
reasoningEffort: low
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# List overview
|
|
9
|
+
|
|
10
|
+
You are writing an overview of a list of entities, not of one row in the list.
|
|
11
|
+
|
|
12
|
+
Use only the records below. Do not invent facts the list does not support.
|
|
13
|
+
|
|
14
|
+
Respond in **markdown only** (no code fences), using exactly this structure so it converts cleanly to JSON:
|
|
15
|
+
|
|
16
|
+
{{block:overview-sections.md}}
|
|
17
|
+
|
|
18
|
+
The title names the list. The summary says what the set is and what stands out across it. Highlights are facts about the set.
|
|
19
|
+
|
|
20
|
+
# openQuestions
|
|
21
|
+
- <one unresolved question about the set, or omit this section>
|
|
22
|
+
Do not invent a question. Do not write "none".
|
|
23
|
+
Omitting this section is not a claim that the list is complete.
|
|
24
|
+
|
|
25
|
+
Records:
|
|
26
|
+
|
|
27
|
+
{{input}}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Record brief
|
|
2
|
+
|
|
3
|
+
A non-security pack used to exercise the platform. It normalizes a note, indexes terms, and optionally summarizes a long note. The count checkpoint writes one collection record. It does not write a per-note assessment for that count.
|
|
4
|
+
|
|
5
|
+
Summarize stays inactive until an operator selects `summarize-note`. The edge module skips short notes and records why.
|
|
6
|
+
|
|
7
|
+
Shared packs sit beside this folder. `foundation` has reusable skills (`entity-overview`, `list-overview`) and blocks. `system` has the helper actions. A prompt here can insert `{{block:name.md}}`. This pack's `blocks/` file wins, then foundation, then system. A skill key that this pack does not define is loaded from foundation, then system.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** The length decision stays a module. It cannot publish or call a model. */
|
|
2
|
+
export async function evaluate(ctx) {
|
|
3
|
+
const body = String(ctx.inputs["normalize-note"]?.data?.body ?? "");
|
|
4
|
+
if (body.length < 24) {
|
|
5
|
+
return { decision: "skip", reason: "The note is too short to summarize." };
|
|
6
|
+
}
|
|
7
|
+
return { decision: "proceed", destination: "summarize-note", reason: "The note is long enough to summarize." };
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { evaluate as decide };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packId": "record-brief",
|
|
3
|
+
"processId": "record-brief",
|
|
4
|
+
"subjects": [
|
|
5
|
+
{
|
|
6
|
+
"recordId": "fx-note",
|
|
7
|
+
"objectType": "note"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"documents": [
|
|
11
|
+
{
|
|
12
|
+
"objectType": "note",
|
|
13
|
+
"contentType": "note",
|
|
14
|
+
"recordId": "fx-note",
|
|
15
|
+
"data": {
|
|
16
|
+
"title": "Note",
|
|
17
|
+
"body": "A short note."
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"relations": []
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "memorix.models/v2",
|
|
3
|
+
"defaultProfile": "analysis",
|
|
4
|
+
"roles": {
|
|
5
|
+
"ai": "analysis",
|
|
6
|
+
"planner": "planning",
|
|
7
|
+
"reviser": "planning",
|
|
8
|
+
"audit": "verification"
|
|
9
|
+
},
|
|
10
|
+
"profiles": {
|
|
11
|
+
"analysis": {
|
|
12
|
+
"provider": "openrouter",
|
|
13
|
+
"connection": "primary-ai",
|
|
14
|
+
"model": "brief-model",
|
|
15
|
+
"parameters": { "maxOutputTokens": 800 }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|