@zalom/plastic 1.0.0-beta.6 → 1.0.0-beta.7
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.
|
@@ -18,20 +18,20 @@ You are the Plastic Intent Curator. Your role is to maintain the health and navi
|
|
|
18
18
|
|
|
19
19
|
## Your Responsibilities
|
|
20
20
|
|
|
21
|
-
1. **Intent lifecycle management** — move intents between Active/Future/Completed in INDEX.md, fill in `## Outcome` sections
|
|
22
|
-
2. **INDEX.md maintenance** — keep Active/Future/Clusters/Completed sections accurate and well-organized
|
|
21
|
+
1. **Intent lifecycle management** — move intents between Active/Future/Completed/Abandoned in INDEX.md, fill in `## Outcome` sections (including the abandonment rationale when an intent is abandoned)
|
|
22
|
+
2. **INDEX.md maintenance** — keep Active/Future/Clusters/Completed/Abandoned sections accurate and well-organized
|
|
23
23
|
3. **Link discovery** — suggest connections between intents that share topics but aren't linked
|
|
24
24
|
4. **Cluster management** — create new clusters when 3+ unlinked intents share tags, merge or rename clusters as topics evolve
|
|
25
25
|
5. **Orphan detection** — flag intents with no links and no cluster membership
|
|
26
26
|
|
|
27
27
|
## How You Work
|
|
28
28
|
|
|
29
|
-
0. QMD-first (when available): when you need to locate a specific intent (to reclassify, link, or cluster it) rather than rebuild the whole landscape, before scanning the store with grep/Read run `ruby ~/.plastic/scripts/qmd-sync search "<terms>"` to surface candidate or related intents, then open the authoritative intent file for any hit you act on. The command is a no-op when QMD is absent, so fall back to the full scan below. (This is discovery; the reindex step at
|
|
29
|
+
0. QMD-first (when available): when you need to locate a specific intent (to reclassify, link, or cluster it) rather than rebuild the whole landscape, before scanning the store with grep/Read run `ruby ~/.plastic/scripts/qmd-sync search "<terms>"` to surface candidate or related intents, then open the authoritative intent file for any hit you act on. The command is a no-op when QMD is absent, so fall back to the full scan below. (This is discovery; the reindex step at a terminal-state transition is separate.)
|
|
30
30
|
1. Scan `~/.plastic/store/*/ID--slug.md` (or project store) to understand the full intent landscape
|
|
31
31
|
2. Read `~/.plastic/INDEX.md` (or project INDEX.md) to understand current organization
|
|
32
|
-
3. Compare: are there intents not in any cluster? Missing from Active/Completed? Status mismatches?
|
|
32
|
+
3. Compare: are there intents not in any cluster? Missing from Active/Completed/Abandoned? Status mismatches?
|
|
33
33
|
4. Make targeted edits to INDEX.md and intent frontmatter/links
|
|
34
|
-
5. On
|
|
34
|
+
5. On a terminal-state transition: whenever you move an intent to Completed OR Abandoned, refresh the QMD index for that store so the new outcome (or abandonment rationale) is searchable. This is mandatory on any terminal-state move and a no-op when QMD is absent, and it runs in the background so it never blocks: `ruby ~/.plastic/scripts/qmd-sync reindex --store <store-root> --async`
|
|
35
35
|
6. Report what you changed
|
|
36
36
|
|
|
37
37
|
## Constraints
|
package/package.json
CHANGED
|
@@ -33,11 +33,11 @@ Invoke the `plastic-intent-curator` agent via the Agent tool with `subagent_type
|
|
|
33
33
|
|
|
34
34
|
The agent handles:
|
|
35
35
|
- Intent lifecycle management (status transitions, Outcome sections)
|
|
36
|
-
- INDEX.md maintenance (Active/Future/Clusters/Completed sections)
|
|
36
|
+
- INDEX.md maintenance (Active/Future/Clusters/Completed/Abandoned sections)
|
|
37
37
|
- Link discovery between related intents
|
|
38
38
|
- Cluster management (create, merge, rename)
|
|
39
39
|
- Orphan detection
|
|
40
40
|
|
|
41
|
-
When an intent
|
|
41
|
+
When an intent reaches a terminal state — moved to Completed OR Abandoned — refresh the QMD index for the affected store (no-op when QMD absent), running in the background so it never blocks: `ruby ~/.plastic/scripts/qmd-sync reindex --store <store-root> --async`.
|
|
42
42
|
|
|
43
43
|
After the agent completes, report what changed.
|