donaldfilimon/abi / .agents/skills/sea-learn-loop
sea-learn-loop
VerifiedBuild the abi CLI and exercise the SEA (Sparse Evidence Attention) self-learning completion path via `abi complete --learn`. Use when working on ai_learn / complete --learn / evidence recall, or to verify the SEA loop runs and persists. SEA is always linked in the Rust workspace; --sea is a compatibility no-op.
sea-learn-loop — exercise the SEA self-learning completion
Driver: .agents/skills/sea-learn-loop/learn.sh (paths relative to repo root).
CLI check — evidence is the RESULT: line and both passes' metadata lines.
SEA is always available in the Rust workspace. The default run exercises the
real SEA path. The first pass starts with no evidence; the second must recall
the first pass's persisted record after reopening the scratch store. Both must
report successful persistence and adaptation. --sea is accepted for
compatibility and does not change the build path.
Prerequisites
- Pinned stable Rust 1.99.1 via
./tools/cargo.sh(never bare Homebrewcargo).
Run (agent path)
.agents/skills/sea-learn-loop/learn.sh # default SEA-on path
.agents/skills/sea-learn-loop/learn.sh "my custom prompt" # custom input
.agents/skills/sea-learn-loop/learn.sh --sea # accepted; no-op on build path
It builds the locked CLI into the same target directory it executes, creates a
unique scratch store under target/skill-scratch/ (never the live ~/.abi/),
overrides inherited persistence settings and runs
abi complete --learn -- "<input>" in two separate processes. It requires
learn=true, local generation provenance, persisted=true, adapted=true,
and nonzero second-pass evidence_count on the metadata line, not inside the
generated response. Its own scratch directory is removed on exit; other runs'
stores are untouched. Prints
RESULT: PASS — SEA learning persisted, adapted and recalled across processes.
(exit 0) or RESULT: FAIL (nonzero). Audit-vetoed prompts intentionally fail
this acceptance smoke because they must not learn.
Gotchas
- First-pass
evidence_count=0is expected in a new scratch store, but a zero second-pass count fails the cross-process recall check. - The requested-model line shows the catalog default (
claude-fable-5) whileprovider=localandgeneration_engine=persona-templateestablish that--learnis not a live API call; no credentials are needed. - Every metadata field rides that one first line, including
learn=true evidence_count=N adapted=B self_learn_cycle=... recall_ready=....self_learn_cyclereports what actually happened (persistence+adaptation+recallonly when the learning write committed,adaptation-onlywhen it was skipped or disabled,adaptation-only+write-unknownwhen the outcome is unknown) — never a completed cycle that the adjacentpersisted=andwdbx_status=fields contradict. Do not move the learn fields onto their own line: the smoke reads only the first line, which is the boundary that stops markers repeated in generated response text from satisfying a persistence check. - First build may compile the workspace; later
./tools/cargo.sh build -p abi-cliruns are incremental. --learnis local persona-template learning, not live-provider or bridge inference. Combining it with--liveor a local-bridge model is rejected; this does not train language-model weights.
Troubleshooting
| Symptom | Fix |
|---|---|
build FAIL | ./tools/cargo.sh build -p abi-cli, then ./tools/check.sh. |
missing learn=true | complete grammar drifted — check crates/abi-cli complete handler + --learn. |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |