Skip to content

Releases

0.52.1

Choose a tag to compare

@Tydorius Tydorius released this 26 Nov 15:06

[0.52.1] - 2026-11-26

Resource duplication (Endpoints, Cantrips, Lorebooks, Maps) and backend housekeeping release: lets users one-click duplicate endpoints (preserving the real stored API key and curated per-model parameters) as well as cantrips, lorebooks (with entries), and maps (with stages and resources), scopes user_data_prefixes in the single-run Cantrip Tester, fixes no-op history_control accounting, validates regex_pattern on verification-rule snapshot restore, and removes dormant forward_llm_chain() parameters.

Added

  • One-click Duplicate for Endpoints, Cantrips, Lorebooks, and Maps:
    • Server-side POST /api/endpoints/{id}/duplicate, POST /api/cantrips/{id}/duplicate, POST /api/lorebooks/{id}/duplicate, and POST /api/maps/{id}/duplicate endpoints (HTTP 201, strictly owner-scoped per Rule 23 — foreign IDs return 404 even for public items).
    • Endpoint duplication copies the real stored api_key, provider/routing/tag settings, parameters_json, and deep-copies all curated EndpointModel rows (including per-model parameters) so users can spin up per-use-case endpoint variants without re-pasting keys.
    • Lorebook duplication deep-copies all LorebookEntry rows; Map duplication deep-copies all MapStage and MapStageResource rows; Cantrip, Lorebook, and Map copies start with is_active=False and is_public=False so duplicates never double-fire before editing.
    • Added Duplicate buttons in the Endpoints, Cantrips, Lorebooks, and Maps pages (frontend/src/pages/*.svelte) that duplicate and open the new copy immediately for editing.

Fixed

  • Single-run Cantrip Tester now honors user_data_prefixes (app/routers/cantrips.py): POST /api/cantrips/{id}/test and POST /api/cantrips/test now apply select_user_data_seed using the cantrip's user_data_prefixes (or explicit request prefixes) over explicit user_data or the user's persisted UserData, matching live-pipeline scoping.
  • No-op history_control ops no longer inflate ops_applied (app/services/cantrip.py): apply_history_ops() only increments ops_applied when an operation actually removes/mutates messages, avoiding spurious "1 op(s) applied (0 dropped)" debug entries.
  • Snapshot restore validates verification_rule regex_pattern (app/services/snapshots.py): guard_content() now enforces the 1024-character cap and re.compile() check on both restore-as-new and restore-in-place for verification-rule snapshots (HTTP 422 on invalid stored patterns).

Changed

  • Removed dormant forward_llm_chain() kwargs (app/services/upstream.py): deleted unused extra_layers_fn, default_params, and base_messages parameters and their dead branches.

0.52.0

Choose a tag to compare

@Tydorius Tydorius released this 25 Nov 17:29

[0.52.0] - 2026-11-25

Request strip rules (feature-request N1): user-configurable regex rules that repair conversation matching when a client platform appends per-request notes to message text — JanitorAI's banned-words SYSTEM NOTE being the confirmed case (three requests from one chat each resolved as a brand-new chat, fragmenting chat_data, memories and summaries every turn). Ships with a one-click JanitorAI example rule; empty configuration changes nothing.

Added

  • Request strip rules (Settings → Conversation Matching): a list of {pattern, scope} regexes under a new request_strip_patterns user setting (migration 075). Scope hash normalizes conversation identity only — the same compiled set runs inside compute_hash for resolve_conversation, both record_post_hash call sites, and the note_request_shape regenerate fingerprint, so a client-appended note that vanishes from the resent history no longer breaks matching on either side. Scope forward also strips matches from the outbound request body (implies hash) — a new Request Strip pipeline stage before budgeting, injections, cantrips and forwarding, with a rule-16 debug capture (request_strip). The forwarded request is untouched by hash-scope rules: JanitorAI's note exists so the model avoids the banned words, and removing it would defeat the feature. Rules mirror the response strip pattern machinery (max 20, 256 chars each, must compile, 422 on bad input); empty/absent rules leave the hash byte-identical to pre-0.52.0.
  • JanitorAI example rule: an Add JanitorAI Example button in the new Settings card fills in \n?SYSTEM NOTE: Do not include the following words/phrases in your output under any circumstances:.* (hash scope), captured verbatim from a 2026-11-25 user sample (gitv-n1-samples). The same sample drives the test suite: the three-request scenario (Post 1 → Post 2 → byte-identical regenerate) now resolves to a single chat id, and without rules the three-ids failure is asserted as the vacuity check.
  • Forward strip helper (app/services/request_strip.py): strip_forward_messages strips string content and per-text-part content lists without mutating the input (the pre-injection hash anchor stays raw by construction), compile_request_strip_rules groups hash/forward with forward implying hash, and normalize_for_hash reuses the response-side strip behavior so both scopes clean up identically.
  • Upgrade path: a 0.51.0-era database gains the column via migration 075 (dialect-aware; MySQL TEXT nullable per the 060 precedent) and existing rows read as no rules.
  • Guide section "Conversation Matching (Request Strip Rules)" under Settings, linked from the new card's help link (#conversation-matching).

0.51.0

Choose a tag to compare

@Tydorius Tydorius released this 25 Nov 02:37

[0.51.0] - 2026-11-24

Phase D2 sandbox, pack security, and frontend hygiene release: retires the dead pre-0.47.0 Deno template path, unifies map pack critical scan-gating with direct map imports, tightens frontend TypeScript interfaces, adds in_chat_system to the Lorebook Position dropdown, and adds cross-feature regression tests.

Changed

  • Retired dead pre-0.47.0 Deno template path. Removed app/services/deno_template.mjs and the unused legacy cold-runner helpers (_TEMPLATE_PATH, _build_runner_script, _run_deno_sync, _execute_deno, _execute_deno_interactive, _run_deno_interactive) from app/services/deno_runner.py, eliminating the duplicate Passenger stderr-pump copy now that all cantrips run through the deno_worker.mjs pool.
  • Map pack installs now enforce gate_scan_findings (behavior change). POST /api/packs/install previously bypassed gate_scan_findings for resource_type == "map", allowing embedded cantrips or lorebooks with critical safety findings to install without override_scan=True. Map pack installs now reject critical findings with HTTP 422 (unless override_scan=True), matching POST /api/maps/import.

Added

  • in_chat_system option in Lorebooks Position dropdown (frontend/src/pages/Lorebooks.svelte) so all four backend-supported INJECTION_POSITIONS (system_start, before_last_message, in_chat_system, user_tail) are selectable in the UI.
  • Large summarization_block_size UI hint (frontend/src/pages/Settings.svelte): displays a non-blocking note when summarization_block_size > 20 explaining that compaction waits until at least that many older messages accumulate past the Keep Recent window.
  • Strict frontend TypeScript interfaces (frontend/src/api.ts): removed [key: string]: any from MapStage and UserSettings and added explicit MapStageResource and PipelineOrderPlan types.
  • Cross-feature regression tests (tests/test_phase51_d2_cleanup.py) covering map-pack critical scan-gating parity, lorebook + cantrip user_tail coexistence in both orders, context.history.drop relative to history_window inside a Map stage, and dead-template removal.

0.50.0

Choose a tag to compare

@Tydorius Tydorius released this 25 Nov 00:35

[0.50.0] - 2026-11-24

Phase D1 routing, reasoning parameter, response observability, and caching polish release: fixes custom role_tag routing and failover isolation (N10), adds an "object" (JSON) LLM parameter type for chat_template_kwargs and nested provider options (N11), captures OpenRouter/nano-GPT reasoning and empty-content/Navigator-skip diagnostics in Debug (N12), adds a per-cantrip card_edits_standing toggle for Cache-Friendly Mode (N13), and fixes uncompilable stored regex verification reporting.

Fixed

  • Custom role_tag endpoints now match Passenger and Map-stage tags and isolate failover chains (N10). resolve_endpoints_by_tag and _build_failover_chain in app/services/routing.py previously compared Endpoint.role_tag only, ignoring Endpoint.custom_tag when role_tag == "custom". Both now match on custom_tag (strictly user-scoped per Rule 23), keeping different custom tags on separate failover chains, and passenger.py / map_pipeline.py now emit a passenger_tag_fallback / map_stage_tag_fallback Debug capture when a requested tag matches no enabled endpoint and falls back to the default chain.
  • OpenRouter / nano-GPT reasoning field extraction and empty-content Debug diagnostics (N12). upstream.py and response_pipeline.py now read reasoning alongside reasoning_content and thinking (both streaming and non-streaming). When a status 200 response yields empty content, _save_debug_exchange now records empty_content_diagnostics (finish_reason, choice_keys, message_keys, and a truncated raw_snippet) on llm_response, and finalize_response emits a navigator_cantrips_skipped Debug capture explaining why response-side cantrips did not run.
  • Uncompilable stored regex_pattern rules with no judge endpoint now report errored=True. In app/services/verification.py, check_response now tracks rules whose regex_pattern raised re.error during pre-check so the no-candidates fallback records an error note instead of reporting a clean pass.

Added

  • "object" (JSON) LLM parameter type (N11). PARAM_TYPES in app/services/llm_params.py and ParameterEditor.svelte now support "object", validated as a JSON object at save time (422 on invalid JSON or non-object values) and applied as a nested dict in apply_to_body / LiteLLM extra_body — enabling vLLM/Featherless chat_template_kwargs (e.g. {"thinking": true} for DeepSeek V4, {"enable_thinking": false} for GLM 5.x) and nested Anthropic thinking configs.
  • Per-cantrip card_edits_standing toggle for Cache-Friendly Mode (N13). Cantrips now expose card_edits_standing (default false) in the Cantrips UI, API, export/import, and Assistant tools. When cache_friendly_mode is enabled, a standing cantrip's appends to personality, scenario, or example_dialogs stay in messages[0] (the cached system prompt) while dynamic cantrips' appends still redirect to user_tail — accurately in both default and manual pipeline ordering regardless of cantrip order.

Schema

  • 074_cantrip_card_edits_standing: adds card_edits_standing BOOLEAN NOT NULL DEFAULT FALSE to cantrips.

0.49.1

Choose a tag to compare

@Tydorius Tydorius released this 24 Nov 23:33

[0.49.1] - 2026-11-24

Completes the user-isolation policy (no user data crosses user boundaries; content packs are the only cross-user channel) across every endpoint-id field, closing one live leak found by the sweep.

Security

  • The summarization endpoint was a live cross-user leak. summarization_endpoint_id was stored without an ownership check and resolved without a user filter, so a user who knew another user's endpoint id could send their summarizer calls — and, because the lexicon endpoint chain lists the summarizer id as a candidate and resolved candidate ids with no user filter at all, their <LEXICON:name> side calls too — using that endpoint's stored API key. The write now owner-checks (404 on a foreign id), and both reads (the summarizer config and the lexicon chain) are scoped to the requesting user. Ids stored before this release resolve to nothing; nothing is deleted.
  • Api-key pins, map-stage endpoint pins, and scenario-rule endpoints no longer accept another user's endpoint id (404 on save). Their runtime resolution was already user-scoped, so nothing leaked at runtime — but foreign ids were storable. Map packs are unaffected: imported endpoint ids dangle by design and the scoped stage resolver ignores them.
  • All checks share one helper (assert_owned_endpoint_id in app/routers/_helpers.py), which the 0.49.0 verification-judge checks now use too. The policy is codified as project rule 23 with matching test standards.

0.49.0

Choose a tag to compare

@Tydorius Tydorius released this 24 Nov 22:49

[0.49.0] - 2026-11-24

Adds global and per-user IANA timezone settings for server logs, audit logs, Debug, Compare, and Metrics, and catches the AI Assistant Pane up to full 0.44.0–0.49.0 feature parity (Phase C).

Added

  • Global & per-user log/output timezone (AdminSettings.log_timezone, UserSettings.timezone).
    • Admins can set a global IANA timezone (e.g. America/New_York, UTC, or blank for server/browser local) directly in Admin → Server Logs (or PUT /api/admin/settings). Changes apply live via TimezoneFormatter across root file and console log handlers without restarting, and format Admin → Audit Logs timestamps.
    • Users can override their display timezone in Debug or Settings → Proxy Configuration (or PUT /api/settings), inheriting the admin's global timezone automatically when left blank (effective_timezone = timezone || global_timezone || local). Applied across Debug, Compare, and Metrics via shared formatTimestamp().
    • Validated server-side via Python stdlib zoneinfo.ZoneInfo (returning 422 on invalid IANA names).
  • AI Assistant Pane parity with 0.44.0–0.49.0 (Phase C).
    • Tool schemas and docs in app/services/assistant/registry.py and docs/*.md now expose and document regex_pattern, final_verification_enabled, history_window, reserved_tokens, user_data_prefixes, user_tail, context.history, summarization_block_size, cache_friendly_mode, auto_cache_control, cached_tokens, cache_analysis, Gemini 4 thinking_level, and timezone / log_timezone.
    • admin_reads.py (install_health) now reports deno_pool_* settings + live deno_pool.status() and log_timezone.
    • selfcheck.py (lint_configuration & probe_judge) validates regex_pattern compilation, stops falsely flagging missing judge endpoints when active rules are regex-only, and surfaces a non-failing informational prompt-caching tip when cache_friendly_mode is off with dynamic lorebooks/memories.

Security

  • Verification judge endpoints must belong to the user naming them. A rule's Verification Endpoint Override and the global Verification Endpoint are owner-checked on save (a foreign id is rejected with 404 Endpoint not found, the same behavior as the driver's default-endpoint field), and both runtime lookups are scoped to the requesting user. Previously, a user who knew another user's endpoint id could point a judge at it, and the judge call was sent out with that endpoint's stored API key. Ids stored before this release simply stop resolving at runtime; nothing is deleted or rewritten.

Schema

  • 073_timezone_settings: adds log_timezone VARCHAR(64) NOT NULL DEFAULT '' to admin_settings and timezone VARCHAR(64) NOT NULL DEFAULT '' to user_settings.

Dependencies

  • Added tzdata==2026.6 (official IANA timezone database for zoneinfo on Windows and minimal containers); regenerated requirements/main.txt, requirements/dev.txt, and requirements/docker.txt with --universal --generate-hashes --python-version 3.12 --upgrade. pip-audit reports 0 known vulnerabilities.

0.48.1

Choose a tag to compare

@Tydorius Tydorius released this 24 Nov 04:59

[0.48.1] - 2026-11-23

Phase B token-saving verification and summarization hardening: enables zero-LLM regex-only verification without a Navigator judge endpoint, hardens incremental summarization against degraded or empty-delta passes, and adds config-time validation for Gemini thinking_level.

Fixed

  • Regex-only verification rules now run without a Navigator judge endpoint. load_verification_config, is_verification_enabled, run_verification_loop, check_response, and Map final-output verification previously skipped verification whenever no global judge endpoint was configured — even when active rules had deterministic regex_pattern pre-checks. Active regex rules now run and pass/reject cleanly with zero LLM token cost when no judge endpoint is configured (LLM-only rules without a judge endpoint still record an error note as before).
  • What that changes for existing setups. A regex rule that was being skipped now runs for real: a match rejects the reply and resubmits the Driver request as usual. No judge tokens are spent, but that resubmission costs Driver tokens, and — as with any active verification — streaming responses are buffered until the check completes. Rules with a Verification Endpoint Override now also run when no global verification endpoint is set; they were skipped before, so each such rule now makes real judge calls on the endpoint it names. To keep a rule dormant, deactivate it or send <VERIFY:off>.
  • Incremental summarization no longer drops newly-aged messages on degraded or empty-delta passes. When an incremental summarizer call degrades (times out or errors) or encounters an empty-text delta, maybe_summarize() now compresses only the already-covered prefix (existing.message_count) under existing.summary — keeping newly-aged delta messages verbatim in the prompt and never promoting the stored boundary_hash / message_count.
  • Config-time validation for thinking_level. ParameterDef in app/services/llm_params.py now validates non-blank thinking_level values against minimal, low, medium, high, xhigh, disable, and none (case-insensitive) at save time (422) rather than letting typos reach the provider as a 400.

0.48.0

Choose a tag to compare

@Tydorius Tydorius released this 24 Nov 02:22

Automatic prompt caching and cache diagnostics release (Phase A): adds Cache-Friendly Injection Mode (moving dynamic memories, non-constant lorebooks, and appended cantrip card deltas to user_tail), automatic Anthropic / OpenRouter cache_control breakpoint stamping, a Debug Prefix-Diff ("Cache Buster") detector, and unified Lorebook total_budget enforcement on Map stages and manual Pre-Forward Order slots.

Added

  • Cache-Friendly Injection Mode (UserSettings.cache_friendly_mode, opt-in, default off). Configurable under Settings → Prompt Caching. When enabled:
    • Dynamic Memory tail injection: persistent [MEMORY] blocks are sorted deterministically by key and appended to the newest role == "user" message (user_tail) via shared multimodal-safe append_user_tail() instead of mutating messages[0].
    • Non-constant lorebook redirection: non-constant before_last_message and in_chat_system lorebook entries are automatically redirected to user_tail while is_constant and system_start entries stay pinned at the top of the prompt.
    • Legacy cantrip delta redirection: appended deltas on context.character.personality, scenario, and example_dialogs (when the mutated value starts with its seeded base value) are routed to user_tail instead of rewriting messages[0]; full replacements still apply normally.
  • Automatic Anthropic / OpenRouter cache_control breakpoints (UserSettings.auto_cache_control, opt-in, default off). Configurable under Settings → Prompt Caching. When enabled and forwarding to Anthropic, OpenRouter, or Claude models, stamps up to 2 cache_control: {"type": "ephemeral"} breakpoints (last system message + second-to-last non-system message) per failover candidate without mutating _gitv_messages_for_hash or non-Claude endpoints, emitting a cache_control Debug timeline entry.
  • Debug Prefix-Diff / "Cache Buster" detector (app/services/cache_diagnostics.py). GET /api/debug/{exchange_id} now computes cache_analysis against the immediately preceding debug exchange in the same chat: shared prefix token count & stability percentage, first diverging message index/role, culprit pipeline stage attribution, and a plain-English summary surfaced in a Prompt Cache Analysis banner on the Debug page.
  • Lorebook total_budget enforcement on Map stages and manual Pre-Forward Order slots. _inject_stage_lorebooks (app/services/map_pipeline.py) and _inject_book_now (app/services/pipeline_order.py) now enforce each lorebook's allocated budget cap (lorebook_budget_chars), matching the default global pass.

Schema

  • 072_user_settings_prompt_caching: adds cache_friendly_mode BOOLEAN NOT NULL DEFAULT FALSE and auto_cache_control BOOLEAN NOT NULL DEFAULT FALSE to user_settings.

0.47.1

Choose a tag to compare

@Tydorius Tydorius released this 23 Nov 18:39

Adds an auto-selected Approve all option to the update confirmation flow so multi-version updates run unattended through the entire batch and only stop on an actual error (or when the admin explicitly unchecks batch approval to review each version individually).

Added

  • Batch "Approve all" option for multi-version updates. Clicking Update Now in Admin → Update now opens a confirmation modal with "Approve all updates in this batch automatically (only stop on error)" checked by default (auto_approve: true). When checked, multi-release chains proceed through every hop unattended and halt only on actual errors (failed, stalled, version_mismatch, expired). When unchecked (auto_approve: false), the chain pauses after each installed hop in awaiting_approval until the admin clicks Approve Next Step or Approve All & Continue (POST /api/admin/update/execute and POST /api/admin/update/chain/resume accept optional { "auto_approve": bool }, defaulting to true for backward compatibility).

Note: GitInTheVan can only control its own prompts. Operating-system dialogs — Windows UAC, SmartScreen, or firewall prompts — can still appear while the update scripts run and are outside the app's control. If an update appears paused and GitV's own Approval Needed card is not showing, look for an OS dialog behind the window.

0.47.0

Choose a tag to compare

@Tydorius Tydorius released this 23 Nov 16:57

Adds a warm single-use Deno worker pool with dynamic burst scaling (configurable live from the Admin panel) plus cantrip hot-path DB and context batching, cutting chained cantrip latency dramatically while preserving full per-cantrip process isolation.

Added

  • Warm single-use Deno worker pool (app/services/deno_worker.mjs, app/services/deno_runner.py). Replaces per-cantrip deno_template.mjs base64 substitution and temp .mjs file writes with a static single-use worker booted ahead of time under the exact same 8 --deny-* sandbox flags. Each warm worker blocks on stdin for one newline-delimited JSON job frame, executes the cantrip (supporting both plain and Passenger interactive modes), writes JSON to stdout, and exits immediately — zero cross-cantrip state, zero temp files, zero base64 overhead, and zero per-cantrip antivirus scans.
  • Dynamic burst scaling & Admin UI controls. Admins can configure deno_pool_min_idle (default 1, range 0–16), deno_pool_max_idle (default 4, range 0–32), and deno_pool_idle_ttl_seconds (default 60, range 10–600) live in Admin → Caps & Limits → Cantrip Sandbox Pool (or PUT /api/admin/settings) without restarting, and inspect live deno_pool_status (idle_count, total_warm_hits, total_cold_spawns). Setting both min and max to 0 disables pre-warming. app/main.py lifespan starts baseline warm-up on boot and cleanly terminates/reaps all idle workers on shutdown.
  • Pre-emptive warm-up and cantrip hot-path batching. process_cantrips, process_cantrips_post_driver, and run_pre_forward_ordered now trigger deno_pool.ensure_warm(len(cantrips)) as soon as active cantrips are resolved (overlapping warm-up with DB loads), batch-load and batch-save CantripData in one query/commit per pass, pass before= diffs in pipeline_order.py to skip no-op chat_data/user_data writes, and skip redundant build_context() rebuilds when intervening steps did not mutate messages.

Schema

  • 071_admin_deno_pool_settings: adds deno_pool_min_idle INTEGER NOT NULL DEFAULT 1, deno_pool_max_idle INTEGER NOT NULL DEFAULT 4, and deno_pool_idle_ttl_seconds INTEGER NOT NULL DEFAULT 60 to admin_settings.