Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.18.0 — Unreleased

- Remove Jev-assisted model routing, its setup skill, policy/approval helpers, catalogs, qualification studies and bundled routing resources.
- Restore ordinary host dispatch with explicit supported user/role choices and native Claude roster defaults; preserve specialist roles, hooks and workflow gates.
- Stop reading legacy global/project routing policies or requiring routing credentials. Existing personal configuration files remain untouched.

## 0.17.5 — Unreleased

- Default task preparation to unknown context requirements unless the handoff establishes a hard minimum, on Claude and Codex.
Expand Down
55 changes: 20 additions & 35 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,43 +52,29 @@ host's capabilities instead of inferring them from this historical observation.

When editing `quest.md`, preserve this three-phase shape. Serializing the review fan-out wastes the whole point of those agents' independence; parallelizing the TDD build chain breaks the independence guardrail.

### Explicit dispatch settings and optional routing

Resolve session/project/global defaults through the installed
[global routing contract](plugin/skills/guildhall-quest/references/global-routing.md).
Reuse unchanged source-bound approval with fresh host controls/evidence; recheck each
worker boundary. Setup writes stay outside Mordain's plan-only execution scope.
### Explicit dispatch settings

Every native `Agent(...)` call includes a literal `model` argument. Resolve it
through valid per-dispatch user choice → role override → activated routing →
eligible roster/frontmatter baseline. Full host-supported IDs are permitted on
dispatch; native agent frontmatter stays in alias form (`sonnet` / `opus` /
`haiku`). Keep each new agent's roster row aligned with its frontmatter; validator
check 8 enforces the default tiers, not actual execution identity.

The explicit-parameter convention dates to historical routing observations on
through supported per-dispatch user choice → explicit role choice →
roster/frontmatter default. Unsupported or invalid explicit choices hold dispatch;
never silently substitute a different model. Full host-supported IDs are permitted
on dispatch; native agent frontmatter stays in alias form (`sonnet` / `opus` /
`haiku`). Fable is forbidden for all Claude adventurers, including full model IDs.
Keep each new agent's roster row aligned with its frontmatter; validator check 8
enforces default tiers, not actual execution identity. Portable hosts inherit the
user's configuration unless a supported explicit override was selected. Do not
translate Claude model aliases or effort names into another host's settings.

The explicit-parameter convention dates to historical model observations on
2026-04-23 and 2026-06-10. Those model-echo self-reports do not prove parameter
precedence. The diagnostic still requests Haiku against Sonnet frontmatter, but
its reply is an unverified hint. Record requested and trusted observed settings
separately; absent host execution metadata means observed `unknown`. This applies
to Mordain's `parent_model` record too. Never infer cost from a model hint.

The [routing guide](docs/model-routing.md) and
[shared contract](plugin/skills/guildhall-quest/references/routing.md) govern the
single helper used by native Claude and portable Claude/Codex. Absent/off policy
skips Python and external calls. Shadow needs explicit activation, not adaptive
qualification. Schema v5 Dynamic routing can select per assignment for all 18
specialists with reviewed controls, task briefs and pinned host catalogs, without
a study or served-model proof. Import roster defaults as role baselines; only
intentional user overrides become locks. Advanced adaptive retains benchmark
qualification. Unknown worker observation does not suspend dynamic mode; known
substitution does. Preserve requested and observed identities separately.
No qualified profiles ship. Prepare global defaults or a project override before the quest, outside Mordain's plan-only write scope. Any policy change requires
renewed activation. Serialize helper decisions and carry returned state across
workers, even when the workers run concurrently. Keep test-author routing facts
within its permitted handoff. Routing never changes reviewers, permissions,
role contracts, IDD ownership or retry budgets. Fable remains forbidden for all
Claude adventurers, including full model IDs.
Ordinary worker dispatch requires no model-selection helper, configuration
discovery, approval, API key or external service. Model choices never change
reviewers, permissions, role contracts, IDD ownership or retry budgets.

### IDD-framework is the upstream spec producer

