Files
aios/agent-instructions/codex/v1r2c2-branch-sync-validation-v1.md
T
aios 19a2ce8439 feat(V1R2C2): complete autonomous recovery chain integration with 8/8 tests passing
- 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
2026-07-07 19:45:51 +08:00

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

  1. main branch sync: local main == origin/main == gitops/main
  2. patch branch sync: for each local branch, compare HEAD against origin and gitops remotes
  3. Current branch: verify the active working branch is on the correct base
  4. Untracked files: check for files that should be committed vs ignored

Steps

  1. Fetch all remotes.
  2. Capture local branch HEAD hashes.
  3. Capture remote origin branch HEAD hashes.
  4. Capture remote gitops branch HEAD hashes.
  5. For each branch, report:
    • Fully synced: local == origin == gitops
    • Divergent: local != origin or local != gitops
    • Missing remote: branch exists locally but not in remote
  6. Check if current branch is based on main or is diverging.
  7. 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.