After agent failover, assignment history and Camera.AgentId could diverge, waiting cameras needed retry when agents returned, and direct camera writes bypassed assignment history. A reconnect also needs a complete camera snapshot to clear stale assignments.
Change
Reconcile assignment history on direct camera writes, clear camera agent IDs when no replacement exists, retry waiting cameras during failover sweeps, and reject assignments to offline or cross-site agents. Persist offline status before failover. Add regression coverage for recovery, disabled-camera status reports, and full-snapshot replacement after reconnect.
Integration
PR #8 is merged. This PR is now based on main; the coordinator is validating the combined #9 + #10 result in ridley. It does not modify LocalStorageProvider; path confinement is already delivered in merged PR #2.
Validation
Full Heimdall.Agent.Tests on this branch: 364 passed, 0 failed, 0 skipped.
Combined integrated Infrastructure/Application/Web suites: running in coordinator workspace; final results pending.
git diff --check: passed.
## Problem
After agent failover, assignment history and `Camera.AgentId` could diverge, waiting cameras needed retry when agents returned, and direct camera writes bypassed assignment history. A reconnect also needs a complete camera snapshot to clear stale assignments.
## Change
Reconcile assignment history on direct camera writes, clear camera agent IDs when no replacement exists, retry waiting cameras during failover sweeps, and reject assignments to offline or cross-site agents. Persist offline status before failover. Add regression coverage for recovery, disabled-camera status reports, and full-snapshot replacement after reconnect.
## Integration
PR #8 is merged. This PR is now based on `main`; the coordinator is validating the combined #9 + #10 result in ridley. It does not modify `LocalStorageProvider`; path confinement is already delivered in merged PR #2.
## Validation
- Full Heimdall.Agent.Tests on this branch: 364 passed, 0 failed, 0 skipped.
- Combined integrated Infrastructure/Application/Web suites: running in coordinator workspace; final results pending.
- `git diff --check`: passed.
arnaud.dartois
changed target branch from audit/pipe-profile to main2026-10-20 07:33:57 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
After agent failover, assignment history and
Camera.AgentIdcould diverge, waiting cameras needed retry when agents returned, and direct camera writes bypassed assignment history. A reconnect also needs a complete camera snapshot to clear stale assignments.Change
Reconcile assignment history on direct camera writes, clear camera agent IDs when no replacement exists, retry waiting cameras during failover sweeps, and reject assignments to offline or cross-site agents. Persist offline status before failover. Add regression coverage for recovery, disabled-camera status reports, and full-snapshot replacement after reconnect.
Integration
PR #8 is merged. This PR is now based on
main; the coordinator is validating the combined #9 + #10 result in ridley. It does not modifyLocalStorageProvider; path confinement is already delivered in merged PR #2.Validation
git diff --check: passed.