Skip to content

Mint idris2x from the RSR template and land Phase 0 - #1

Merged
hyperpolymath merged 21 commits into
mainfrom
claude/mint-phase0
Nov 18, 2026
Merged

hyperpolymath merged 21 commits into
mainfrom
claude/mint-phase0

Conversation

@hyperpolymath

Copy link
Copy Markdown
Member

Summary

Mints the repository from hyperpolymath/rsr-template-repo with the rust-cli archetype and lands the Phase 0 results:
design pinned in ADRs 0004–0011 and tested on real builds (Chez 10.4.1 and Idris 2 v0.8.0 built from pinned sources,
relocated, canaried; prototype launcher with a 43-check chaos suite). No launcher code yet; nothing is released.

Changes

  • Deed identity filled (IS, IS-NOT, pipeline position, chain, unique strength); template-residue manifest purpose fixed.
  • Docs: ADRs 0004–0011, threat model, MAINTAINERS abandonment contract, Phase 0 report, prior art, estate integration, upstream notes, beyond-repo list, best-practice comparison.
  • Data + generators: src/errors/errors.toml (17 IDs), src/definitions/targets.toml, src/contracts/channel-v1.schema.json; generated runbooks, error-report issue form and wiki tables, all --checked in CI.
  • tests/canaries/ (12 canaries), scripts/proto/ (prototype launcher, factory, chaos suite), examples/fixture_server.rs (std-only Range server; the anchor forbids Node.js).
  • Issue forms (error report, capsule request, canary failure, DX feedback), project labels + workflow, PR checklist, agent rules (Copilot, CodeRabbit, Claude).
  • Wiki source for users, platform maintainers, developers and theorists in docs/wikis/, published by wiki-sync.yml (no uses:, registered in actions.lock).

RSR Quality Checklist

Required

  • Tests pass (cargo test --all-targets; no launcher tests yet)
  • Code is formatted (cargo fmt --check)
  • Linter is clean (cargo clippy --all-targets -D warnings; shellcheck on new scripts)
  • No banned language patterns (no Python, Go, TypeScript, ReScript, Node.js)
  • SPDX headers on all new files (check-spdx-headers.sh PASS)
  • No secrets

As Applicable

  • Deed (ecosystem) updated
  • docs/decisions/ updated
  • docs/status/ROADMAP.adoc updated
  • CHANGELOG updated

Testing

Gates run locally and passing: root shape, no-md-in-docs, SPDX, mint tokens, placeholders, invisible characters, I-JSON/JCS (enforce), workflow edges, action pinning, lock sync, required contexts, generator --checks. Chaos suite re-run against this tree with the Rust fixture server: result posted as a comment.

idris2x specifics

  • Risk class: C (repository creation, schemas, exit codes, support matrix; ADRs 0004–0011 attached).

Owner steps outside this PR

  • Commits are SSH-signed with the session key, not id_ed25519_signing.
  • Run scripts/configure-repo.sh (description, homepage, 20 topics, wiki/discussions on): the session proxy forbids settings writes.
  • Create the wiki's first page once in the UI so wiki-sync.yml can push.
  • Apply rulesets, enable immutable releases, register in chora-registry.

Generated by Claude Code

Mint with `just repo-init rust-cli`; fill the deed's identity (IS, IS-NOT,
pipeline position, chain, unique strength) and fix the template-residue
manifest purpose.

Land the Phase 0 results: ADRs 0004-0011, threat model, maintainers'
abandonment contract, Phase 0 report, prior art, estate integration,
upstream notes, beyond-repo list and a best-practice comparison.

Add the error taxonomy, support matrix and channel schema as data, with
generators (runbooks, error-report issue form, wiki tables) that run with
--check in CI; the twelve canaries; the bash prototype launcher, factory
and chaos suite; and a std-only Rust fixture server (this repo's anchor
forbids Node.js).

Add issue forms, project labels, PR checklist, agent rules for Copilot,
CodeRabbit and Claude, and wiki sources for users, platform maintainers,
developers and theorists, published by wiki-sync.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
Copilot AI balanced review requested due to automatic review settings November 16, 2026 21:48

This comment was marked as low quality.

Copy link
Copy Markdown
Member Author

