Skip to content

feat: agent identity, provenance chain, and brain-stack enhancements#13

Merged
0xNyk merged 2 commits into
mainfrom
feat/agent-identity-provenance
Mar 16, 2026
Merged

feat: agent identity, provenance chain, and brain-stack enhancements#13
0xNyk merged 2 commits into
mainfrom
feat/agent-identity-provenance

Conversation

@0xNyk

@0xNyk 0xNyk commented Mar 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • lacp-agent-id: Persistent agent identity registry — assigns stable agent-<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 via prev_hash, and includes a memory_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-create memory/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-nonexistent
  • bash scripts/ci/test-provenance.sh — empty chain verify, start/end cycle, genesis hash, 3-session chaining, tamper detection, log/export
  • bash scripts/ci/test-brain-stack.sh — audit, scaffold-all (dry-run + real + idempotency), --with-gitnexus flag
  • All 22 other existing test suites pass (2 pre-existing failures in mode-gates and security-controls unrelated to this PR)
  • No secrets, PII, or hardcoded paths in new files

0xNyk and others added 2 commits March 16, 2026 23:26
…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)
@0xNyk 0xNyk merged commit d47ed13 into main Mar 16, 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