Skip to content

v2.1.0-beta: Phase B — Memory & Self-Improvement - #121

Merged
germanf merged 4 commits into
devfrom
v2.1.0-beta
Jul 3, 2026
Merged

germanf merged 4 commits into
devfrom
v2.1.0-beta

Conversation

@germanf

@germanf germanf commented Jul 3, 2026

Copy link
Copy Markdown
Owner

v2.1.0-beta — Phase B: Memory & Self-Improvement

Commits

Commit Scope Description
f680fd2 B2 Fix headroom_learn cron: call _run_learn() instead of nonexistent compute_baseline()
1e18567 B1 Wire MemoryMCPServer through HeadroomSessionMemory with graceful fallback
1161b97 B3 Self-improving skills: emit_workflow_skill() on workflow completion → dashboard/skills/
26f1556 QA Allow version branches (v*.*.*-*) in validate-workflow.sh

Validation

  • ✅ ruff check dashboard/
  • ✅ py_compile on all modified files
  • ✅ pnpm build
  • ✅ pnpm test (37 tests)
  • ✅ validate-workflow.sh (all gates)
  • ✅ FastAPI app import (23 routes)

Gate

This PR requires human approval before merging to dev (per protocol).

KyoX added 4 commits July 3, 2026 18:22
…mpute_baseline()

The cron handler at ops_workflows.py:90 referenced a nonexistent
`compute_baseline()` symbol. The try/except Exception wrapper
silenced the failure every 30 min, so the workflow looked healthy
in the scheduler but never actually ran the headroom CLI.

This wires it to the existing `_run_learn()` in
\dashboard/headroom_learn.py\ which executes `headroom learn` as a
subprocess and tolerates a missing CLI binary. Result is now
`{"status": "ok"}` or `{"skipped": "..."}` — both visible in
workflow_runs.

Part of v2.1.0-beta (Phase B: Memory & Self-Improvement).

Co-authored-by: KyoX <kyox@iscire.com>
Adds an optional Headroom layer on top of existing SQLite memory stores.
- Store operations (store_project_memory, store_org_memory) persist to
  SQLite (ground truth) and also fire a best-effort Headroom remember()
- Search (search_org_memory) merges results from SQLite + Headroom recall
  using key-based dedup
- All Headroom calls are wrapped in try/except — fully graceful when
  headroom SDK is missing, unconfigured, or fails mid-operation
- Graceful skip when headroom binary isn't installed (first call to
  ensure_ready() returns False)

Part of v2.1.0-beta (Phase B: Memory & Self-Improvement).

Co-authored-by: KyoX <kyox@iscire.com>
…ompletion

Adds dashboard/skill_emitter.py with emit_workflow_skill() that
generates a SKILL.md file in dashboard/skills/agent-os-<workflow>/
after every successful workflow run. These files are consumed by
install_platform_skills() in hermes_adapter.py which syncs them
to ~/.hermes/skills/ for Hermes agent discovery.

The hook lives in _run_and_record() in workflow_scheduler.py: after
a completed run, emit_workflow_skill() is called with the workflow
name and result dict. Generated skills include frontmatter (name,
description, version, hermes tags), last-run timestamp, and
curl-based invocation instructions.

Initial seeds generated for headroom_learn and chat_prune.

Part of v2.1.0-beta (Phase B: Memory & Self-Improvement).

Co-authored-by: KyoX <kyox@iscire.com>
The branch-name gate only accepted feature/* and fix/*. Added a
v[0-9]*.*-* pattern so release/integration branches like v2.1.0-beta
pass validation. All code-level checks continue to pass.

Part of v2.1.0-beta (Phase B: Memory & Self-Improvement).
@germanf
germanf merged commit aef15a8 into dev Jul 3, 2026
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