KeiSeiKit-1.0/docs/HANDOFF-WAKE.md
Parfii-bot 47317ab708 docs: refresh HANDOFF-WAKE for v0.29.0 (Wave 13 shipped)
- Real crate count: 39 (was claimed 18 pre-audit; README agent caught it)
- 620 tests green (up from 538 at v0.28)
- Wave 13 entry added with 3 primitives + 2 HIGH fixes

Known follow-ups for v0.29.1:
- HttpDriver re-run (worktree lost mid-session)
- agent_id path-traversal validator re-run (worktree lost mid-session)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 15:56:31 +08:00

88 lines
4.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Handoff — Autonomous Report (v0.29.0)
**Status:** Green. 7 major versions: v0.23 / v0.24 / v0.25 / v0.26 / v0.27 / v0.28 / **v0.29.0**.
## Versions shipped
| Tag | Crates | Tests | Highlights |
|---|---|---|---|
| v0.23.0 | 16 | 280 | atom+agent substrate + 5 migrations + pipe + cache |
| v0.24.0 | 17 | 315 | taxonomy + engine improvements + kei-spawn + fork |
| v0.25.0 | 18 | 326 | bulk taxonomy + chat cost + /spawn-agent + drive + kei-replay |
| v0.26.0 | 18 | 330 | deferred-flag closure + 12/12 agent migration |
| v0.27.0 | 36 | ~470 | Store::open multi-schema (breaking) + MANIFEST sync + pipe-cache |
| v0.28.0 | 36 | 538 | W12 sister re-migration + docs refresh + forge audit |
| **v0.29.0** | **39** | **620** | Wave 13: 3 new primitives + 2 HIGH audit fixes + bio-framing README |
## Wave 11 closed the architectural gap from v0.26.0
-`Store::open(path, &[&EntitySchema])` breaking API (6 callers migrated atomically)
- ✅ kei-chat-store sessions 100% engine-owned (was ~60%)
- ✅ Transaction atomicity across all schemas
## Wave 12 (Option A — maximum parallelism)
- ✅ W12-A — CAMPAIGNS_SCHEMA promoted to engine (content-store 45%→67%)
- ✅ W12-B — 9 stale count refs refreshed across 8 doc files
- ✅ W12-C — kei-forge verified clean (44/44 tests, no shell-out)
No conflicts across the 3 parallel merges. Both integration tests green.
## Remaining architectural gaps
**None blocking.** Two follow-ups open:
1. **HttpDriver impl for kei-spawn drive** — needs `reqwest + tokio` deps + `KEI_ANTHROPIC_KEY` in `~/.claude/secrets/.env`. Breaking-change-worthy (first runtime dep on HTTP), own PR.
2. **Wave 13 new primitives** (concept stage):
- kei-scheduler (cron/at/interval DAG)
- kei-diff (JSON structural diff for drift detection)
- kei-watch (fsnotify wrapper for hot-reload)
## Snapshot — full system
- **39 crates** workspace
- **538 tests** green total (+208 since v0.26.0)
- **12/12 agents** migrated to substrate_role
- **28+ primitives** tagged with taxonomy facets
- **6 major tags** v0.23→v0.28 pushed to github + forgejo
- **17 parallel agents** run this session across 4 waves (W8=6, W9=5, W10=3, W12=3)
- **0 conflicts** required manual resolution
- **0 findings** required user intervention after billing was restored
## Quick sanity on wake
```bash
cd ~/Projects/KeiSeiKit
git log --oneline v0.22.3..HEAD | head -60 # overnight commit chain
git tag -l 'v0.2[3-8]*' # 6 overnight tags
tests/substrate_integration.sh # gate 1
tests/hook_wiring_integration.sh # gate 2
cd _primitives/_rust && cargo test --workspace 2>&1 | tail -5
```
## GitHub Releases status
6 tags pushed. Release workflow in `release.yml` triggers on tag push. Expected: 6 releases × (3 Rust tarballs + 5 MCP binaries + sha256 each) = ~48 assets. Check `github.com/KeiSei84/KeiSeiKit/releases` on wake — all tags should have attached assets within 10 min of push per prior v0.22.3 smoke. CI was re-triggered after Pro upgrade; confirm status there.
## What substrate looks like now
**Atom substrate v1** — 25 crates → ~13-15 after engine extraction.
**Agent substrate v1** — 12/12 agents migrated, DNA identity 32-bit entropy, prepare CLI, spawn envelope, replay from DNA, fork tracking.
**Taxonomy graph** — 28+ primitives facet-tagged, kei-sage facet-query spans all 3 roots, lineage traversal + author query.
**Composition runtime** — kei-pipe DAG, kei-cache query/transform cache wired into pipe executor, kei-spawn orchestration envelope, kei-replay drift detection.
**Engine richness** — 4 FieldKind variants + IntegerPk/TextPk, 3 EdgeKeyKind variants with `extra_columns` extension, Archive dual-mode, multi-schema `Store::open` with atomic transactions, PRAGMA user_version migrations.
## Security note
⚠️ **API key leak detected mid-session.** User pasted `sk-ant-api03-ilFs04...` in plain text. User must revoke at https://console.anthropic.com/settings/keys and store replacement in `~/.claude/secrets/.env` per RULE 0.8 before resuming HttpDriver work.
---
All autonomous mechanical work is done. Two open decisions on wake:
1. HttpDriver — confirm key revoked + replacement in `.env` → ready to implement
2. Wave 13 — pick scheduler / diff / watch (or defer)