Skip to content

Describe every field of .cairn/config.json - #478

Merged
benschac merged 1 commit into
mainfrom
docs/config-descriptions
Dec 1, 2026
Merged

benschac merged 1 commit into
mainfrom
docs/config-descriptions

Conversation

@benschac

@benschac benschac commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

The .cairn/config.json reference page showed "—" for all 79 fields. Each field in packages/contract/src/config.ts now has a description, written from the spec's config, catalog, routing, attempts and redaction sections and checked against the code that reads it. The descriptions reach the committed packages/contract/schema/config.schema.json, which the docs page is built from.

  • Annotations on checked schemas. In Effect, an annotation on a schema that has checks attaches to its last check. A check with no JSON Schema form, such as judge.pass > judge.flag or the calendar-date check on effective, is left out of the generated JSON Schema, and its description goes with it. For judge, planner and prices[].effective the description is set before the checks, with a comment saying why.
  • Test. apps/docs/test/reference.test.ts builds the config page from the live schema and expects no field without a description. I renamed one description to title and watched it fail naming judge.model, then restored it.
  • Not in this PR. The other files' fields: manifest.json, spec.json and events.jsonl are about to be split up, and trace.json and judgments.json were left for later. The three CLI flags with no description (admin backup --out, admin restore --in, connect agent --actions) are also left.

Codex reviewed it twice. The fixes are stacked on top: #479 (round 1) and #480 (round 2).

Checks: the contract typecheck, config.test.ts, the 23 docs tests, the full docs build with no config warnings, generate-schema.ts --check, and the pre-commit hook pass. I didn't run the full pnpm check locally.

🤖 Generated with Claude Code

The file reference page for config.json showed "—" for all 79 fields.
Each field's schema now carries a description, written from the spec,
so the generated JSON Schema and the docs page explain every setting.
A description on a schema with checks is set before the checks: Effect
puts an annotation on the last check, and a check with no JSON Schema
form drops it. A docs test fails when a config field has none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

benschac commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner Author

benschac commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner Author

Merge activity

  • Dec 1, 4:59 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 1, 4:59 PM UTC: @benschac merged this pull request with Graphite.

@benschac
benschac merged commit 1af38c5 into main Dec 1, 2026
2 of 3 checks passed
benschac added a commit that referenced this pull request Dec 1, 2026
From the Codex review of #478: ceilingUsd filters recommendations and caps
no spending, a deny-list match outside a string value stops the session
being stored, conflicts.high also stacks or orders tasks at plan time,
prefer.faster changes no choice yet, subscriptionsFirst orders by cost only
for recommendations from past results, minTasks and window count per model
ID, reasoning level and harness, explore changes a model only with adaptive
on, and the last of maxRounds only reports. The file reference now walks a
map's values, so the per-task limits under attempts.tasks are documented
and the test covers them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
benschac added a commit that referenced this pull request Dec 1, 2026
From the Codex review of #478: ceilingUsd filters recommendations and caps
no spending, a deny-list match outside a string value stops the session
being stored, conflicts.high also stacks or orders tasks at plan time,
prefer.faster changes no choice yet, subscriptionsFirst orders by cost only
for recommendations from past results, minTasks and window count per model
ID, reasoning level and harness, explore changes a model only with adaptive
on, and the last of maxRounds only reports. The file reference now walks a
map's values, so the per-task limits under attempts.tasks are documented
and the test covers them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant