diff --git a/robot-repo-automaton/src/skeleton.rs b/robot-repo-automaton/src/skeleton.rs index 57f3eff5..6a125f45 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,67 @@ 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. -# --------------------------------------------------------------------------- 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 ;;