Skip to content

fix(skeleton): emit PLAYBOOK.deed, never .a2ml - #704

Merged
hyperpolymath merged 8 commits into
mainfrom
fix/skeleton-emit-deed-not-a2ml
Nov 26, 2026
Merged

hyperpolymath merged 8 commits into
mainfrom
fix/skeleton-emit-deed-not-a2ml

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • robot-repo-automaton's skeleton generated seven .a2ml descriptile files in every repo it scaffolded. A2ML is retired estate-wide (D99, D312, D313), so all seven templates are removed.
  • The skeleton now emits .machine_readable/descriptiles/PLAYBOOK.deed (empty sections, per the A7 ruling). It passes deed_lint.js from standards, plain and --strict.
  • The other six families (ANCHOR, META, STATE, ECOSYSTEM, AGENTIC, NEUROSYM) are not converted. Their facts are clauses of <repo>_chora.deed, which carries a per-repo minted identity.
  • The emitted Justfile also read and wrote STATE.a2ml (info, state-touch, state-phase). The new test caught this. Those recipes and the two just state-touch calls are removed, in their own commit.

Other legacy .a2ml files: none deleted

gitbot-fleet has no *_chora.deed (and no descriptile deed), so no target deed exists and conditions (a) and (b) cannot hold for any file. Hundreds of files also still reference a2ml (condition (c)). All 35 remaining .a2ml files are kept. There is no a2ml-legacy-allow.txt here.

