Adds device-authenticated raw-sync control-plane routes on top of #1459. Active devices can exchange credentials for short-lived scoped tokens, negotiate missing objects within their authenticated tenant, and commit manifests with durable receipts and structured head-conflict state. Raw machine routes authenticate before Host/CORS relaxation, bound credentials and JSON bodies, and derive tenant/device identity server-side. Authentication and route handling share the configured write-timeout budget. Writable PostgreSQL-backed servers wire lazy filesystem custody plus PostgreSQL metadata/auth, while read-only and DDL-restricted runtime roles retain startup behavior and receive routes only when they have the exact required DML privileges. Resumable object upload, enrollment, status, laptop capture, and server derivation remain out of scope. Refs #1352 Co-authored-by: Rusty Shackleford <salmonumbrella@users.noreply.github.com>
AgentsView docs maintainer guide
This directory contains the Zensical source for https://agentsview.io. The
docs source lives on main; image media lives on orphan asset branches so
normal clones do not pull screenshots and PNGs into the main history.
Layout
*.mdand related public subdirectories: public docs source.internal/andsuperpowers/: maintainer references excluded from the published site.zensical.toml: Zensical site configuration and navigation.pyproject.tomlanduv.lock: pinned docs toolchain.vercel.jsonandvercel-build.sh: Vercel project configuration.zensical-docs.sh: builds from a temporary public-docs copy so maintainer files are excluded from the published site.assets/hydrate-assets.sh: hydrates ignored local assets from orphan branches.assets/update-static-assets-branch.sh: updates curated static assets.screenshots/: Docker/Playwright screenshot generator and generated asset branch updater.scripts/check_built_site.pyandscripts/check_vercel_redirects.py: post-build validation.
docs/assets/static/, docs/assets/generated/, docs/site/, docs/.venv/,
and docs/zensical-public-docs.* are ignored local outputs.
Asset Branches
docs-assets: curated static media, including the architecture diagram and Open Graph image.docs-generated-assets: generated UI screenshots.
Docs pages should reference media through:
/assets/static/...for curated assets./assets/generated/...for generated screenshots.
Do not commit image media to main.
Local Development
Install the docs toolchain:
make docs-install
Hydrate assets and build:
AGENTSVIEW_DOCS_USE_LOCAL_ASSET_BRANCHES=1 make docs-build
Preview locally:
AGENTSVIEW_DOCS_USE_LOCAL_ASSET_BRANCHES=1 make docs-serve
Run docs validation:
AGENTSVIEW_DOCS_USE_LOCAL_ASSET_BRANCHES=1 make docs-check
Without AGENTSVIEW_DOCS_USE_LOCAL_ASSET_BRANCHES=1, hydration force-fetches
origin/docs-assets and origin/docs-generated-assets to avoid stale local
asset refs.
Updating Generated Screenshots
Regenerate screenshots and update the local docs-generated-assets orphan
branch:
make docs-generated-assets-branch
Push that branch when generated screenshots should be published:
bash docs/screenshots/update-generated-assets-branch.sh --push
For the initial import or a manual refresh from an existing directory:
bash docs/screenshots/update-generated-assets-branch.sh \
--source docs/assets/generated --push
Updating Static Assets
Hydrate or stage curated media under ignored docs/assets/static/, then update
the local docs-assets orphan branch:
make docs-assets-branch
Push it only when curated static assets should be published:
bash docs/assets/update-static-assets-branch.sh --push
Publishing
The Vercel project should be linked from the repository root with docs/ as the
Vercel root directory:
| Setting | Value |
|---|---|
| Framework preset | Other |
| Root directory | docs |
| Install command | uv sync --frozen --no-dev |
| Build command | uv run --frozen bash ./vercel-build.sh |
| Output directory | site |
Link the checkout once from the repository root:
vercel link
Deploy committed docs changes with:
scripts/update-docs.sh
Create a Vercel preview/staging deployment before production with:
make docs-deploy-staging
Use make docs-deploy directly only when the asset branches and local build
state are already correct.