Chaos suite re-run against this branch's tree (scripts/proto/chaos.sh with FIXTURE_SERVER=target/debug/examples/fixture_server, the std-only Rust server): 43 passed, 0 failed. The resume drill was served a 206 Partial Content, so the Range path is exercised. Host: Linux x86_64, glibc 2.39; capsule Idris 2 v0.8.0 + Chez 10.4.1 built from pinned sources.


Generated by Claude Code

Comment thread docs/status/PHASE0-REPORT.adoc Fixed
Comment thread docs/status/UPSTREAM-NOTES.adoc Fixed
Comment thread docs/status/UPSTREAM-NOTES.adoc Fixed
Comment thread examples/fixture_server.rs Fixed
Comment thread scripts/proto/idris2x.sh Fixed
Comment thread scripts/proto/idris2x.sh Fixed
Comment thread scripts/proto/idris2x.sh Fixed
Comment thread scripts/proto/idris2x.sh Fixed
Comment thread scripts/proto/idris2x.sh Fixed
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Hypatia grid green

🟢 clean · commit 2cf35040f5c8 · run 43994189174 · scope: this change (292 file(s))

Advisory: 11 row(s), worst 🟡 medium (0 critical, 0 high in grid scope) — reported, never grading the change.

Unique graded findings across gating and advisory rows: 203 (203 reporter observations; 20 without sufficient identity to corroborate). Row counts remain per reporter; unique totals do not change gating.
Raw Hypatia alert-derived observations: 2 (code-scanning, Dependabot and secret-scanning; some may also be in SARIF; not an extra total).

Reporter Gate Status Critical High Medium Minor Since previous revision
Hypatia scan gating 🟢 clean 0 0 0 0 — same commit (no revision comparison)
panic-attack assail advisory 🟡 medium 0 0 4 1 — same commit (no revision comparison)
pons asinorum advisory 🟢 clean 0 0 0 0 — same commit (no revision comparison)
echidnabot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
rhodibot (RSR compliance) advisory 🔵 minor 0 0 0 1 — same commit (no revision comparison)
panicbot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
sustainabot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
glambot (presentation quality) advisory 🔵 minor 0 0 0 111 — same commit (no revision comparison)
seambot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
finishingbot (release readiness) advisory 🟡 medium 0 0 81 5 — same commit (no revision comparison)
cipherbot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
accessibilitybot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
Hypatia scan: 5 finding(s)
  • 5 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
panic-attack assail: 23 finding(s)
  • medium CommandInjection — scripts/proto/dx-golden.sh — 25 potentially unquoted variable expansions in scripts/proto/dx-golden.sh
  • medium CommandInjection — scripts/proto/make-capsule.sh — 27 potentially unquoted variable expansions in scripts/proto/make-capsule.sh
  • medium CommandInjection — scripts/proto/chaos.sh — 29 potentially unquoted variable expansions in scripts/proto/chaos.sh
  • medium CommandInjection — scripts/proto/idris2x.sh — 42 potentially unquoted variable expansions in scripts/proto/idris2x.sh
  • low MutationGap — Cargo.toml — Rust project has test infrastructure but no mutation-test configuration (cargo-mutants/.cargo-mutants.toml) — add `cargo mutants` to verify test suite kills mutations
  • 18 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
pons asinorum: 9 finding(s)
  • 9 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
echidnabot: not_applicable — template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
  • ⚪ not applicable: template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
rhodibot (RSR compliance): 13 finding(s)
  • info 2.2.1 — www/.well-known/security.txt — wellknown-core: relocated — present at www/.well-known/security.txt, www/tests/controls/good-deploy/.well-known/security.txt, www/.well-known/ai.txt, www/.well-known/humans.txt — not .well-known/security.txt or .well-known/ai.txt or .well-known/humans.txt
  • 12 further finding(s) in files this change does not touch: reported, not graded (0 critical, 12 high).
panicbot: not_applicable — panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
  • ⚪ not applicable: panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
sustainabot: not_applicable — reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
  • ⚪ not applicable: reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
