You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Workbench view that closes the author → run → see results → iterate loop against a live .typhon file (the authoring half that Query Analyzer, post-hoc only, lacks).
✅ Shipped:Phase 1 — Author + Run + Browse merged to main via PR #390 (commit 52e150a) — panels/QueryConsole/ + useQueryConsoleStore, chip + DSL editor, QuerySpec IR + parser + EcsQuery<T> compiler, REST query/plan|execute|parse, virtualised result grid, live cost chip, G Q chord (Analyzer → G W), localStorage saved queries/history. (Deviations: <textarea> not Monaco; TanStack Virtual div-grid.)
Scope: Phase 1 only (Author + Run + Browse — minimum viable loop). Branch:feature/386-query-console (Typhon + nested claude/ repos). Plan file: local to working agent.
Acceptance Criteria (19 ACs + 2 pre-flight gates)
Pre-flight (verification gates):
P1 — Verify Schema endpoints return real field names (§14.4 gate).
P2 — Confirm ExpressionParser.ParseDnf invariants for parser pre-validation.
Deviations from design doc (called out explicitly per CLAUDE.md)
#
Design says
Plan ships
Why
D1
ExecutionPlanDto (§6.3)
QueryPlanDto
Matches Query* prefix of existing Profiler DTOs
D2
"Immer-style mutator" (§7.1)
Plain spread mutator
Matches existing Workbench convention; Immer not in deps
D3
tx.Query<T>(polymorphic: bool) (§4.2)
tx.Query<T>() / tx.QueryExact<T>()
Engine has two factories
D4
Plan DTO carries evaluator list from Phase 1
Minimal Phase 1 (3 estimate fields + per-eval array); evaluator list lands in Phase 2
Plan drawer is Phase 2; no consumer in Phase 1
All deviations doc'd in query-console.md post-Phase-1 (mechanical edits via AC-19).
Code review gate
Completion blocked until: self-review of full diff vs every AC + design doc + Typhon standards (.editorconfig, no LINQ on hot paths, [LoggerMessage], no nullable reference types, 160-col max), /code-review, /security-review (DSL parser is user-input-facing), no claude/rules/ invariant violated.
Activity
nockawa commentedon May 28, 2026
Phase 1 Implementation Plan — Approved
Scope: Phase 1 only (Author + Run + Browse — minimum viable loop).
Branch:
feature/386-query-console(Typhon + nestedclaude/repos).Plan file: local to working agent.
Acceptance Criteria (19 ACs + 2 pre-flight gates)
Pre-flight (verification gates):
ExpressionParser.ParseDnfinvariants for parser pre-validation.Engine (1 internal-method touch):
internal EcsQuery<TArchetype>.AddFieldPredicateBranches(FieldPredicate[][])+ NUnit fixture.Server / Workbench host:
Dtos/Query/records (QueryPlanDto,QuerySpecDto,QueryResultDto,QueryRowDto, request/response DTOs).QueryConsoleService(stateless singleton, session→tx resolution).DslParser(full §5.1 grammar; NAVIGATE/SPATIAL parsed-only-stored).QuerySpecCompiler(reflection-based; uses AC-1 helper).QueryConsoleControllerwith/plan,/execute,/parse.QueryExceptionsubclasses →WorkbenchExceptionHandlerwith stable codes.Client / Workbench UI:
useQueryConsolePlan,useQueryConsoleExecute,useQueryConsoleParse).QueryConsolePanel(toolbar + stage stack / DSL editor + result grid).useQueryConsoleStore(Zustand, plain spread — no Immer).DslEditor(Monaco; new dep@monaco-editor/react).@tanstack/react-virtual; defaultTAKE 1000).safeStorage).G Q→ Console,G W→ Analyzer) + palette + view-menu.query-analyzer.md§2 chord).Deviations from design doc (called out explicitly per CLAUDE.md)
ExecutionPlanDto(§6.3)QueryPlanDtoQuery*prefix of existing Profiler DTOstx.Query<T>(polymorphic: bool)(§4.2)tx.Query<T>()/tx.QueryExact<T>()All deviations doc'd in
query-console.mdpost-Phase-1 (mechanical edits via AC-19).Code review gate
Completion blocked until: self-review of full diff vs every AC + design doc + Typhon standards (
.editorconfig, no LINQ on hot paths,[LoggerMessage], no nullable reference types, 160-col max),/code-review,/security-review(DSL parser is user-input-facing), noclaude/rules/invariant violated.🤖 Generated with Claude Code
Query Console + cluster ComponentCollections + faster reopen + Workbe…
#1083 Realms in the Workbench: a realm is an object you inspect and a…