These instructions apply to every contributor, operator, script, and automation lane working in this repository.
- Treat GitHub as the source of truth for project state, issues, pull requests, reviews, and final history.
- Read
docs/START_HERE.mdbefore starting any task. - Read
docs/FLOWMEMORY_HQ_CONTEXT.mdbefore making design or implementation choices. - Read
docs/CURRENT_STATE.mdimmediately before working so you understand what exists and what does not. - Read
docs/ROOTFLOW_V0.md,docs/FLOW_MEMORY_V0.md, anddocs/V0_LAUNCH_ACCEPTANCE.mdbefore working on launch-core Rootflow, Flow Memory, verifier, receipt, dashboard, or memory-signal tasks. - If local context conflicts with GitHub, stop and reconcile the difference before editing.
- Work only on the assigned scope.
- Do not edit unrelated files.
- Do not rename, move, or delete files outside the task unless the task explicitly asks for it.
- Do not build product features during bootstrap, planning, or research tasks.
- When blocked, document the blocker and the smallest useful next step.
- Use
docs/ISSUE_BACKLOG.mdto understand issue dependencies and milestone placement. - Use
docs/WORKTREE_ASSIGNMENTS.mdwhen assigning or briefing worktree lanes. - Use
docs/PR_PROCESS.mdfor branch naming, draft PRs, merge order, dirty worktrees, and issue closing. - Use
docs/DAILY_HQ_RUNBOOK.mdfor morning review, triage, monitoring, and handoff. - Use
infra/scripts/status-report.ps1for read-only local worktree, PR, and issue status. - The immediate major milestone is public FlowMemory launch hardening: agent memory, Agent Bonds, public-agent surfaces, dashboard/mobile operator apps, and public-safe verification gates. Do not surface separate chain, token, or network-infrastructure research in public launch paths unless explicitly scoped.
- Do not hardcode secrets, tokens, private keys, seed phrases, RPC credentials, API keys, or webhook URLs.
- Keep heavy AI, model, memory, artifact, and media data off-chain.
- Remember that storage is not free and transaction hashes do not store arbitrary data.
- Remember that Uniswap v4 hooks cannot know
txHashorlogIndexat execution time. - Let indexers and verifiers derive
txHashandlogIndexafter reading receipts and logs. - Store roots, receipts, commitments, attestations, proofs, and work state on-chain only when they are intentionally part of the protocol.
- Treat Meshtastic and LoRa as low-bandwidth control signaling, not normal internet bandwidth.
- Add tests where practical, especially for protocol logic, parsers, cryptography, indexers, verifiers, and hardware control paths.
- Prefer small, reviewable pull requests.
- Keep documentation updated when changing architecture, security assumptions, public contracts, or agent workflows.
- Record durable architectural decisions in
docs/DECISIONS/. - Use issues for unknowns, research tasks, hardware tasks, security tasks, bugs, and feature proposals.
- End every task with a PR-ready summary that includes:
- What changed
- Why it changed
- Tests or checks run
- Risks, assumptions, and follow-ups