greprag 5.46.0 → 5.48.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/dist/commands/arm-reminder.d.ts +25 -0
- package/dist/commands/arm-reminder.js +65 -0
- package/dist/commands/arm-reminder.js.map +1 -0
- package/dist/commands/assistant-reminder.d.ts +9 -0
- package/dist/commands/assistant-reminder.js +20 -0
- package/dist/commands/assistant-reminder.js.map +1 -0
- package/dist/commands/checkpoint-reminder.d.ts +14 -0
- package/dist/commands/checkpoint-reminder.js +50 -0
- package/dist/commands/checkpoint-reminder.js.map +1 -0
- package/dist/commands/friction-reminder.d.ts +92 -0
- package/dist/commands/friction-reminder.js +147 -0
- package/dist/commands/friction-reminder.js.map +1 -0
- package/dist/commands/frontdesk-reminder.d.ts +23 -0
- package/dist/commands/frontdesk-reminder.js +40 -0
- package/dist/commands/frontdesk-reminder.js.map +1 -0
- package/dist/commands/inbox-watch-supervisor.d.ts +25 -0
- package/dist/commands/inbox-watch-supervisor.js +112 -5
- package/dist/commands/inbox-watch-supervisor.js.map +1 -1
- package/dist/commands/init.js +31 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/memory-reflex.d.ts +115 -0
- package/dist/commands/memory-reflex.js +243 -0
- package/dist/commands/memory-reflex.js.map +1 -0
- package/dist/commands/reminder-registry.d.ts +24 -0
- package/dist/commands/reminder-registry.js +76 -0
- package/dist/commands/reminder-registry.js.map +1 -0
- package/dist/commands/reminder-types.d.ts +76 -0
- package/dist/commands/reminder-types.js +8 -0
- package/dist/commands/reminder-types.js.map +1 -0
- package/dist/commands/setup-reminder.d.ts +9 -0
- package/dist/commands/setup-reminder.js +20 -0
- package/dist/commands/setup-reminder.js.map +1 -0
- package/dist/hook.js +472 -120
- package/dist/hook.js.map +1 -1
- package/dist/opencode-plugin.js +68 -8
- package/dist/opencode-plugin.js.map +1 -1
- package/package.json +1 -1
- package/skill/templates/reflex-chip.md +58 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Reflex Chip — the Mechanic's fire-and-forget executor
|
|
2
|
+
|
|
3
|
+
The reflex chip is the **active Mechanic** (`docs/reminder-interrupt.md`; `docs/mechanic-repairs.md`
|
|
4
|
+
D4 / Part 7). The live session spawns it the moment it hits friction (prompted by the N-turn
|
|
5
|
+
reminder); it fixes the friction **in the moment** and does **not** report back — its output is
|
|
6
|
+
born-shadow + monitored, so there is no gate to wait at. Fire-and-forget.
|
|
7
|
+
|
|
8
|
+
Spawn: standard chip-spawn **Block 1** (incl. the `IN-FLIGHT` ping) + the preload + mission below.
|
|
9
|
+
**No Block 2** — it lands its own Tier-0 repair and ends. Title: `Chip: Reflex — <friction one-liner>`.
|
|
10
|
+
|
|
11
|
+
## Capability ceiling (HARD — this is what makes fire-and-forget safe)
|
|
12
|
+
|
|
13
|
+
Capped at **Tier-0**. It may, autonomously:
|
|
14
|
+
- author a **born-shadow** schema (`greprag mechanic install …` — born shadow; injects nothing until armed)
|
|
15
|
+
- **record** a durable gotcha / close a fix (`greprag fix repair …`)
|
|
16
|
+
- **prune** a stale fix
|
|
17
|
+
- edit a **doc/skill it owns** (commit on a branch)
|
|
18
|
+
|
|
19
|
+
It may **NEVER**: land code, arm/graduate a schema (`mechanic enable`), merge, push, deploy, or touch a
|
|
20
|
+
sensitive surface. If the root-cause repair needs ANY of those, it does **not** do it — it spawns a
|
|
21
|
+
**workshop chip** (`packages/cli/skill/templates/workshop-chip.md`; reports + parks at the merge gate)
|
|
22
|
+
and ends. Born-shadow + the Part 8 monitor are the safety net: nothing it lands goes live un-armed, and
|
|
23
|
+
anything that turns harmful auto-reverts to shadow.
|
|
24
|
+
|
|
25
|
+
## Preload block (paste verbatim after Block 1; fill the project + fix id)
|
|
26
|
+
|
|
27
|
+
````
|
|
28
|
+
**Orient FIRST — you carry the doctrine so you can pick the rung yourself:**
|
|
29
|
+
1. `docs/mechanic-repairs.md` — repair verbs R1–R20, the ladder, D9 inject-only, D10 blast-radius
|
|
30
|
+
2. `docs/reminder-interrupt.md` — why you exist (the active Mechanic)
|
|
31
|
+
3. `docs/harness-control-points.md` — where a repair plugs in
|
|
32
|
+
4. The LIVE matchset (what's already installed, so you don't duplicate): `greprag mechanic status --project <project>`
|
|
33
|
+
5. The friction under repair: `greprag fix list --project <project> --format json` → <nodeId>
|
|
34
|
+
|
|
35
|
+
You are a REFLEX CHIP: fire-and-forget, Tier-0 capped. You LAND the repair; you do not report.
|
|
36
|
+
````
|
|
37
|
+
|
|
38
|
+
## Mission (keep the spine)
|
|
39
|
+
|
|
40
|
+
1. **Investigate.** Confirm the friction is real (reproduce / read the code/hooks). Untangle — one
|
|
41
|
+
friction often conflates several.
|
|
42
|
+
2. **Root-cause, then pick the rung.** Repair the PATTERN that makes this friction class possible,
|
|
43
|
+
never a guard on today's trigger (route through `/root-cause`). Pick the lowest rung that holds.
|
|
44
|
+
3. **Tier-0 → LAND IT.** born-shadow schema (`mechanic install` with a real `--condition`
|
|
45
|
+
regex/path_under/`--condition-json`), record (`fix repair`), prune, or owned doc/skill edit. Born
|
|
46
|
+
shadow — never `--status active`.
|
|
47
|
+
4. **Above Tier-0 → ESCALATE, don't do it.** Code / gate / transform / anything needing a merge or an
|
|
48
|
+
arm → spawn a workshop chip with the brief, then end. Do not implement it yourself.
|
|
49
|
+
5. **End.** No report-back. Your trace is the born-shadow schema in the matchset (the monitor watches
|
|
50
|
+
it) + the closed fix. The operator monitors the `verdict` column, not you.
|
|
51
|
+
|
|
52
|
+
## Hard rules
|
|
53
|
+
|
|
54
|
+
- **The Tier-0 ceiling is absolute.** Code / arm / graduate / merge / push / deploy → escalate to a
|
|
55
|
+
workshop chip, never do it yourself.
|
|
56
|
+
- **Born-shadow only** — never `mechanic enable`.
|
|
57
|
+
- Standard chip cleanup discipline (no `git clean` / `reset --hard` / `worktree remove` /
|
|
58
|
+
`checkout <other>` / `rm -rf` outside tracked files).
|