feat: agent identity, provenance chain, and brain-stack enhancements#13
Merged
Conversation
…audit/scaffold - `lacp-agent-id`: persistent agent IDs per (hostname, project) pair with register/show/touch/revoke/list - `lacp-provenance`: SHA-256 hash-chained session receipts with start/end/verify/log/export - `lacp-brain-stack audit`: system-wide memory coverage report across all Claude projects - `lacp-brain-stack scaffold-all`: batch-create memory dirs for high-traffic projects missing them - `lacp-brain-stack init --with-gitnexus`: optional GitNexus code intelligence MCP wiring - Full CI coverage for all new commands (test-agent-id.sh, test-provenance.sh, test-brain-stack.sh)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lacp-agent-id: Persistent agent identity registry — assigns stableagent-<hex8>IDs per(hostname, project_slug)pair. Subcommands:show,register,touch,revoke,list. Registry stored at~/.lacp/agents/registry.json.lacp-provenance: SHA-256 hash-chained session receipts for tamper-evident continuity. Subcommands:start,end,verify,log,export. Each receipt links to the previous viaprev_hash, and includes amemory_hash(SHA-256 of MEMORY.md at session end). Chain stored at~/.lacp/provenance/chain.jsonl.brain-stack audit: System-wide memory coverage report across all~/.claude/projects/*/directories. Shows total projects, which have memory, and flags high-traffic projects missing it.brain-stack scaffold-all: Batch-creatememory/MEMORY.md+ topic stubs for projects above a session threshold (--min-sessions, default 5). Supports--dry-run.brain-stack init --with-gitnexus: Optionally wire GitNexus AST-level code intelligence as an MCP server during stack initialization.Test plan
bash scripts/ci/test-agent-id.sh— register, show (idempotent), touch, list, revoke, revoke-nonexistentbash scripts/ci/test-provenance.sh— empty chain verify, start/end cycle, genesis hash, 3-session chaining, tamper detection, log/exportbash scripts/ci/test-brain-stack.sh— audit, scaffold-all (dry-run + real + idempotency), --with-gitnexus flag