Skip to content

Tracer: persist reusable Model Presets in the Profile database #883

Closed

Description

@DoodleBears

Parent

Profile Portability implementation #882; accepted design #76 / PR #881.

What to build

Human creates and edits reusable Model Presets in Bot Profile, applies a template to two Bots, then restarts the Host and sees the same templates and independent applied Bot plans. Move reusable template persistence into its owning SQLite module so the future full operational snapshot includes the currently JSON-backed template store.

Acceptance criteria

  • Preserve the existing create/list/edit/apply UI and Host command/query contracts, stable template IDs, names, revisions, exact provider/model/effort and Assignment allowlists/defaults; this does not change routing policy or already-applied independent Bot snapshots.
  • Owning Model Preset module uses the existing database owner, Profile Writer Lease and ordered Schema Generation; no generic SQL interface reaches the Client.
  • Validate and atomically import existing JSON templates once with a durable cutover marker. Corrupt or interrupted import must not become a silently empty store; retain the source for recovery and report bounded diagnostics.
  • After successful cutover, normal reads/writes never dual-write or fall back to the legacy JSON file, including when it is later modified or removed. Empty successful import still has a durable marker.
  • Database recovery, closed owner and competing writer prevent mutation; no stale-file fallback. No credentials are added to presets.
  • Real DSH E2E migrates populated legacy templates, edits/applies through production UI/API, cold-restarts with identical IDs/revisions and verifies a valid real model reply; capture screenshot/recording and preserve the independent snapshots of two applied Bots after further template edits.
  • Focused corruption/interruption/rollback/second-writer/revision tests and repository checks pass. Current architecture and bilingual Release Ledger describe the implemented authority accurately; Bot Registry migration and Profile Backup remain separate outstanding work.

Blocked by

Non-goals

No Bot Registry cutover, model-only export format, new model behavior, Profile Backup, credential transfer, scheduler or retention.

Activity

  1. added this to the v1.1 milestone on Oct 5, 2026
  2. added
    ready-for-agentFully specified, ready for an AFK agent
    area:fullstackEnd-to-end Host and Client implementation
    feature:exportExport, import, backup, and transfer
    scope:tracerHuman-testable implementation slice
    on Oct 5, 2026
  3. DoodleBears commented on Oct 5, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Codex
    • Task: codex/local/01a0f25f-2150-75e3-8895-23d35394b8d8 (not a DSH Session)
    • Issue scope: reusable Model Presets move to owning SQLite persistence, one-time validated cutover and existing Profile/plan production flow with restart evidence; no Registry migration or Backup feature claim.
    • Branch: codex/883-model-preset-database
    • Started: 2026-10-05 14:49 UTC
    • State: active

    #76 design was accepted by Human; PR #881 merged at verified head after complete CI success. This is a fresh unclaimed child; first runtime delivery stops for its own Human QA.

  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 5, 2026
  5. self-assigned this
    on Oct 5, 2026
  6. DoodleBears commented on Oct 5, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome

  7. added and removed
    ready-for-agentFully specified, ready for an AFK agent
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 5, 2026
  8. DoodleBears commented on Oct 5, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:fullstackEnd-to-end Host and Client implementationfeature:exportExport, import, backup, and transferscope:tracerHuman-testable implementation slice

Type

No type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions