Skip to content

Commit 8ea4da6

Browse files
fix(ci): start the Governance job again and re-sync the coaptation receipt (#90)
## What Two reds on main, fixed together because both are small and both are about main drifting from what it declares. ## Governance workflow The workflow called the reusable `governance-reusable.yml` of the standards repository. That call fails with `startup_failure` and no job (main runs at 21:35, 21:45 and 22:13 UTC). systemet hit the same thing and replaced the call with a self-contained job, which is green there. This takes that file unchanged: the same TypeScript and package-manager policy, with the policy script checked out from `metadatastician/standards` at a pinned commit. Checked locally that anytype has no unallowlisted `.ts` files, no npm/yarn/pnpm lockfiles and no root `tsconfig.json` or `Makefile`, so the job should pass here. The first CI run on this PR is the real test. ## Coaptation receipt #87 (`6a2` to `descriptiles`) changed `Mustfile.a2ml`, so the `must@…` hash went stale and `just validate-coapt` reported drift. Regenerated with `just coapt`. The only change is that hash; the band stays green and no reading moved. ## Verified - `coapt.sh --report` then `verify.sh`: in sync. - `governance.yml` parses as YAML; policy preconditions hold locally. --- _Generated by [Claude Code](https://claude.ai/code/session_01J1XmMC49T8sZ3uUuvrgB7y)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4a1ee19 commit 8ea4da6

2 files changed

Lines changed: 61 additions & 5 deletions

File tree

‎.github/workflows/governance.yml‎

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,79 @@
11
# SPDX-License-Identifier: MPL-2.0
2+
# This workflow is managed by gh actions-lock.
3+
#
4+
# Self-contained estate governance policy checks, after `governance.yml` of the
5+
# estate template (hyperpolymath/rsr-template-repo). The policy script comes
6+
# from metadatastician/standards at the commit in STANDARDS_PIN.
7+
#
8+
# The earlier form of this file called the reusable workflow `governance-reusable.yml` of the
9+
# standards repository. That call did not start: each run failed with no job.
10+
# This form runs the TypeScript and package-manager policy only.
211
name: Governance
312

413
on:
514
push:
615
branches: [main, master]
716
pull_request:
8-
branches: [main, master]
917
workflow_dispatch:
1018

1119
concurrency:
1220
group: ${{ github.workflow }}-${{ github.ref }}
1321
cancel-in-progress: true
22+
1423
permissions:
1524
contents: read
1625

1726
jobs:
1827
governance:
19-
uses: metadatastician/standards/.github/workflows/governance-reusable.yml@571cc734cd69fb846032ec77a662aa8ee4fc32cd
28+
name: Estate Governance Policy
29+
runs-on: ubuntu-24.04
30+
timeout-minutes: 15
2031
permissions:
21-
actions: read
2232
contents: read
23-
security-events: write
33+
env:
34+
STANDARDS_PIN: 'e064539116c2dcfdf282a4749dbd58c69961c7e6'
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38+
with:
39+
persist-credentials: false
40+
41+
- name: Checkout pinned standards policy scripts
42+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
43+
with:
44+
repository: metadatastician/standards
45+
ref: e064539116c2dcfdf282a4749dbd58c69961c7e6
46+
path: .standards-checkout
47+
sparse-checkout: |
48+
scripts
49+
0-canon
50+
sparse-checkout-cone-mode: true
51+
persist-credentials: false
52+
53+
- name: Enforce TypeScript and npm/yarn runtime policy
54+
run: |
55+
set -euo pipefail
56+
if [ -f .standards-checkout/scripts/check-ts-allowlist.sh ]; then
57+
bash .standards-checkout/scripts/check-ts-allowlist.sh
58+
fi
59+
rm -rf .standards-checkout
60+
61+
bad_ts="$(git ls-files '*.ts' '*.tsx' | grep -vE '^(archetypes/|templates/|tests/fixtures/)' || true)"
62+
if [ -n "$bad_ts" ]; then
63+
echo "::error::Unallowlisted TypeScript files detected:"
64+
printf '%s\n' "$bad_ts"
65+
exit 1
66+
fi
67+
68+
bad_locks="$(git ls-files 'package-lock.json' '**/package-lock.json' 'yarn.lock' '**/yarn.lock' 'pnpm-lock.yaml' '**/pnpm-lock.yaml' || true)"
69+
if [ -n "$bad_locks" ]; then
70+
echo "::error::Banned npm/yarn/pnpm lockfiles detected (use Deno or Bun per LANGUAGE-POLICY):"
71+
printf '%s\n' "$bad_locks"
72+
exit 1
73+
fi
74+
75+
if [ -f tsconfig.json ] || [ -f Makefile ] || [ -f GNUmakefile ]; then
76+
echo "::error::Banned root config (tsconfig.json / Makefile) detected"
77+
exit 1
78+
fi
79+
echo "Governance runtime and language anti-pattern checks passed."

‎.machine_readable/coaptation/receipts/latest.a2ml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ bust.sync-drift-between-repos = latent
8686
bust.contractile-parse-error = latent
8787

8888
[provenance]
89-
contractiles = "intend@b5248bb14c9b must@20748d123686 trust@32805d174f53 adjust@8faad9ca0650 dust@c9b96a1959f8 bust@dd6a53e1fc9b"
89+
contractiles = "intend@b5248bb14c9b must@fbbcf90bc87f trust@32805d174f53 adjust@8faad9ca0650 dust@c9b96a1959f8 bust@dd6a53e1fc9b"
9090
descriptiles = "clade@1774a0b6a688 deed@f8d9d5bbaba0 ecosystem@f490b124bb19 agentic@f1102d5cb5ba anchor@f0707388115d"

0 commit comments

Comments
 (0)