Skip to content

chore(deploy): reconcile repo docker-compose with VPS — add SIPHER_MODEL + TORQUE_*#307

Merged
rz1989s merged 1 commit into
mainfrom
fix/issue-294-reconcile-docker-compose-drift
Jun 2, 2026
Merged

chore(deploy): reconcile repo docker-compose with VPS — add SIPHER_MODEL + TORQUE_*#307
rz1989s merged 1 commit into
mainfrom
fix/issue-294-reconcile-docker-compose-drift

Conversation

@rz1989s
Copy link
Copy Markdown
Member

@rz1989s rz1989s commented Jun 2, 2026

Summary

Closes #294. The VPS-hosted docker-compose.yml had drifted from the repo's. This PR brings the repo file forward (canonical) so future deploys start from a consistent base.

What's added

Variable Default Why
SIPHER_MODEL anthropic/claude-sonnet-4.6 (dot-form) VPS compose had a HYPHEN-form default (claude-sonnet-4-6) that silently failed getSipherModel() and emitted empty content — the outage that frontier_sip_17 caught. Dot-form here means even if .env unsets the var, the agent boots with a working model.
TORQUE_GROWTH_ENABLED false Fail-closed: integration only opts in when explicitly true.
TORQUE_API_TOKEN `` (empty) Required when TORQUE_GROWTH_ENABLED=true.
TORQUE_INGESTER_URL https://ingest.torque.so Canonical Torque ingest endpoint.

frontier_sip_12 added the Torque vars to the VPS compose but never landed them in the repo. This closes that gap.

What's NOT added

Out of scope (follow-ups)

These are noted in #294's drift table but aren't repo source-of-truth fixes — they need separate deploy-side action:

  • SENTINEL_MODE default discrepancy (repo :-advisory / VPS :-yolo). Repo's fail-safe default is correct; VPS can override via .env if it wants yolo.
  • SENTINEL_AUTHORITY_KEYPAIR + JWT_EXPIRY declarations missing on VPS — VPS should add these to match repo.
  • CI lint of VPS compose vs repo HEAD on deploy. Would catch future drift automatically. Would need workflow edit + safe-handling for legitimate VPS-only additions.

Test plan

  • docker compose config validates syntax + interpolates defaults correctly.
  • Diff is additive only — no existing line changed, no behavior change for environments that already set these vars in .env.
  • Fail-closed defaults (TORQUE_GROWTH_ENABLED=false) mean zero impact on prod where Torque isn't enabled.

…DEL + TORQUE_*

The VPS-hosted docker-compose.yml has drifted from the repo's. This PR
brings the repo file forward (canonical) so future deploys start from a
consistent base.

Adds to repo compose:

  - SIPHER_MODEL=${SIPHER_MODEL:-anthropic/claude-sonnet-4.6}
    Dot-form default. The VPS compose had a HYPHEN-form default
    (claude-sonnet-4-6), which silently failed getSipherModel() and
    emitted empty content on every chat turn. That outage took
    frontier_sip_17 to catch. The dot-form default here means even if
    .env unsets SIPHER_MODEL, the agent boots with a working model.

  - TORQUE_GROWTH_ENABLED=${TORQUE_GROWTH_ENABLED:-false}
  - TORQUE_API_TOKEN=${TORQUE_API_TOKEN:-}
  - TORQUE_INGESTER_URL=${TORQUE_INGESTER_URL:-https://ingest.torque.so}
    Frontier_sip_12 added these to the VPS compose for the Torque MCP
    integration but never landed them in the repo. Defaults are
    fail-closed (TORQUE_GROWTH_ENABLED=false), so adding the
    declarations is zero-impact for environments that don't opt in.

Does NOT add SIPHER_OPENROUTER_API_KEY — sipher#295 dropped that name
across the repo because pi-ai only reads OPENROUTER_API_KEY. The VPS
should drop its declaration next deploy.

Out of scope for this PR (followups for the deploy story, not repo
source-of-truth):

  - SENTINEL_MODE default discrepancy (repo :-advisory / VPS :-yolo).
    Repo's fail-safe default is correct; if VPS wants yolo, set it via
    .env not compose.
  - SENTINEL_AUTHORITY_KEYPAIR + JWT_EXPIRY declarations missing on
    VPS — VPS should add these to match repo.
  - CI check linting VPS compose vs repo HEAD on deploy — would catch
    future drift automatically. Not added here; would need a workflow
    edit + safe-handling for legitimate VPS-only env additions.

Closes #294.
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sipher Ready Ready Preview, Comment Jun 2, 2026 1:38am

@rz1989s rz1989s merged commit df5f6d0 into main Jun 2, 2026
6 checks passed
@rz1989s rz1989s deleted the fix/issue-294-reconcile-docker-compose-drift branch June 2, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(deploy): reconcile VPS docker-compose.yml with repo — divergent SIPHER_MODEL default, other drift

1 participant