diff --git a/.archon/workflows/lakehouse-architect-review.yaml b/.archon/workflows/lakehouse-architect-review.yaml new file mode 100644 index 0000000..cc116b3 --- /dev/null +++ b/.archon/workflows/lakehouse-architect-review.yaml @@ -0,0 +1,42 @@ +# Real Archon workflow on the Lakehouse repo, fully via our gateway. +# Three Pi nodes, each fires LLM → /v1/chat/completions → OpenRouter, +# every call lands a Langfuse trace + observer event. +# +# Read-only (allowed_tools: [read]). Don't pass --branch / leave +# --no-worktree at runtime so Archon doesn't try to create a worktree. +name: lakehouse-architect-review +description: 'Pi reviews Lakehouse architecture in 3 turns through our gateway.' +provider: pi +model: openrouter/x-ai/grok-4.1-fast + +nodes: + - id: shape + prompt: | + Read these files and answer in 3 short bullets describing the + architectural shape of Lakehouse: + - /home/profit/lakehouse/Cargo.toml + - /home/profit/lakehouse/lakehouse.toml + - /home/profit/lakehouse/docs/MODE_RUNNER_TUNING_PLAN.md + Be terse. No preamble. + allowed_tools: ["read"] + effort: low + idle_timeout: 90000 + + - id: weakness + prompt: | + Read /home/profit/lakehouse/crates/gateway/src/v1/mod.rs and + identify ONE real weakness or risk. Cite file:line. One paragraph. + allowed_tools: ["read"] + effort: low + idle_timeout: 90000 + depends_on: [shape] + + - id: improvement + prompt: | + Based on the prior weakness ($weakness.output), propose ONE + surgical improvement (≤6 lines of Rust). Show the patch as + `old_string` and `new_string` in markdown code blocks. + allowed_tools: [] + effort: low + idle_timeout: 90000 + depends_on: [weakness]