2.4 KiB
2.4 KiB
Codex task: apply and verify AIOS Orchestrator Gateway v1
Contract: cbe33ecab8e9794ba5f318bea43aeaf447a56fbc
Use the strongest actually available Codex model for the initial security review. If unavailable or timed out, record TIMEOUT/NOT_EXECUTED and let OpenClaw run the deterministic test path. Do not count a timeout as PASS.
Apply
- Create a new clean append-only branch and isolated worktree.
- Validate the delivery tarball and
SHA256SUMS. - Run the external
scripts/apply_gateway_patch.shwithSOURCE_DIRandWORKTREE; do not alter unrelated paths. - Review all added code, especially:
- exact contract and optimistic state-version checks;
- event/decision idempotency;
- SQLite leases and retry behavior;
- Workspace Agent
202asynchronous callback flow; - Responses background creation and polling;
- file-inbox and Git-ref polling;
- traversal/symlink protections;
- OpenClaw lifecycle synchronization;
- systemd sandbox;
- install and rollback transactions.
Tests
Run from the final source tree:
- Python compile for all gateway and helper files;
- unit tests;
- JSON schema/config parsing;
- Bash syntax;
systemd-analyze verify;- event duplicate and payload-conflict tests;
- stale state-version rejection;
- lease/double-claim test;
- Workspace trigger failure and Responses fallback;
- response queued/in-progress/completed polling;
- file-inbox recovery after HTTP failure;
- Git-ref initial baseline and subsequent-change event;
- task start/end and project summary synchronization;
- dispatch traversal and symlink rejection;
- retry/backoff/dead-letter;
- install dry-run;
- rollback test in an isolated fixture;
git diff --check;- full repository tests;
- final Gitleaks.
Commit and review
- Create an append-only implementation commit.
- Push without force.
- Confirm
WORKTREE_OID == BARE_OID == GITEA_OID. - Create an independent RESULT-only branch and exact-one result commit.
- Record the source bundle SHA-256, implementation OID, RESULT OID, tests, Gitleaks, systemd validation and remaining external configuration blockers.
Forbidden
No reset, amend, rebase, force push, direct main push, controller mutation, secret disclosure, fabricated test result, production deployment or B3 evidence fabrication.
Success:
GATEWAY_CODE_REVIEW=PASS IMPLEMENTATION=<oid> RESULT=<oid> OID_MATCH=YES