Skip to content

chore: mint zig-dnssec from rsr-template-repo - #3

Merged
hyperpolymath merged 8 commits into
mainfrom
init/repo-init
Oct 27, 2026
Merged

hyperpolymath merged 8 commits into
mainfrom
init/repo-init

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

Mints this repository from rsr-template-repo with just repo-init (project zig-dnssec, owner hyperpolymath, type library). This is the base of a stack. The next PR adds the library on top of this one.

Changes

  • Deed: purpose, IS-NOT, kind, domain, pipeline position and unique strength. Clade pt, secondary sc, as the owner chose. Registration in gv-clade-index is left to the owner.
  • Generated files: CLAUDE.md, REPOSITORY-MAP.adoc and the coaptation receipt regenerated. All three had gone stale at mint, and CI diffs the map.
  • Template references: 24 references to the template's own issues (#53, #119, #209) put back. The name substitution had renamed them to zig-dnssec issue numbers. One of them was inside a commit message that scripts/sweep-wellknown.sh writes.
  • Repairs: a table cell restored, which the placeholder deletion had removed. The deed's (manifest) purpose now describes this repository rather than the template.

Added after the first push (CI and Codex review):

  • Canon re-pin (30a69c8): the deed's (canon …) clause moves from 2.1.2 to 2.1.3, which matches rsr-template-repo and fixes Canon lockstep. The (provenance) block keeps 2.1.2 as history.
  • Mint defects, round 1 (a6311dc):
    • The container service name was rendered as y; it is re-rendered from the template as zig-dnssec. Every line was verified before replacement: 51 lines in 12 files.
    • The mint_cleanup_test.sh fixture is restored.
    • security.txt Canonical: now names a URL that is actually served.
  • RSR profile (53e9601): the deed declares the capabilities this tree carries, and the vestigial rust-ci.yml is removed.
  • Mint defects, round 2 (e1c7f45):
    • Two detectors that the global rename had turned against this repo's own name are restored and anchored.
    • .mailmap is restored.
    • UNASSIGNED quick-start tokens are filled with real commands.
    • The template's inherited test record in TEST-NEEDS.adoc is reset to "not assessed".
  • Contractiles (88c6393, by owner decision: neutralised here, source fix upstream):
    • The template's north star is removed from intend, and its declaration is marked pending owner authorship.
    • The must, bust and dust abstracts now say their entries were inherited, and no check was removed.
    • The signed trident provenance is restored.
  • Containers and build (21ca1b5):
    • One image reference is shared by container-build, container-push and container-run, mirroring ct-build.sh.
    • The maintainer guide's build command is just build.
  • Variant contract (2722846, by owner decision):

Template issues met: worked around here and listed in the commit messages, to be reported upstream.

RSR Quality Checklist

Required

  • Tests pass (just test or equivalent): not at this commit, expected. just test fails here because the template's own example FFI (src/interface/ffi/src/main.zig, allocator.dupeZ) does not compile on Zig 0.17.0. No CI workflow on this PR runs it. The stacked ABI-seam PR replaces that code, and just test passes there.
  • No banned language patterns
  • No secrets, credentials, or .env files included

As Applicable

  • Repo deed (*_chora.deed) updated (purpose, IS-NOT, clade, canon pin, rsr-profile, variant paths)

Testing

Run locally on this tip (2722846) with just 1.59.0, nickel 1.17.0 and asciidoctor 2.0.26:

  • just validate, validate-coapt, validate-claude-md, validate-repo-map, validate-state: pass
  • ./scripts/check-lock-sync.sh, bun scripts/check-action-pinning.js, bash scripts/check-adoc-renders.sh ., scripts/validate-session-contracts.sh: pass
  • every run: step of estate-rules.yml, replayed (17 scripts plus the repository-map staleness diff): pass
  • Canon lockstep comparison step replayed against the fetched canon.lock: fails on the old pin, passes on the new one
  • scripts/check-variant-drift.sh against the parent pin: pass; a control with one undeclared edit is caught
  • nickel export of all six contractiles: pass
  • tests/workflows/mint_cleanup_test.sh: strips the restored fixture, then is idempotent
  • standards check-rsr-profile.sh: only two canon/template-mismatch rows (abi.ipkg location; no 0-AI-MANIFEST baseline), listed for upstream

🤖 Generated with Claude Code

https://claude.ai/code/session_01J4QvDjJMgMQkerYkRoTr2V

Ran `just repo-init` (just 1.57) with: project/slug zig-dnssec, owner
hyperpolymath, type library. Then:
- deed: purpose, IS-NOT, kind (library), domain (dns-security),
  pipeline position, unique strength; clade pt (secondary sc) as chosen
  by the owner. gv-clade-index registration is left to the owner.
- deed (manifest): :purpose still described the template; it now states
  this repository's purpose, as the (ecosystem) clause does.
- CLAUDE.md regenerated from the deed (`just claude-md`).
- Removed .machine_readable/ai/PLACEHOLDERS.adoc as the mint asks.
- docs/governance/TEMPLATE-STANDARDS-AUDIT.adoc: restored the table cell
  repo-init deleted with the OpenSSF placeholder (the table no longer
  rendered).
