Repository navigation
Mint idris2x from the RSR template and land Phase 0 - #1
Conversation
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
|
Chaos suite re-run against this branch's tree ( Generated by Claude Code |
|
🟢 clean · commit 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.
Hypatia scan: 5 finding(s)
panic-attack assail: 23 finding(s)
pons asinorum: 9 finding(s)
echidnabot: not_applicable — template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
rhodibot (RSR compliance): 13 finding(s)
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
sustainabot: not_applicable — reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
glambot (presentation quality): 150 finding(s)
seambot: not_applicable — template default: enrol once a seam register exists at spec/seams/seam-register.json
finishingbot (release readiness): 149 finding(s)
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
accessibilitybot: 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. |
…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
|
CI status on
Generated by Claude Code |
…-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
…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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
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
…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
…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
…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
… 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
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
…sr-template-repo#428) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDfNoDw3DrRWQKo5pd7
There was a problem hiding this comment.
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.
Summary
Mints the repository from
hyperpolymath/rsr-template-repowith therust-cliarchetype 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
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).docs/wikis/, published bywiki-sync.yml(nouses:, registered inactions.lock).RSR Quality Checklist
Required
cargo test --all-targets; no launcher tests yet)cargo fmt --check)cargo clippy --all-targets -D warnings; shellcheck on new scripts)check-spdx-headers.shPASS)As Applicable
(ecosystem)updateddocs/decisions/updateddocs/status/ROADMAP.adocupdatedTesting
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
Owner steps outside this PR
id_ed25519_signing.scripts/configure-repo.sh(description, homepage, 20 topics, wiki/discussions on): the session proxy forbids settings writes.wiki-sync.ymlcan push.Generated by Claude Code