Expand All @@ -108,7 +94,7 @@ trusted host metadata or use `unknown`.
- **Opus:** `architecture-reviewer` (Aldric), `security-reviewer` (Oriana), `reliability-reviewer` (Thalia), `migration-safety-reviewer` (Ysolde). The four classes where a miss is hardest to reverse — bad architecture, bad security, cascading prod failures, irreversible data changes.
- **Sonnet:** `test-author`, `feature-implementer`, `ui-test-author`, `docs-writer`, `pr-author`, `prototype-builder`, `debug-investigator`, `observability-reviewer` (Vance), `performance-reviewer` (Cassia), `ops-readiness-reviewer` (Garran), `accessibility-reviewer` (Lior). The majority — execution and structured checklist work.
- **Haiku:** `refactorer` (Tink), `plugin-validator` (Tabs), `fog-cartographer` (Wren). Narrowly-scoped behavior-preserving refactors and mechanical regex / structural checks, and faithful transcription.
- **Diagnostic:** `model-echo` (Sonnet frontmatter, requested Haiku; its reply is an unverified hint, never routing proof).
- **Diagnostic:** `model-echo` (Sonnet frontmatter, requested Haiku; its reply is an unverified hint, never execution proof).

Every agent's frontmatter `model:` uses an alias (`sonnet` / `opus` / `haiku`),
not a full model ID — full IDs surface as warnings from `plugin-validator`.
Expand Down Expand Up @@ -140,8 +126,7 @@ from those unchanged defaults.

