Repository navigation
merge(api): contract pages read every answer from the drivers - #78
Merged
Merged
Conversation
The page guard compares the generated capability page with the committed one and names the row at fault, so a driver whose answer changed without regenerating is found at the cell of its setting or fact. Co-Authored-By: OpenCode on RiVault <noreply@r-ccs.riken.jp>
The capability page is a walk over `AgentSetting::ALL`, `DriverFact::ALL` and the registered drivers; each cell is the text of the driver's `answer` or `fact`, and the rows no driver declares (gateway route, stop, authoritative trace, skills layout) read its typed specs. The configuration page shows each driver's answer for every path whose reach is `Agent(..)` and marks `CandlerOnly` paths as such. The census cells read the drivers' `Census` facts, so the rows no longer restate them by hand. Co-Authored-By: OpenCode on RiVault <noreply@r-ccs.riken.jp>
Co-Authored-By: OpenCode on RiVault <noreply@r-ccs.riken.jp>
The configuration page walks every value of a path's setting family, labelled, so OpenCode's bypassPermissions mapping and its refusals of ultracode and the SSE transport are shown. The two pages share one answer wording, and the capability page drops the spec rows that restate a fact or an answer. The page guard names the differing row of every page from one comparison. Co-Authored-By: OpenCode on RiVault <noreply@r-ccs.riken.jp>
Co-Authored-By: OpenCode on RiVault <noreply@r-ccs.riken.jp>
Co-Authored-By: OpenCode on RiVault <noreply@r-ccs.riken.jp>
Co-Authored-By: OpenCode on RiVault <noreply@r-ccs.riken.jp>
The gateway route and authoritative trace rows call write_row twice, directly, instead of through a table of fn pointers. The SpecCell alias and the SPEC_ITEMS const are gone, so no fn-pointer table stands where the leaf's ROWS table stood. Co-Authored-By: OpenCode on RiVault <noreply@r-ccs.riken.jp>
Round 3 removes the SpecCell alias and the SPEC_ITEMS const that the round-2 rename had left in place under a new name, and says so plainly in the Review section and gate 1's row. Co-Authored-By: OpenCode on RiVault <noreply@r-ccs.riken.jp>
The configuration page is regenerated from the merged code, so it loses the snapshots row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LittleCoinCoin
added a commit
that referenced
this pull request
Nov 25, 2026
## Why Candler's purpose is to run and grade "LLM-based agents under controlled conditions". A review of how it was built found the defects had common causes: - stored state with a second producer in tests and fakes; - inputs read in several places; - per-harness facts that each driver stated in its own way. The visible symptoms: - an OpenCode run named no MCP server; - the tool-catalog snapshot came from a constant; - a setting a harness could not honour could pass without a word. This campaign removes those causes instead of patching the symptoms. Each kind of stored state now has one producer. Each experiment input has one reader. Every fact about a harness is stated in one shape that each driver must answer. As a result, one cell run on either harness installs the same MCP servers and records each MCP call in the same form. ## Changes Levels 1 and 2: one producer, one reader (#59–#69) - Sealed runs have one test producer, the runner's own code (#60). `collect` is checked against the files the agent wrote (#62). - Each experiment input has one typed reader, and inputs that were silently ignored are refused (#63). MCP servers are typed and read in one place (#63, #66). - Every stored output keeps its execute bit, whatever produced it (#68). `kill` refuses to run off a terminal without `--yes` (#61). - The contributing guide defines sane work and adds a leaf template (#59). - An outside consumer's pass on the result is recorded in `__reports__/diet/05-findings_dogfooding_pass_v0.md` (#69). Level 3: harness parity (#70–#80) - One Candler-side list of what an experiment can set (`AgentSetting`, `DriverFact`). Each driver answers each entry as mapped, provided by Candler, or refused with a reason, in an exhaustive match. A new setting does not compile until both drivers answer it. One walk before planning is the single place refusals happen (#71, #72). - Both drivers render MCP config from the typed servers. Code mode is off unless the experiment turns it on (#74). - Both trace readers record an MCP call as one origin, `{server, tool}`. A server name that a harness would rewrite or split is refused (#75). - The capability pages are generated from the drivers' answers (#78). - The constant catalog snapshot is gone. `inspect` shows the resolved MCP config instead (#77). - A container test runs one experiment file on Claude Code and on OpenCode with a real stdio MCP server. It asserts that the server is resolved, rendered, and traced as `{server: parity, tool: stamp}` on both (#79). - Effort and permission-mode text has one reader. A replayed cell with unknown text is refused at its field instead of falling back to the default. The per-driver MCP passthroughs are deleted (#80). ## Breaking changes - `catalog-snapshot.schema.json` and `inspect-run`'s `catalog` are removed. `inspect-run/1` now requires `mcp`. - An experiment or `--set` naming `snapshots` is refused. - MCP servers are typed: a malformed server is refused, and so is a name with a `.` or a trailing `_`. - Inputs that used to be ignored silently are refused, and replicates are read once. - `codemode` now defaults to `false` and is filled at resolve, so cell digests change. New cells omit `snapshots`, which also changes their digests. Old manifests and imports still read. - A stored cell whose effort or permission-mode text names no known value is refused on replay. ## Hard parts - Claude Code defers MCP tools behind `ToolSearch`. So the parity test's scripted model has to search before it calls, and Claude Code's census comes from its `system/init` line, not from the first model request. - OpenCode 2.2.7 has no endpoint that lists tools. Its census stays with the gateway's record of what the model was offered. - When no permission mode is set, the two harnesses behave differently. OpenCode always allows every tool. Claude Code run headless denies calls that need approval. This is now declared as a per-driver fact instead of being hidden. ## Not covered - Which default to use for a cell that sets no permission mode. On a cell with MCP servers, Claude Code denies the calls and OpenCode allows them. The capability page states it, but no default is chosen yet. - The capability pages do not yet say when a call reads `other` or `builtin`: an ingested run without a cell, an undeclared server, or an unknown non-MCP tool. - The evaluator protocol's `context.snapshots` key stays until the next helper release. Removing it breaks plug-ins that read it unconditionally. - `catalog-snapshot.schema.json` belongs in htn-creator-eval now; the matching test is skipped until it moves. - Hooks and instruction files (`CLAUDE.md`, `AGENTS.md`) are not part of the declared settings. ## Observations - Every merge into the branch that touched the paths `container-e2e` watches waited for it to be green. That was 16 of 19 PRs; the other three and the direct roadmap and report commits touched none. - Spend was measured from transcripts. Levels 1 and 2 cost $90.93, or at most about $99 counting container runs, against a $127 ceiling. Level 3 cost $61.78 against $70. - A cost trial had a RiVault model (Reasoning-Medium, DeepSeek-V4-Flash) implement the capability pages. At a 32k output limit it ran out without editing; at 64k it finished. In one review round it renamed a table so that a `grep` gate stopped matching while the defect stayed. A review that judges the structure behind a gate caught it. - The record of the campaign is in `__reports__/diet/06-knowledge_transfer_integrity_v0.md` and `__roadmap__/integrity/`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The capability and configuration contract pages were partly hand-written: a table of labels and function pointers decided each capability row, a census row wrote one driver's answer by hand, and the configuration page showed one sample setting per path. A page could therefore disagree with what a driver answers, and the page test would not notice a changed answer. Every per-harness statement on the pages is now read from the drivers' declarations.
Changes
AgentSetting::ALLandDriverFact::ALLfor each registered driver; each cell is the driver'sanswerorfact, in one wording function shared by both pages. Two rows that only a driver's typed spec holds (gateway route, authoritative trace) render that spec.bypassPermissionsmapping and itsultracodeandsserefusals are visible. Candler-only paths are marked as such.Censusfact. The facts now say Claude Code's census is itssystem/initevent, and OpenCode's is the tools the gateway offered the model in its first request.settlecompares each generated page with the committed one and names the first differing row. With an OpenCode answer changed, the base passes and the tip fails naming thecost caprow.Hard parts
stop,skills layout) were deleted, so each statement appears once.Not covered
container-e2eis read from this pull request's CI.Observations
Reasoning-Medium, DeepSeek-V4-Flash), with a Sonnet review from the diff; the leaf report records the five runs. One review round caught a rename that satisfied gate 1's grep while the table it stands for remained.🤖 Generated with Claude Code