Skip to content

Build summary: CredenceStack 1.0 final build

What the v1.0 final build delivered, in one page. Every decision, fallback and fix, with its reasons, is in the build log under "v1.0 final build". Nothing was pushed, published or deployed; no real model was called. The release candidate is tagged locally as v1.0.0-rc4.

What shipped, by area

Packs: seven public packs, 155 scenarios in four domains: payments (28), adversarial (21), resilience (14), thirdparty (7), fincrime (36), docintegrity (20) and kyc (29). Visibility is public (everything shipped) or confidential (content a user loads); nothing is held back.

Forge: 44 mutators in seven families; by domain, payments 21 (payments 8, adversarial 5, resilience 5, third party 3), fincrime 10, docintegrity 7, kyc 6. A five-level difficulty dial, grader labelling (recompute, preserve, override), --explain, --validate, --seed fresh, plugins with confidential support. Measured generation rate: about 20,000 scenarios a minute on an Apple M3 Pro laptop (21,740 in phase 10's measurement; the facts file records 20,000).

Environment: CredenceEnv with terminal and shaped rewards, truncation, the kill switch, make_env_batch, run_batch, rollout, connectors as policies, env episode, env export (JSONL), env serve (MCP), and a Gymnasium wrapper that loads only when gymnasium is installed (it could not be installed offline here, so its test skips).

Benchmarks: bench run (authority) and bench brittleness (fixed against generated, five levels, four charts, a report), both under one hard cost cap and refusing real models without --confirm-spend; the offline sample runs in CI.

Connectors: ten, each conformant: LangChain/LangGraph, OpenAI Agents SDK, Microsoft Agent Framework, AWS Strands, Google ADK, Claude Agent SDK, CrewAI, MCP (HTTP and stdio), Python, HTTP.

Telemetry: one registry of spans, attributes (with privacy classes), events and six metrics; traces for runs, generations, environment episodes and benchmarks; ten platform guides (Langfuse, Datadog, Traceloop, Splunk, Grafana Tempo, Honeycomb, New Relic, Arize Phoenix, Elastic, Jaeger) plus any OTLP backend.

Evidence and reports: one manifest format (credencestack.evidence/v1) for run, generate, bench, brittleness, env-export and export; one report engine for runs, benchmarks and brittleness; design tokens shared by the reports, the docs and the site.

Docs: 100 user pages (Get started, Guides, Concepts, Reference, Benchmarks, Why, Project) and 55 developer pages; every example generated by running it; the docs audit checks links, navigation, the glossary, counts, every command and flag, banned and old names, OpenTelemetry names and docs pages named in code.

Test your agent as it is: credencestack test <agent> runs an existing agent with no code changes (its own tools served through a tool map), chooses the packs from what it does, checks the set-up first, runs fixed and generated scenarios and writes an assessment with ranked fixes; backend mode for deployed services; profiles init for your own limits. Added after rc4; see the build log.

The command tree

credencestack test | run | demo | generate | report | doctor | version
credencestack packs      list | show | validate | init | schema
credencestack profiles   init | validate | explain | import
credencestack mutators   list | show
credencestack env        episode | export | serve
credencestack bench      run | brittleness
credencestack evidence   verify | export | inspect | keygen
credencestack connectors list | check
credencestack otel       check | print
credencestack config     show | init

Shared flags: --json, --quiet, --verbose, --no-color everywhere; --out, --seed, -p/--pack, --pack-path, --mutator-path and the --otel* family wherever they apply.

Renamed or removed (old → new)

Old New
credencestack adapters list / conformance, --adapter connectors list / check, --connector
authority explain / validate / import-warrant, policy explain / validate / schema profiles explain / validate / import, packs schema <name>
gate run --fail-on, evidence inspect --fail-on
validate, init (top level) packs validate, packs init
evidence sign --sign on the producing command
bench report report <dir>
mcp serve env serve
--redact-private, --public, --allow-unsigned --redact; outputs verify whether signed or not
all-adapters extra all
oracle (the rule engine), adapter (in user docs) grader, connector
held-back, premium, private (content) confidential (user content only)
packages authority, faults, control, metrics, verifiable, telemetry profiles and graders.authority, env.faults, env.killswitch, graders.oversight, evidence, otel
evidence/report.py, bench/report.py, their templates credencestack.reports
zip bundles output directories (the sample report keeps download archives)
tests/golden/behaviour-baseline.json, scripts/behaviour_baseline.py removed after the last comparison (MATCH)

The private folder

Brought in during this build (phase 3): the previously held-back and premium scenario packs, reviewed, made synthetic where needed and published as ordinary public packs. Left there, by design: business strategy, outreach, pricing, competitor notes, notes about people, the business one-pager and the engineering notes on the former content model. Nothing in the repository depends on the folder; it can be archived. The one-pager's positioning line was not updated (it is outside the repository).

Grading results

No grading of a shipped scenario changed in this build: the behaviour baseline matched after every phase and in the final comparison. Earlier in the build, the 65 opened scenarios got their first baseline, and PAY-028's revised amount was corrected (USD 13,380) so its story is consistent; both are in the build log.

Telemetry defaults and span trees

Off unless --otel (or otel.enabled). One trace per scenario epoch, linked to the run (--otel-granularity run: one trace per command). No content unless --otel-content, and never for confidential scenarios. Environment episodes are traced only with otel=True; a single environment traces every episode, make_env_batch 1% (otel.sample_rate). Metrics only with --otel-metrics.

credencestack run <id> ─ (links) ─ credencestack scenario <id> #<epoch>
                                     ├─ invoke_agent <agent> ─ execute_tool <tool> / chat <model>
                                     └─ credencestack grade <id>
credencestack generate <id> ─ credencestack generate.scenario <id> (per accepted scenario)
credencestack episode <scenario> ─ execute_tool <tool> | invoke_agent <agent> ─ ...
credencestack bench <id> ─ credencestack bench.config <config> ─ credencestack run <id> ─ ...

The website

Written as an Astro project in website/ (not committed, as for every commit of this build) from the approved designs and docs/dev/website-facts.json. Not built here: no Astro package is available offline. Run npm install && npm run check in website/. Deviations from the design and facts corrected:

  • the design's commands that do not exist (--adapter, demo --all-packs, report evidence/latest --open, CredenceEnv(generator=...), the Action's fail-on list of finding types) replaced with real ones from the facts file;
  • the before-and-after card uses a real pair: PAY-002 → G-PAYMENTS-21-0000 (adv.injection.plant, seed 21, level 2; the design's PAY-007 is a duplicate-invoice scenario);
  • the Forge terminal shows real per-pack counts for generate --pack all --n 2000 --seed 42 (payments 279, adversarial 365, resilience 44, thirdparty 105, fincrime 436, kyc 410, docintegrity 361; 1,249 candidates redrawn); the design's even counts were invented;
  • "[N] mutators across seven packs" is 44, with real counts per domain;
  • the difficulty table comes from forge/difficulty.yaml;
  • "Open / Held back" became "Everything is open" and "Fair benchmark rounds";
  • Space Grotesk and JetBrains Mono are not self-hosted (not available locally); headings and code use system fallbacks; Inter is self-hosted.

Still to fill, verify or decide

  • Placeholders: twelve, listed in website/PLACEHOLDERS.md (results from the launch run and the first benchmark round, the article link, the star count).
  • External links: 72 to check in docs/dev/external-links.md, plus the GitHub Pages DNS addresses in website/README.md.
  • TODO-verify: 19 items in docs/dev/todo-verify.md, including the new platform filter syntax (Langfuse, Traceloop, Splunk, New Relic, Phoenix, Elastic), the setup-node action version, and the Hugging Face datasets loader note.
  • Deferred audit item: confidential scenario ids inside bundles. Bundles and their redacted exports show a confidential scenario's id and pack (never its content); telemetry and generation outputs hash it. Hashing ids inside bundles changes the bundle format and every reader; it is a decision for 1.1.
  • Not run here: npm run check (with the HTML validator, axe or pa11y), Lighthouse, the website screenshots, the per-connector install checks of the release check (they download extras), the Docker Collector test, the live tests.

Check results

Check Result
Tests 1,266 passed, 23 skipped (live tests, CrewAI, Docker, Gymnasium)
Coverage 91% of credencestack (lines and branches)
Ruff, mypy (strict on core), pyright (strict) clean
Docs audit 164 files, 0 problems
MkDocs --strict (without -q) 0 warnings
Stealth check (tree, history, metadata) pass
Release check (scripts/release_check.sh --skip-extras) PASS (v1.0.0rc4); the Docker Collector test skipped (no Docker here)
Golden path pass (about a minute)
Behaviour baseline (final comparison) MATCH, then removed
Website: npm run check, HTML validation, axe, Lighthouse, screenshots not run: no Astro offline; check_facts.mjs passes on the sources

Running the real brittleness round

  1. Copy bench/sample_brittleness.yaml to bench/brittleness.yaml (git-ignored) and edit: agents (for example [naive_lc, safe_lc] and any framework agents), models (exact, dated provider:model ids), prices (USD per million input and output tokens for every model), packs (the defaults are all seven), per_level (default 40), epochs (default 3) and max_usd (the hard cap).
  2. Estimate the cost first. Episodes per configuration = (fixed scenarios in the chosen packs + per_level × 5 levels × packs) × epochs: with all seven packs at the defaults, (155 + 1,400) × 3 = 4,665 episodes per agent-and-model pair. Spend = episodes × (input tokens × input price + output tokens × output price) per episode. Token use per episode was not measured here (no real model may be called): run a pilot first, for example per_level: 2, epochs: 1, --max-usd 5, and read input_tokens and output_tokens in runs/bench_results.csv, then set max_usd with a margin.
  3. Run the round:
credencestack bench brittleness -c bench/brittleness.yaml --seed fresh --confirm-spend
  1. Fill the article: uv run python scripts/fill_article.py credencestack-out/latest-brittleness --out article.md, review it, then move the four charts (report/charts/) where the article and the site expect them.
  2. On the site, once you approve the results: set forgeChartIllustrative: false in website/src/site.config.ts and draw the real curve, put the four charts in the Forge and Benchmark slots, set article to the published URL, and fill the benchmark placeholders in website/PLACEHOLDERS.md.

Preview locally

uv run mkdocs serve                       # the docs, at http://127.0.0.1:8000
cd website && npm install && npm run dev  # the website, at http://localhost:4321