Files
dxdesigner-part-replacement/docs/superpowers/specs/2026-10-30-dsh-operations.md
T

5.3 KiB

DSH operations and planning

The user approved all seven previously proposed features: realtime supervision, restart recovery, execution impact lists, incident experience, ticket tracking, model usage/response improvements, and task scheduling. Continue on the existing isolated codex/dsh worktree. Existing native Harness and service confirmation gates remain authoritative.

Runtime supervision and recovery

Publish live owner, current project, stage, elapsed time, saved/failed/no-match counts and safe-stop request independently of the selected task. Root task status must not claim draft or paused while an active worker is executing. Retain the last execution receipt separately from subsequent catalog reads.

Persist each confirmed execution in a RunJournal(data_root) before entering the executor. Reserve its queue checkpoint ID before launch. After restart, inspect saved journal rows and existing task evidence, display recoverable/interrupted work, and never replay automatically. Resume reconfirms the original order and frozen plan, reuses the checkpoint and skips completed entries. Uncertain results still require the existing reconciliation workflow.

Impact lists

Build a pure read-only impact report from saved contexts. For explicit target plans, show project, sheet, RefDes, stable UID, old/new part, old/proposed Value, Cell policy and NC policy. For mapping mode without collected targets, show mapping scope and clearly state that the number and identities of matching components are unknown. Never invent component counts. Include the report in preflight and native execution confirmation. Full report is available through the authenticated local UI, with bounded summaries for the model.

Incident experience and ticket tracking

Index local existing incident evidence with ExperienceStore(data_root). Mark an experience verified only when persisted verification proves complete, no failures, no interruption and no pause. Evidence-less suggestions, closed tickets and model claims are never verified repairs. Match by issue code and diagnostic context; suggestions cannot grant execution authority or bypass one-retry budgets. Incorporate bounded related experiences as data into diagnosis and show evidence references.

TicketTracker(data_root) refreshes only an existing incident's bound server/repository/issue number through the existing issue publisher authentication. Read status and bounded comments, store a scrubbed cache and expose last sync/errors. Validate the ticket URL/marker against the configured repository before transmitting credentials. No model-controlled arbitrary URL or write/comment operation is exposed. Issue closure is feedback rather than proof that local CAD was fixed. Manual refresh is available without a Git installation; periodic refresh stays quiet on unchanged data.

Model efficiency and usage

Retain the official native token display and add bounded per-session usage, duration and error/timeout state through backend runtime events. Unknown provider pricing must display unavailable rather than invented money. Repeated task reads within an unchanged revision may be cached; full evidence remains on disk, model results are bounded, and all relevant safeguards and identity fields survive compaction. Expose a bounded configurable response timeout and a stop-generation action using the native session cancel API. Cancelling model generation never falsely cancels an already confirmed task mutation or CAD operation.

Scheduling

ScheduleStore(data_root) persists selected tasks, frozen plan hashes, priority, optional due time, not-before time, dependency task IDs and idle-only state. Save/cancel pass through native confirmation. Datetimes use ISO 8601 with timezone offsets; timestamps are stored in UTC. Reject unknown fields, invalid priorities, self-dependencies and invalid IDs. Dependencies must be actually completed with no unresolved evidence. Priority then scheduled time determine order.

The scheduler runs only while the desktop app is open. Due tasks are shown on the right dock. Automatic idle execution requires a native confirmation explicitly authorizing the saved engineering scope for that future run; otherwise the task remains awaiting manual confirmation. Before dispatch it repeats preflight, dirty-plan checks and the frozen plan comparison. Busy workers, CAD/resource blockers, changed plans and uncertainty prevent dispatch. Claiming a schedule is durable and exclusive. Interrupted dispatch is not retried automatically after restart.

Integration and verification

All new business capabilities are exposed as backend schemas; do not put tool names or routing recipes into the persona/user prompts. Automatic incident sessions remain event-snapshot-only. Reuse authenticated context/action routes and bounded parent-process request/results. Add native right-dock sections and direct actions within the existing three-column UI.

Verify domain state transitions, crash/restart receipts, stale plans, truthful impact counts, dependency and schedule gates, ticket authentication confinement, experience verification and generation cancellation. Run real CLI policy checks, real-model natural-language actions and Qt/CDP clicks using isolated fixture projects and a controlled executor. No release EXE or real user engineering mutation is included.