| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Status: Active
Shelf version: 1.2.16 (regulation/shelf/SHELF_VERSION.md)
Use this repository to turn GitHub publication uncertainty into a repeatable, evidence-backed audit with clear fix targets and reusable records.
It is an AI-run GitHub publication optimization shelf. The responsible AI reads this shelf, executes evidence against a target repository, gathers evidence for all 46 gates, and writes audit artifacts under audits/<repository-slug>/ on disk.
In one line:
When you run it, you get:
If you want to use this repository right now, start here.
Prerequisites:
Before you run the command:
Windows PowerShell:
$Shelf = if ($env:GITHUB_OPTIMIZATION_ROOT) { $env:GITHUB_OPTIMIZATION_ROOT } elseif (Test-Path "..\github-optimization") { (Resolve-Path "..\github-optimization").Path } else { throw "Set GITHUB_OPTIMIZATION_ROOT or clone github-optimization next to the target repo" }
& "$Shelf\scripts\run-full-audit.ps1" -RepoPath (Get-Location) -HostedRepo owner/repo -AuditMode release -AuditPhase pre-publicLinux/macOS bash:
SHELF="${GITHUB_OPTIMIZATION_ROOT:-../github-optimization}"
"$SHELF/scripts/run-full-audit.sh" . owner/repo release pre-publicResult location:
Important:
For most users, the practical flow is:
Users usually get stuck on the same questions before publishing:
This shelf answers those questions by turning them into one repeatable audit flow.
If you use this shelf correctly, this is what you should expect it to do well:
If you need any of the behaviors below, use other tools or explicit human review instead of expecting this shelf to do them:
Completion is a real stopping condition, not a vague feeling that the review has probably gone far enough.
In this shelf, complete means equilibrium:
A completed audit can still end in blocked. Coverage matters, but completion is not defined as the point where coverage simply stops growing.
Canonical definition: regulation/reference/AUDIT_COMPLETION_DEFINITION.md
It turns eight publication concerns into AI-executed evidence collection plus explicit gate judgment:
| Layer | Purpose | Primary files |
|---|---|---|
| User value | the eight publication concerns this shelf removes | README.md, regulation/reference/GO_ROLE_CRITERIA.md |
| Audit judgment | convert those concerns into pass/blocked decisions | regulation/gates/*.md, regulation/execution/SCOPE_AND_TIERS.md, regulation/gates/FULL_AUDIT_VERDICT.md |
| Execution and records | gather evidence and store reusable audit artifacts | scripts/, templates/, audits/<slug>/ |
Flow:
user publication concerns
-> GO role criteria and 46 gates
-> scripts collect evidence and replay quickstarts
-> templates shape the report
-> audits/<slug>/ stores the result
-> final verdict labels the repository state
GO roles are the internal criteria behind the eight user-value axes:
| Role | Action |
|---|---|
| Responsible AI | read regulation, run scripts, gather evidence, and write gate judgments into audit artifacts |
| Human | optional publication approval; not default command execution |
| Not for | Reason |
|---|---|
| universal auto-grading or fully automatic publication approval | this shelf gathers evidence and structures judgment, but final audit scoring still follows the runbook and gate tables |
| silent auto-fixing of target repositories | the shelf is for audit execution and records, not unreviewed repository mutation |
| general-purpose DevSecOps management | scope is GitHub publication readiness under this regulation, not broad platform governance |
| single-signal publishability decisions | R-02 and other gates require scoped evidence, transcript citation, and rule-based judgment rather than one CI result |
| audit reports in product repos | scored artifacts belong in audits/<slug>/ here |
| live project examples (VEIL_*, ADOP_*, etc.) | generic shelf only; see domain-option/ templates |
| copying this folder into public product repos | unless the product documents shared governance |
| filled records under docs/governance/ | pointer only; canonical path is audits/<slug>/ |
One-line assignment:
Read $GITHUB_OPTIMIZATION_ROOT (or ../github-optimization relative to the target repo), decide whether the target repository is publication-ready under this regulation, execute evidence, and complete the audit report.
Run in this order unless RE_AUDIT_POLICY.md limits scope to a delta.
| Step | Script | Purpose |
|---|---|---|
| 1 | scripts/run-full-audit.* | shelf validate + scaffold + evidence (orchestrator, not final scorer) |
| 2 | scripts/validate-regulation-index.* | required-file index check (shelf self-proof) |
| 3 | scripts/collect-audit-evidence.* | machine evidence bundle |
| 4 | scripts/check-tracked-files.* | unnecessary tracked-file screening (G-03, G-21) |
| 5 | scripts/check-gitignore-consistency.* | tracked vs .gitignore consistency (G-04) |
| 6 | scripts/run-audit-quickstart.* | audit.manifest.yml quickstart (R-08, R-09) |
| 7 | scripts/run-delta-audit.* | delta re-audit when prior report exists |
Script reference and usage examples: scripts/README.md
run-full-audit.* and run-delta-audit.* do not mechanically complete the final audit verdict. They create or update audit artifacts, collect machine evidence, and then list the remaining agent judgment steps. The audit is complete only after the required audit records and judgments are closed under the completion definition. They now prefer the hosted repository name for audits/<slug>/ resolution, which avoids worktree-directory slugs when a remote is configured. Latest CI evidence now prefers a selected primary CI workflow on the default branch. Selection order is: manifest override, explicit ci.yml / ci.yaml, heuristic local workflow candidate, hosted workflow inventory candidate, then overall runs fallback. When a heuristic local candidate has no default-branch runs but a hosted inventory candidate does, the collector upgrades to the hosted candidate. The collector also emits selected_workflow_path and workflow_selection so candidate branch-filter / startup-failure runs stay distinguishable from hard failures during gate review.
Regression tests after shelf edits:
.\scripts\tests\run-regulation-tests.ps1
.\scripts\tests\run-regulation-tests-ci.ps1
.\scripts\tests\run-regulation-tests-orchestrator.ps1./scripts/tests/run-regulation-tests.sh./scripts/tests/run-regulation-tests-ci.sh
./scripts/tests/run-regulation-tests-orchestrator.shUse run-regulation-tests.sh for full bash coverage. Use run-regulation-tests-ci.sh when iterating on R-02 workflow selection / classification logic.
When R-02 heuristics change, run the public GitHub corpus as an external-validity check:
.\scripts\run-public-corpus.ps1./scripts/run-public-corpus.shThis corpus uses scripts/corpus/public-r02-corpus.json and is expected to require network access.
| Tier | Gate file | Count | When required |
|---|---|---|---|
| 1 | regulation/gates/PUBLIC_PREP_GATE.md | 22 | always |
| 2 | regulation/gates/RELEASE_QUALITY_GATE.md | 14 | release, strict-product |
| 3 | regulation/gates/PRODUCT_READINESS_GATE.md | 10 | strict-product only |
| Audit mode | Tiers evaluated |
|---|---|
| public-prep | Tier 1 |
| release | Tier 1 + 2 |
| strict-product | Tier 1 + 2 + 3 |
Read: regulation/execution/SCOPE_AND_TIERS.md
Final label: regulation/gates/FULL_AUDIT_VERDICT.md
README.md, LICENSE, SECURITY.md, CHANGELOG.md, etc. # entry and shelf metadata
audit.manifest.yml # shelf self-check quickstart only
regulation/ # all regulation text
checklists/ templates/ scripts/
docs/governance/README.md # pointer; no filled records
audits/ # local audit results (gitignored)
.github/workflows/ci.yml # shelf CI
.github/workflows/codeql.yml # code scanning (G-18)
domain-option/ # copy templates only (excluded from regulation)
The responsible AI writes audit artifacts under audits/<slug>/ in this shelf. Do not write completed audit reports into public product repositories.
| Artifact | Path |
|---|---|
| audit report | audits/<slug>/audit-report.md |
| delta audit record | audits/<slug>/delta-audit-record.md |
| publication decision record | audits/<slug>/publication-decision-record.md |
| Tier 2 defer record | audits/<slug>/tier2-defer-record.md |
| accepted risk record | audits/<slug>/accepted-risk-record.md |
| GitHub execution packet | audits/<slug>/github-execution-packet.md |
| audit quickstart manifest | <product-repo-root>/audit.manifest.yml (product repos only) |
| governance pointer | docs/governance/README.md (this shelf; not a filled record) |
Read: regulation/shelf/OUTPUT_PATHS.md, audits/README.md
| Target | Quickstart source |
|---|---|
| Product repository | audit.manifest.yml at product root (templates/audit.manifest.yml.template) |
| No manifest | agent derives commands from product README.md and records transcript |
| This shelf (self-check) | root audit.manifest.yml runs validate-index, tracked-file screening, gitignore consistency |
Manifest fields: run_windows / run_unix per regulation/reference/AUDIT_MANIFEST_POLICY.md
The shelf evaluates four broad areas together:
Required files: regulation/REGULATION_INDEX.md
Excluded from self-check unless explicitly assigned:
| Topic | File |
|---|---|
| Agent execution model | regulation/execution/AGENT_EXECUTION_MODEL.md |
| Validity rules | regulation/execution/AUDIT_RULES.md |
| Audit phase | regulation/execution/AUDIT_PHASE_POLICY.md |
| Re-audit / delta | regulation/execution/RE_AUDIT_POLICY.md |
| Multi-repo batch | regulation/execution/MULTI_REPO_ORCHESTRATION.md |
| Repo classification | regulation/reference/REPO_CONTENT_CLASSIFICATION.md |
| Tracked-file screening | regulation/reference/TRACKED_FILE_SCREENING.md |
| Gitignore consistency | regulation/reference/GITIGNORE_CONSISTENCY.md |
| Tool decisions | regulation/reference/TOOL_VERIFICATION_MATRIX.md |
| Tool review cadence | regulation/reference/TOOL_REVIEW_CADENCE.md |
| Evidence commands | regulation/reference/EVIDENCE_COMMANDS.md |
| Hosted settings | regulation/reference/HOSTED_SETTINGS_BOUNDARY.md |
| Quickstart policy | regulation/reference/AUDIT_MANIFEST_POLICY.md |
| Waivers | regulation/reference/WAIVER_POLICY.md |
| Subjective gates | regulation/reference/JUDGMENT_GUIDE.md |
| Publication responsibility | regulation/reference/PUBLICATION_RESPONSIBILITY_MODEL.md |
| Shelf path | regulation/shelf/SHELF_PATH.md |
| Distribution | regulation/shelf/SHELF_DISTRIBUTION.md |
| Completeness proof | regulation/REGULATION_COMPLETENESS.md |
| Repair starters | templates/*.template, checklists/*.md |
Self-check is complete when:
The public remote keeps regulation files only:
Shelf self-check: scripts/validate-regulation-index.*, scripts/tests/run-regulation-tests.*
Distribution and versioning: regulation/shelf/SHELF_DISTRIBUTION.md, regulation/shelf/SHELF_CHANGELOG.md
| Back | FazBrowse Home | New Git URL |