Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ workflows:
- 'dependabot/fetch-metadata@v3.1.0'
'.github/workflows/dogfood-checks.yml':
- 'actions/checkout@v7.0.1'
- 'hyperpolymath/a2ml-ecosystem@main'
- 'hyperpolymath/k9-ecosystem@main'
'.github/workflows/e2e.yml':
- 'actions/checkout@v7.0.1'
Expand Down Expand Up @@ -132,11 +131,6 @@ dependencies:
commit: 'sha1-6037f33647c3f17758a2356c80fc4a53d7e0685d'
owner_id: 75048950
repo_id: 623796603
'hyperpolymath/a2ml-ecosystem@main':
ref: 'main'
commit: 'sha1-ed83d6927e8fb21431e403dbf6d7a4af96772746'
owner_id: 6759885
repo_id: 1275649586
'hyperpolymath/cicd-suite@main':
ref: 'main'
commit: 'sha1-5a10b72e574ef63855fafd4568a4c178657f3294'
Expand Down
70 changes: 2 additions & 68 deletions .github/workflows/dogfood-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,63 +21,6 @@ permissions:
contents: read

jobs:
# ---------------------------------------------------------------------------
# Job 1: A2ML manifest validation
# ---------------------------------------------------------------------------
a2ml-validate:
name: Validate A2ML manifests
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout repository
uses: actions/checkout@v7.0.1

- name: Check for A2ML files
id: detect
run: |
COUNT=$(find . -name '*.a2ml' -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"
fi

- name: Validate A2ML manifests
if: steps.detect.outputs.count > 0
uses: hyperpolymath/a2ml-ecosystem/validate-action@main
with:
path: '.'
strict: 'false'
# Action defaults reproduced (setting the input overrides them),
# plus the panic-attack assail ledger: S-expression tool output,
# not a TOML-style a2ml manifest (hypatia#243 fixture rule).
paths-ignore: |
vendor/
vendored/
verified-container-spec/
.audittraining/
integration/fixtures/
test/fixtures/
tests/fixtures/
audits/assail-classifications.a2ml

- name: Write summary
run: |
A2ML_COUNT="${{ steps.detect.outputs.count }}"
if [ "$A2ML_COUNT" -eq 0 ]; then
cat <<'EOF' >> "$GITHUB_STEP_SUMMARY"
## A2ML Validation

:warning: **No .a2ml files found.** Every RSR-compliant repo should have at least `0-AI-MANIFEST.a2ml`.

Create one with: `a2mliser init` or copy 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"
fi

# ---------------------------------------------------------------------------
# Job 2: K9 contract validation
# ---------------------------------------------------------------------------
Expand Down Expand Up @@ -323,7 +266,7 @@ jobs:
name: Dogfooding compliance summary
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [a2ml-validate, k9-validate, empty-lint, groove-check, eclexiaiser-validate]
needs: [k9-validate, empty-lint, groove-check, eclexiaiser-validate]
if: always()

steps:
Expand All @@ -333,15 +276,7 @@ jobs:
- name: Generate dogfooding scorecard
run: |
SCORE=0
MAX=6

# A2ML manifest present?
if find . -name '*.a2ml' -not -path './.git/*' | head -1 | grep -q .; then
SCORE=$((SCORE + 1))
A2ML_STATUS=":white_check_mark:"
else
A2ML_STATUS=":x:"
fi
MAX=5

# K9 contracts present?
if find . \( -name '*.k9' -o -name '*.k9.ncl' \) -not -path './.git/*' | head -1 | grep -q .; then
Expand Down Expand Up @@ -390,7 +325,6 @@ jobs:

| Tool/Format | Status | Notes |
|-------------|--------|-------|
| A2ML manifest (0-AI-MANIFEST.a2ml) | ${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 |
Expand Down
Loading