- Restored 24 references to the template's own issues (#53, #119, #209)
  that the name substitution had turned into zig-dnssec issue numbers,
  in 21 files; one was inside a commit message that
  scripts/sweep-wellknown.sh writes.
- Regenerated docs/architecture/REPOSITORY-MAP.adoc (`just repo-map`;
  CI diffs it) and the coaptation receipt (`just coapt`), both stale
  after the mint.

Checked: `just validate`, validate-coapt, validate-claude-md,
validate-repo-map, validate-state, and a local replay of every step of
the estate-rules workflow.

Upstream template issues met (rsr-template-repo), worked around here:
- RSR_NON_INTERACTIVE=1 replaces `read` with a function that always
  succeeds, so every `while read` loop in the recipe never ends (the
  template's onboarding docs warn of this; answers were piped instead).
- In that mode, unset optional values (OPENSSF_BP_ID, ...) abort under
  `set -u`.
- Deleting placeholder lines with sed can remove a table cell.
- Global substitution of the template name also rewrites references to
  the template's issues (rsr-template-repo#209 -> zig-dnssec#209).
- repo-init leaves REPOSITORY-MAP.adoc and the coaptation receipt stale.
- The self-name pass leaves the template's purpose in the deed's
  (manifest) clause.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F6k6Z173AKT78qpe65xR7n
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 143 files, which is 43 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 6b2d2c9 and 2722846.

Files ignored due to path filters: 2
  • .github/workflows/actions.lock is excluded by !**/*.lock
  • archetypes/julia-library/actions.lock is excluded by !**/*.lock
Files selected for processing: 143
  • .clinerules
  • .cursorrules
  • .devcontainer/Containerfile
  • .devcontainer/README.adoc
  • .devcontainer/devcontainer.json
  • .devcontainer/docker/devcontainer.json
  • .editorconfig
  • .envrc
  • .gitattributes
  • .github/CODEOWNERS
  • .github/CODE_OF_CONDUCT.md
  • .github/CONTRIBUTING.md
  • .github/GOVERNANCE.md
  • .github/ISSUE_TEMPLATE/config.yml
  • .github/SECURITY.md
  • .github/SUPPORT.md
  • .github/copilot-instructions.md
  • .github/dependabot.yml
  • .github/hooks/validate-deed.sh
  • .github/settings.yml
  • .github/workflows/deed-validate.yml
  • .github/workflows/dogfood-gate.yml
  • .github/workflows/rust-ci.yml
  • .github/workflows/sonarqube.yml
  • .machine_readable/ai/PLACEHOLDERS.adoc
  • .machine_readable/coaptation/coapt.ncl
  • .machine_readable/coaptation/coapt.sh
  • .machine_readable/coaptation/receipts/latest.toml
  • .machine_readable/coaptation/witness-map.ncl
  • .machine_readable/compliance/reuse/dep5
  • .machine_readable/configs/eclexiaiser.toml
  • .machine_readable/configs/git-cliff/cliff.toml
  • .machine_readable/configs/stapeln.toml
  • .machine_readable/contractiles/Justfile
  • .machine_readable/contractiles/README.adoc
  • .machine_readable/contractiles/adjust/adjust.k9.ncl
  • .machine_readable/contractiles/bust/bust.k9.ncl
  • .machine_readable/contractiles/dust/dust.k9.ncl
  • .machine_readable/contractiles/intend/intend.k9.ncl
  • .machine_readable/contractiles/must/must.k9.ncl
  • .machine_readable/contractiles/trust/trust.k9.ncl
  • .machine_readable/descriptiles/anchors/README.adoc
  • .machine_readable/descriptiles/provisioning_praxis.deed
  • .machine_readable/root-allow.txt
  • .machine_readable/scripts/maintenance/maint-assault.sh
  • .machine_readable/self-validating/README.adoc
  • .machine_readable/self-validating/examples/ci-config.k9.ncl
  • .machine_readable/self-validating/examples/project-metadata.k9.ncl
  • .machine_readable/self-validating/examples/setup-repo.k9.ncl
  • .machine_readable/self-validating/methodology-guard.k9.ncl
  • .machine_readable/self-validating/template-hunt.k9.ncl
  • .machine_readable/self-validating/template-kennel.k9.ncl
  • .machine_readable/self-validating/template-yard.k9.ncl
  • .windsurfrules
  • CITATION.cff
  • CLAUDE.md
  • CONTRIBUTING.adoc
  • Justfile
  • README.adoc
  • archetypes/README.adoc
  • archetypes/julia-library/julia-library_praxis.deed
  • archetypes/julia-library/overlay/.github/workflows/julia-ci.yml.in
  • archetypes/julia-library/overlay/.github/workflows/julia-docs.yml.in
  • archetypes/julia-library/overlay/Project.toml.in
  • archetypes/julia-library/overlay/src/PACKAGE.jl.in
  • archetypes/julia-library/overlay/test/cases/smoke.jl
  • archetypes/julia-library/overlay/test/runtests.jl
  • build/container/Containerfile
  • build/container/README.adoc
  • build/container/compose.yaml
  • build/container/entrypoint.sh
  • build/container/stapeln/.gatekeeper.yaml
  • build/container/stapeln/compose.toml
  • build/container/stapeln/ct-build.sh
  • build/container/stapeln/deploy.k9.ncl
  • build/container/stapeln/manifest.toml
  • build/container/stapeln/rokur.toml
  • build/container/stapeln/vordr.toml
  • build/docs-seed/README.adoc
  • build/guix.scm
  • build/just/container.just
  • build/just/groove.just
  • build/just/provision-lib.sh
  • build/just/repo-init.just
  • build/manifest.scm
  • build/templates/ROADMAP.adoc.in
  • build/templates/identity.deed.in
  • docs/AFFIRMATION.adoc
  • docs/AI_INSTALLATION_GUIDE.adoc
  • docs/MAINTAINERS.adoc
  • docs/QUICKSTART.adoc
  • docs/RSR-PHILOSOPHY.adoc
  • docs/SETUP.adoc
  • docs/architecture.adoc
  • docs/architecture/REPOSITORY-MAP.adoc
  • docs/architecture/THREAT-MODEL.adoc
  • docs/attribution/CITATIONS.adoc
  • docs/contributing.adoc
  • docs/decisions/0000-template.adoc
  • docs/decisions/0001-adopt-rsr-standard.adoc
  • docs/decisions/0001-template.adoc
  • docs/developer/ABI-FFI-README.adoc
  • docs/governance/CRG-AUDIT-TEMPLATE.adoc
  • docs/governance/TEMPLATE-LINEAGE-AUDIT.adoc
  • docs/governance/TEMPLATE-STANDARDS-AUDIT.adoc
  • docs/onboarding/QUICKSTART-DEV.adoc
  • docs/onboarding/QUICKSTART-MAINTAINER.adoc
  • docs/onboarding/QUICKSTART-USER.adoc
  • docs/onboarding/llm-warmup-dev.adoc
  • docs/onboarding/llm-warmup-maintainer.adoc
  • docs/onboarding/llm-warmup-user.adoc
  • docs/practice/AI-CONVENTIONS.adoc
  • docs/practice/STATE-VISUALIZER-GUIDE.adoc
  • docs/practice/ci-cost-reduction.adoc
  • docs/reports/audit/pillar-audit-2026-04-15.adoc
  • docs/status/PROOF-NEEDS.adoc
  • docs/status/PROOF-STATUS.adoc
  • docs/status/READINESS.adoc
  • docs/status/ROADMAP.adoc
  • docs/status/TEST-NEEDS.adoc
  • docs/troubleshooting.adoc
  • docs/usage.adoc
  • launcher.sh
  • mise.toml
  • scripts/campaigns/www-bundle.campaign
  • scripts/check-no-placeholders.sh
  • scripts/validate-template.sh
  • sonar-project.properties
  • src/interface/ffi/src/main.zig
  • tests/aspect_tests.sh
  • tests/e2e.sh
  • tests/e2e/template_instantiation_test.sh
  • tests/workflows/template_conformance_test.sh
  • www/.well-known/aibdp.json
  • www/.well-known/humans.txt
  • www/.well-known/security.txt
  • www/README.adoc
  • www/dns/records/example.invalid.zone
  • www/policies/acceptable-use.adoc
  • www/policies/ai-use.adoc
  • www/policies/privacy.adoc
  • www/public/index.html
  • zig-dnssec_chora.deed

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The Canon lockstep job (dogfood-gate.yml) failed on every PR in the
stack: hyperpolymath/standards released canon 2.1.3 on 2026-09-30, and
this deed, minted from a template snapshot that still pinned 2.1.2,
declared the old version and gates hash.

2.1.3 is a PATCH release: the law files moved into 0-canon/, which
rewrote the paths named inside template-capability-gates.toml. The
criteria hash is unchanged; the gates hash changed. rsr-template-repo
main already declares exactly these values, so this follows the spine's
adoption (canon.lock order: spine-adopts-then-canon-releases).

  version         2.1.2 -> 2.1.3
  criteria-sha256 6a5aa885... (unchanged)
  gates-sha256    e70efd2f... -> 2f31f46d...

The (provenance) block keeps :canon-version "2.1.2": it records what the
mint was made against, beside :template-tree, and stays as history.

Checked: the workflow's own comparison step, replayed against the
fetched canon.lock, fails on the old pin (version and gates rows) and
passes on the new one. just validate, validate-coapt, validate-claude-md,
validate-repo-map, validate-state and the estate-rules replay pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjJMgMQkerYkRoTr2V
@hyperpolymath
hyperpolymath marked this pull request as ready for review October 27, 2026 08:52
@hyperpolymath
hyperpolymath enabled auto-merge (squash) October 27, 2026 08:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T11:00:37.405141Z 2722846 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 30a69c8e23

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread build/container/stapeln/ct-build.sh Resolved
Comment thread src/interface/ffi/src/main.zig Resolved
Comment thread README.adoc Resolved
Comment thread zig-dnssec_chora.deed Resolved
Comment thread www/.well-known/security.txt Resolved
Comment thread tests/workflows/mint_cleanup_test.sh Resolved
Comment thread src/interface/ffi/src/main.zig Resolved
…re; reachable security.txt

Three mint defects found in review (Codex, on the mint PR):

1. Service name rendered as "y". The interactive repo-init prompt
   "Service name [zig-dnssec]:" received "y", so {{SERVICE_NAME}} and
   {{IMAGE}} became y across the container tier: `just container-build`
   would build, and container-push would publish, ghcr.io/hyperpolymath/y.
   Re-rendered from the template (origin/main) with SERVICE_NAME=zig-dnssec:
   for each template line carrying one of those tokens, the current line
   was first checked to equal the template rendered with "y" (every other
   token as the mint filled it), then replaced by the zig-dnssec rendering.
   51 lines in 12 files, no mismatches, no other change.

2. tests/workflows/mint_cleanup_test.sh lost its
   `<!-- TEMPLATE INSTRUCTIONS: delete only this comment -->` fixture line
   (the mint's own instruction-block strip ran over the test), which made
   the "stripped" assertion vacuous. Restored byte-for-byte from the
   template; the test now strips one block, then is idempotent.

3. security.txt Canonical named
   https://github.com/hyperpolymath/zig-dnssec/.well-known/security.txt,
   which GitHub does not serve (the template renders it that way for every
   mint). No deployed site serves www/ (pages.yml publishes site/), so it
   now names the raw content URL of the checked-in file on main.

Checked: just validate, validate-coapt, validate-claude-md,
validate-repo-map, validate-state, check-lock-sync, action pinning,
AsciiDoc render, estate-rules replay, mint_cleanup_test.sh, bash -n on
the two edited shell scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjJMgMQkerYkRoTr2V
…gial rust-ci

The mint left `(rsr-profile :capabilities ())` with an UNASSIGNED note.
standards' reference checker (scripts/check-rsr-profile.sh) rejects that
outright ("profile declares neither 'capabilities' nor 'preset'"), and
the RSR oracle then scores every capability-gated criterion as n/a, so
the published scorecard was inflated (Codex review on the mint PR).

Declared, against template-capability-gates.toml 0.3.0, the capabilities
whose gated modules this tree carries:
  zig idris2 bash library ffi abi container reproducible-build
  benchmarks governance-tier published-package formal-proofs
(formal-proofs because verification/proofs/ is present; the checker is
presence-based.) The library PR adds `cli` with the dnssec-stub CLI.

.github/workflows/rust-ci.yml is removed: the checker reports it
VESTIGIAL (no 'rust' capability) and its own remedy is to remove the
vestigial module. It ran nothing on these PRs. The source fix is in
rsr-template-repo (repo-init should prune it for non-Rust mints); that
goes on the upstream list. Its actions.lock entry goes with it.

The checker still reports two rows that are canon/template mismatches,
not choices this repo can make:
  MISSING (abi): abi.ipkg - the gate row is root-anchored, but the
    template itself keeps src/interface/abi.ipkg
  MISSING BASELINE: 0-AI-MANIFEST.a2ml or 0-AI-MANIFEST.deed - the
    template ships neither since A2ML retired
Both are for the upstream list.

Checked: check-rsr-profile.sh (only the two rows above), just validate,
validate-coapt, validate-claude-md, validate-repo-map, validate-state,
check-lock-sync, action pinning, AsciiDoc render, estate-rules replay,
Canon lockstep comparison.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjJMgMQkerYkRoTr2V

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53e96016aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread build/just/groove.just Resolved
Comment thread docs/onboarding/QUICKSTART-DEV.adoc Resolved
Comment thread .mailmap Resolved
Comment thread docs/status/TEST-NEEDS.adoc Resolved
…inherited test record

Second round of mint defects from review (Codex, on the mint PR). The
mint's global rename of rsr-template-repo -> zig-dnssec also rewrote
detectors whose job is to find the parent name, and its token pass left
UNASSIGNED sentinels and the template's own test record in place.

- build/just/groove.just (verify-template): the stale-default check
  grepped for 'zig-dnssec', so it fired on every checkout. Restored to
  look for the parent, and anchored to the template's default line
  (project := "rsr-template-repo"): the restored bare-name grep fired on
  the Justfile's legitimate rsr-template-repo#209 citation. Controls: a
  Justfile with only a citation passes, one with the template default
  is caught.
- .machine_readable/self-validating/methodology-guard.k9.ncl: the
  state_not_template reject pattern had become 'zig-dnssec' and matched
  the journal's own title. Restored to the parent name, anchored to the
  title form "= rsr-template-repo" (the journal may cite the template);
  the comment that called the name init-safe is corrected. Controls: the
  template's ROADMAP title matches, this repo's ROADMAP (both stack tips)
  does not; nickel export evaluates.
- .mailmap: restored from the template. The mint replaced it because the
  optional alternate address was blank, dropping the existing alias.
- docs/onboarding/QUICKSTART-{DEV,MAINTAINER}.adoc: build and test
  commands, tech stack, dependencies, build output and package name were
  UNASSIGNED; filled with the real values (just build, just test, Zig
  0.17.0 + Idris2 0.7.0, zig-out/, zig-dnssec). The MUST_INVARIANTS
  token is left for the owner: it depends on the must contractile, which
  still carries the template's declaration.
- docs/status/TEST-NEEDS.adoc: carried the template's CRG C grade
  (2026-04-04) and its test inventory under this repo's name. Reset to
  "not assessed", pointing at docs/reports/VERIFICATION.adoc, which
  arrives with the library.

Checked: just validate, validate-coapt, validate-claude-md,
validate-repo-map, validate-state, check-lock-sync, action pinning,
AsciiDoc render, estate-rules replay; verify-template no longer reports
the always-on project-name warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjJMgMQkerYkRoTr2V

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e1c7f450d5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread build/just/container.just Resolved
Comment thread zig-dnssec_chora.deed Resolved
…s pending owner

The mint copied all six contractile declarations from rsr-template-repo
and renamed them, so this repo's machine-readable north star said
zig-dnssec is "the master template for all hyperpolymath repositories"
and "NOT a runtime library" - the opposite of the deed's purpose - and
coaptation and agents read it as project intent (Codex review).

By owner decision this is neutralised here, not authored: contractiles
are normative, and the source fix (repo-init generating declarations
from the deed instead of copying the template's) goes upstream.

- intend: the template purpose, anti-purpose, three template-maintenance
  intents and four estate wishes are removed. Abstract, Purpose and
  Anti-Purpose now say "pending owner authorship" and point at the
  deed's purpose and IS-NOT clauses. intents/wishes are empty (the
  coaptation reader treats a missing list as []). Non-gating verb.
- must, bust, dust: abstracts no longer claim this is the template; they
  say their entries were inherited at mint and await owner review. No
  invariant, failure mode or check is removed: must and bust are
  blocking gates, and dropping checks would weaken them.
- all six: the signed trident provenance (signed_by.context, 2026-04-18)
  is restored to "canonical template in rsr-template-repo"; the rename
  had rewritten that historical record.
- docs/onboarding/QUICKSTART-DEV.adoc: the last UNASSIGNED token
  (MUST_INVARIANTS) points at the deed as the authority until must is
  authored, quoting its fail-closed rule verbatim; the retired
  .machine_readable/MUST.contractile path is corrected.
- coaptation receipt regenerated with `just coapt` (drift: exactly the
  removed intent/wish rows and the six contractile hashes).

Checked: nickel export of all six contractiles, just validate,
validate-coapt, validate-claude-md, validate-repo-map, validate-state,
check-lock-sync, action pinning, AsciiDoc render, session contracts,
estate-rules replay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjJMgMQkerYkRoTr2V
…build command

Two findings from review (Codex, on the mint PR):

- build/just/container.just: repo-init renders the template's
  {{project}} as PROJECT_LOWER (zig_dnssec), while ct-build.sh tags the
  image from SERVICE_NAME (ghcr.io/hyperpolymath/zig-dnssec:latest). So
  `just container-build && just container-run` built one name and ran
  another, and the plain-OCI push fallback would push an unqualified
  zig_dnssec:latest. A single `_image` reference now expands the same
  CT_REGISTRY / CT_TAG overrides and defaults as ct-build.sh and is used
  by the build fallbacks, the push fallback and container-run; the
  container-init service-name default is zig-dnssec to match. Checked
  with a stand-in engine: container-run resolves to
  ghcr.io/hyperpolymath/zig-dnssec:latest (ct-build.sh's FULL_IMAGE)
  and follows CT_REGISTRY/CT_TAG overrides.
- docs/onboarding/QUICKSTART-MAINTAINER.adoc: `just build-release` is
  not wired (it prints FAIL and exits 1). The guide now says
  `just build`, which works on this tree and, once the library lands,
  writes zig-out/.

Checked: the Justfile parses, just validate, validate-coapt,
validate-claude-md, validate-repo-map, validate-state, check-lock-sync,
action pinning, AsciiDoc render, estate-rules replay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjJMgMQkerYkRoTr2V
…al drift

The (variant (paths …)) lists were empty, so
scripts/check-variant-drift.sh reported every mint change as drift (120
lines) and could not separate the mint from later upstream drift
(Codex review). By owner decision they are populated here, and the
source fix (repo-init writing these lists at mint, since it knows what
it removed and rendered) goes upstream.

Generated from the gate's own report against the parent pin. 3100d46
is this repo's Initial commit, which carries the template tree
(2c01b6f) at mint, so a worktree of it is the parent checkout:
  added     5   rendered docs seeded from build/docs-seed/
  removed   6   archetypes/, build/docs-seed/, build/templates/ (whole
                directories, as prefixes), rust-ci.yml,
                PLACEHOLDERS.adoc, rsr-template-repo_chora.deed
  diverged 97   every file the mint rendered, plus the deed and ROADMAP
:last-updated moves to 2026-10-27; the clause comment says how the
lists were made.

Checked: check-variant-drift.sh passes (was 120 drift lines); a control
that edits one undeclared file (scripts/check-adoc-renders.sh) is
caught. just validate, validate-coapt, validate-claude-md,
validate-repo-map, validate-state, check-lock-sync, action pinning,
AsciiDoc render, estate-rules replay, Canon lockstep comparison.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjJMgMQkerYkRoTr2V
@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2722846f56

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

== Tech Stack

{{LANG_STACK}}
Zig 0.17.0, with Idris2 0.7.0 for the ABI model. Tooling: `just` and Bash.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Match the documented Zig version to the lockfile

In a fresh checkout, mise install follows mise.lock, which pins Zig 0.16.0, while this newly rendered guide tells contributors that the project uses 0.17.0; the maintainer guide repeats the same mismatch. Because Zig build APIs change between releases, manually provisioned environments and troubleshooting based on these guides will not match the repository's locked toolchain, so update the documentation and lockfile together.

Useful? React with 👍 / 👎.

----
just stapeln-export # Generates Containerfile
podman build -t rsr-template-repo .
podman build -t zig-dnssec .

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Point container packaging at the shipped recipe

For a maintainer following this container section, just stapeln-export is not defined anywhere in the repository, and this subsequent command searches for ./Containerfile even though the application Containerfile is at build/container/Containerfile. The documented packaging path therefore stops before producing an image; direct users to just container-build or supply the correct -f build/container/Containerfile invocation.

Useful? React with 👍 / 👎.

Comment on lines +4 to +5
// Replace zig-dnssec, Rsr Template Repo — See README.adoc for details., just run, Rsr Template Repo started successfully. with actuals
= zig-dnssec — Quick Start for Users

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Finish rendering the user quick-start guide

For end users, this newly branded zig-dnssec guide still contains the template's replacement instruction and unusable template flows: just stapeln-run has no recipe, just install depends on the deliberately unwired build-release recipe and exits 1, and just run is N/A for this library rather than printing the advertised “Rsr Template Repo” output. Complete or remove these paths before presenting the file as the project's user quick start.

Useful? React with 👍 / 👎.

Comment thread zig-dnssec_chora.deed
"www/policies/ai-use.adoc"
"www/policies/privacy.adoc"
"www/public/index.html"
"zig-dnssec_chora.deed"))))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep provenance inside the repo deed

