-
-
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 #70
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -33,7 +33,7 @@ jobs: | |||||
| 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/.deed manifest files found. Every RSR repo should have a repo deed (<reponame>_chora.deed); legacy 0-AI-MANIFEST.a2ml accepted mid-migration — a2ml retired: standards #837" | ||||||
| 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 DEED manifests | ||||||
|
|
@@ -50,7 +50,7 @@ jobs: | |||||
| cat <<'EOF' >> "$GITHUB_STEP_SUMMARY" | ||||||
| ## DEED Manifest 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. | ||||||
|
|
||||||
| Copy it from [rsr-template-repo](https://github.com/hyperpolymath/rsr-template-repo). Manifests are validated against the DEED grammar (standards `1-formats/deed/`); the `.a2ml` → `.deed` extension migration is tracked in standards #837 — the deed validator scans both. | ||||||
| EOF | ||||||
|
|
@@ -99,7 +99,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. | ||||||
|
|
||||||
| Generate contracts with: `k9iser generate .` | ||||||
| EOF | ||||||
|
|
@@ -296,7 +296,7 @@ jobs: | |||||
|
|
||||||
| | Tool/Format | Status | Notes | | ||||||
| |-------------|--------|-------| | ||||||
| | DEED manifest (<reponame>_chora.deed, or legacy .a2ml) | ${DEED_STATUS} | Required for all RSR repos | | ||||||
| | DEED repo deed (`<reponame>_chora.deed`) | ${DEED_STATUS} | Required for all RSR repos | | ||||||
|
Contributor
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 Keep the legacy The scorecard predicate still marks any 🤖 Prompt for AI Agents🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '270,310p' .github/workflows/dogfood-gate.ymlRepository: hyperpolymath/megadog Length of output: 1890 🏁 Script executed: sed -n '220,310p' .github/workflows/dogfood-gate.yml
printf '%s\n' '--- exact heredoc probe: default GitHub Actions bash flags ---'
tmpdir=$(mktemp -d)
cd "$tmpdir"
set +e
bash --noprofile --norc -eo pipefail -c 'cat <<EOF
| DEED repo deed (`<reponame>_chora.deed`) | \${DEED_STATUS} | Required for all RSR repos |
EOF' >out 2>err
status=$?
set -e
printf 'status=%s\nstdout:\n' "$status"
cat out
printf 'stderr:\n'
cat err
printf '%s\n' '--- exact heredoc probe: without -e, to expose the generated text ---'
set +e
bash --noprofile --norc -o pipefail -c 'cat <<EOF
| DEED repo deed (`<reponame>_chora.deed`) | \${DEED_STATUS} | Required for all RSR repos |
EOF' >out-noe 2>err-noe
status_noe=$?
set -e
printf 'status=%s\nstdout:\n' "$status_noe"
cat out-noe
printf 'stderr:\n'
cat err-noe
rm -rf "$tmpdir"Repository: hyperpolymath/megadog Length of output: 4440 Escape the Markdown backticks in this unquoted heredoc.
Proposed fix- | DEED repo deed (`<reponame>_chora.deed`) | ${DEED_STATUS} | Required for all RSR repos |
+ | DEED repo deed (\`<reponame>_chora.deed\`) | ${DEED_STATUS} | Required for all RSR repos |📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| | 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:
sed -n '70,115p' .github/workflows/dogfood-gate.ymlRepository: hyperpolymath/megadog
Length of output: 2322
🏁 Script executed:
Repository: hyperpolymath/megadog
Length of output: 6363
🏁 Script executed:
Repository: hyperpolymath/megadog
Length of output: 8992
🏁 Script executed:
sed -n '235,315p' .github/workflows/dogfood-gate.ymlRepository: hyperpolymath/megadog
Length of output: 3025
Restore K9-specific wording in this summary.
When
K9_COUNTis zero, a repository with a valid.deedfile can receive a false “No .a2ml/.deed manifest files found” warning. Use wording such as “No K9 contracts found” and retain the existingk9iser generate .guidance. This wording error affects the summary only; K9 validation and the dogfooding scorecard use separate K9 checks.🤖 Prompt for AI Agents