glambot (presentation quality): 150 finding(s)
  • info VIS-005 — .machine_readable/contractiles/README.adoc:56 — Line 109 characters exceeds max length of 80.
  • info VIS-005 — .machine_readable/self-validating/README.adoc:9 — Line 264 characters exceeds max length of 80.
  • info VIS-005 — CONTRIBUTING.adoc:2 — Line 89 characters exceeds max length of 80.
  • info VIS-005 — scripts/proto/README.adoc:5 — Line 112 characters exceeds max length of 80.
  • info VIS-005 — docs/practice/ci-cost-reduction.adoc:218 — Line 93 characters exceeds max length of 80.
  • info VIS-005 — docs/practice/STATE-VISUALIZER-GUIDE.adoc:13 — Line 83 characters exceeds max length of 80.
  • info VIS-005 — docs/practice/AI-CONVENTIONS.adoc:5 — Line 86 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-CHANNEL-SCHEMA.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-HASH-MISMATCH.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-SIG-INVALID.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-PLATFORM-UNSUPPORTED.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-CAPSULE-INVALID.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-PROBE-CODEGEN.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-PIN-NOT-FOUND.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-PIN-DRIFT.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-OFFLINE.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-LOCK-TIMEOUT.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-CHANNEL-EXPIRED.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-NETWORK.adoc:2 — Line 101 characters exceeds max length of 80.
  • info VIS-005 — docs/runbooks/E-USAGE.adoc:2 — Line 101 characters exceeds max length of 80.
  • 91 more graded finding(s); see the structured report in the artifact.
  • 39 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
seambot: not_applicable — template default: enrol once a seam register exists at spec/seams/seam-register.json
  • ⚪ not applicable: template default: enrol once a seam register exists at spec/seams/seam-register.json
finishingbot (release readiness): 149 finding(s)
  • medium CLM-006 — docs/practice/ci-cost-reduction.adoc — Documentation references non-existent file: secret-scanner.yml
  • medium CLM-006 — docs/practice/ci-cost-reduction.adoc — Documentation references non-existent file: 007-lang/audits/audit-dependabot-automation-gap-2026-04-17.md
  • medium CLM-006 — docs/onboarding/llm-warmup-dev.adoc — Documentation references non-existent file: src/interface/ffi/src/main.zig
  • medium CLM-006 — docs/decisions/0009-error-taxonomy-as-data.adoc — Documentation references non-existent file: scripts/gen-runbooks.py
  • medium CLM-006 — docs/wikis/Mirrors-and-Caching.adoc — Documentation references non-existent file: sha256sums.txt
  • medium CLM-006 — docs/contributing.adoc — Documentation references non-existent file: docs/proof-debt.md
  • medium CLM-006 — docs/status/TEST-NEEDS.adoc — Documentation references non-existent file: wiki-sync.yml
  • medium CLM-006 — docs/status/BEYOND-REPO.adoc — Documentation references non-existent file: idris2.cmd
  • medium CLM-006 — CLAUDE.md — Documentation references non-existent file: estate-rules.yml
  • medium PH-004 — .machine_readable/contractiles/Justfile:523 — Found 'HACK' in: @grep -rn "TODO&#124;FIXME&#124;HACK&#124;XXX" --include=".rs" --include=".ex" --include=".res" --include=".gleam" --include=".zig" --include=".idr" --include="*.hs" . 2>/dev/null || echo "No TODOs"
  • medium PH-003 — .machine_readable/contractiles/Justfile:523 — Found 'XXX' in: @grep -rn "TODO&#124;FIXME&#124;HACK&#124;XXX" --include=".rs" --include=".ex" --include=".res" --include=".gleam" --include=".zig" --include=".idr" --include="*.hs" . 2>/dev/null || echo "No TODOs"
  • medium PH-002 — .machine_readable/contractiles/Justfile:523 — Found 'FIXME' in: @grep -rn "TODO&#124;FIXME&#124;HACK&#124;XXX" --include=".rs" --include=".ex" --include=".res" --include=".gleam" --include=".zig" --include=".idr" --include="*.hs" . 2>/dev/null || echo "No TODOs"
  • medium PH-001 — .machine_readable/contractiles/Justfile:523 — Found 'TODO' in: @grep -rn "TODO&#124;FIXME&#124;HACK&#124;XXX" --include=".rs" --include=".ex" --include=".res" --include=".gleam" --include=".zig" --include=".idr" --include="*.hs" . 2>/dev/null || echo "No TODOs"
  • medium PH-001 — .machine_readable/contractiles/Justfile:521 — Found 'TODO' in: # Show TODO comments
  • medium PH-001 — .machine_readable/contractiles/Justfile:251 — Found 'TODO' in: # TODO: Replace with your audit command
  • medium PH-001 — .machine_readable/contractiles/Justfile:241 — Found 'TODO' in: # TODO: Replace with your dependency check
  • medium PH-001 — .machine_readable/contractiles/Justfile:232 — Found 'TODO' in: # TODO: Replace with your install command
  • medium PH-001 — .machine_readable/contractiles/Justfile:166 — Found 'TODO' in: # TODO: Replace with your readiness test command. Examples:
  • medium PH-001 — .machine_readable/contractiles/Justfile:144 — Found 'TODO' in: # TODO: Add basic sanity checks
  • medium PH-001 — .machine_readable/contractiles/Justfile:117 — Found 'TODO' in: # TODO: Customize for your build system
  • 66 more graded finding(s); see the structured report in the artifact.
  • 63 further finding(s) in files this change does not touch: reported, not graded (0 critical, 4 high).
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
  • ⚪ not applicable: template default: enrol once the repository implements cryptography
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
  • ⚪ not applicable: template default: enrol once the repository serves HTML

