Letting Argo CD Resolve Declared Targets in the Harbor Recovery Sync
This push fixes a mismatch between how I thought the Harbor recovery helper could pin revisions and how an automated Argo CD Application actually resolves them. The correction is small, but it clarifies where drift detection belongs when the sync itself cannot hold a branch still.
Why the Harbor sync stopped passing explicit revisions
I removed the explicit revision and source-position flags from the recovery sync in scripts/harbor-full-sync.py. An automated Application resolves its declared targets, and Argo CD validates those target strings before it resolves revisions. Asking for a specific Git SHA against a main source therefore fails. The sync now uses the Application’s own targets and keeps the existing timeout.
What the CI change now asserts
The test update in scripts/ci/harbor-full-sync-test.py changes the expected command and adds a guard that fails if --revisions or --source-positions reappear. This is a change to the test’s expectations, not a fresh runtime result. The preflight and postflight checks in the helper still detect current-main drift and require the exact resolved revision, so the verification brackets the sync rather than pinning it.
Where this transfers to platform recovery tooling
I documented the constraint in openwiki/operations/harbor-oci.md so the next operator does not reintroduce pinned revisions. A platform team running automated Applications can use the same pattern: let the controller resolve declared targets, then verify resolved state before and after. The checks cannot lock the branch during the sync, and that limitation is now explicit.