fix(governance): eliminate hollow compliance via centralized reusable-governance-gates.yml (Option B)#98
Draft
fix(governance): eliminate hollow compliance via centralized reusable-governance-gates.yml (Option B)#98
Conversation
…gates.yml in chittycommand - Switch governance-gates.yml (live + template) to cross-repo reference uses: CHITTYOS/chittycommand/.github/workflows/reusable-governance-gates.yml@main - Delete reusable-governance-gates.yml from baseline template (no longer needed per-repo) - Policy: remove reusable-governance-gates.yml from requiredFiles; add cross-repo pattern check to requiredFilePatterns for governance-gates.yml so audit detects hollow stubs - Remediation: extend missing-patterns handler to auto-refresh governance-gates.yml when the cross-repo pattern is absent - Pressure test: add Test 4 for hollow-stub detection and remediation (20/20 pass) Fixes: #87 Agent-Logs-Url: https://github.com/chittyos/chittycommand/sessions/ce84c8b4-c2e7-4efe-a5ca-f762db7fcc65 Co-authored-by: chitcommit <208086304+chitcommit@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
chittycommand | fd27860 | May 05 2026, 06:02 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
chittycommand-ui | fd27860 | May 05 2026, 06:02 PM |
Copilot
AI
changed the title
[WIP] Fix broken stub pattern for governance gates
fix(governance): eliminate hollow compliance via centralized reusable-governance-gates.yml (Option B)
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four CHITTYOS repos had a
governance-gates.ymlstub callinguses: ./.github/workflows/reusable-governance-gates.ymlwhile that file was absent — the workflow silently failed to load, but file-presence scoring still passed. Zero governance checks ever ran on those repos'mainbranches.Changes
Cross-repo reference (Option B)
governance-gates.yml(live + baseline template):uses:switched from local path toCHITTYOS/chittycommand/.github/workflows/reusable-governance-gates.yml@mainreusable-governance-gates.ymlis updated in this repoTemplate cleanup
templates/governance-baseline/.github/workflows/reusable-governance-gates.yml— deleted; per-repo copies are no longer neededPolicy hardening
.github/org-governance-policy.json: removedreusable-governance-gates.ymlfromrequiredFiles(repos using Option B won't have it); addedrequiredFilePatternsentry forgovernance-gates.ymlrequiring the cross-repo@mainstring — audit now detects hollow stubs as non-compliantRemediation auto-fix
scripts/org-governance-remediate.sh: extended the missing-patterns handler to include.github/workflows/governance-gates.ymlalongside the existing boundary docs — broken stubs get overwritten with the correct template on the next remediation runTest coverage
scripts/pressure-test-governance.sh: added Test 4 covering hollow-stub detection → remediation → PR open pathWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh gh issue list -R Org/repo-hollow-stub --state open --search "[Governance] CI/CD compliance gaps" in:title --json number,title --jq .[] | select(.title=="[Governance] CI/CD compliance gaps") | .number --local --get /debian-sa1 er(http block)