Commit cafa5cb
Phase 1: public repository foundation (toolchains, schemas, sanitizer, CI, release, governance) (#4)
* build: scaffold public foundation toolchains
Pinned Go 1.26.5 (with actionlint/govulncheck/staticcheck/shfmt tool
directives) and an npm workspace (Node 24.18.0/npm 12.0.1) with the single
'worker' member. Adds the buildinfo Go seam and the heartbeat protocol-version
worker seam, both test-covered, plus editor/git/lint config and registered
image/deploy placeholders (network broker split into parser and dialer per the
reviewed architecture). No operational runtime.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* config: define synthetic public contracts
Draft 2020-12 closed schemas + synthetic examples for fleet, host-profile,
public-log-event, and notification-event, with an Ajv2020 strict/all-errors
validator (validateFile) and TDD coverage (4 positive + 11 negative cases).
The fleet schema requires all eight enumerated blocked-egress classes,
per-repository concurrency maxima and archive-eligibility state, secret-reference
names only, and the fixed evaluation/stale/unhealthy gates. Examples use
synthetic values only.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* security: enforce public-source sanitization
Fail-closed public-source scanner (Python stdlib only) blocking deployment
identifiers, secrets, non-synthetic IPs/domains/paths, and PII from the public
repo, built against an adversarial-reviewed spec (Gemini+Grok, 2 rounds, 19
bypass classes). Covers public + special-use IPs via mathematical subnet
membership on a shared normalizer, a vendor token/key table, RFC-3986 URI
authority parsing, a bounded multi-alphabet decode-and-recheck (base64/base32/
base64url/hex, embedded content re-scanned with the full rule set), archive
recursion by magic bytes, git history+metadata, LFS/submodule policy, a closed
canonical-exception table, and an exact-content-hash allowlist (no path-exclude).
Free-text PII is a documented residual requiring the local --private-denylist
pre-publish scan. 117 tests; gitleaks defaults included.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* community: add public governance baseline
SECURITY (GitHub private vulnerability reporting only), CONTRIBUTING (TDD,
synthetic fixtures, signed commits, full-SHA action pins, hosted CI), Code of
Conduct, changelog, third-party-notices placeholder, CODEOWNERS (* @sumitake),
PR public-safety checklist, and structured issue forms — plus a stdlib metadata
checker and tests. All public-safe and sanitizer-clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs: add public architecture, trust, operations, and README
Public-safe summaries of the reviewed design: architecture overview + trust
boundaries, five operations runbooks (lifecycle, deployment/rollback, failover/
notifications, workflow migration, operations), and a pre-deployment README with
a generic diagram. Deterministic link/anchor + operator-command checkers and
docs-contract tests enforce heading order and reject unqualified live/verified
claims. Synthetic values only; sanitizer-clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: add stable hosted checks
Five stable hosted CI contexts (go, worker, shell, repository-metadata,
container) on ubuntu-24.04 with least-privilege permissions, timeouts,
concurrency cancellation, persist-credentials:false, and full-SHA-pinned
actions; a fail-closed workflow-policy checker (stdlib, restricted YAML parser)
enforcing the pin table and trigger/runner/permission rules; and a
manifest-driven image check (empty phase-1 manifest passes). Also enables the
checks repo-wide: adds tests/**/__init__.py so unittest discovery finds all
suites, and a .prettierignore + formatting pass so format:check is clean
(design docs stay markdownlint-managed). 247 Python tests + 16 bats green;
actionlint and the policy checker report exactly the five unique contexts.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* security: add hosted analysis and dependency automation
Sanitization (Gitleaks over branch range on PRs, full history on push/schedule,
plus sanitize_public.py --tracked always and --history on the release-gate
events), CodeQL (go + javascript-typescript, GitHub-hosted, security-events),
and PR dependency-review (fail on high severity + copyleft denylist) workflows,
and Dependabot for actions/gomod/npm + docker across all six image dirs, no
Renovate. Also fixes a latent policy-checker bug: subpath actions (e.g.
github/codeql-action/init) are now pinned by their owning repo's reviewed SHA.
Seven unique stable contexts; 252 tests green.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ops: codify secure repository settings
Non-executed bootstrap tooling: configure.sh --check (read-only) /
--apply-foundation / --apply-ruleset, using GitHub REST API 2026-03-10 with
read-back on every mutation. Foundation mode sets read-only workflow token, a
narrow selected-actions allowlist, merge/security settings; ruleset mode first
proves all seven contexts succeeded on the exact PR head SHA, then creates an
active main ruleset (PRs, resolved conversations, linear history, signed
commits, no deletion/force-push, six required checks) with a sole-maintainer
zero-approval mode. 21 bats tests via a stub gh — no real API mutation — plus
the two-stage runbook.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* release: add SBOM and provenance pipeline
Deterministic source packager (git archive + commit-derived SOURCE_DATE_EPOCH +
gzip -n, clean-tree + version + manifest + symlink-escape gates) producing one
byte-identical tarball; a manifest restricting release subjects to the source
archive; and a tag-triggered release workflow running the full seven-check
suite, Trivy source/dist scans, archive-member sanitization, an Anchore SPDX
SBOM, a third-party license inventory, SHA-256 checksums, pinned actions/attest
provenance, and an immutable release upload (contents/id-token/attestations
write only). Adds the release job id to the workflow-context test. 14 bats
tests; reproducible-build verified.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: close foundation verification gaps
Full-matrix gate correction: prettier-format the repository-bootstrap runbook so
format:check is clean across the tree. All seven stable contexts, the go/worker/
shell/repository-metadata/container/sanitization/dependency-review suites, the
reproducible source package (byte-identical), Trivy HIGH/CRITICAL, signed-commit,
and sanitizer gates pass.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent c80d59a commit cafa5cb
89 files changed
Lines changed: 15668 additions & 2 deletions
File tree
- .github
- ISSUE_TEMPLATE
- workflows
- config
- examples
- schema
- deploy
- qts
- systemd
- docs
- architecture
- operations
- security
- images
- network-adapter
- network-broker-dialer
- network-broker-parser
- network-helper
- network-verifier
- runner
- internal/buildinfo
- release
- scripts
- ci
- docs
- release
- repository
- tests
- config
- repository
- sanitization
- fixtures
- shell
- worker
- src/protocol
- test/protocol
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
0 commit comments