A Human-AI Alignment (HAA) framework for making human taste executable by AI coding agents. Provides MCP tools for alignment loop orchestration, Ralph verification, and session state inspection.
Agora has 8 tools with complete input schemas and descriptions. Naming follows verb_noun convention (agora_status, agora_new, agora_intake, agora_align_step, agora_ralph_step). Descriptions are substantive (100-300 chars), explaining what each tool does and when to use it. However, output schemas are not documented in the visible code, tool responses are JSON envelopes but the structure of StepEnvelope, CommandEnvelope, and their fields are not described in the tool definitions themselves. Error handling is present (envelopeToMcp returns isError flag) but lacks recovery guidance. Parameter descriptions are good but some lack format constraints (e.g., raw_text in agora_intake has minLength:1 but no max; llm_responses array items lack detailed field descriptions). Tool composition is strong, each tool has a single responsibility and outputs reference IDs for chaining (mcp_tool hints in next[] array). Security: no credentials in params, but no explicit permission gates or audit logging visible in the MCP layer.
Advance the Agora Alignment Loop one step. Host supplies reasoning + user answers via subsequent calls; Agora makes no LLM call. Returns a StepEnvelope (kind: done | advanced | needs_user_input | needs_reasoning | error). Covers the full loop: telos → form → material → efficient → Socratic elenchus → Plato maturity → acceptance criteria → handoff. Relay contract for needs_user_input questions: (1) Each question carries `philosopher` (which of Agora's five philosopher modules is asking: husserl/socrates/aristotle/plato/aquinas) and `purpose_label` (why this question is being asked). ALWAYS show both to the user alongside the question — e.g. a '🏛 Aristotle — <purpose_label>' line before the prompt — never hide who is asking or why. (2) Questions marked open_question:true are open-ended examinations (Socratic probes, Noesis tests): you MAY draft candidate answers as selectable options for convenience, but present them as suggestions, state explicitly that the question is open, invite the user to add their own thoughts beyond the options, and compose the submitted answer from what the user actually selected and wrote. Never submit reasoning the user didn't voice.
Run Gate 0 pre-flight infrastructure probes (CLI auth, deps reachable). Read-only; makes no LLM call. Pass include_disabled to also surface tier 2+ probes, or refresh to bust the 5-minute probe cache.
Capture Phase 1 open intake — the user's raw intent/context dump — into .agora/intake.json and advance alignment to Phase 1. LLM-free; mutating. Call once after agora_new and before agora_align_step. Pass the user's intent as raw_text.
Start a new Agora session in the current project: runs the Phase 0 auto-scan (brownfield/greenfield detection) and materializes .agora/. Call this once before agora_align_step. LLM-free; refuses if a session already exists.
Output schemas not documented. Tools return StepEnvelope and CommandEnvelope objects, but the structure, field types, and required fields are not described in tool definitions. LLMs cannot plan downstream calls without knowing what fields to expect.
Error responses lack recovery guidance. envelopeToMcp returns {ok:false, error:{code, message}} but does not suggest next steps. E.g., if agora_new fails because a session exists, the error should suggest 'Call agora_resume to inspect the existing session' or 'Call agora_status to check phase.'
Parameter constraints incomplete. agora_intake.raw_text has minLength:1 but no maxLength. agora_align_step.llm_responses array items have properties {id, content} but no description of what 'id' should be or what 'content' structure is expected (string vs object). agora_trace.limit has no min/max bounds.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Advance the Agora Ralph loop one step. Host supplies reasoning + Z2 confirm via subsequent calls; Agora runs deterministic Gates 1/2 in-process and asks the host for Gate 3/4 Disputatio + Gate 5 drift reasoning. Returns a StepEnvelope (kind: done | advanced | needs_user_input | needs_reasoning | error). Covers Gates 1-5 plus Z1 self-correction and the Z2 mini-alignment confirm. Relay contract for needs_user_input questions: each may carry `philosopher` and/or `purpose_label` — ALWAYS show them to the user alongside the question so the user sees who is asking and why.
Inspect the current session and report the next concrete step (which command/phase comes next). Read-only; makes no LLM call.
Show the current Agora session phase + progress, including the Ralph drift trend when in a Ralph phase. Read-only; makes no LLM call.
Query the .agora/events.jsonl audit log. Filter by event type, time window, command substring, and limit. Read-only; makes no LLM call.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Tools are marked with Risk: READ_ONLY or WRITE in metadata, but MCP tool definitions do not include these hints. Clients cannot infer safety properties from the schema alone.
Destructive operations lack confirmation step. agora_new, agora_intake, agora_align_step, and agora_ralph_step all mutate state (.agora/ directory, session phase, events.jsonl). No dry-run or confirmation mechanism visible to prevent accidental state corruption.