Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Both are FOSS with independent governance (no Big Tech).
### Package Management

- **Primary**: Guix (guix.scm)
- **Fallback**: Nix (flake.nix)
- **Nix**: retired — `flake.nix` is not accepted by Governance / Guix packaging policy; a repo with no `guix.scm` packages through a working Containerfile instead
- **JS deps**: **Bun** (`package.json` + `bun.lock`); `bunx <tool>` to run one-off tooling

### Documentation Format
Expand Down
2 changes: 1 addition & 1 deletion .machine_readable/REGISTRY.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ name = "RSR — Rhodium Standard Repositories"
stream = "governance"
home = "rhodium-standard-repositories/"
canonical_doc = "rhodium-standard-repositories/README.adoc"
source_hash = "sha256:dcd870a92e82159d764a26bf6ca4f37d2cdbf9c418561dc51fc5bc2ab28279f9"
source_hash = "sha256:8bcf1e52445efa2c7f9c83850ca98f7a92190230b76f897d8442c5a377e74c39"
route = "the repository-compliance standard every repo is graded against"

[[spec]]
Expand Down
18 changes: 9 additions & 9 deletions rhodium-standard-repositories/rsr-audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ check_command_exists() {
audit_category_1_infrastructure() {
log_section "Category 1: Foundational Infrastructure"

# Nix flakes
check_file_exists "flake.nix" "Nix flake configuration present"
check_file_exists "flake.lock" "Nix flake lockfile present"
check_file_contains "flake.nix" "description" "flake.nix has description field"
# Guix (Nix is retired estate-wide)
check_file_exists "guix.scm" "Guix package definition present"
check_file_contains "guix.scm" "(name " "guix.scm declares a package name"
check_file_contains "guix.scm" "license" "guix.scm declares a license"

# Justfile
check_file_exists "justfile" "Justfile present"
Expand Down Expand Up @@ -407,9 +407,9 @@ audit_category_4_architecture() {
# Reversibility (Git-based)
check "Reversibility: Git repository" test -d "$REPO_PATH/.git"

# Build reproducibility (Nix)
if [[ -f "$REPO_PATH/flake.nix" ]]; then
check "Reproducible builds: Nix flakes" true
# Build reproducibility (Guix)
if [[ -f "$REPO_PATH/guix.scm" ]]; then
check "Reproducible builds: Guix" true
fi

# Documentation of architecture
Expand Down Expand Up @@ -612,9 +612,9 @@ audit_category_9_lifecycle() {
check_file_contains "CHANGELOG.md" "\\[.*\\]" "CHANGELOG uses version brackets"
fi

# Pinned versions (Cargo.lock, flake.lock, etc.)
# Pinned versions (Cargo.lock, bun.lock, etc.)
local has_lockfile=false
if [[ -f "$REPO_PATH/Cargo.lock" ]] || [[ -f "$REPO_PATH/flake.lock" ]] || [[ -f "$REPO_PATH/mix.lock" ]]; then
if [[ -f "$REPO_PATH/Cargo.lock" ]] || [[ -f "$REPO_PATH/bun.lock" ]] || [[ -f "$REPO_PATH/mix.lock" ]]; then
log_success "Dependency lockfile present (pinned versions)"
PASSED_CHECKS=$((PASSED_CHECKS + 1))
has_lockfile=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ MR="$REPO_DIR/.machine_readable"
[ -f "$MR/ADJUST.contractile" ] && record "adjust_contractile" "pass" "ADJUST.contractile present" \
|| record "adjust_contractile" "warn" "ADJUST.contractile missing"

# --- Phase 5: Guix/Nix environment ---
# --- Phase 5: Guix environment (Nix is retired) ---
echo "" >&2
echo "Phase 5: Reproducible environment" >&2

[ -f "$REPO_DIR/guix.scm" ] && record "guix" "pass" "guix.scm present" \
|| record "guix" "warn" "guix.scm missing"

[ -f "$REPO_DIR/flake.nix" ] && record "nix" "pass" "flake.nix present" \
|| record "nix" "warn" "flake.nix missing"
[ -f "$REPO_DIR/flake.nix" ] && record "nix" "warn" "flake.nix present (Nix is retired; remove it)" \
|| record "nix" "pass" "no flake.nix"

# --- Phase 6: LLM warmup ---
echo "" >&2
Expand Down
Loading