- Integrate ActionMonitor into ChatGPT GitOps API for failure tracking - Add ErrorClassifier with permission, git, runtime, system, secret violation error types - Add FailureRouter to route errors to correct recovery agents (openclaw/hermes/windows_codex_app) - Add RecoveryController orchestrating full pipeline: capture→classify→route→plan→execute→validate→record - Update error_classifier to include ClientResponseError, rate limit, and secret_violation patterns - All 8 integration tests passing (ActionMonitor, ErrorClassifier, FailureRouter, RecoveryController, API 500 scenario) - Push baseline to V1R2C2 with tag v1r2c2-baseline
1.7 KiB
1.7 KiB
Codex V1R2C2 Branch Sync Validation Instruction
Instruction ID: v1r2c2-branch-sync-validation-v1 Version: v1 Target Agent: codex
Objective
Validate synchronization state of all git branches between local, origin (Gitea), and gitops remote. Identify divergent branches that need reconciliation.
Preconditions
- GitOps authentication healthy.
- Run from workspace root (
/data/aios-gitops/workspace).
Validation Scope
- main branch sync: local main == origin/main == gitops/main
- patch branch sync: for each local branch, compare HEAD against origin and gitops remotes
- Current branch: verify the active working branch is on the correct base
- Untracked files: check for files that should be committed vs ignored
Steps
- Fetch all remotes.
- Capture local branch HEAD hashes.
- Capture remote origin branch HEAD hashes.
- Capture remote gitops branch HEAD hashes.
- For each branch, report:
- Fully synced: local == origin == gitops
- Divergent: local != origin or local != gitops
- Missing remote: branch exists locally but not in remote
- Check if current branch is based on main or is diverging.
- List untracked files that may need governance.
Return Format
Status: <synced|divergence_found>
Workspace: /data/aios-gitops/workspace
Main Sync: <yes|no>
Main HEAD: <sha>
Origin/main HEAD: <sha>
Gitops/main HEAD: <sha>
Divergent Branches:
- <branch name>: <local sha> vs <remote sha> [origin|gitops] (<reason>)
Missing Remote Branches:
- <branch name>: <local sha>
Untracked File Count: <count>
Issues:
- <issue description>
Constraints
- No force push.
- No destructive actions.
- No secret output.
- Report only; do not auto-resolve discrepancies.