Skip to content

Latest commit

 

History

History
160 lines (139 loc) · 9.39 KB

AGENTS.md

File metadata and controls

160 lines (139 loc) · 9.39 KB

Aurora core — agent notes

Core repo: shared Contracts, Processing, Input/Output interfaces, Runtime, and the core/Wasm engine build. Concrete plugins live in input/, output/, app/, web/ directories in this repo — keep that layout.

  • Build/test: cmake -S . -B build, cmake --build build, ctest --test-dir build --output-on-failure (BUILD_TESTS defaults ON). Full-app builds: cmake --preset <linux-app|windows-app> (per-slice presets in CMakePresets.json); core tests alone via cmake -S core.
  • The web demo runs the real graph engine compiled to WASM (core/Wasm, web/engine/, Aurora-51nv.11), not JS copies. web-processing/ is no longer copied into web/demo/ and is kept only with its own parity tests (node web-processing/<name>.test.mjs).

Where things go

  • Tasks (open, blocked, deferred): bd (bd ready, bd list), not markdown TODOs or checkboxes. Auto-export is debounced — run bd export -o .beads/issues.jsonl immediately before git adding task state. Sync rides git, not the Dolt remote (unused here): after git pull, run bd import to upsert the tracked export into your live DB — never --reinit-local.
  • Non-obvious gotchas worth saving future time: docs/lessons/, with Tags:/Applies-when:, routed by the matching .claude/skills/ skill — check it before changing that area, file per docs/lessons/README.md. Before splitting beads across agents or coordinating a bead sequence, read agent-coordination-lessons (docs/lessons/agent-coordination.md).
  • Milestone detail (closed or paused): dated file in docs/log/ + INDEX.md row on close — every material fact, stated once and tightly; paused work logs state + resume pointer. Findings over narration.
  • Before any commit that closes a bead (Aurora- message):* (1) write or update its docs/log/ entry and INDEX.md row (docs/_ids.md is regenerated by the hook), (2) file any lessons per docs/lessons/README.md (bump the README count) and list them in the log, (3) bd export -o .beads/issues.jsonl, then stage. Do this before asking to commit, not after. The pre-commit hook enforces it: docs/check-close.py blocks a commit whose staged export closes a bead with no log naming it, no lessons record (## Lessons or - Lessons:, "none" counts) or no INDEX.md row (bypass: AURORA_SKIP_CLOSE_GATE=1), then check-lessons.sh and check-links.py run on docs-touching commits.
  • Citing another doc under docs/: use Id:/[[id]], not a bare relative path — see docs/README.md's "Citing other docs" section for the full convention. A bare path breaks silently on move/rename and check-links.py only scans docs/ and .claude/skills/, so a citer living outside those (this file included) won't be caught if it goes dead. New docs get an Id: line under the H1 at creation, not as a later cleanup pass.
  • Required, not optional, at the same time as the above: when closing a phase/milestone bead, check its description for a referenced docs/*.md prerequisite analysis or plan. If that doc's Status: line doesn't already say shipped/superseded, correct it and move the doc to docs/archive/ in this same close — do not leave it for a later cleanup pass. A doc that fed already-shipped work and still reads as "exploratory" or "in progress" a week later is a bug, not a style choice; every doc archived in Aurora-0ki/Aurora-rtp/Aurora-o1e/Aurora-afd sat live for one to two weeks past its actual ship date because this step was skipped.
  • Slice READMEs (app/*, input/*, output/*, web/*, tools/*) carry only what doesn't go stale: what the slice is, entry points, slice-specific build toggles, keep-in-sync invariants, credits, and [[id]] pointers. No status or "not yet built" sections — that lives in Status: lines, beads, and docs/log/. When closing a bead that changes what a slice does or how it builds, update its README in the same close; check-links.py scans them for dead citations but cannot tell if the prose is still true.
  • Planning docs: decisions, status, pointers only. No task lists, no build play-by-play. Every doc/section carries a Status: line (shipped/superseded/exploratory/etc.) — but a Status: line is only as trustworthy as its last real edit. Before trusting "still open"/"exploratory", check git log --follow -- <path> for the last substantive edit (not renames/link fixes): if nothing revisited it across real, related shipped work since, the doc is probably stale regardless of what it claims, and belongs in docs/archive/ with a corrected Status: line naming the real last-touched date.
  • The overall roadmap: [[implementation-plan]] (per-phase Status: lines are the source of truth for what's shipped) plus any other still-active, not-yet-decided planning doc — docs/planning/, not root.
  • Shipped, superseded, or stale-and-abandoned plans and analyses: docs/archive/ — kept as the historical record, not deleted or edited into the present tense.
  • WebUI-specific docs (design passes, tooltip content/plumbing): docs/planning/WebUI/, not the docs/ root.
  • Brand/icon source assets (logos, app-icon masters): assets/brand/ — build inputs consumed by app/*/CMakeLists.txt, not documentation.
  • References: cite lessons by headline/topic, files by markdown link, external lessons by topic + directory (URLs live under Related directories).

Related directories to be aware of

  • This family, all in this repo: input/linux, input/windows, input/mac, output/hue, app/linux, app/windows, app/mac, web/demo, web/ui -- core interfaces in core/, resolved by relative path. Per-slice notes in each directory's own README.md; tasks and lessons live here at the root.
  • RockyRoad — reference for Three.js/WebXR scenes, design tokens, and UI components (checked directly during WebUI design).
  • RockyRoadImport — import-pipeline reference (tab bar, forms page, layout tokens reused in WebUI).
  • huenicorn — the original Hue-entertainment reference (Runtime::_update, ScreenWidget.js); ported from, not depended on.
  • hyperion.ng — MIT ambient-lighting reference: Hue TLS verification, Home Assistant output, JSON API/auth/subscribe shape, black-border detection, PipeWire portal capture (PR #2033). Consulted, not depended on; keep its MIT notice on anything ported. See [[external-control]] for what it settled.

Cite reference lessons by topic name, never by path — layouts differ per machine.

Beads Issue Tracker

This project uses bd (beads) for issue tracking. Run bd prime to see full workflow context and commands.

Quick Reference

bd ready              # Find available work
bd show <id>          # View issue details
bd update <id> --claim  # Claim work
bd close <id>         # Complete work

Rules

  • Use bd for ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists
  • Run bd prime for detailed command reference and session close protocol
  • Use bd remember for persistent knowledge — do NOT use MEMORY.md files

Architecture in one line: issues live in a local Dolt DB; sync uses refs/dolt/data on your git remote; .beads/issues.jsonl is a passive export. See https://github.com/gastownhall/beads/blob/main/docs/core-concepts/sync-concepts.md for details and anti-patterns.

Agent Context Profiles

The managed Beads block is task-tracking guidance, not permission to override repository, user, or orchestrator instructions.

  • Conservative (default): Use bd for task tracking. Do not run git commits, git pushes, or Dolt remote sync unless explicitly asked. At handoff, report changed files, validation, and suggested next commands.
  • Minimal: Keep tool instruction files as pointers to bd prime; use the same conservative git policy unless active instructions say otherwise.
  • Team-maintainer: Only when the repository explicitly opts in, agents may close beads, run quality gates, commit, and push as part of session close. A current "do not commit" or "do not push" instruction still wins.

Session Completion

This protocol applies when ending a Beads implementation workflow. It is subordinate to explicit user, repository, and orchestrator instructions.

  1. File issues for remaining work - Create beads for anything that needs follow-up
  2. Run quality gates (if code changed) - Tests, linters, builds
  3. Update issue status - Close finished work, update in-progress items
  4. Handle git/sync by active profile:
    # Conservative/minimal/default: report status and proposed commands; wait for approval.
    git status
    
    # Team-maintainer opt-in only, unless current instructions forbid it:
    git pull --rebase
    bd dolt push
    git push
    git status
  5. Hand off - Summarize changes, validation, issue status, and any blocked sync/commit/push step

Critical rules:

  • Explicit user or orchestrator instructions override this Beads block.
  • Do not commit or push without clear authority from the active profile or the current user request.
  • If a required sync or push is blocked, stop and report the exact command and error.