Kept:
bots/rhodibot/canon/rsr-criteria-v2.a2ml, bots/echidnabot/tests/fixtures/manifest/{ephapax,valence-shell}.a2ml, 0-AI-MANIFEST.a2ml, audits/assail-classifications.a2ml, contractiles/{intend/Intentfile,must/Mustfile,trust/Trustfile}.a2ml, .machine_readable/{CLADE,CICD-PATTERNS,SESSION-2026-05-26-148,SESSION-2026-05-26-cicd}.a2ml, .machine_readable/descriptiles/*.a2ml (7), .machine_readable/integrations/*.a2ml (4), .machine_readable/bot_directives/*.a2ml (3), .machine_readable/contractiles/{dust,bust,trust}/*file.a2ml (3), robot-repo-automaton/.machine_readable/6a2/*.a2ml (6).

Test results

  • cargo build --release: OK.
  • Skeleton tests: 6 pass, including skeleton_emits_no_a2ml and emitted_deeds_lint (run with DEED_LINT pointing at standards' deed_lint.js).
  • Full lib suite: 76 of 77. The failure is fixer::tests::test_atomic_replace_failure_preserves_original_bytes (assertion failed: result.is_err()). It also fails on clean origin/main when run as root (uid 0), checked in a worktree of origin/main. It is pre-existing, unrelated to this change, and was not skipped or altered.

Notes

  • The two commits are ordered Justfile first, then template and tests, so each commit is green on its own.
  • rsr-template-repo's drift check (skeleton check) will report the removed .a2ml files as drift until it re-syncs.

Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • Starter projects now include a deed-based playbook template with sections for deployment, incident response, releases, and maintenance.
  • Changes
    • Starter templates no longer include the retired A2ML configuration files.
    • The project information output no longer displays a current phase, and the state-management commands have been removed.
    • The “all” automation task now runs formatting, linting, tests, and documentation generation without updating project state.

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.
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 <repo>_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).

Copy link
Copy Markdown
Owner Author

Two CI jobs are red on this PR (head b4f2b89). Neither failure is in code this PR changes:

  • build · test · clippy (robot-repo-automaton): all 77 lib tests pass in CI, including the new skeleton_emits_no_a2ml and emitted_deeds_lint. The job then fails on clippy needless_bool at robot-repo-automaton/src/confidence.rs:352. This PR does not touch that file (git diff origin/main on it is empty). The CI toolchain is Rust 1.100, which reports a lint that the older toolchain does not. It is a one-line fix (protected_dirs.iter().any(|dir| target.contains(dir))) that belongs in its own change.
  • GSBot build, tests and dependency security: the dependency audit fails on RUSTSEC-2026-0543 (chrono unmaintained) and RUSTSEC-2024-0388. This PR changes neither Cargo.toml nor Cargo.lock, so the advisory database moved, not this diff.

main's last recorded run of both checks was green, so I believe both are newly red on the base from a toolchain and advisory-database update. I have not confirmed that with a run on the base. I am not widening this PR to fix them and am leaving that decision to the owner.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Coding Agent task started: View task and status

The task will inspect the CI failures, validate its fix, and commit the fix to this branch automatically.

Note: Fixing CI failures is a beta feature and may encounter errors. Expect some limitations and changes as we gather feedback and continue to improve it.

coderabbitai Bot and others added 2 commits November 22, 2026 14:46
…mat its skeleton test, and bump gsbot's URL dependencies

<!-- coderabbit-ai-generated:v1 -->
@hyperpolymath
hyperpolymath enabled auto-merge (squash) November 22, 2026 14:54
…eck, format its skeleton test, and bump gsbot's URL dependencies"

This reverts commit 2f0cae4.

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

Copy link
Copy Markdown
Owner Author

Reverted CodeRabbit's autofix commit 2f0cae4 (revert 7791d7b) to keep this PR single-purpose; #705 and #706 carry those fixes (the confidence.rs clippy fix and the gsbot url patch).


Generated by Claude Code

…eton 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.
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.
@hyperpolymath
hyperpolymath force-pushed the fix/skeleton-emit-deed-not-a2ml branch from 527b255 to 188ac00 Compare November 26, 2026 01:33
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 188ac00 and 12db46d.

Files selected for processing: 10

  • robot-repo-automaton/src/skeleton.rs
  • robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/AGENTIC.a2ml
  • robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ANCHOR.a2ml
  • robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/ECOSYSTEM.a2ml
  • robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/META.a2ml
  • robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/NEUROSYM.a2ml
  • robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.a2ml
  • robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/PLAYBOOK.deed
  • robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/STATE.a2ml
  • robot-repo-automaton/templates/skeleton/Justfile

No actionable comments were generated in the recent review.

Walkthrough

The skeleton now uses a deed-first layout and removes .a2ml templates and state recipes. Tests check that emitted skeleton files contain no .a2ml references and validate deed structure. The change also simplifies a protected-file check and updates a pinned Hypatia commit.

Changes: Skeleton migration

Layer / File(s) Summary
Deed-first skeleton and validation
robot-repo-automaton/src/skeleton.rs, robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/*
The skeleton replaces seven .a2ml templates with PLAYBOOK.deed. Tests check for .a2ml references and files, validate deed structure, and lower the minimum skeleton entry count from 11 to 6.
Remove .a2ml state recipes
robot-repo-automaton/templates/skeleton/Justfile
The info recipe no longer reads .a2ml state. The state-touch and state-phase recipes are removed, and all no longer calls state-touch.

Confidence check simplification

Layer / File(s) Summary
Simplify protected-file check
robot-repo-automaton/src/confidence.rs
is_protected_file directly returns the protected-directory-marker check result. The removed conditional and fallback were behaviorally equivalent.

Pinned source update

Layer / File(s) Summary
Update Hypatia commit pin
scripts/lib/pinned-reusable-sources.json
The pinned hyperpolymath/hypatia commit changes to f2c0604880f615bec5edda7aaefc8feac3d04cc5.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Possibly related issues

  • Issue 641 — Removing NEUROSYM.a2ml from the skeleton stops that template from being emitted. Existing copies and their stale setting remain.
Merge Risk: Minimal · previous review 188ac · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(skeleton): emit PLAYBOOK.deed, never .a2ml" matches the main change. The PR removes the seven retired .a2ml descriptile templates and makes the skeleton emit PLAYBOOK.deed instead. The …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(skeleton): emit PLAYBOOK.deed, never .a2ml" matches the main change. The PR removes the seven retired .a2ml descriptile templates and makes the skeleton emit PLAYBOOK.deed instead. The title is short, specific, and states the primary change. The raw summary confirms the skeleton.rs changes, the deleted .a2ml templates, the new PLAYBOOK.deed, and the Justfile recipe removals.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b4f2b89 and 188ac00.

Files ignored due to path filters: 2

  • bots/gsbot/Cargo.lock is excluded by !**/*.lock
  • scripts/lib/lock-closure-receipts.tsv is excluded by !**/*.tsv
Files selected for processing: 3

  • robot-repo-automaton/src/confidence.rs
  • robot-repo-automaton/src/skeleton.rs
  • scripts/lib/pinned-reusable-sources.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

hyperpolymath added a commit that referenced this pull request Nov 26, 2026
…+ url 2.5.9 (carries #705 and #706 fixes) (#707)

## Why
`main` fails three required checks and each fix sat in a different PR,
so none could merge. This PR carries all three fixes (owner chose "Fold
into #707").

| Fix | Commit | Origin |
|---|---|---|
| Pinned source closure: re-attest hypatia `credential-read-check.yml`
at f2c06048 | 6e64d5a | this PR |
| robot-repo-automaton clippy `needless_bool` in `confidence.rs` |
76a2155 | cherry-pick -x from #705 (6ddc6dc) |
| GSBot audit: `url` 2.5.9 (RUSTSEC-2026-0592), `bots/gsbot/Cargo.lock`
only | 7388520 | cherry-pick -x from #706 (6bfdde7) |

Original authorship kept on the cherry-picks. The departures commit from
#706 is **not** included; #706 keeps it.

## Closure fix (details)
#699 bumped `hypatia-scan.yml` job `scanner-credential` to
`hyperpolymath/hypatia/.github/workflows/credential-read-check.yml@f2c06048…`
without updating `scripts/lib/pinned-reusable-sources.json`. **Pin
only:** the file's blob is `15c597ea720a5affb861dab058084f7245ee4cbd` at
both 29a9e4a8 and f2c06048, so the nested `uses:` closure is unchanged.
No generator exists; same approach as #698 (manifest binding + receipts
row).

## Local evidence
- `audit-pinned-reusable-sources.sh --fetch-sources`: findings=0
verified-roots=6 (was 1 finding)
- `audit-lock-closure.sh`: fatal=0; pinned-reusable-sources-test 55/0;
lock-closure-test 47/0
- `cargo clippy --locked -- -D warnings` in robot-repo-automaton: clean
- pinned-source-entrypoints-test: 7 pass, 2 fail locally
(historical-source cache that CI fetches, as in #698)

## After merge
Owner: close #705 (superseded); update #706's branch from main so it
shrinks to the departures ledger. #704 untouched. #706 and #705 are
unchanged by this PR.


---
_Generated by [Claude Code](https://claude.ai/code)_

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

## Summary by CodeRabbit

* **Refactor**
* Streamlined protected-file checks without changing which files are
protected.
* **Chores**
* Updated a pinned reusable source reference; its path and other
recorded metadata remain unchanged.
* **Tests**
* Added coverage for confidence classification of protected paths and
for detecting stale references after a source is repinned.
  * No user-facing behavior changes are included in this update.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 26ce231 into main Nov 26, 2026
63 checks passed
@hyperpolymath
hyperpolymath deleted the fix/skeleton-emit-deed-not-a2ml branch November 26, 2026 13:49
hyperpolymath added a commit that referenced this pull request Nov 26, 2026
…ve departures (#706)

## Summary

Owner ruling by selector, 22 Nov: "patch url, record the rest". Two
commits, each in its own change.

1. **`fix(gsbot): update url to 2.5.9`**: clears RUSTSEC-2026-0592
(`url` <= 2.5.8, `Url::origin()` recursion on `blob:` URLs). Only
`bots/gsbot/Cargo.lock` changes: `url` 2.5.8 to 2.5.9, and
`form_urlencoded` 1.2.2 to 1.2.3 with it. Done with `cargo update -p url
--precise 2.5.9`, because plain `cargo update -p url` locked nothing
here (stale index).
2. **`chore(departures)`**: adds `.machine_readable/departures.jsonl`
(the ledger path in `DEPARTURES.adoc` section 5) with two `blocked`
rows, one defect per row, each with a `grep-present` check that the
package is still in `bots/gsbot/Cargo.lock`:
- `gsbot-rustsec-2026-0543-chrono`: chrono 0.4.44 unmaintained, no safe
upgrade.
- `gsbot-rustsec-2024-0388-derivative`: derivative 2.2.0 unmaintained,
no safe upgrade, pulled in by poise 0.6.2.
- Both: "upstream serenity/poise/sqlx still depend; replace with
jiff/time when they move".

## The GSBot audit and the two unmaintained advisories

No `deny.toml` ignore entries are added (`deny.toml` still ignores
nothing). `.github/workflows/rust.yml` runs `cargo deny … check
advisories --warn unmaintained`, and RUSTSEC-2026-0543 (`chrono`) and
RUSTSEC-2024-0388 (`derivative`) are both "unmaintained" advisories, so
they only warn and do not fail the job. The `url` patch clears the one
advisory that does fail it. The departure rows stay because the debt is
real; a row records a defect, it is not a waiver of the gate.

## Test results

- `cargo build --locked` in `bots/gsbot`: OK. `cargo test --locked`: all
pass.
- `departures.sh validate`: 2 rows valid. `departures.sh check` at this
commit: 2 present, 0 RESOLVED, 0 unevaluated.
- Not run locally: `cargo deny` (not installed here); the audit result
comes from this PR's CI.

## Notes

- This adds the ledger file only. It does not copy `departures.sh` /
`issue-evidence.sh` into `scripts/` (adoption step 1) or wire `check`
into a gate (step 3). Say if the owner wants those added.
- Independent of #705 (the clippy fix) and #704.


---
_Generated by [Claude Code](https://claude.ai/code)_

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

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

## Summary by CodeRabbit

* **Chores**
* Recorded two dependency advisories for unmaintained libraries; no safe
upgrades are currently available.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
hyperpolymath added a commit that referenced this pull request Nov 26, 2026
… single pin writer (#716)

## Why
Owner ruling "single pin writer" (relayed by the hub, 26 Nov):
Dependabot's `github-actions` ecosystem is retired in favour of the
standards Action pins applier (`metadatastician/standards`
`.github/workflows/action-pins-applier.yml`, #1688), which writes
third-party `uses:` pins and `actions.lock` together, one PR per repo.
Dependabot bumps bypass this repo's pinned-reusable-sources ledger (#699
turned main red until #707).

## What
- Remove only the `package-ecosystem: "github-actions"` entry from
`.github/dependabot.yml`; add a comment pointing to the applier. The
`cargo` entry is unchanged.
- The `github/codeql-action` hold that sat in that entry's `ignore` list
is already carried in standards `config/settings/actions-bump-holds.txt`
(verified), so it is not lost.
- No workflow, `actions.lock`, SPDX or closure-file change. Independent
of #707, #704, #706.

## Closure gap: does the applier keep `Pinned source closure` green?
**The gap remains.**
Read-only check of standards `main` (`action-pins-applier.yml`,
`scripts/bump-action-pins.sh`, `scripts/regen-dependabot-locks.sh`,
`scripts/apply-workflow-pins-remote.sh`):
- None of them mention `scripts/lib/pinned-reusable-sources.json` or
`scripts/lib/lock-closure-receipts.tsv`.
- The bump path refuses any changed path outside `.github/workflows` and
`.github/actions` (`bump-unexpected-path`), so the applier cannot update
this repo's closure files even if it tried.
- `bump-action-pins.sh` skips first-party owners (hyperpolymath,
metadatastician, catachresis-colloquium). The hypatia
`credential-read-check.yml` pin that broke #699 is first-party, so the
bump will not move it; standards reusable pins move through
`apply-workflow-pins` instead.
- Consequence: when the applier or `apply-workflow-pins` re-points a pin
that the manifest binds (a standards reusable-workflow caller), the
manifest/receipts keep the old commit and
`audit-pinned-reusable-sources.sh` fails with `SOURCE-ACTIVE-MISSING`,
exactly as in #699. A third-party-only bump should not change the
manifest's roots, but I did not simulate one.
- Not fixed here and not touched in standards; the hub will put the fix
location to the owner.

## Applier App installed on gitbot-fleet?
**Yes, per the hub's evidence (not independently verified by me).**
Applier run 45810700214 (26 Nov, 11:27Z) minted installation tokens for
hyperpolymath, metadatastician and catachresis-colloquium ("for all
repositories owned by ..."), named no owner it did not examine, and
swept #708. My own lookup (`GET
.../installation`) returned 401 because it needs an App JWT.

## Departures row
The "Dependabot bypasses the ledger" bypass is closed by this PR, but
the closure-file gap above remains, so the row should be reworded to
that gap (text sent to the hub). `.machine_readable/departures.jsonl` is
not on main (#706 unmerged), so no row is added here.


---
_Generated by [Claude Code](https://claude.ai/code)_

Co-authored-by: Claude <noreply@anthropic.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.

3 participants