5 Commits

Author SHA1 Message Date
fd7fefa942 docs: OSS-readiness pass — SECURITY.md, CODE_OF_CONDUCT.md, issue/PR templates, README polish
Adds the standard contributor-onboarding surface this repo was missing
(SECURITY.md for private vuln reports, CODE_OF_CONDUCT.md, GitHub issue
templates for bugs/features, a PR template with the money-path test
checklist) and polishes the root README with PR-welcome/contributor
badges and a Community & Support section, now that GitHub Discussions is
enabled. Also fixes apps/product-analytics/README.md's stale
"Status: not deployed" — it has been live at pa.ereboslab.com since
2026-10-29, re-verified live 2026-11-04 (plans/railyard.md).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-05 20:47:02 +03:00
16937f9267 ci: test relay-guardrails with the other Relay crates
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:24:28 +03:00
1c742a7c93 ci: test every Rust app and the Node suites, with a scratch Postgres
CI ran cargo for rago, mint and some relay crates only, without a database,
and no Node suite at all: the live money-path suites (rago pg-tests, mint's
ignored live tests, vend, abacus, turnstile, ledgerline, passport, relay
storage/traces, game-economy) never ran, nor did the console, product
analytics, insights-edge, the SDK packages or the Scribase bridge contract.

- scripts/ci/scratch-postgres.sh starts a throwaway cluster per job from the
  runner's initdb (skips cleanly when Postgres is not installed) and exports
  DATABASE_URL (plus TURNSTILE_/RELAY_TEST_DATABASE_URL); a stop script
  removes it.
- The Rust matrix adds ledgerline, vend, abacus, turnstile, toolgate,
  game-economy, agent-runtime, context-passport and relay-storage-postgres /
  relay-traces; rago runs with pg-tests; mint runs its live suites.
- A node job runs the console, product analytics test:all, insights-edge, the
  SDK packages (borrowing product analytics' pinned SDK install) and the
  bridge contract.
- vend's Cargo.lock was stale (mint-payments gained ring), so
  'cargo test --locked' failed for vend; refreshed.

Verified locally against a scratch database: vend 136, abacus 95, turnstile
92, toolgate 114, context-passport 58 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:04:27 +03:00
5b57b3cdad fix(relay,policy): price the 8B alias at cost x 1.25 and vendor denylist 2026-09-29.2 (Y-0)
H10: llama-3.1-8b-instant runs GPT-OSS 20B on Groq ($0.075/$0.30 per 1M)
but sold at $0.05/$0.08. It is now priced at cost x 1.25 (93750/375000
micro-USD per 1M). A contract test ties every Groq compatibility alias to
its first leg's built-in cost and fails if any sells below it.

H11 (workflow side): ci.yml lists its pull_request activity types; the
infra-box job guard is deny-by-default for any event the workflows do not
declare.

Denylist 2026-09-29.2 is vendored at policy/copy-denylist.json with a
zero-dependency JavaScript matcher (CLAIMS-RULES section 4) that the
console, CLI and MCP packages share. Tests: version pin, byte-for-byte
match with gtm/policy, the per-rule self-test for every product, and a
failing fixture for each phrase added in .2. A root .gitleaks.toml
allowlists the fake AWS key hit example, as infra-box already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 15:12:43 +03:00
737803a745 ci: ci, ship and audit workflows on the self-hosted Mac runner (RY-CI1)
ci.yml runs cargo test --locked for rago, mint and the Relay crates (same-repo
PRs only). ship.yml follows a green ci on main and calls infra-box
ci/ship-railyard.sh (Mac arm64 build, auto-restore); mint ships only from a
dispatch with approve=mint. audit.yml runs gitleaks and cargo audit weekly.
Token is contents: read, checkout pinned by SHA without persisted credentials.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 01:53:43 +03:00