docs/TEAM-GATEWAY-CHECKLIST.md
This checklist covers governance and safety gates for teams running Claude Code / Codex-style agent workflows through a shared gateway or proxy. It supersedes ad-hoc runbooks and is enforced by the before-merge CI gates listed below.
Related: #2058
Run these checks before every merge to main:
| Gate | Command | Blocks merge if |
|---|---|---|
| Lint | npm run lint | Any lint error |
| Type-check | npx tsc --noEmit | Any TypeScript error |
| Unit tests | npm test | Fewer than 1999 passing |
| Smoke tests | node scripts/smoke-*.mjs | Any exit code != 0 |
| Witness manifest | npx ruflo@latest verify | Checksum mismatch |
| Semver bump | npm version <patch|minor|major> | No version bump on API change |
Every merge to main must record a new witness manifest entry. Generate it with:
npx ruflo@latest sign --message "merge: <PR title>"
When handing work between Claude Code and OpenAI Codex workers:
collaboration — all cross-platform writes go here.npx @claude-flow/cli@latest memory store \
--namespace collaboration \
--key "design-<feature>" \
--value "<design decisions as JSON or markdown>"
npx claude-flow-codex dual run \
--worker "codex:coder:Implement based on design-<feature>" \
--namespace collaboration
All agents in a team workflow share state through named namespaces. Conventions:
| Namespace | Owner | Contents |
|---|---|---|
collaboration | All cross-platform agents | Design decisions, code paths, review findings |
patterns | All agents | Reusable solution patterns (stored after each successful task) |
tasks | Coordinator | Task assignments and status |
security | Security auditor | Vulnerability findings, remediation status |
Rules:
--ttl to expire ephemeral coordination messages (e.g., handoff signals):
npx @claude-flow/cli@latest memory store \
--namespace collaboration \
--key "handoff-signal-<run-id>" \
--value "ready" \
--ttl 300
Each merge to main must include a signed witness manifest entry so npx ruflo@latest verify can confirm the installed dist matches the audited fix footprint.
# Sign the current dist with a descriptive message
npx ruflo@latest sign --message "merge: <PR-number> — <one-line description>"
# Commit the updated manifest alongside code changes
git add verification.md verification.md.json
git commit -m "chore: update witness manifest for <PR-number>"
# After npm install / npx ruflo@latest
npx ruflo@latest verify
# Expected output: "Verification passed — dist matches audited footprint"
If verify reports a mismatch, do not use the installation in a shared gateway until the discrepancy is investigated and a new manifest is signed.
Be explicit with teammates about what your gateway logs contain:
CLAUDE_FLOW_LOG_LEVEL=debug output before sharing logs — debug level may include request bodies.