- Build the single product executable with
go build -o mnemon .. - Run
make testfor the deterministic CI suite. It excludes real daemon readiness, CLI E2E, wall-clock scenarios, Docker, and provider calls. - Run
make test-integrationexplicitly for CLI E2E plus Agency timing, race, process, and Docker boundaries; it is not a regular CI gate. - Run
make test-liveonly when explicitly validating the paid Pi/DeepSeek scenarios. - Treat
cmd/memoryandcmd/agencyas command namespaces within the singlemnemonexecutable. Keep existing Memory commands at the root; expose Agency throughmnemon agency ....mnemondremains the local daemon/protocol role, not a second executable. - Keep mnemond boundary suites under
test/mnemondand their data-only fixtures undertestdata/mnemond. - Treat
.claude/,.codex/,.openclaw/, and similar host directories as local projection surfaces, not canonical project state.
- Read and follow the Go engineering standard before changing Go architecture, concurrency, durable state, or shared infrastructure.
- Use patterns, channels, generics, callbacks, and registries only when they
reduce sources of truth, state combinations, or modification points. They are
not usage quotas, and reducing
ifstatements or total lines is not a goal. - Keep authority, digest, fence, bounds, CAS cardinality, and fail-closed checks explicit. Every goroutine must have an owner, cancellation, bounded work, and a wait path.
- Preserve independent replay, crash, authorization, and race oracles while compressing fixtures and shared setup.
- Prefer small, logical commits. Split unrelated work instead of committing a broad mixed diff.
- Keep tightly coupled changes together when splitting would leave either commit misleading or incomplete.
- Use the project style already present in history: a concise Conventional Commit title plus one or two focused body paragraphs, with bullets only when they improve scanning.
- Choose the commit type by the primary project effect:
featfor new developer-facing or Agency capabilities.fixfor correctness repairs.testfor tests, eval scenarios, or fixtures that do not add a new reusable capability.docsfor documentation-only changes.refactorfor structure changes without intended behavior changes.chorefor repository hygiene and maintenance.
- Mention validation in the body when tests, evals, or manual checks are part of the work.
- Do not include agent attribution or co-author lines unless explicitly asked.