gm-gc 2.0.663 → 2.0.665

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.
@@ -28,18 +28,28 @@ Discard:
28
28
 
29
29
  ## STEP 2: INGEST INTO RS-LEARN
30
30
 
31
- For each classified fact, invoke the plugkit memorize subcommand (prefers in-process HTTP to a running `rs-learn serve`, falls back to subprocess automatically — fast either way):
31
+ For each classified fact, invoke `exec:memorize` (HTTP-preferred, subprocess fallback — fast either way):
32
32
 
33
- ```bash
34
- plugkit memorize --source "<type>/<slug>" "<fact text>"
35
33
  ```
34
+ exec:memorize
35
+ <type>/<slug>
36
+ <fact body — one to three self-contained sentences>
37
+ ```
38
+
39
+ Line 1 of the body is the source tag (e.g. `feedback/terse-responses`, `project/merge-freeze`). Lines 2+ are the fact itself. Use kebab-case slugs.
40
+
41
+ To invalidate previously-memorized content (correction or retraction):
36
42
 
37
- Where `<fact text>` is a self-contained one-to-three sentence summary of the fact, and `<slug>` is a short kebab-case label (e.g. `feedback/terse-responses`, `project/merge-freeze`).
43
+ ```
44
+ exec:forget
45
+ by-source <tag>
46
+ ```
38
47
 
39
- For multi-paragraph facts, prefer the file form to avoid argv length limits:
48
+ Or by content:
40
49
 
41
- ```bash
42
- plugkit memorize --source "<type>/<slug>" --file <path>
50
+ ```
51
+ exec:forget
52
+ by-query <2-6 search words>
43
53
  ```
44
54
 
45
55
  ## STEP 3: AGENTS.md
@@ -52,3 +62,19 @@ For each qualifying fact from context:
52
62
  - If genuinely non-obvious → append to the appropriate section
53
63
 
54
64
  Never add: obvious patterns, active task progress, redundant restatements.
65
+
66
+ ## STEP 4: AGENTS.md → RS-LEARN MIGRATION (BENCHMARK + DRAIN)
67
+
68
+ AGENTS.md is the **always-on context buffer** — every prompt sees it. rs-learn is the **conditional retrieval store** — only relevant facts surface. The migration loop turns AGENTS.md into a benchmark for rs-learn's recall quality:
69
+
70
+ 1. Pick **5 random items** from AGENTS.md (sections, paragraphs, or numbered points). Don't pick the most recent additions — pick the oldest stable items.
71
+ 2. For each item, derive a 2-6 word query that a future agent would naturally use to find this fact.
72
+ 3. Run `exec:recall` with that query.
73
+ 4. Decide:
74
+ - **Recall accurate AND complete** → the rs-learn store has internalized this fact; **remove it from AGENTS.md**. Frees buffer space and confirms learning.
75
+ - **Recall partial / outdated / missing** → keep the AGENTS.md item AND ingest a refined version of the fact via `exec:memorize` so next round it can pass. Note the outcome in your run log.
76
+ 5. Record the audit cycle: how many items checked, how many removed, how many refined. Append this single-line summary to AGENTS.md under a `## Learning audit` section so future audits can see drift over time.
77
+
78
+ Why: AGENTS.md grows monotonically without this loop. rs-learn already filters by relevance per-prompt, so duplicating stable facts in AGENTS.md just inflates the always-on context. The migration drains AGENTS.md into the retrieval store as the store proves it can recall. Failed migrations leave the fact in AGENTS.md (safe default) and improve the store. Success rate over time = a metric for how well gm is learning this project.
79
+
80
+ Don't migrate if the fact is genuinely about agent meta-behavior that must be active every prompt (e.g. "always invoke gm:gm first") — those stay permanently.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.663",
3
+ "version": "2.0.665",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "homepage": "https://github.com/AnEntrypoint/gm",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-gc",
3
- "version": "2.0.663",
3
+ "version": "2.0.665",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",