The four closing parentheses after the populated :diverged list close the list, paths, variant, and the top-level repo-deed, leaving the following provenance clause outside the deed and the final parenthesis unmatched. Consequently scripts/deed-field.sh --has zig-dnssec_chora.deed provenance returns 1 and scripts/check-template-conformance.sh --repo . fails T1 on every checkout despite the provenance text being present; remove the extra close so provenance remains a direct child of repo-deed.

Useful? React with 👍 / 👎.

@hyperpolymath
hyperpolymath merged commit 6cf121a into main Oct 27, 2026
38 checks passed
@hyperpolymath
hyperpolymath deleted the init/repo-init branch October 27, 2026 14:31
hyperpolymath added a commit that referenced this pull request Oct 28, 2026
…sedes #4) (#6)

## What this is

Milestone 1 of the zig-dnssec library, plus the response to everything
raised on #4.

`main` already contains the minted repository (squash-merged in #3). #4
sat on the
un-squashed `init/repo-init` history and has **no common ancestor with
`main`**, so it is
permanently `CONFLICTING` and cannot be merged; a rebase would replay
eight mint commits
into conflicts. This branch is `main` + the thirteen library commits
cherry-picked clean
(`git merge-base --is-ancestor origin/main HEAD` holds), so it merges.
**It supersedes #4.**

98 files, +16014/-1265 against `main`. Nine commits on top of the
cherry-picks are the
review response: 16 files, +1176/-129.

## Review findings: 12 of 12 fixed, each with a negative control

Two automated reviews (`5666053823` over `6d6a2b11`, `5668921486` over
`4025364b`) raised
2 P1 security and 10 P2 findings. All twelve are fixed. Test count went
**111 → 123**;
`zig build test --summary all` is 18/18 steps, 123/123 tests.

The two P1s are the same defect in two places, and it is the one this
library exists to
prevent:

* **Insecurity inferred from an unauthenticated `Signer` name.** On the
answer path the
validator took `zoneStatus` of the RRSIG's signer and, on `insecure`,
returned the data
without checking whether a configured anchor sat closer to the owner. On
the denial path
it returned `insecure` *before verifying a single signature* over the
NSEC/NSEC3/SOA
records supposed to prove it. `Signer` is attacker-chosen until a
signature over it
verifies, so a responder could hand back a tampered answer as usable
`insecure` data from
inside a configured secure island. Now: authenticate first, gather every
candidate signer
deepest-first, and refuse a signer at or above an anchor (RFC 4035
§5.2).
* **Unsigned fields treated as evidence.** Three findings, one error:
the *minimum* `Labels`
over all same-signer RRSIGs instead of the one that verified (a forged
sibling moved the
wildcard proof depth); the *first* DS signature's signer instead of any
that authenticates
(one extraneous RRSIG broke a valid chain); and the *received* TTL of
unsigned data as the
answer's cache lifetime, so an `insecure` answer outlived the proof that
made it
  acceptable.

Also fixed: `QTYPE=RRSIG` reported as `bogus` for a correctly signed
response;
`QTYPE=CNAME` below a DNAME redirected past the synthesised answer (RFC
6672 §5.3.1);
`effectiveTtl` wrapping for skew-accepted signatures; a missing
SVCB/HTTPS RDATA layout so
the TargetName was hashed in its received case (RFC 4034 §6.2, RFC 9460
§2.2); a `u8`
overflow joining a relative name to its `$ORIGIN`; a dropped query
component in a DoH URI
template (RFC 8484 §3.1); and the container `crosscheck` target's
`;`-chained teardown
masking the cross-check's exit status.

**The tests were verified to fail on the code they guard.** Reverting
`src/dnssec/validator.zig` and `src/dnssec/rrset.zig` to their pre-fix
state fails all seven
new replay tests, each with its finding's exact symptom — a tampered
answer accepted as
`insecure` under an island anchor; a forged NXDOMAIN accepted as
`insecure_delegation`; a
valid chain broken by one extraneous DS RRSIG; a valid wildcard answer
rejected over a forged
`Labels`; an `insecure` answer cached for the attacker-chosen 86400 s;
`QTYPE=CNAME` below a
DNAME returning `indeterminate`; `QTYPE=RRSIG` not refused. The positive
control (an
anchored island validating as `secure`) passed in both states, as it
should. The `name.zig`
test aborts the pre-fix build outright: the overflow is a
checked-arithmetic panic in
Debug/ReleaseSafe and an out-of-bounds copy otherwise.

The replay tests mutate only what an RRSIG does not cover — the question
section, received
TTLs, and the presence and content of additional RRSIGs. That is
precisely an on-path
responder's budget.

No new `Reason` variant was added for `QTYPE=RRSIG`: `zig_dnssec.h`
fixes the reason codes
densely and `main.zig` `@compileError`s on a non-dense or duplicate
value, so a new code is
an ABI break and an Idris2 model change. `.malformed_response` is
reused, and the C boundary
returns `ZIG_DNSSEC_ERR_INVALID_ARGUMENT` before the library is reached.

## k9-deed conformance

* **Fixed a real defect:** `(variant (paths …))` closed with `))))`
where
`build/just/repo-init.just` emits `)))`. The extra parenthesis ended
`(repo-deed …)` early
and left `(provenance)` a *sibling* of it rather than a clause of it, so
no reader walking
clauses below `(repo-deed …)` could reach it. `deed-field.sh --has …
provenance` reported
the clause absent; `check-template-conformance.sh` failed T1 and
short-circuited T2–T4, and
`template-commit`, `template-tree`, `canon-version`, `criteria-sha256`
and `gates-sha256`
were unreadable by every gate. **T1/T2/T3 now pass.** This is inherited
from the mint —
  `main` carries the same defect — so `rsr-template-repo` needs it too.
* `scripts/validate-template.sh` now honours the deed's `(paths :removed
…)` and builds the
root `build.zig` when the contract has removed
`src/interface/ffi/build.zig`. It previously
required paths this variant deliberately deleted and, because
`check_file_exists` returns 1
under `set -euo pipefail`, aborted on the first one and never reported
the rest. Now
  **0 errors, 3 warnings**. The script is declared `:diverged`.
* **Not fixed, and it cannot be from here:** the deed's `:parent-pin` /
`:template-commit` (`3100d46b9cfe…`) and `:template-branch`
(`init/repo-init`) **do not
exist** in `hyperpolymath/rsr-template-repo` — the commit is HTTP 422
from the commits API
and reachable from no branch, and the branch is gone.
`check-variant-drift.sh` takes a
parent checkout at that pin, so the gate is *unrunnable*, not failing.
Against the parent's
current `main` it reports 137 lines of drift, mixing fourteen days of
parent evolution
since the 2026-10-13 mint with this repo's real divergence. Re-pointing
the pin and
rewriting the path lists to make it green would certify convergence
nobody has
demonstrated, so it is recorded in `docs/reports/VERIFICATION.adoc` for
the estate owner
instead. `check-template-conformance.sh` T3 asserts the same unfetchable
commit.
* T4 fails locally on this working branch only — it enumerates
`refs/heads/`, so it is an
  artifact of the checkout, not of the repository.

## SonarCloud

The one red check at #4's tip was **Quality Gate failed: "C Security
Rating on New Code"
(required ≥ A)**, from SonarCloud's automatic GitHub-App analysis
(`sonarqube.yml` self-skips
without `SONAR_TOKEN`). `sonar-project.properties` excludes all `*.zig`
and `*.idr`, so the
analysed new code is the container build, the workflows and the shell.

What I changed, on the merits:

* `build/container/Containerfile` and `.github/workflows/zig-ci.yml` now
pass
`--proto '=https' --tlsv1.2` to every `curl` that fetches the toolchain.
Each already
verifies a pinned SHA-256, but a checksum only proves that what arrived
matches the pin if
  the transfer cannot be silently downgraded.
* The container `CMD` fix above also removes a masked exit status.

What I deliberately did **not** do: widen `sonar.exclusions`, edit the
gate, or change
`sonar-project.properties`. I also did not digest-pin the two
`FROM cgr.dev/chainguard/wolfi-base:latest` lines or change the build
stages' user model,
because neither is verifiable from here — `ziglang.org`, `cgr.dev` and
`sonarcloud.io` are
all unreachable in this environment, there is no container engine to
build with, and an
invented digest or a `USER` directive that breaks `apk add` would be
worse than the thing it
replaces. Base-image pinning is the same estate-wide decision the owner
already deferred for
action pinning; it should be made once, with the digests resolved
against the real registry.
**Whether the gate goes green is therefore not something I can claim** —
the rating is
computed by SonarCloud from findings I cannot read.

## Hypatia and the deposit job

Both were red at `0e785cc` (the CLI segfaulted, exit 139, so the
`hypatia-findings` artifact
was never produced and "Deposit findings for gitbot-fleet" failed
downstream) and both are
**SUCCESS** at `4025364b`. The maintainer's triage already placed the
crash upstream in
`hyperpolymath/hypatia`, since the reusable `standards@da2c748` workflow
scans #5 and #3
cleanly.

I could not retrieve a single finding from either run: `gh run view
--job … --log`,
`gh api …/actions/jobs/<id>/logs` and the check-runs'
`output.summary`/`output.text` all come
back empty or null. So I am **not** claiming Hypatia found nothing — I
am reporting that its
result is unreadable from the API and that nothing here was changed in
response to it. If
Hypatia raises findings on this branch they need triaging on their own
merits.

## CodeRabbit

Review was skipped on #4: 227 files over the 100-file limit, and no
usage credits. The 227
count came from #4's un-squashed mint history — those files are already
in `main`. This
branch is **98 files** against `main`, under the limit, so the skip's
stated cause does not
apply here. The credit problem is an account matter and is not something
a PR can fix;
`.coderabbit.yaml` was left alone rather than relaxed.

## Community health

`/community/profile` reports **100%**. The real gaps were repository
metadata: the
description still reads `***holding repo - only template for now***`,
and `homepage` and
`topics` are empty. `gh repo edit` returns **HTTP 403 "Resource not
accessible by
integration"** — the installation token can read repo metadata but has
no
`administration:write`. This needs the owner (or a token with that
permission). Suggested
description: *"Validating DNSSEC stub resolver in Zig: wire codec,
chain-of-trust validator,
NSEC/NSEC3 denial proofs, DNS-over-HTTPS transport, and a C ABI with an
Idris2 model.
Pre-alpha (CRG X)."* `homepage` should stay empty until Pages is enabled
— `has_pages` is
false, so a Pages URL would 404.

## Known-failing, by design

* `just readiness` fails, and `just test-all` depends on it.
`docs/status/READINESS.adoc`
grades this component **X (Untested)**. Wiring the recipe to the unit or
replay suite would
report a grade the evidence does not support and let `test-all` print
"safe to merge" on
the strength of it, which CRG v2.0 Principle 4 ("grade as-is today, not
aspirationally")
forbids. The recipe's comment now says so. `just crg-grade` /
`crg-badge` were reading
`READINESS.md`, which this repo does not have — they returned the
fallback grade for the
  wrong reason; they now read the file that exists.
* Not runnable in this environment, and therefore unverified here: `just
*` (no `just`),
  `idris2 --typecheck` and the `abi-seam` job (no Idris2), `ncl`, `bun
