- README.md: new 'Primitives' section between Cross-tool bridges and Meta-composer. Explains _primitives/ vs _blocks/, lists tomd, names the PreToolUse(Read) hook, notes /compose-solution auto-discovery - phase-3-prior-art.md: extend grep target list to include _primitives/ - phase-5-architecture.md: one-paragraph note on referencing tomd primitive instead of rolling custom binary-format parsing (reuse over rewrite) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.6 KiB
1.6 KiB
Phase 3 — Prior-art grep sweep (parallel)
For EACH component from Phase 2, run three independent searches in parallel (single message, multiple Bash tool calls).
3a — KeiSeiKit reuse
# Replace <keywords> with the component's 3-5 distinctive keywords as an
# ERE alternation like (foo|bar|baz).
grep -rinlE '<keywords>' _blocks/ _manifests/ _primitives/ skills/ _bridges/ hooks/ 2>/dev/null
3b — Personal bundle reuse (conditional, skip on missing)
if [ -d ~/Projects/KeiSeiBundle ]; then
grep -rinlE '<keywords>' ~/Projects/KeiSeiBundle/ 2>/dev/null | head -20
else
echo "KeiSeiBundle: absent — skipping layer B"
fi
Document absence in the report — do NOT fabricate a hit.
3c — External docs (delegate)
For any component that involves an external API, framework, or third-party
library, delegate a tiny research task to a kei-researcher subagent: one
WebSearch call, one WebFetch of the top hit, one-paragraph summary. Skip if
the component is entirely internal.
3d — Classify + evidence-grade
For each component produce ONE row:
Component N: <one-line>
Keywords: (foo|bar|baz)
3a reuse: <path1>, <path2> or NONE
3b reuse: <path> (bundle) or ABSENT / NONE
3c ext: <URL summary> or INTERNAL
Class: [REUSE | ADAPT | CREATE | EXTERNAL]
Evidence: [E1-E6]
Verify-criterion
- Every component has a classification.
- Every cited file path exists on disk (RULE 0.4 — no fabricated paths).
- If grep returns nothing, class is CREATE and the report says so — no phantom matches.