Documentation
¶
Overview ¶
Command herdrsync refreshes Sidecar's vendored copy of Herdr's agent-detection manifests, the lock that pins them, the alias and authority tables extracted from Herdr's source, and Herdr's provider integration assets.
It writes under two output directories and nowhere else: internal/agentactivity/manifests for the detection lane and internal/agentintegration for the hooks lane, each with its own lock. Vendored files are byte-for-byte copies; nothing here rewrites upstream content.
Usage:
go run ./internal/tools/herdrsync [flags] scripts/sync-herdr.sh [flags]
The tested path is a local Herdr checkout:
go run ./internal/tools/herdrsync --source-dir ~/code/herdr --ref e2b85c7
A local checkout is read through `git show <ref>:<path>`, so the vendored bytes and the commit recorded in the lock are always the same object; a ref that does not resolve in that checkout fails the run.
There are two pins and they are not the same pin. --ref selects the source tree to vendor and defaults to Herdr's own default branch, because Sidecar ships faster than Herdr tags and takes detection fixes as they land. --release-tag names the release whose binary the differential harness downloads, and defaults to the newest release of any kind, because it has to be something a runner can actually download. A sync never moves --ref's resolved commit backwards past the one the lock records; see holdPin.
All six steps of the plan's sync design are implemented.