scripts/check-action-pinning.js`, Hypatia, `trivy`,
`scripts/check-adoc-renders.sh` (no
`asciidoctor`; it fails closed by design), and `tests/crosscheck/` (no
`ldns-signzone`,
`kskgen`, `nsd`, `unbound`). **No new signed zone was generated**, so
every fixture is a
recorded or minimally rewritten Unbound response. Verified here: `zig
fmt --check`,
`zig build test`, `shellcheck`, `yamllint`, `check-no-placeholders.sh`,
`check-root-shape.sh`, `validate-template.sh`,
`check-template-conformance.sh`,
  `deed-field.sh`.
* The library's own gaps are unchanged and documented: no
Ed448/GOST/SM2, no DNS-over-QUIC,
  DoH is HTTP/1.1 only, no RFC 5011 rollover.

## Honest limits on the new evidence

The tests use the recorded cross-check fixtures, so they cover the 22
zones in
`tests/testdata/crosscheck.traces` and synthetic mutations of them. No
fixture has a signed
zone strictly below an unsigned delegation, and building one needs key
material this
environment cannot generate, so the island tests place the trust anchor
below the insecure
delegation instead — same closest-anchor code path, different key
provenance. None of this
replaces the independent review `docs/architecture/THREAT-MODEL.adoc`
asks for before anyone
relies on this validator.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Added DNS message parsing and encoding, DNSSEC validation with
trust-anchor support, and a validating DNS-over-HTTPS client and
command-line tool.
* Added C interface and Idris2 bindings for validating live queries and
recorded traces.
* Added container support and automated checks for formatting, tests,
builds, ABI consistency, and fuzzing.

* **Bug Fixes**
* Improved handling of DNS decoding, denial proofs, signature and TTL
validation, response checks, and DoH requests.

* **Documentation**
* Added project usage, installation, architecture, threat-model, and
verification guides, along with cross-check and fuzzing reports.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
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