Skip to content

docs: scaffold HEARTBEAT.md in init.sh and sync docs/PLAN for v0.12-v0.15 - #137

Merged
rlaope merged 2 commits into
masterfrom
docs/v0.15-polish-and-scaffold
Dec 1, 2026
Merged

rlaope merged 2 commits into
masterfrom
docs/v0.15-polish-and-scaffold

Conversation

@rlaope

@rlaope rlaope commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

Completes the scaffolding and documentation pass for v0.12–v0.15:

  • init.sh & test/install.test.ts: idempotently scaffolds HEARTBEAT.md from agent/HEARTBEAT.md alongside SOUL.md, AGENTS.md, USER.md, and MEMORY.md, pinned with a --dry-run check.
  • agent/AGENTS.md & profile/cordis.patch.yml: documents daily episodic notes (memory/YYYY-MM-DD.md), fact supersession (memory/archive-superseded.md), topic spill notes (memory/topic-*.md), /dream, HEARTBEAT.md, and the opt-in v0.14/v0.15 config keys (without changing composed profile defaults).
  • README.md & docs/setup.md: documents chat slash commands, inboundDebounceMs, proactive HEARTBEAT.md, loopback webhooks, voice-note transcription, daily notes, supersession, /dream, session idle/daily reset + preResetMemoryFlush, entity/tag recall boosting, and incremental recall caching (--full).
  • PLAN.md: records v0.12–v0.15 in Done, updates the [quiet] history-pointer item in Open, and lists v0.14/v0.15 live-model/timer items explicitly under Unverified.

Verification

  • pnpm run build && pnpm run typecheck && node test/profile.test.ts && pnpm test passed locally (EXIT=0).

…0.15

What was missing:
- init.sh did not scaffold agent/HEARTBEAT.md into new agent homes.
- README.md, docs/setup.md, agent/AGENTS.md, profile/cordis.patch.yml, and PLAN.md had not yet been updated to document v0.12-v0.15 capabilities (slash commands, debouncing, proactive heartbeat, loopback webhooks, voice transcription, daily episodic notes, fact supersession, /dream consolidation, session auto-reset & pre-reset flush, entity/tag recall boosting, and incremental recall parse cache) or record their unverified items.

What changed:
- init.sh, test/install.test.ts: added HEARTBEAT.md to the idempotent home scaffold loop and verified via init.sh --dry-run.
- agent/AGENTS.md, profile/cordis.patch.yml: documented the expanded memory layers (daily episodic, supersession/topic spill, /dream, HEARTBEAT.md) and opt-in deepbot config keys without altering composed profile defaults.
- README.md, docs/setup.md, PLAN.md: documented v0.14 gateway UX and v0.15 agentic memory knobs, updated Done/Open/Unverified sections in PLAN.md.

How it was checked:
- pnpm run build && pnpm run typecheck && node test/profile.test.ts && pnpm test passed locally (EXIT=0, including test/install.test.ts and test/secrets.test.ts).

Still unverified:
- End-to-end live model runs and multi-hour wall-clock timers for v0.14/v0.15 features (listed explicitly in PLAN.md).

Signed-off-by: rlaope <rlaope@users.noreply.github.com>
…flake

What was wrong:
- recallFor in test/core.test.ts left autoIndex enabled and deleted dshHome before t.done() without retry options, racing on Windows against the spawned deepbot-recall.js process writing parse-cache.v1.json (ENOTEMPTY).
- The woken-turn deadline test used a fixed 500ms sleep after settleJob, occasionally missing completion on busy CI runners.

What changed:
- Passed autoIndex: false in recallFor (which seeds its own recall index), called t.done() before rmSync, and added maxRetries: 5 / retryDelay: 50.
- Replaced the fixed 500ms sleep with a bounded poll waiting up to 1.5s for e.disposed.length > 0.

How it was checked:
- pnpm run typecheck && node test/core.test.ts passed locally (673/673, EXIT=0).

Signed-off-by: rlaope <rlaope@users.noreply.github.com>
@rlaope
rlaope merged commit c5bdaef into master Dec 1, 2026
5 checks passed
@rlaope
rlaope deleted the docs/v0.15-polish-and-scaffold branch December 1, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant