mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* feat(cli): opt-in signed SIM handoff ingestion (metaharness sim-ingest) Consumes metaharness.sim.handoff.v2 envelopes (ruvnet/metaharness#524). An independent Node-crypto verifier checks the Ed25519 signature over canonical JSON, a trusted key set, the key-to-tenant binding, freshness and that every record belongs to the tenant. Verified evidence is stored under sim:<owner>/<repo> in a dedicated .claude-flow/sim/sim-memory.db, separate from task-agent memory, via the real memory-initializer API. Disabled until .claude-flow/sim/trusted-keys.json sets enabled:true. Idempotent on the content-derived event id; revoke-event leaves a tombstone, revoke-key deletes its events and marks it revoked; reads re-verify each row; every decision goes to an id/hash-only audit log. Refs ruvnet/metaharness#524 Co-Authored-By: RuFlo <ruv@ruv.net> * fix(cli): harden sim-ingest revocation, retention and store separation proof - revoke-key confirms each row's signer before deleting instead of trusting the store's tag filter (two-keys-one-tenant test with the tag filter ignored). - Retention runs from the producer's createdAt; a replay after it has elapsed is rejected (retention_elapsed) rather than re-stored. - An insert that collides with a soft-deleted or expired row reclaims it (tombstones are checked first); covered on the real store by re-signing revoked-key content with a second trusted key. - Real-store test now points CLAUDE_FLOW_DB_PATH at a real task-agent db and proves it holds no sim: rows and that search finds only task notes. Refs ruvnet/metaharness#524 Co-Authored-By: RuFlo <ruv@ruv.net>