feat: better version diagnostic + auth_bypass example scaffold [INIT-2026-553]#160
Merged
SyncTekLLC merged 2 commits intoMay 26, 2026
Conversation
…ctor` with --required-version + --json [INIT-2026-553 P2] Operator dogfood hit `make ios-smoke` exit 3 because the monorepo Makefile pinned `0.1.0` but `1.0.0b4` was installed; the opaque diagnostic forced the operator to halt + ping the backend team for a version bump. Promotes the bare `--version` flag into two proper subcommands so consumer monorepos can pin a simdrive release and get a clean diagnostic on mismatch without scraping stderr: - `simdrive version [--json] [--required-version VERSION]` — JSON for CI gates; --required-version exits 3 with installed-vs-required side-by-side and the exact `pip install 'simdrive==X'` to align. - `simdrive doctor [--json] [--required-version VERSION]` — CLI wrapper around diagnostics.doctor(); one command for "env ready AND right simdrive installed". Mismatch dominates check failures. - Legacy `simdrive --version` delegates to the new handler so --json / --required-version work via the short-flag spelling too. 13 new tests in test_init_553_version_doctor_cli.py. Bumps to 1.0.0b6 (runtime behavior change). CHANGELOG entry. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
SimDrive is auth-agnostic, which is correct — but every recording
engagement so far has reinvented the launch-arg fixture-token pattern
from scratch. Ships a canonical example scaffold so consumers have a
recipe to copy instead of a blank page.
`examples/auth_bypass/`:
- README.md — the why + integration shape, ASCII flow,
driving-SimDrive snippet.
- ios-launch-arg.swift — minimal `CommandLine.arguments` +
`SimDriveAuthInject` check, #if DEBUG gated,
plus bundle-suffix defense in depth.
- seed-dev-users.json — three fixture users with fixed UUIDs and
synthetic emails; member / admin / fresh-account
flavors for journey coverage.
- docker-compose.recording.yml — backend override: ENV=recording +
RECORDING_MODE=1 + AUTH_BYPASS_TOKEN +
isolated tmpfs DB on a recording-only network.
- safety-checklist.md — never/always lists, pre-merge review questions,
and a leaked-token incident playbook.
Not a runtime feature — pure recipe content under examples/. No package
changes, no version bump implied by this commit alone (the bump was for
P2's runtime CLI behavior change).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two package-side fixes from real sub-agent dogfood (INIT-2026-553).
P2 — version-pin diagnostic (commit c79796b)
A sub-agent dogfood hit `make ios-smoke` exit 3 because the monorepo Makefile pinned `0.1.0` but `1.0.0b4` was installed; opaque diagnostic forced the operator to halt + ping backend. Adds:
P3 — auth_bypass example scaffold (commit ea5658c)
SimDrive is auth-agnostic (correct), but every recording engagement so far has reinvented the launch-arg fixture-token pattern. Ships `examples/auth_bypass/`:
Not a runtime feature — pure recipe content under `examples/`.
Test plan
🤖 Generated with Claude Code