Skip to content

Commit ad70b70

Browse files
fix(rsr): migrate AffineScript bot directives (#189)
## Summary - rename the three AffineScript satellite .machine_readable/agent_instructions directories to the accepted bot_directives name - preserve all nine A2ML payloads byte-for-byte and update the three README descriptions - add a scoped validator for migrated satellite batches and wire it into validate-rsr - include a self-test that plants a legacy directory and proves the validator rejects it ## Validation - bash -n hooks/validate-bot-directives.sh - shellcheck hooks/validate-bot-directives.sh - bash hooks/validate-bot-directives.sh --self-test - just validate-bot-directives - hooks/validate-spdx.sh - git diff --check - no agent_instructions directory or reference remains under affinescript-ecosystem - all nine moved A2ML files match their pre-rename Git blobs byte-for-byte ## Baseline note The new bot-directives validation passes. The broader just validate-rsr recipe subsequently reports five paths absent from current main: SECURITY.md, CONTRIBUTING.md, and the must/trust/dust nested contractile files. This PR does not alter those paths and does not claim that pre-existing baseline is green. Refs #117.
1 parent 357b2a2 commit ad70b70

14 files changed

Lines changed: 83 additions & 10 deletions

File tree

‎Justfile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,12 @@ assail:
115115
# VALIDATION
116116
# ═══════════════════════════════════════════════════════════════════════════════
117117

118+
# Reject legacy directive paths in satellite batches already migrated under #117.
119+
validate-bot-directives:
120+
@bash hooks/validate-bot-directives.sh
121+
118122
# Validate RSR compliance
119-
validate-rsr:
123+
validate-rsr: validate-bot-directives
120124
#!/usr/bin/env bash
121125
echo "=== RSR Compliance Check ==="
122126
MISSING=""

affinescript-ecosystem/affinescript-vite/.machine_readable/agent_instructions/README.adoc renamed to affinescript-ecosystem/affinescript-vite/.machine_readable/bot_directives/README.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: CC-BY-SA-4.0
22
// Copyright (c) {{CURRENT_YEAR}} hyperpolymath (hyperpolymath) <j.d.a.jewell@open.ac.uk>
3-
= Agent Instructions
3+
= Bot Directives
44
:toc: preamble
55

66
Methodology-aware configuration for AI agents. Read by any AI agent
@@ -32,8 +32,7 @@ Methodology-aware configuration for AI agents. Read by any AI agent
3232
== Relationship to Other Files
3333

3434
* `AGENTIC.a2ml` says WHAT agents can do (permissions, gating)
35-
* `agent_instructions/` says HOW agents should work (methodology)
36-
* `bot_directives/` says what the gitbot-fleet does (fleet-specific)
35+
* `bot_directives/` says HOW agents should work (methodology)
3736
* `CLAUDE.md` says how Claude specifically should work (Claude-specific)
3837

3938
== Reference

affinescript-ecosystem/affinescript-vite/.machine_readable/agent_instructions/coverage.a2ml renamed to affinescript-ecosystem/affinescript-vite/.machine_readable/bot_directives/coverage.a2ml

File renamed without changes.

affinescript-ecosystem/affinescript-vite/.machine_readable/agent_instructions/debt.a2ml renamed to affinescript-ecosystem/affinescript-vite/.machine_readable/bot_directives/debt.a2ml

File renamed without changes.

affinescript-ecosystem/affinescript-vite/.machine_readable/agent_instructions/methodology.a2ml renamed to affinescript-ecosystem/affinescript-vite/.machine_readable/bot_directives/methodology.a2ml

File renamed without changes.

affinescript-ecosystem/affinescriptiser/.machine_readable/agent_instructions/README.adoc renamed to affinescript-ecosystem/affinescriptiser/.machine_readable/bot_directives/README.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: CC-BY-SA-4.0
22
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
3-
= Agent Instructions
3+
= Bot Directives
44
:toc: preamble
55

66
Methodology-aware configuration for AI agents. Read by any AI agent
@@ -32,8 +32,7 @@ Methodology-aware configuration for AI agents. Read by any AI agent
3232
== Relationship to Other Files
3333

3434
* `AGENTIC.a2ml` says WHAT agents can do (permissions, gating)
35-
* `agent_instructions/` says HOW agents should work (methodology)
36-
* `bot_directives/` says what the gitbot-fleet does (fleet-specific)
35+
* `bot_directives/` says HOW agents should work (methodology)
3736
* `CLAUDE.md` says how Claude specifically should work (Claude-specific)
3837

3938
== Reference

affinescript-ecosystem/affinescriptiser/.machine_readable/agent_instructions/coverage.a2ml renamed to affinescript-ecosystem/affinescriptiser/.machine_readable/bot_directives/coverage.a2ml

File renamed without changes.

affinescript-ecosystem/affinescriptiser/.machine_readable/agent_instructions/debt.a2ml renamed to affinescript-ecosystem/affinescriptiser/.machine_readable/bot_directives/debt.a2ml

File renamed without changes.

affinescript-ecosystem/affinescriptiser/.machine_readable/agent_instructions/methodology.a2ml renamed to affinescript-ecosystem/affinescriptiser/.machine_readable/bot_directives/methodology.a2ml

File renamed without changes.

affinescript-ecosystem/rattlescript/.machine_readable/agent_instructions/README.adoc renamed to affinescript-ecosystem/rattlescript/.machine_readable/bot_directives/README.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: CC-BY-SA-4.0
22
// Copyright (c) {{CURRENT_YEAR}} Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
3-
= Agent Instructions
3+
= Bot Directives
44
:toc: preamble
55

66
Methodology-aware configuration for AI agents. Read by any AI agent
@@ -32,8 +32,7 @@ Methodology-aware configuration for AI agents. Read by any AI agent
3232
== Relationship to Other Files
3333

3434
* `AGENTIC.a2ml` says WHAT agents can do (permissions, gating)
35-
* `agent_instructions/` says HOW agents should work (methodology)
36-
* `bot_directives/` says what the gitbot-fleet does (fleet-specific)
35+
* `bot_directives/` says HOW agents should work (methodology)
3736
* `CLAUDE.md` says how Claude specifically should work (Claude-specific)
3837

3938
== Reference

0 commit comments

Comments
 (0)