Scope: static findings reported by each row's tool at the named commit. The table grades only findings in files this change touches, so the colour answers "does this change introduce anything?", not "what does the whole repository still carry?". Standing findings are counted in each accordion and in report.json; the baseline filter remains the place where acknowledged debt is recorded. The lane state is the worst GATING row; advisory rows are listed and counted but never set it. Purple, red, yellow and blue grade the worst GRADED finding present; orange is evidence missing, malformed or a scanner that did not run; grey is an explicit scope exclusion with its reason. No row is a security certification. report.json, badge.json and the raw findings are in the verdict-grid artifact on the linked run.

Comment thread .github/workflows/wiki-sync.yml Resolved
Comment thread .github/workflows/wiki-sync.yml Resolved
…lean

- Qualify upstream Idris 2 source paths as `Idris2:<path>` (relative to
  src/ at tag v0.8.0) so docs no longer name directories that do not
  exist in this tree (structural_drift SD022).
- Rename the prototype cache staging directory from tmp/ to staging/,
  and create temporary directories with `mktemp -t` instead of a
  hard-coded /tmp template (hardcoded_tmp, CWE-377).
- Replace eval in bench-decompress.sh with an unpack function.
- fixture_server: report a bind failure and exit 2 instead of expect().
- Fix the prototype's remaining shellcheck warnings (SC1007, SC2010,
  scoped SC2064 directive with its reason).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
Copilot AI balanced review requested due to automatic review settings November 16, 2026 21:51

Copy link
Copy Markdown
Member Author

CI status on e1d7779, addressed in 087a772:

  • Hypatia (14 warnings): all fixed at source in 087a772. Upstream Idris 2 paths are now written Idris2:<path> (SD022), the prototype's cache staging directory is staging/ and temp dirs use mktemp -t (hardcoded_tmp), the eval in the benchmark is gone, and the fixture server no longer uses expect().
  • analyze (actions, none) (CodeQL): not caused by this diff. The upload is rejected with "configurations cannot be processed when the default setup is enabled": the repository has CodeQL default setup on (code-scanning/default-setup reports state: configured, languages actions) while the template ships an advanced .github/workflows/codeql.yml. Fix is a repository setting this session cannot write: Settings → Code security → CodeQL analysis → switch to Advanced (or disable default setup). Then re-run the job.

Generated by Claude Code

This comment was marked as low quality.

…-test, honest status docs

- wiki-sync.yml: split into a read-only `check` job (runs on pull
  requests) and a main-only `publish` job with contents: write.
- wiki-sync.yml, labels-idris2x.yml: pass the token to git as a masked
  Authorization header (GIT_CONFIG_* / -c extraheader), never in a URL.
