Passa al contenuto principale

ARSGATE Canonical Library Sync — Operator Guide

Normal operation​

No manual Library action is required for a governed workstream. Integration and Documentation Registry generation precede Library synchronization. Guardian writes a deterministic outbox request and Administrative Closure remains WAITING_RECEIPT until a verified Library receipt exists.

Inspect​

Review the workstream status, then inspect:

  • /srv/services-node/state/project-bootstrap/library-sync/outbox
  • /srv/services-node/state/project-bootstrap/library-sync/receipts
  • the workstream Documentation Registry receipt
  • the final Administrative Closure receipt.

A healthy request has a stable request_id, workstream_id, component_id, implementation_revision, source_revision and one entry for every registered canonical document.

Retry and recovery​

FAILED_RETRYABLE remains eligible for consumer retry. Process or worker loss must not delete the outbox request. A newer implementation/source revision may supersede an older PENDING or FAILED_RETRYABLE request. A SYNCING request is generation-pinned and must finish against its immutable snapshot before a newer generation is emitted. FAILED_TERMINAL requires governed remediation; never fabricate a SYNCED receipt.

Immutable snapshot checks​

For snapshot_mode=embedded, verify request source_revision, manifest_sha256, file_count and each document's canonical_path, sha256, size_bytes and content. Consumer writes must be sourced only from embedded content. Do not reread live source_path bytes after claim. A receipt is valid only when its request_id, source_revision, manifest_sha256, file_count and all resulting Library hashes match the snapshot. If HEAD advances during SYNCING, do not invalidate the active request; Guardian schedules the newer revision after the active generation reaches a terminal state.

Idempotence check​

Run synchronization twice without changing source bytes. The second pass must report zero creates, zero updates, zero new versions, unchanged Library file IDs, zero missing, zero stale and zero canonical duplicate conflicts.

Same-revision reopen​

When an accepted workstream is reopened without changing its immutable implementation revision, Guardian may reuse verified historical integration, deployment and acceptance receipts only when revision, linked job ID and canonical commit all match the authoritative DEV_ACCEPTANCE job. Any mismatch remains fail-closed and follows normal governed recovery.

Closure rule​

Never force COMPLETE while Library evidence is missing or mismatched. The Administrative Closure validator must verify real Library IDs, versions, hashes and revisions for the four mandatory slots and all additional registered canonical documentation.

Async Library projection default — 6 October 2026​

Administrative closure is gated synchronously by the canonical Git revision, documentation registry, immutable projection manifest and durable Library request. A valid PROJECTION_QUEUED request with blocking=false does not block COMPLETE. Library writes run asynchronously and idempotently, writing only changed documents; unchanged identities are reused. Manifest/revision mismatch remains fail-closed. Set blocking=true only when immediate Library availability is explicitly required.