Keep `sonnet` frontmatter and roster defaults. Sonnet 5.5 support in Claude Code
requires 2.1.284+; check the executing host and provider mapping during setup.
The optional reviewed `host.model_resolutions` records known version/default-effort
changes for approval without treating them as execution evidence. Follow the
[installed mapping contract](plugin/skills/guildhall-quest/references/task-routing.md#sonnet-55-and-reviewed-model-mappings).
Do not copy API effort defaults into worker dispatch or launch qualification runs
just to refresh a supported model. Existing user locks remain intentional locks.
Use a supported explicit user or role choice when a specific full model ID is
needed; otherwise retain native defaults. Do not copy API effort defaults into
worker dispatch. Record requested settings separately from trusted execution
metadata, or observed `unknown`.
61 changes: 10 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Guildhall

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Plugin](https://img.shields.io/badge/plugin-v0.16.0-green.svg)](plugin/README.md)
[![Plugin](https://img.shields.io/badge/plugin-v0.18.0-green.svg)](plugin/README.md)

**Give a coding task to a team of AI specialists that writes tests, implements the
change, reviews it and prepares a PR draft.**
Expand All @@ -20,8 +20,8 @@ code, tests, review evidence and a PR draft. Publishing a PR is a separate actio
## Install

The commands below install Guildhall from its published main branch. This branch
prepares **0.16.0**, adding a conversational specialist-routing setup wizard
alongside global defaults and persistent approvals; those changes reach the main install route after merge.
prepares **0.18.0**, removing optional Jev-assisted routing and its setup skill;
those changes reach the main install route after merge.
Choose one route for your coding app. No repository clone, build or IDD
installation is required.

Expand Down Expand Up @@ -68,8 +68,8 @@ Choose **project** to keep the skill with this project; choose **global** if you
want it available across projects. Version `1.5.25` is the tested installer pin,
not the Guildhall version.

Choose `guildhall-quest` for coding workflows and `guildhall-routing-setup` for
the optional conversational routing wizard. Each skill is independently installable. Standalone skills do not install Claude's native
Choose `guildhall-quest`, the generated skill for coding workflows.
Standalone skill installation does not install Claude's native
agents or hooks. After restarting your app, ask it to use `guildhall-quest` to
prototype a small task. The `/guildhall:quest` examples below are native Claude
plugin commands; skill-only installs use `guildhall-quest` instead.
Expand All @@ -95,8 +95,9 @@ $guildhall-quest Prototype a Python CLI that summarizes a local CSV file.

For feature work, describe the desired behavior and how it should be tested.
Guildhall plans the work, dispatches a separate test author before the implementer,
and selects reviews based on the change. It uses your host's configured model;
Claude's native route also retains its role-specific model aliases.
and selects reviews based on the change. It uses ordinary host dispatch and
supported explicit user/role model choices. Claude's native route retains its
frontmatter defaults; portable hosts do not invent equivalents for Claude aliases.

A concrete task description is enough to start. You do not need IDD artifacts or
an IDD plugin installation to use these prototype, feature or debug workflows.
Expand All @@ -114,43 +115,6 @@ The test → build → refactor sequence stays ordered. Independent reviews may
in parallel when the host supports it. Mordain's own edits remain limited to the
plan; specialists carry out the implementation and review work.

## Optional: Jev-assisted model routing

The optional routing helper is shared by native Claude and the portable
Claude/Codex skill. Routing is **off by default**. Ordinary quests retain their
existing model defaults without a Jev key or the routing Python runtime.

- **Shadow** records recommendations while keeping baseline dispatch. It needs
explicit activation, supported candidate profiles and Python 3.12+; it does
not require adaptive qualification.
- **Dynamic** selects per task among reviewed supported model/effort pairs without
a qualification study. Available on Codex and both Claude routes under schema v5.
- **Benchmark-qualified adaptive** can route any of the 18 specialists under schema v4, but only
when that role is explicitly enabled and independently qualified for its host,
task category and objective. No qualified profiles ship with this release.

To use the wizard, ask **“Set up Guildhall routing”** or invoke:

```text
$guildhall-routing-setup Set up model routing across my projects.
```

The wizard detects the host, asks short choices, previews settings and saves them
after your selected action. Automatic-selection setup recommends Dynamic routing; shadow is optional.
No study or paid setup probe is required. It also handles changes, diagnosis and disabling routing. Native
plugins include the skill; standalone users select it during installation.

Configure routing once per host with [global defaults](plugin/skills/guildhall-quest/references/global-routing.md)
in `~/.config/guildhall/routing.json` (or XDG_CONFIG_HOME). Approve the selected
policy for all projects once; unchanged approvals persist across sessions. Optional
`.guildhall/routing.json` project policies override it in full, and a project opt-out
can disable routing. Deleting a project policy restores global inheritance.
An API key alone enables nothing. The [routing guide](docs/model-routing.md)
includes a setup prompt, safe smoke command, data-sharing details, receipts and
disable instructions. The [role matrix and migration guide](plugin/skills/guildhall-quest/references/role-eligibility.md)
explains explicit role scope, fallback defaults and migration. There are no measured Jev savings or live qualification
claims; see the [verification report](docs/reviews/2026-09-21-jev-routing.md).

## Optional: use with IDD

[Intent-Driven Development (IDD)](https://github.com/GrillerGeek/idd-framework)
Expand Down Expand Up @@ -194,20 +158,15 @@ for evidence and remaining limits.
- [Plugin reference](plugin/README.md): native Claude usage and detailed workflows.
- [Character roster](plugin/CHARACTERS.md): eighteen specialists and one diagnostic agent.
- [Portable workflow](plugin/portable/references/quest.md): host-neutral execution contract.
- [Model routing](docs/model-routing.md): optional Jev setup and operation.
- [Contributor guide](docs/contributing-agents.md) and [AGENTS.md](AGENTS.md): source ownership and checks.
- [Design history](docs/superpowers/): previous architecture and model-routing decisions.

Native Claude components live in `plugin/agents/`, `plugin/commands/` and
`plugin/hooks/`. Portable sources live in `plugin/portable/`; the complete
`plugin/skills/` bundles are generated by `scripts/build_portable.py` from the
portable quest source and `plugin/routing-setup/`. Shared routing tools have one
canonical source and ship in both independently usable skills.
`plugin/skills/guildhall-quest/` bundle is generated by `scripts/build_portable.py`
from the portable quest source.
Contributors use Python 3.12+; users do not need the build tooling to load the skill.

## License

[MIT](LICENSE).

For subscriptions, select the optional `usage` routing objective; measured tokens
remain separate from dollar billing and unknown quota limits.
59 changes: 5 additions & 54 deletions docs/contributing-agents.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributing with coding agents

Read `AGENTS.md` first. `CLAUDE.md` retains the established native Claude
architecture and model-routing conventions. Ordinary repository maintenance is
architecture and native model defaults. Ordinary repository maintenance is
not a quest invocation and does not automatically activate quest dispatch rules.

## Ownership
Expand All @@ -10,18 +10,11 @@ not a quest invocation and does not automatically activate quest dispatch rules.
command, nineteen role/diagnostic definitions and native hooks. Preserve these
when maintaining the portable route unless the change explicitly owns both.
- `plugin/portable/`: maintained portable quest entry and host/lifecycle protocol.
- `plugin/portable/scripts/route_model.py`, its routing reference, schemas and
examples: canonical optional routing implementation and public contract.
Native Claude and both skill hosts consume the same generated helper.
- `plugin/portable/scripts/evaluate_routing.py`: canonical offline comparison of supplied observations;
synthetic demonstrations never qualify a model or activate policy.
- `scripts/build_portable.py`: explicit transformation from canonical role bodies
into portable references. Host metadata is stripped; narrow substitutions adapt
guidance, evidence, recovery and runbook contracts. These differences are
intentional and must be reviewed whenever the native role contract changes.
- `plugin/skills/`: generated complete quest and routing-setup bundles; never hand-edit.
- `plugin/routing-setup/`: canonical conversational setup entry and flow. Shared
tools, schemas and routing references still come from `plugin/portable/`.
- `plugin/skills/`: generated complete `guildhall-quest` bundle; never hand-edit.
- Three manifests: portable `plugin/plugin.json`, Codex
`plugin/.codex-plugin/plugin.json`, Claude `plugin/.claude-plugin/plugin.json`.
Keep identity and versions aligned. Claude's existing tier description remains
Expand Down Expand Up @@ -68,8 +61,7 @@ the probe checks its identity and version (1.5.25 by default). It exercises both
bundle path and repository-root discovery for Codex and Claude, ensuring the
canonical authoring source cannot accidentally replace the generated bundle. Acquire development dependencies explicitly;
no network/install step is hidden in normal validation. Consumer projects do not
need this repository's Python tooling to invoke a skill. The optional routing
helper separately requires Python 3.12+ when enabled; absent/off policy skips it.
need this repository's Python tooling to invoke a skill.

A behavioral review of instructions is not a real host run. Before calling a
host production-verified, exercise an installed quest in an isolated fixture,
Expand Down Expand Up @@ -114,40 +106,9 @@ and publish only reviewed summaries. A timeout or interruption preserves partial
state and does not authorize automatic lifecycle reset. On macOS a process-scoped
sleep assertion lasts only for the child run; no persistent power settings change.

## Routing checks and qualification

Read [the routing guide](model-routing.md) and the generated
[routing contract](../plugin/skills/guildhall-quest/references/routing.md).
Edit canonical resources under `plugin/portable/`, then regenerate. The validator
checks bundled schemas against runtime definitions and ensures examples stay off
and unqualified. Tests use fake transport and exercise failure, eligibility,
attribution and packaging contracts without Jev calls.

The offline evaluator accepts supplied JSON records on stdin or a synthetic demo:

```bash
python3 scripts/evaluate_routing.py --demo
python3 scripts/evaluate_routing.py < reviewed-routing-records.json
```

It compares held-out Jev records against static and deterministic baselines for
each role/category, with paired repeats, no lower acceptance, zero critical
misses/violations and at least 10% improvement on the selected objective against
both baselines. Missing pairs or measurements remain inconclusive; quality
regressions fail. Invalid/overflowing data is rejected. `eligible_for_review`
is arithmetic evidence, not qualification: the output always says
`qualification: false`. The demo's 32 fixtures, two repeats and three strategies
produce 48 development and 144 holdout records; all are synthetic.

Review real host attribution and independent task-quality evidence before
approving qualification hashes. No live Jev or cross-host model qualification
has been performed for 0.10.0. Do not use this feature to route its own evaluation
workers or claim synthetic savings as observed results. See the
[release verification](reviews/2026-09-21-jev-routing.md).

## Distribution and versioning

The current package version is 0.17.5; increment all three manifests for further
The current package version is 0.18.0; increment all three manifests for further
installer-visible changes. Existing native Claude agents/commands/hooks remain
preserved. Never rewrite historical plans to claim newer evidence. No repository
change implicitly installs personally, publishes a release or edits the separate
Expand Down Expand Up @@ -181,14 +142,4 @@ repository-root copy installs for Codex and Claude without native clients.
See [the onboarding verification](reviews/2026-09-20-skills-onboarding.md) for
remote refresh/removal evidence and the separate directory-discovery limitation.

The root evaluator CLI remains a thin compatibility entry point. Maintain the full
routing guide in `plugin/portable/references/model-routing.md`, then regenerate.

Maintain `routing_usage.py` in the canonical portable scripts. Usage input schema
1 is separate from routing schema2; v1 routing policy hashes are not rewritten.

Maintain global policy resolution and approval persistence in
`plugin/portable/scripts/routing_config.py` and `references/global-routing.md`.
Configuration schemas have their own version; existing routing policy hashes
and quest state semantics remain unchanged. Test using isolated user directories;
never activate or install into a personal profile during packaging validation.
Never activate or install into a personal profile during packaging validation.
Loading
Loading