From 01f50fcf6394b3d0d51db4a266fb5b222ca012f3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 11:38:13 +0000 Subject: [PATCH 1/6] fix(skeleton): stop the generated Justfile reading STATE.a2ml The emitted Justfile read and wrote .machine_readable/STATE.a2ml in info, state-touch and state-phase. A2ML is retired, so remove those recipes and the two 'just state-touch' calls that depended on them. --- .../templates/skeleton/Justfile | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/robot-repo-automaton/templates/skeleton/Justfile b/robot-repo-automaton/templates/skeleton/Justfile index 75272b90..e0721f15 100644 --- a/robot-repo-automaton/templates/skeleton/Justfile +++ b/robot-repo-automaton/templates/skeleton/Justfile @@ -52,7 +52,6 @@ info: @echo "Version: {{version}}" @echo "RSR Tier: {{tier}}" @echo "Recipes: $(just --summary | wc -w)" - @[ -f ".machine_readable/STATE.a2ml" ] && grep -oP 'phase\s*=\s*"\K[^"]+' .machine_readable/STATE.a2ml | head -1 | xargs -I{} echo "Phase: {}" || true # Run Invariant Path overlay tools for this repository invariant-path *ARGS: @@ -545,21 +544,6 @@ sbom: import? "build/just/validate.just" -# ═══════════════════════════════════════════════════════════════════════════════ -# STATE MANAGEMENT -# ═══════════════════════════════════════════════════════════════════════════════ - -# Update STATE.a2ml timestamp -state-touch: - @if [ -f ".machine_readable/STATE.a2ml" ]; then \ - sed -i 's/last-updated = "[^"]*"/last-updated = "'"$(date +%Y-%m-%d)"'"/' .machine_readable/STATE.a2ml && \ - echo "STATE.a2ml timestamp updated"; \ - fi - -# Show current phase from STATE.a2ml -state-phase: - @grep -oP 'phase\s*=\s*"\K[^"]+' .machine_readable/STATE.a2ml 2>/dev/null | head -1 || echo "unknown" - # ═══════════════════════════════════════════════════════════════════════════════ # GUIX & NIX # ═══════════════════════════════════════════════════════════════════════════════ @@ -584,7 +568,7 @@ guix-shell: automate task="all": #!/usr/bin/env bash case "{{task}}" in - all) just fmt && just lint && just test && just docs && just state-touch ;; + all) just fmt && just lint && just test && just docs ;; cleanup) just clean && find . -name "*.orig" -delete && find . -name "*~" -delete ;; update) just deps && just validate ;; *) echo "Unknown: {{task}}. Use: all, cleanup, update" && exit 1 ;; From b4f2b896cf7256ea6688462f83faa3318e74fbb4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 11:38:14 +0000 Subject: [PATCH 2/6] fix(skeleton): emit PLAYBOOK.deed, never .a2ml robot-repo-automaton's skeleton generated seven .a2ml descriptile files in every repo it scaffolded. A2ML is retired estate-wide, so drop all seven templates and emit .machine_readable/descriptiles/PLAYBOOK.deed (empty sections, per the A7 ruling) instead. The other six families' facts are clauses of _chora.deed, written when a repo is minted. Tests now assert that no .a2ml is emitted or named by any emitted file, and that each emitted deed lints (real deed_lint.js when DEED_LINT is set). --- robot-repo-automaton/src/skeleton.rs | 101 +++++++++---- .../descriptiles/AGENTIC.a2ml | 56 ------- .../descriptiles/ANCHOR.a2ml | 9 -- .../descriptiles/ECOSYSTEM.a2ml | 20 --- .../.machine_readable/descriptiles/META.a2ml | 53 ------- .../descriptiles/NEUROSYM.a2ml | 22 --- .../descriptiles/PLAYBOOK.a2ml | 138 ------------------ .../descriptiles/PLAYBOOK.deed | 16 ++ .../.machine_readable/descriptiles/STATE.a2ml | 64 -------- 9 files changed, 88 insertions(+), 391 deletions(-) delete mode 100644 robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/AGENTIC.a2ml delete mode 100644 robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ANCHOR.a2ml delete mode 100644 robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ECOSYSTEM.a2ml delete mode 100644 robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/META.a2ml delete mode 100644 robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/NEUROSYM.a2ml delete mode 100644 robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.a2ml create mode 100644 robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.deed delete mode 100644 robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/STATE.a2ml diff --git a/robot-repo-automaton/src/skeleton.rs b/robot-repo-automaton/src/skeleton.rs index 57f3eff5..a4b24cd7 100644 --- a/robot-repo-automaton/src/skeleton.rs +++ b/robot-repo-automaton/src/skeleton.rs @@ -15,8 +15,8 @@ //! //! Source of truth = the **post-#47 canonical layout**, not the prose in //! `standards` `REQUIRED-FILES.md` (which is stale: it still lists root -//! `*.scm` + `Mustfile`, predating the estate-wide `.scm`→`.a2ml` migration -//! and the `.machine_readable/descriptiles/` layout). Updating that doc to match is a +//! `*.scm` + `Mustfile`, predating the estate-wide A2ML retirement and the +//! deed-first layout). Updating that doc to match is a //! separate `standards`-repo change, deliberately out of scope here. use anyhow::{Context, Result}; @@ -45,33 +45,12 @@ pub const SKELETON: &[(&str, &str)] = &[ include_str!("../templates/skeleton/.tool-versions"), ), ("Justfile", include_str!("../templates/skeleton/Justfile")), + // A2ML is retired (owner rulings D99, D312, D313): no `.a2ml` is ever + // emitted. Repo facts are clauses of `_chora.deed`; the playbook moves + // to `PLAYBOOK.deed` (A7 ruling), with empty sections for now. ( - ".machine_readable/descriptiles/ANCHOR.a2ml", - include_str!("../templates/skeleton/.machine_readable/descriptiles/ANCHOR.a2ml"), - ), - ( - ".machine_readable/descriptiles/META.a2ml", - include_str!("../templates/skeleton/.machine_readable/descriptiles/META.a2ml"), - ), - ( - ".machine_readable/descriptiles/STATE.a2ml", - include_str!("../templates/skeleton/.machine_readable/descriptiles/STATE.a2ml"), - ), - ( - ".machine_readable/descriptiles/ECOSYSTEM.a2ml", - include_str!("../templates/skeleton/.machine_readable/descriptiles/ECOSYSTEM.a2ml"), - ), - ( - ".machine_readable/descriptiles/PLAYBOOK.a2ml", - include_str!("../templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.a2ml"), - ), - ( - ".machine_readable/descriptiles/AGENTIC.a2ml", - include_str!("../templates/skeleton/.machine_readable/descriptiles/AGENTIC.a2ml"), - ), - ( - ".machine_readable/descriptiles/NEUROSYM.a2ml", - include_str!("../templates/skeleton/.machine_readable/descriptiles/NEUROSYM.a2ml"), + ".machine_readable/descriptiles/PLAYBOOK.deed", + include_str!("../templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.deed"), ), ]; @@ -131,7 +110,7 @@ mod tests { #[test] fn skeleton_is_non_empty_and_well_formed() { - assert!(SKELETON.len() >= 11, "expected the full RSR required set"); + assert!(SKELETON.len() >= 6, "expected the full RSR required set"); for (rel, content) in SKELETON { assert!(!rel.is_empty(), "empty skeleton path"); assert!(!rel.starts_with('/'), "{rel} must be repo-relative"); @@ -139,6 +118,70 @@ mod tests { } } + #[test] + fn skeleton_emits_no_a2ml() { + for (rel, content) in SKELETON { + assert!(!rel.ends_with(".a2ml"), "{rel} is retired A2ML"); + assert!( + !content.contains(".a2ml"), + "{rel} still names a .a2ml file" + ); + } + let dir = tempfile::tempdir().unwrap(); + emit(dir.path()).unwrap(); + let mut stack = vec![dir.path().to_path_buf()]; + while let Some(d) = stack.pop() { + for e in std::fs::read_dir(d).unwrap() { + let p = e.unwrap().path(); + if p.is_dir() { + stack.push(p); + } else { + assert_ne!( + p.extension().and_then(|x| x.to_str()), + Some("a2ml"), + "emitted {}", + p.display() + ); + } + } + } + } + + /// Every emitted `.deed` is structurally a deed (SPDX header, `(`-form, + /// no `key = value` / `[section]`). When `DEED_LINT` points at + /// standards' `1-formats/deed/tools/deed_lint.js`, the real linter runs. + #[test] + fn emitted_deeds_lint() { + let dir = tempfile::tempdir().unwrap(); + emit(dir.path()).unwrap(); + let mut n = 0; + for (rel, content) in SKELETON.iter().filter(|(r, _)| r.ends_with(".deed")) { + n += 1; + assert!(content.starts_with(";; SPDX-"), "{rel}: SPDX header"); + for line in content.lines().filter(|l| !l.trim_start().starts_with(';')) { + assert!(!line.trim_start().starts_with('['), "{rel}: [section]"); + } + assert!(content.contains("(descriptile-deed"), "{rel}: doc-head"); + assert!( + content.matches(":schema-version").count() == 1, + "{rel}: :schema-version exactly once" + ); + if let Ok(lint) = std::env::var("DEED_LINT") { + let out = std::process::Command::new("bun") + .arg(&lint) + .arg(dir.path().join(rel)) + .output() + .expect("run bun deed_lint.js"); + assert!( + out.status.success(), + "{rel} fails deed_lint: {}", + String::from_utf8_lossy(&out.stdout) + ); + } + } + assert!(n >= 1, "skeleton must emit the deed form"); + } + #[test] fn emit_then_check_roundtrips_clean() { let dir = tempfile::tempdir().unwrap(); diff --git a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/AGENTIC.a2ml b/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/AGENTIC.a2ml deleted file mode 100644 index e67e349c..00000000 --- a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/AGENTIC.a2ml +++ /dev/null @@ -1,56 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) -# -# AGENTIC.a2ml — AI agent constraints and capabilities -# Defines what AI agents can and cannot do in this repository. - -[metadata] -version = "0.1.0" -last-updated = "2026-04-11" - -[agent-permissions] -can-edit-source = true -can-edit-tests = true -can-edit-docs = true -can-edit-config = true -can-create-files = true - -[agent-constraints] -# What AI agents must NOT do: -# - Never use banned language patterns (believe_me, unsafeCoerce, etc.) -# - Never commit secrets or credentials -# - Never use banned languages (TypeScript, Python, Go, etc.) -# - Never place state files in repository root (must be in .machine_readable/) -# - Never change an existing file's licence, and never run an automated -# licence sweep (LICENCE-POLICY.adoc A2). New files get correct SPDX at birth. -# - New code defaults to MPL-2.0 (code) / CC-BY-SA-4.0 (prose) per Rule 1, -# but AGPL-3.0-or-later is CORRECT under Rule 3 (co-developed), Rule 4 -# (network-deployed services) and Rule 5 (games). Rule 2 names the PMPL -# register explicitly - do not apply PMPL to anything outside it. - -[maintenance-integrity] -fail-closed = true -require-evidence-per-step = true -allow-silent-skip = false -require-rerun-after-fix = true -release-claim-requires-hard-pass = true - -# ============================================================================ -# METHODOLOGY (ADR-002) -# ============================================================================ -# Detailed methodology configuration lives in: -# .machine_readable/bot_directives/methodology.a2ml -# .machine_readable/bot_directives/coverage.a2ml -# .machine_readable/bot_directives/debt.a2ml -# -# AGENTIC.a2ml declares WHAT agents can do (permissions, gating). -# bot_directives/ declares HOW agents should work (methodology). - -[methodology] -instructions-dir = ".machine_readable/bot_directives/" -default-mode = "hybrid" - -[automation-hooks] -# on-enter: Read 0-AI-MANIFEST.a2ml, then STATE.a2ml, then bot_directives/ -# on-exit: Update STATE.a2ml, coverage.a2ml, and debt.a2ml with session outcomes -# on-commit: Run just validate-rsr diff --git a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ANCHOR.a2ml b/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ANCHOR.a2ml deleted file mode 100644 index a9326786..00000000 --- a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ANCHOR.a2ml +++ /dev/null @@ -1,9 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) -# Populate the repository identity when instantiating this skeleton. - -name = "PROJECT_NAME" -id = "org.hyperpolymath.PROJECT_NAME" -version = "0.1.0" -status = "template" -canonical-descriptors = ".machine_readable/descriptiles/" diff --git a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ECOSYSTEM.a2ml b/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ECOSYSTEM.a2ml deleted file mode 100644 index 5498a38b..00000000 --- a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ECOSYSTEM.a2ml +++ /dev/null @@ -1,20 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -# ECOSYSTEM.a2ml — Ecosystem position -# Converted from ECOSYSTEM.scm - -[metadata] -project = "{{PROJECT_NAME}}" -ecosystem = "{{OWNER}}" - -[position] -type = "{{PROJECT_KIND}}" -purpose = "{{PROJECT_PURPOSE}}" - -[pipeline] -position = "" -chain = "" -notes = "" -coordination = "" - -[related-projects] -projects = [] diff --git a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/META.a2ml b/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/META.a2ml deleted file mode 100644 index 01e7c75f..00000000 --- a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/META.a2ml +++ /dev/null @@ -1,53 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) -# -# META.a2ml — Project meta-level information -# Architecture decisions, design rationale, governance. - -[metadata] -version = "0.1.0" -last-updated = "2026-04-11" - -[project-info] -type = "{{PROJECT_KIND}}" # library | binary | monorepo | service | website -languages = [] # e.g. ["rust", "zig", "idris2"] -license = "{{PROJECT_LICENSE}}" -author = "{{PROJECT_AUTHOR}}" - -[architecture-decisions] -# ADR format: status = proposed | accepted | deprecated | superseded | rejected -# - { id = "ADR-001", title = "Use Zig for FFI", status = "accepted", date = "2026-02-14" } - -[development-practices] -build-tool = "just" -container-runtime = "podman" -ci-platform = "github-actions" -package-manager = "guix" # guix | nix | cargo | mix - -[maintenance-axes] -scoping-first = true -execution-order = "axis-1 > axis-2 > axis-3" -axis-1 = "must > intend > like" -axis-2 = "corrective > adaptive > perfective" -axis-3 = "systems > compliance > effects" - -[scoping] -sources = "README, roadmap, status docs, maintenance checklist, CI/security docs" -marker-scan = "TODO/FIXME/XXX/HACK/STUB/PARTIAL" -idris-unsound-scan = "believe_me/assert_total" - -[axis-2-maintenance-rules] -corrective-first = true -adaptive-second = true -adaptive-focus = "scope-change reconciliation, stale-reference removal, obsolete-work culling" -perfective-third = true -perfective-source = "axis-1 honest state after corrective/adaptive updates" - -[axis-3-audit-rules] -audit-focus = "systems in place, documentation explains actual state, safety/security accounted for, observed effects reviewed" -compliance-focus = "seams/compromises/exception register, bounded exceptions, anti-drift checks" -drift-risk-example = "single exception broadening into policy violation (e.g. ReScript->TypeScript spread)" -effects-evidence = "benchmark execution/results and maintainer status dialogue/review" - -[design-rationale] -# Key design decisions and their reasoning diff --git a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/NEUROSYM.a2ml b/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/NEUROSYM.a2ml deleted file mode 100644 index 47121f5d..00000000 --- a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/NEUROSYM.a2ml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) -# -# NEUROSYM.a2ml — Neurosymbolic integration metadata -# Configuration for Hypatia scanning and symbolic reasoning. - -[metadata] -version = "0.1.0" -last-updated = "2026-04-11" - -[hypatia-config] -scan-enabled = true -scan-depth = "standard" # quick | standard | deep - -[symbolic-rules] -# Custom symbolic rules for this project -# - { name = "no-unsafe-ffi", pattern = "believe_me|unsafeCoerce", severity = "critical" } - -[neural-config] -# Neural pattern detection settings -# confidence-threshold = 0.85 -# model = "hypatia-v2" diff --git a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.a2ml b/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.a2ml deleted file mode 100644 index 75c597f8..00000000 --- a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.a2ml +++ /dev/null @@ -1,138 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) -# -# PLAYBOOK.a2ml — Operational playbook -# Runbooks, incident response, deployment procedures. - -[metadata] -version = "0.1.0" -last-updated = "2026-04-11" - -[deployment] -# method = "gitops" # gitops | manual | ci-triggered -# target = "container" # container | binary | library | wasm - -[incident-response] -# 1. Check .machine_readable/descriptiles/STATE.a2ml for current status -# 2. Review recent commits and CI results -# 3. Run `just validate` to check compliance -# 4. Run `just security` to audit for vulnerabilities - -[release-process] -# 1. Update version in .machine_readable/descriptiles/STATE.a2ml, -# .machine_readable/descriptiles/META.a2ml and Justfile -# 2. Run `just release-preflight` (validate + quality + security + maint-hard-pass) -# 3. Optional local permission hardening: `just perms-snapshot && just perms-lock` -# 4. Tag and push -# 5. Restore local permissions if needed: `just perms-restore` -# 6. Run `just container-push` if applicable - -[maintenance-operations] -# Baseline audit: -# just maint-audit -# Hard release gate: -# just maint-hard-pass -# Permission audit: -# just perms-audit - -[rsr-repo-skeleton] -# Canonical organisation of any RSR-derived repository. -# Used by tooling, human onboarding, and the scheduled downstream sweep agent. -# The 5-PR cleanup pattern (below) brings a non-conforming repository into -# compliance with this skeleton. -# -# This section is the single source of truth for "what does an RSR repo look -# like?". Other docs (TOPOLOGY, AUDIT, etc.) describe the repo at hand; -# this describes the canonical shape that all RSR repos share. - -skeleton-version = "1.0" -last-updated = "2026-04-30" -authority-allowlist = ".machine_readable/root-allow.txt" -enforcement-workflow = ".github/workflows/estate-rules.yml" - -# === Required at root === -# README.adoc High-level pitch (project entry point) -# AUDIT.adoc Local gate summary (release-readiness) -# EXPLAINME.adoc Developer deep-dive (architecture & invariants) -# 0-AI-MANIFEST.a2ml AI agent work-allocation policy -# LICENSE Repo license (root-bound by convention) -# CHANGELOG.md One of the recognised .md exceptions (see below) -# Justfile Task runner — thin, imports per-section files from build/just/ -# coordination.k9 Repo-local session binding - -# === Required directories === -# .github/ CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, workflows/ -# .machine_readable/ AI manifests (0.1-AI-MANIFEST.a2ml), descriptiles/ checkpoints, -# contractiles/, configs/, anchors/, policies/, scripts/, svc/ -# build/ contractile.just, guix.scm, Containerfile, -# just/*.just (Justfile section imports) -# docs/ onboarding/, status/, architecture/, governance/ (all .adoc) -# session/ dispatch.sh, custom-checks.k9, local-hooks.sh -# src/ Project source (Idris2 ABI under abi/, Zig FFI under ffi/) -# tests/, benches/, examples/, features/, scripts/, verification/, container/ - -# === Documentation format rule === -# `.adoc` is the default for all general docs (TOPOLOGY, READINESS, ROADMAP, -# TEST-NEEDS, PROOF-NEEDS, PROOF-STATUS, llm-warmup-*, etc.). -# -# `.md` is reserved ONLY for files GitHub's community-health rules -# special-case by name: -# CONTRIBUTING.md CODE_OF_CONDUCT.md SECURITY.md CHANGELOG.md -# -# Enforcement: `scripts/check-no-md-in-docs.sh` (fails if any *.md under docs/). - -# === Banned: V-language === -# V (vlang.io) is banned estate-wide. Replaced by `zig-unified-api-adapter` -# (16 endpoints + transaction-based firewall gating). Do not introduce -# V-lang code, scaffolders, or references. Note that Coq theorem files use -# the same `.v` extension and are unaffected — the rule looks at content -# patterns, not the extension. -# -# Enforcement: `scripts/check-no-vlang.sh`. - -# === Justfile structure (post-split) === -# The root Justfile is thin — it holds `set` directives, project metadata -# variables, and the `default`/`help`/`info` recipes. Each major section -# lives in its own file under build/just/ and is brought in via `import?`. -# -# Imported sections (in the canonical split): -# build/just/init.just INIT recipe (template bootstrap) -# build/just/assess.just self-assess + verify (OpenSSF compliance) -# build/just/validate.just validate-rsr/state/ai-install + aggregate -# build/just/proofs.just proof-check-{all,idris2,lean4,agda,coq}, -# proof-scan-dangerous, proof-status -# build/just/groove.just Groove protocol setup (after V-lang removed) -# -# Daily-use recipes (BUILD, TEST, LINT, RUN, DEPS, DOCS, CONTAINER, CI, -# SECURITY, STATE, GUIX/NIX, MATRIX, VERSION CONTROL, UTILITIES, SESSION) -# stay in the root Justfile where users expect to find them. - -# === 5-PR cleanup pattern === -# Apply these branches (in order) to bring a non-conforming downstream repo -# into compliance with this skeleton: -# -# 1. chore/root-cleanup Relocate root sprawl per root-allow.txt; add -# scripts/check-root-shape.sh; remove stub -# health files shadowed by .github/ versions. -# 2. chore/remove-v-lang Purge V-lang remnants (gen-v-connector recipe, -# "V-TRIPLE" section header, "V-triple -# connectors" comment in groove.a2ml). -# 3. chore/md-to-adoc Port general docs in docs/ from .md to .adoc; -# update validate-template.sh to accept .adoc -# fallbacks. -# 4. chore/estate-rules-ci Add scripts/check-no-md-in-docs.sh + check-no- -# vlang.sh + .github/workflows/estate-rules.yml. -# 5. chore/-hygiene Repo-specific drift cleanup (case collisions, -# template-derivation drift in titles, etc.). - -# === Reference scripts === -# scripts/check-root-shape.sh Root allowlist validator -# scripts/check-no-md-in-docs.sh AsciiDoc-by-default validator -# scripts/check-no-vlang.sh V-lang ban validator -# scripts/validate-template.sh Aggregate RSR compliance (workflows, SPDX, etc.) - -# === Reference memory entries (for AI agents) === -# feedback_adoc_default_md_for_githealth AsciiDoc-by-default rule -# feedback_v_lang_banned V-lang ban -# project_zig_unified_api Replacement for v-triple/V-lang -# feedback_gh_workflow_scope OAuth scope for workflow files diff --git a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.deed b/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.deed new file mode 100644 index 00000000..1a38b777 --- /dev/null +++ b/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.deed @@ -0,0 +1,16 @@ +;; SPDX-License-Identifier: MPL-2.0 +; PLAYBOOK.deed: operational playbook (A7 ruling: the playbook moves to +; PLAYBOOK.deed). Empty sections for now; runbooks, incident response and +; release steps are added here as deed facts. A2ML is retired. +; Uninstantiated template: :of-chora is the template's own chora id and is +; replaced by the repo's id when the repo is minted. +(descriptile-deed + :schema-version "1.0.0" + :canonical-name "PLAYBOOK" + :of-chora #uuid"8e515699-3fb9-8785-8883-ef2a100c2e02" + :affirmed "2026-11-21" + :affirmed-by agent + (deployment) + (incident-response) + (release-process) + (maintenance-operations)) diff --git a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/STATE.a2ml b/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/STATE.a2ml deleted file mode 100644 index a76d8dd6..00000000 --- a/robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/STATE.a2ml +++ /dev/null @@ -1,64 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) -# -# STATE.a2ml — Project state checkpoint (META-TEMPLATE) -# -# This is the STATE file for rsr-template-repo itself. -# When consumed by a new project, replace {{PLACEHOLDER}} tokens -# and customize sections below for the target project. - -[metadata] -project = "rsr-template-repo" -version = "0.2.0" -last-updated = "2026-02-28" -status = "active" # active | paused | archived - -[project-context] -name = "rsr-template-repo" -purpose = "Canonical RSR-compliant repository template providing scaffolding for all hyperpolymath projects — including CI/CD, AI manifests, ABI/FFI standards, container ecosystem, and governance infrastructure." -completion-percentage = 95 - -[position] -phase = "maintenance" # design | implementation | testing | maintenance | archived -maturity = "production" # experimental | alpha | beta | production | lts - -[route-to-mvp] -milestones = [ - { name = "Phase 0: Core scaffolding (justfile, CI/CD, .machine_readable)", completion = 100 }, - { name = "Phase 1: ABI/FFI standard (Idris2/Zig templates)", completion = 100 }, - { name = "Phase 1b: AI Gatekeeper Protocol (0-AI-MANIFEST.a2ml)", completion = 100 }, - { name = "Phase 1c: TOPOLOGY.md standard and guide", completion = 100 }, - { name = "Phase 1d: Maintenance gate (axes, checklist, approach)", completion = 100 }, - { name = "Phase 1e: Trustfile / contractiles", completion = 100 }, - { name = "Phase 2: Container ecosystem templates (stapeln)", completion = 100 }, - { name = "Phase 3: Multi-forge sync hardening", completion = 0 }, - { name = "Phase 4: Nix/Guix reproducible shells", completion = 50 }, -] - -[blockers-and-issues] -# No active blockers - -[critical-next-actions] -actions = [ - "Container templates complete — test with `just container-init`", - "Validate container templates across wolfi-base and static Chainguard images", - "Harden multi-forge sync for GitLab/Bitbucket mirroring edge cases", - "Expand Nix/Guix development shell templates", -] - -[maintenance-status] -last-run-utc = "never" -last-report = "docs/reports/maintenance/latest.json" -last-result = "unknown" # unknown | pass | warn | fail -open-warnings = 0 -open-failures = 0 - -[ecosystem] -part-of = ["RSR Framework", "stapeln ecosystem"] -depends-on = ["stapeln", "selur-compose", "cerro-torre", "svalinn", "vordr", "k9-svc"] - -# --------------------------------------------------------------------------- -# NOTE FOR CONSUMERS: When using this template to create a new repo, reset -# the fields above to your project's values and replace all {{PLACEHOLDER}} -# tokens. The milestones above describe the TEMPLATE's evolution, not yours. -# --------------------------------------------------------------------------- From 2f0cae427d9f314096902af4a273af0436b1194e Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Sun, 22 Nov 2026 14:46:07 +0000 Subject: [PATCH 3/6] chore(fleet): simplify the automaton's protected-directory check, format its skeleton test, and bump gsbot's URL dependencies --- bots/gsbot/Cargo.lock | 8 ++++---- robot-repo-automaton/src/confidence.rs | 6 +----- robot-repo-automaton/src/skeleton.rs | 5 +---- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/bots/gsbot/Cargo.lock b/bots/gsbot/Cargo.lock index 573ac8c4..3d49bb46 100644 --- a/bots/gsbot/Cargo.lock +++ b/bots/gsbot/Cargo.lock @@ -560,9 +560,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -2650,9 +2650,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/robot-repo-automaton/src/confidence.rs b/robot-repo-automaton/src/confidence.rs index 842871b3..db704d43 100644 --- a/robot-repo-automaton/src/confidence.rs +++ b/robot-repo-automaton/src/confidence.rs @@ -349,11 +349,7 @@ fn is_protected_file(target: &str) -> bool { "spec/", "verification/", ]; - if protected_dirs.iter().any(|dir| target.contains(dir)) { - return true; - } - - false + protected_dirs.iter().any(|dir| target.contains(dir)) } /// Check if a file is a standard repository file (high confidence to create) diff --git a/robot-repo-automaton/src/skeleton.rs b/robot-repo-automaton/src/skeleton.rs index a4b24cd7..6a125f45 100644 --- a/robot-repo-automaton/src/skeleton.rs +++ b/robot-repo-automaton/src/skeleton.rs @@ -122,10 +122,7 @@ mod tests { fn skeleton_emits_no_a2ml() { for (rel, content) in SKELETON { assert!(!rel.ends_with(".a2ml"), "{rel} is retired A2ML"); - assert!( - !content.contains(".a2ml"), - "{rel} still names a .a2ml file" - ); + assert!(!content.contains(".a2ml"), "{rel} still names a .a2ml file"); } let dir = tempfile::tempdir().unwrap(); emit(dir.path()).unwrap(); From 7791d7b91361bc7ad3f900fb9060a7ea27f2099e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 15:01:27 +0000 Subject: [PATCH 4/6] Revert "chore(fleet): simplify the automaton's protected-directory check, format its skeleton test, and bump gsbot's URL dependencies" This reverts commit 2f0cae427d9f314096902af4a273af0436b1194e. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_0136P7ZpDuSqCp278XsDKftq --- bots/gsbot/Cargo.lock | 8 ++++---- robot-repo-automaton/src/confidence.rs | 6 +++++- robot-repo-automaton/src/skeleton.rs | 5 ++++- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/bots/gsbot/Cargo.lock b/bots/gsbot/Cargo.lock index 3d49bb46..573ac8c4 100644 --- a/bots/gsbot/Cargo.lock +++ b/bots/gsbot/Cargo.lock @@ -560,9 +560,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.2.3" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" dependencies = [ "percent-encoding", ] @@ -2650,9 +2650,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.9" +version = "2.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" dependencies = [ "form_urlencoded", "idna", diff --git a/robot-repo-automaton/src/confidence.rs b/robot-repo-automaton/src/confidence.rs index db704d43..842871b3 100644 --- a/robot-repo-automaton/src/confidence.rs +++ b/robot-repo-automaton/src/confidence.rs @@ -349,7 +349,11 @@ fn is_protected_file(target: &str) -> bool { "spec/", "verification/", ]; - protected_dirs.iter().any(|dir| target.contains(dir)) + if protected_dirs.iter().any(|dir| target.contains(dir)) { + return true; + } + + false } /// Check if a file is a standard repository file (high confidence to create) diff --git a/robot-repo-automaton/src/skeleton.rs b/robot-repo-automaton/src/skeleton.rs index 6a125f45..a4b24cd7 100644 --- a/robot-repo-automaton/src/skeleton.rs +++ b/robot-repo-automaton/src/skeleton.rs @@ -122,7 +122,10 @@ mod tests { fn skeleton_emits_no_a2ml() { for (rel, content) in SKELETON { assert!(!rel.ends_with(".a2ml"), "{rel} is retired A2ML"); - assert!(!content.contains(".a2ml"), "{rel} still names a .a2ml file"); + assert!( + !content.contains(".a2ml"), + "{rel} still names a .a2ml file" + ); } let dir = tempfile::tempdir().unwrap(); emit(dir.path()).unwrap(); From 3a2acfdac8349c256cb573c11e4035b3cb529ec1 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Thu, 26 Nov 2026 01:33:14 +0000 Subject: [PATCH 5/6] fix(ci): clear clippy needless_bool and RUSTSEC-2026-0592 on the skeleton PR Collapse the protected-directory guard in confidence.rs to its boolean, rustfmt the skeleton test, and bump url 2.5.8 -> 2.5.9 (and idna's companion lock entry) in bots/gsbot/Cargo.lock. --- bots/gsbot/Cargo.lock | 8 ++++---- robot-repo-automaton/src/confidence.rs | 6 +----- robot-repo-automaton/src/skeleton.rs | 5 +---- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/bots/gsbot/Cargo.lock b/bots/gsbot/Cargo.lock index 573ac8c4..3d49bb46 100644 --- a/bots/gsbot/Cargo.lock +++ b/bots/gsbot/Cargo.lock @@ -560,9 +560,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -2650,9 +2650,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/robot-repo-automaton/src/confidence.rs b/robot-repo-automaton/src/confidence.rs index 842871b3..db704d43 100644 --- a/robot-repo-automaton/src/confidence.rs +++ b/robot-repo-automaton/src/confidence.rs @@ -349,11 +349,7 @@ fn is_protected_file(target: &str) -> bool { "spec/", "verification/", ]; - if protected_dirs.iter().any(|dir| target.contains(dir)) { - return true; - } - - false + protected_dirs.iter().any(|dir| target.contains(dir)) } /// Check if a file is a standard repository file (high confidence to create) diff --git a/robot-repo-automaton/src/skeleton.rs b/robot-repo-automaton/src/skeleton.rs index a4b24cd7..6a125f45 100644 --- a/robot-repo-automaton/src/skeleton.rs +++ b/robot-repo-automaton/src/skeleton.rs @@ -122,10 +122,7 @@ mod tests { fn skeleton_emits_no_a2ml() { for (rel, content) in SKELETON { assert!(!rel.ends_with(".a2ml"), "{rel} is retired A2ML"); - assert!( - !content.contains(".a2ml"), - "{rel} still names a .a2ml file" - ); + assert!(!content.contains(".a2ml"), "{rel} still names a .a2ml file"); } let dir = tempfile::tempdir().unwrap(); emit(dir.path()).unwrap(); From 188ac00911011d2913be193b7238de1ec3ef9a9d Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Thu, 26 Nov 2026 01:33:14 +0000 Subject: [PATCH 6/6] chore(ci): re-bind the hypatia credential-read-check pin to f2c0604 hypatia-scan.yml already uses f2c0604 (Dependabot #699) but the pinned-source manifest and the closure receipts still named 29a9e4a, so the closure audit failed. credential-read-check.yml is byte-identical at both commits (blob 15c597e, sha256 645e8ac8...), so only the commit sha changes. The audit passes with --fetch-sources: findings=0 not-run=0. --- scripts/lib/lock-closure-receipts.tsv | 4 ++-- scripts/lib/pinned-reusable-sources.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lib/lock-closure-receipts.tsv b/scripts/lib/lock-closure-receipts.tsv index 1b854662..8dbada15 100644 --- a/scripts/lib/lock-closure-receipts.tsv +++ b/scripts/lib/lock-closure-receipts.tsv @@ -76,5 +76,5 @@ metadatastician/standards ea2f4d8a886585ed442687ae63d4ad7493379ba4 oven-sh/setup # Reviewed source: hyperpolymath/proven-cicd-and-workflows/.github/workflows/secret-scanner-reusable.yml@1fd5e6371a50f0fc3687206a5adca0cdf7b39aa6 hyperpolymath/proven-cicd-and-workflows 1fd5e6371a50f0fc3687206a5adca0cdf7b39aa6 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 -# Reviewed source: hyperpolymath/hypatia/.github/workflows/credential-read-check.yml@29a9e4a881b6a3cc4cd27fcbc0886ffbadcbc5fe -hyperpolymath/hypatia 29a9e4a881b6a3cc4cd27fcbc0886ffbadcbc5fe step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a +# Reviewed source: hyperpolymath/hypatia/.github/workflows/credential-read-check.yml@f2c0604880f615bec5edda7aaefc8feac3d04cc5 +hyperpolymath/hypatia f2c0604880f615bec5edda7aaefc8feac3d04cc5 step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a diff --git a/scripts/lib/pinned-reusable-sources.json b/scripts/lib/pinned-reusable-sources.json index 8c666757..91936eac 100644 --- a/scripts/lib/pinned-reusable-sources.json +++ b/scripts/lib/pinned-reusable-sources.json @@ -731,7 +731,7 @@ }, { "repository": "hyperpolymath/hypatia", - "commit": "29a9e4a881b6a3cc4cd27fcbc0886ffbadcbc5fe", + "commit": "f2c0604880f615bec5edda7aaefc8feac3d04cc5", "path": ".github/workflows/credential-read-check.yml", "blob": "15c597ea720a5affb861dab058084f7245ee4cbd", "content_sha256": "645e8ac8ff118c33f2dc941ec46f1abac895f7836339736841c269e4b9dc084d",