- tests/proven_suite_test.sh: report the FFI string test NOT APPLICABLE
  when the archetype pruned src/interface/ffi, matching the Zig lane in
  scripts/run-proven-suite.sh (131 passed, 0 failed locally).
- docs/status/TEST-NEEDS.adoc: replace the template's CRG grade and Zig
  test counts with this repository's measured state; READINESS example
  path points at a file that exists.
- .hypatia-ignore: file-scoped SD022 exemptions, with reasons, for five
  estate-generic docs describing the pruned seam; the fix at source is
  recorded in BEYOND-REPO for rsr-template-repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
Copilot AI balanced review requested due to automatic review settings November 16, 2026 21:54

This comment was marked as low quality.

Comment thread docs/status/BEYOND-REPO.adoc Fixed
…rences

- tests/workflows/mint_tools_preflight_test.sh: the yq controls assume
  container configs; the rust-cli archetype pruned build/container/, so
  check-mint-tools.sh rightly demands no yq. Ask the formatter's own
  --preflight (the script's oracle) and report the yq controls NOT RUN
  when no yq is needed. Verified both branches: this tree (yq controls
  NOT RUN, all others pass) and a worktree with a container config
  (all six controls pass).
- Replace dangling references to the pruned src/interface/ seam in files
  this PR changes: Copilot instructions, PR template, eclexiaiser
  manifest (now budgets src/main.rs, placeholder values kept and
  labelled) and the AFFIRMATION example row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
Copilot AI balanced review requested due to automatic review settings November 16, 2026 21:57

This comment was marked as low quality.

The file-scoped SD022 exemptions added in 0dc08b6 need their module
classified in .machine_readable/policies/hypatia-rule-order.json
(layer 4, repository-ignore, with rationale); the proven suite's rule-order
lane failed without it. Reword the beyond-repo note so it names the pruned
template directories instead of citing them as paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
Copilot AI balanced review requested due to automatic review settings November 16, 2026 21:58

This comment was marked as low quality.

…names

The fixture for "the shipped .hypatia-ignore passes its own checker"
hard-coded the template's exempted paths, so any reasoned exemption a
child repository adds failed the test. Mirror every named path that
really exists in the repository instead; a stale entry still fails
(checked with a negative control). All later estate-rules steps pass
locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
Copilot AI balanced review requested due to automatic review settings November 16, 2026 22:01

This comment was marked as low quality.

…ested contract

errors.toml gains schema 2: a title per error type and [[case]] tables that hold
every word of a message (summary, story, facts, state, why, fix). The prototype
launcher passes only an id, a case and context values; scripts/proto/render.jq
renders two candidate styles (A conversational, B labelled fields) in terminal,
plain and JSON forms for five ids (twelve cases).

scripts/proto/dx-golden.sh pins the rendered text in
docs/dx/ERROR-CATALOGUE-RENDERED.adoc; chaos.sh now asserts the exact message at
each live failure site, the JSON form, NO_COLOR, and IDRIS2X_ERROR_FILE.

Fixes found on the way: the runbook URL lacked docs/, the E-LOCK-TIMEOUT fix
advised deleting a held lock, and the store-modified fix named a gc flag that
does not exist.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
A design model, checked with idris2 0.8.0: message fragments carry an integrity
label (Embedded, Host, Lock, Channel) and a policy table says which label may
fill which slot for which role. Proved: no fix command contains channel text
(T1), the execution path shows no channel text (T2), and both are independent
of channel content (T3, T4); the advisory slot does depend on it (T5). The
client module holds seven failing blocks that must stay rejected.

This models the design only. It makes no claim about the Rust launcher, which
does not exist.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
…ix lines

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
…us rows

Journeys label every transcript RAN (prototype output, checked line by line
against a fresh run) or PLANNED. The adoption plan records Idris 2's policy on
AI-generated contributions and keeps all outreach as the owner's own act.
ADR 0012 proposes provenance-typed diagnostic text, with the Idris 2 design
model as evidence and the Rust obligation recorded as open.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
Owner ruling 2026-11-16: styles A and B both ship and the user chooses
(IDRIS2X_STYLE). Every error id now has [[case]] data (44 cases); every failure
site in the prototype passes an id, a case and context values only.

Closed on the way: a full disk during download is E-STORE-IO, not E-NETWORK;
E-NETWORK lists each address with its own reason; the glibc floor is checked
before any download; tar's own warning no longer leaks into E-CAPSULE-INVALID
(found by the exact-text drill); help exists.

New: [[advice]] entries (doctor notes) carry review_by, retire_when and basis;
scripts/check-advice-review.sh fails once a review date passes, so advice is
renewed with a reason or deleted. The idris2-lsp note is tested against a
stand-in program only and says so in its basis.

chaos.sh: 110 passed, 0 failed, in each style, with an Idris 2 0.8.0 capsule.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
claude and others added 6 commits November 16, 2026 23:11
…or the owner's rulings

An earlier edit in this branch split a line in safe_tar_list, which disabled
the check for links escaping the capsule tree while chaos still passed. Found
by comparing the journeys page with a fresh run. Repaired, with two new drills
(a clean install prints only the store path; an escaping link is refused) that
fail on a copy with the fault restored.

Docs: both styles ship and are switchable; pack option A first, option D only
if OPSM can own the mapping; the idris2-lsp note is advice with a review date.

chaos.sh: 113 passed, 0 failed, in each style.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
Conflicts in scripts/proto/chaos.sh and scripts/proto/idris2x.sh: kept this
branch's data-driven failure sites and applied the base's changes on top (the
cache's tmp directory is now staging, mktemp -t, the selftest trap block, find
in place of ls piped to grep). Golden sample paths follow the rename.

chaos.sh on the merged tree: 113 passed, 0 failed, in each style.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
The two corrected fix lines (E-HASH-MISMATCH, E-LOCK-TIMEOUT) had not been
carried into the generated wiki page, so the check job's
scripts/sync-wiki.sh --check failed. Regenerated; the check passes locally.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
CI's asciidoctor reported 'dropping cells from incomplete row' in
DX-PRINCIPLES.adoc and ERROR-CATALOGUE.adoc: a literal | inside a cell
(`always|never`, `--style a|b`) shifted the cell count. Reworded both.
The local asciidoctor (2.0.20) does not flag this, so the fix is confirmed
only by CI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
…atia flagged

A code-scanning comment pointed out that a fix command is shell text built
from context values. render.jq now leaves plain words bare and single-quotes
anything else, so a path cannot add a command. chaos.sh builds a fix command
from a hostile path, runs it, and checks that only the rm ran.

BEYOND-REPO.adoc named a source directory this repository does not have, which
Hypatia's structural-drift rule (SD022) grades. The note now describes it
without the path.

chaos.sh: 116 passed, 0 failed, in each style.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
…adoption plan, provenance-typed diagnostics (proposed) (#2)

## Summary

The developer-experience specification the Rust launcher will be built
to, plus a prototype-level proof that wording can be a tested contract.
The Rust launcher does not exist; everything described as running runs
in the bash prototype under `scripts/proto/`.

Start at `docs/dx/README.adoc`.

## Changes

- **`src/errors/errors.toml` moves to schema 2.** Each error type gains
a `title`; `[[case]]` tables hold every word of a message (summary,
facts, state, why, fix). IDs and exit codes are untouched. All 17 IDs
are covered by 44 cases.
- **Two message styles, user's choice** (owner ruling 2026-11-16): A
conversational, B labelled fields, selected with `IDRIS2X_STYLE`.
Default is B; that default is a design call, explained in the catalogue.
- **Prototype renders from data.** Every failure site passes an ID, a
case and context values; `scripts/proto/render.jq` renders terminal,
plain and JSON forms. New: `idris2x explain [ID]`, `idris2x help`, and
`IDRIS2X_ERROR_FILE` so CI can tell a launcher failure from the child's
exit code.
- **Wording is regression-tested.** `scripts/proto/dx-golden.sh --check`
pins the rendered text in `docs/dx/ERROR-CATALOGUE-RENDERED.adoc`.
`chaos.sh` compares live failures' whole output with the expected text.
- **Advice that reviews itself.** `[[advice]]` entries (doctor notes)
carry `review_by`, `retire_when` and `basis`;
`scripts/check-advice-review.sh` fails once a review date passes.
- **Documents:** `DX-PRINCIPLES`, `ERROR-CATALOGUE`, `JOURNEYS`
(transcripts labelled RAN or PLANNED), `ADOPTION` (plan only; nothing
sent).
- **ADR 0012 (Proposed)** and an Idris 2 design model: channel text
cannot reach the fix command or the execution path.

## Behaviour changes in the prototype

- A write failure during download is `E-STORE-IO` (24), not `E-NETWORK`
(14). Chaos T6 expects 24 now.
- `E-NETWORK` lists each address with its own reason.
- `E-GLIBC-FLOOR` is checked before any download (it had no code path).
- The runbook URL gains `docs/`; the `E-LOCK-TIMEOUT` fix no longer
advises deleting a held lock; the store-modified fix no longer names a
`gc --purge` flag that does not exist.
- `tar`'s own warning no longer prints in front of `E-CAPSULE-INVALID`.

## A regression made and repaired inside this branch

Commit `fce2e87` split a line in `safe_tar_list`, which silently
disabled the check for links that leave the capsule tree. Chaos still
passed. Comparing the journeys page with a fresh run exposed it.
`5cfb1f1` repairs it and adds two drills that fail when the fault is put
back. Review that function with care.

## Decisions for the owner

1. **Schema 2 in `errors.toml`.** This PR is the proposal. It will
conflict textually with other edits to that file; the conflict is
one-off.
2. **Default style.** B everywhere today; the alternative is A on a
terminal and B elsewhere.
3. **ADR 0012.** Proposed only. The number may clash with the main
thread.
4. **Outreach.** Idris 2's contributing guide says it will not consider
AI-generated issues, PRs, commits or comments. The adoption plan gives
points to cover, not text to send; every upstream message would be the
owner's own.
5. **pack and OPSM.** Option A (Chez provider) first. Option D depends
on whether OPSM can use an external toolchain provider; only OPSM's
README was read.
6. `docs/status/PROOF-STATUS.adoc` gained two rows. Treat them as
provisional until reviewed.

## Open, recorded, not fixed

- `E-PIN-DRIFT` has wording and no code path (the prototype does not
read `idris2x.toml`).
- `idris2x gc` removes capsules without the warning ADR 0005 requires.
- 19 of 44 cases have a golden rendering and no live drill.
- The `idris2-lsp` note was tested against a stand-in program, never a
real `idris2-lsp`.
- `scripts/check-proofs.sh idris2` fails on two entries this PR does not
touch (`Coaptation.idr` under Idris 2 0.8.0; `src/interface/Abi/*` is
listed but absent).

## RSR Quality Checklist

### Required

- [ ] Tests pass (`just test` or equivalent): **not run**. What was run
is listed under Testing.
- [ ] Code is formatted: not run (no Rust changed).
- [x] Linter is clean: `shellcheck -S warning` reports no new warnings
in the changed scripts (one existing SC2064 in `idris2x.sh`, two
existing SC2010 in `chaos.sh`).
- [x] No banned language patterns (bash, jq, awk, Idris 2 only)
- [x] No `unsafe` blocks
- [x] No banned functions in the Idris 2 model
- [x] SPDX headers present (`scripts/check-spdx-headers.sh` passes)
- [x] No secrets

### As Applicable

- [x] `docs/decisions/` updated (ADR 0012, Proposed)
- [x] Documentation updated
- [ ] `docs/status/ROADMAP.adoc`, CHANGELOG and the deed: not updated

## Testing

Run on 2026-11-16, Ubuntu 24.04 x86_64, at commit `5cfb1f1`:

| Check | Result |
|---|---|
| `scripts/proto/dx-golden.sh --check` | pass (44 cases, 5 renderings
each) |
| `scripts/proto/chaos.sh`, Chez + Idris 2 0.8.0 capsule, style A and
style B | 113 passed, 0 failed, each |
| `scripts/check-advice-review.sh` | pass; fails as intended with a date
past a review date |
| `scripts/gen-runbooks.sh --check`, `scripts/gen-issue-forms.sh
--check` | pass |
| `scripts/check-proofs.sh idris2` | both new modules PASS; the script
as a whole fails on the two existing entries above |
| `check-spdx-headers`, `check-no-md-in-docs`, `check-internal-links`,
asciidoctor on `docs/dx/*` | pass |
| Journeys page vs a fresh prototype run | 88 of 88 output lines match |

Limits: the test capsule used Debian's Chez Scheme 9.5.8 labelled 10.4.1
and an Idris 2 built from source on the same machine. The disk-full
drill uses a file-size limit, not a full disk. The terminal form was
tested by forcing colour, not on a real terminal. Nothing was run on
macOS or Windows. Commits are signed with the session's key, not the
estate's `id_ed25519_signing`.

## idris2x specifics

- Risk class: [ ] A · [ ] B · [x] C (error schema and prototype output;
ADR 0009, proposed ADR 0012)
- [x] Error taxonomy changed: `errors.toml` edited (exit codes
untouched), `gen-runbooks.sh` and `gen-issue-forms.sh` re-run
- [x] User-facing output changed: before/after in
`docs/dx/ERROR-CATALOGUE.adoc`; every form in
`docs/dx/ERROR-CATALOGUE-RENDERED.adoc`
- [ ] Launcher line budget: not applicable (no launcher yet)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01J4QvDhniwZ7NCJcEoM7qm5
Copilot AI balanced review requested due to automatic review settings November 16, 2026 23:33

This comment was marked as low quality.

@metadatastician metadatastician deleted a comment from coderabbitai Bot Nov 16, 2026
@hyperpolymath
hyperpolymath marked this pull request as ready for review November 16, 2026 23:35
@hyperpolymath
hyperpolymath added this pull request to stack #4 November 17, 2026 00:08
@metadatastician metadatastician deleted a comment from coderabbitai Bot Nov 17, 2026
… DX checks

From an independent pre-merge review of #1 at 30b31a7, each claim checked
against the code first.

1. MANIFEST still gated three modules under the pruned src/interface/, so
   scripts/check-proofs.sh idris2 failed on them. Rows removed. Re-run with
   Idris 2 0.8.0 (Chez 10.4.1): both Diagnostics modules pass; the overall
   line is RESULT: FAIL because of the template's Coaptation.idr (identical
   on main, recorded in BEYOND-REPO). PROOF-STATUS now records that line.

2. Lock text reached fix commands marked auto = "safe" (no-target, no-urls)
   and `rm -rf {dir}` (store-modified), against the model's own Rejected 6.
   Rather than drop the paste-ready DX or relax the model, lock values now
   become `Checked` text only after a format check (64-hex digest; 2-4
   dot-separated digit runs), and only Checked may enter the fix slot. The
   prototype applies the same checks in resolve and refuses anything else
   with the new E-PIN-NOT-FOUND case malformed-lock (also closing a path
   traversal: an unchecked lock digest named the store path). New chaos
   drills feed a traversal digest and a shell-bearing version.

3. render returned a String that fromHost could relabel. Rendered output is
   now opaque (only an IO sink prints it); new negative cases 8 (relabel via
   render) and 9 (Checked without the check). Claim narrowed to "text
   labelled Channel"; the trust boundary (ingress labelling, format checks)
   is stated instead of "none". A wrong expected error was confirmed to
   break the build.

4. dx-golden.sh --check and check-advice-review.sh now run in wiki-sync.yml's
   read-only check job, which also triggers on docs/dx/** and
   docs/runbooks/** and weekly, so overdue advice fails without a change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
Copilot AI balanced review requested due to automatic review settings November 17, 2026 00:46

This comment was marked as low quality.

@metadatastician metadatastician deleted a comment from coderabbitai Bot Nov 17, 2026
The Phase 0 report keeps its dated 43; current-state pages say 121.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
Copilot AI balanced review requested due to automatic review settings November 17, 2026 00:48

This comment was marked as low quality.

…sr-template-repo#428)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
Copilot AI balanced review requested due to automatic review settings November 17, 2026 01:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@metadatastician metadatastician deleted a comment from coderabbitai Bot Nov 18, 2026
@hyperpolymath
hyperpolymath merged commit 54015f0 into main Nov 18, 2026
56 of 57 checks passed
@hyperpolymath
hyperpolymath deleted the claude/mint-phase0 branch November 18, 2026 18:41
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.

5 participants