-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(gates): gate on the DEED grammar, per the template and standards#837 #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ jobs: | |
| # Job 1: A2ML manifest validation | ||
| # --------------------------------------------------------------------------- | ||
| a2ml-validate: | ||
| name: Validate A2ML manifests | ||
| name: Validate DEED manifests | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
|
|
@@ -31,10 +31,10 @@ jobs: | |
| - name: Check for A2ML files | ||
| id: detect | ||
| run: | | ||
| COUNT=$(find . -name '*.a2ml' -not -path './.git/*' | wc -l) | ||
| COUNT=$(find . \( -name '*.a2ml' -o -name '*.deed' \) -not -path './.git/*' | wc -l) | ||
| echo "count=$COUNT" >> "$GITHUB_OUTPUT" | ||
| if [ "$COUNT" -eq 0 ]; then | ||
| echo "::warning::No .a2ml manifest files found. Every RSR repo should have 0-AI-MANIFEST.a2ml" | ||
| echo "::warning::No .a2ml/.deed manifest files found. Every RSR repo should have a repo deed (<reponame>_chora.deed); legacy 0-AI-MANIFEST.a2ml accepted mid-migration — standards #837" | ||
| fi | ||
|
|
||
| - name: Validate A2ML manifests | ||
|
|
@@ -47,14 +47,14 @@ jobs: | |
| cat <<'EOF' >> "$GITHUB_STEP_SUMMARY" | ||
| ## A2ML Validation | ||
|
|
||
| :warning: **No .a2ml files found.** Every RSR-compliant repo should have at least `0-AI-MANIFEST.a2ml`. | ||
| :warning: **No .a2ml/.deed manifest files found.** Every RSR-compliant repo should have a repo deed (`<reponame>_chora.deed`) at its root. | ||
|
|
||
| Create one with: `a2mliser init` or copy from [rsr-template-repo](https://github.com/hyperpolymath/rsr-template-repo). | ||
| Copy it from [rsr-template-repo](https://github.com/hyperpolymath/rsr-template-repo). | ||
| EOF | ||
| else | ||
| echo "## A2ML Validation" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "Scanned **${A2ML_COUNT}** .a2ml file(s). See step output for details." >> "$GITHUB_STEP_SUMMARY" | ||
| echo "Scanned **${A2ML_COUNT}** manifest file(s) (.deed, or legacy .a2ml). See step output for details." >> "$GITHUB_STEP_SUMMARY" | ||
| fi | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
|
|
@@ -92,7 +92,7 @@ jobs: | |
| cat <<'EOF' >> "$GITHUB_STEP_SUMMARY" | ||
| ## K9 Contract Validation | ||
|
|
||
| :warning: **No K9 contract files found.** Repos with configuration files should have K9 contracts. | ||
| :warning: **No .a2ml/.deed manifest files found.** Every RSR-compliant repo should have a repo deed (`<reponame>_chora.deed`) at its root. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Restore the K9-specific warning. This line is emitted when Use the previous K9 warning in this branch. 🤖 Prompt for AI Agents |
||
|
|
||
| Generate contracts with: `k9iser generate .` | ||
| EOF | ||
|
|
@@ -306,7 +306,7 @@ jobs: | |
| MAX=6 | ||
|
|
||
| # A2ML manifest present? | ||
| if find . -name '*.a2ml' -not -path './.git/*' | head -1 | grep -q .; then | ||
| if find . \( -name '*.a2ml' -o -name '*.deed' \) -not -path './.git/*' | head -1 | grep -q .; then | ||
| SCORE=$((SCORE + 1)) | ||
| A2ML_STATUS=":white_check_mark:" | ||
| else | ||
|
|
@@ -360,7 +360,7 @@ jobs: | |
|
|
||
| | Tool/Format | Status | Notes | | ||
| |-------------|--------|-------| | ||
| | A2ML manifest (0-AI-MANIFEST.a2ml) | ${A2ML_STATUS} | Required for all RSR repos | | ||
| | DEED repo deed (`<reponame>_chora.deed`) | ${A2ML_STATUS} | Required for all RSR repos | | ||
| | K9 contracts | ${K9_STATUS} | Required for repos with config files | | ||
| | .editorconfig | ${EC_STATUS} | Required for all repos | | ||
| | Groove endpoint | ${GROOVE_STATUS} | Required for service repos | | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/oblibeniser
Length of output: 20028
Route
.deedfiles to a DEED-aware validator. The workflow counts.deedfiles and starts validation, but.github/hooks/validate-a2ml.shdiscovers only*.a2mlfiles. A repository containing only.deedfiles therefore exits with “No .a2ml files found” and passes without validating the DEED content. Include.deedfiles in the validator with DEED-specific checks, or invoke the DEED validator from this workflow.🤖 Prompt for AI Agents
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/oblibeniser
Length of output: 6654
🤖 get_repo_knowledge executed:
get_repo_knowledge hyperpolymath/oblibeniser /tmp/coderabbit-repo-knowledge/hyperpolymath-oblibeniser-ffcae400/conventionsLength of output: 1821
🏁 Script executed:
Repository: hyperpolymath/oblibeniser
Length of output: 6538
🏁 Script executed:
Repository: hyperpolymath/oblibeniser
Length of output: 17489
Validate the canonical repo deed path and file type.
The presence checks accept any
.deedfile. A nested or unrelated deed can set the count above zero and mark A2ML as present. The triggered validator scans only*.a2ml, so this path can pass without validating the.deedfile.Use the exact root
<reponame>_chora.deedpath in both presence checks. Then validate that file with a validator that supports.deed.🤖 Prompt for AI Agents