Skip to content

chore(rsr): customise scaffolding to cicd-squabbler identity + fix governance gates - #4

Merged
hyperpolymath merged 2 commits into
mainfrom
claude/arghda-roadmap-planning-p5mu93
Jul 1, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
claude/arghda-roadmap-planning-p5mu93

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Jul 1, 2026 •

Copy link
Copy Markdown
Owner

Context

cicd-squabbler was instantiated from rsr-template-repo but its machine-readable substrate + CLAUDE.md were never customised — so it self-identified as rsr-template-repo. This is the scaffolding-completion pass: it fixes the repo-identity leak and the repo-specific governance gates. It does not (and should not) attempt to hand-fix the template-derived validator failures that a freshly-instantiated RSR repo is simply born with — those are a solutions-at-source problem in rsr-template-repo and/or owner-domain (see below).

Genuinely fixed by this PR (green on CI, HEAD 8be7d40)

  • Identity — STATE.a2ml rewritten to cicd-squabbler's real observed state (engine + SPARK invariant + CLI real; GitHub App webhook is an honest stub); ANCHOR.a2ml/0-AI-MANIFEST.a2ml identity fields + the CLAUDE.md identity block synced to CLADE.a2ml (uuid 38bec2ed-…, born 2026-06-29). CLAUDE.md hand-synced because just claude-md needs nickel (not installed).
  • root-shape — .machine_readable/root-allow.txt now allowlists the Rust/SPARK layout (Cargo.toml, Cargo.lock, crates/, spark/, RSR-PHILOSOPHY.adoc); the estate-rules root-check passes (it now advances to a later, template rule — see below).
  • SonarCloud — sonar-project.properties projectKey → hyperpolymath_cicd-squabbler; the SonarCloud Code Analysis check is green and the quality gate passed (0 new issues).
  • openssf-compliance — .github/SECURITY.md tokens filled (contact = maintainer email); PGP section removed rather than fabricated (no invented fingerprint).
  • SPDX — headers added to the 6 headerless .a2ml files I touched.
  • check (cargo fmt + clippy -D warnings + build + test), CodeQL, Hypatia, panic-attack, Patch Bridge, Groove-manifest, eclexiaiser, empty-linter, dogfooding-summary: all green.

Still red — pre-existing / template-derived / owner-domain (NOT this PR's changes)

Ground-truthed from the failing job logs on 8be7d40. None of these were introduced here, and each is best fixed at source rather than by hand-patching this instance:

Check Root cause Right fix
Validate A2ML manifests (29 err / 121 files) The RSR template ships ~121 AI-MANIFEST.a2ml files (whole docs/, src/, verification/ tree); 29 lack the now-required identity field. I authored ~6; the failing bulk are template defaults I never touched. rsr-template-repo (add identity field to template manifests) — solutions-at-source.
Validate K9 contracts (24 err / 18 files) Template .k9.ncl/.k9 files missing the K9! magic-number line + pedigree name. Template defaults, not repo-specific. rsr-template-repo (fix template k9 files).
estate-rules (zig-rename) Rule flags every literal zig string → "replaced by zig-unified-api-adapter", catching template workflow boilerplate (container/Containerfile, e2e.yml, release.yml). This contradicts the estate's own Zig-default language policy — flagging, not auto-editing (doctrine #4/#6). Owner / estate-rules maintainer (rule appears mis-scoped vs policy).
SonarQube (auth) A second, legacy Sonar workflow runs raw sonar-scanner and needs a SONAR_TOKEN secret not set for it; the official SonarCloud check + quality gate already pass. Owner (repo secret, or retire the duplicate workflow).

Recommendation

Merge on the repo-identity + repo-specific-gate value (which is real and green), and track the four template/owner items separately — the A2ML + K9 failures are a genuine "a fresh RSR repo is born red on the estate's own validators" finding that wants fixing in rsr-template-repo, not per-instance.


Generated by Claude Code

claude added 2 commits July 1, 2026 04:36
…vernance gates

The repo was instantiated from rsr-template-repo but its machine-readable
substrate was never customised, failing 4 governance checks. This completes
the scaffolding (verified locally where possible; external validate-actions
confirmed on CI):

- root-allow.txt: allowlist the Rust/SPARK layout (Cargo.toml/Cargo.lock,
  crates/, spark/, RSR-PHILOSOPHY.adoc). `check-root-shape.sh` now passes
  (only gitignored target/ remains) — fixes estate-rules / K9 root-shape.
- SPDX: add `# SPDX-License-Identifier: MPL-2.0` to 6 headerless .a2ml manifests.
- Placeholder substitution across .a2ml: fill {{CURRENT_YEAR}}/{{AUTHOR}}/
  {{OWNER}}/{{AUTHOR_EMAIL}}/{{CURRENT_DATE}}/{{PROJECT_*}} with the real
  values. Legitimate sentinel references ({{PLACEHOLDER}} in drift-check
  reject-lists / template-usage comments) are intentionally kept.
- Identity: STATE.a2ml rewritten to cicd-squabbler's real state (engine +
  SPARK invariant + CLI real; GitHub App an honest stub); ANCHOR/0-AI-MANIFEST
  identity fields + CLAUDE.md identity block synced to CLADE (uuid
  38bec2ed-…, born 2026-06-29). CLAUDE.md hand-synced (generator needs nickel).
- sonar-project.properties: projectKey -> hyperpolymath_cicd-squabbler.
- openssf: fill .github/SECURITY.md tokens; contact = the maintainer email.
  The PGP section is removed rather than fabricated (no invented fingerprint —
  the template's own guidance is "remove PGP if you don't use it").

Not changed: the broad, legitimate rsr-template-repo references (drift-check,
template-origin notes) are kept; CLADE registration into gv-clade-index is a
separate owner action; repo-wide Hypatia findings are pre-existing/out of scope.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_012MpYSh6Wy8YMBH2E3qVyT7
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath marked this pull request as ready for review July 1, 2026 06:44
@hyperpolymath
hyperpolymath merged commit 45c4a8b into main Jul 1, 2026
17 of 21 checks passed
@hyperpolymath
hyperpolymath deleted the claude/arghda-roadmap-planning-p5mu93 branch July 1, 2026 06:44
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.

2 participants