Add ExecPlan for structured diagnostics with stable E_SEMPAI codes#70
Add ExecPlan for structured diagnostics with stable E_SEMPAI codes#70
Conversation
Reviewer's GuideAdds a new ExecPlan document that defines the implementation and validation plan for stabilizing structured diagnostics with Sequence diagram for parser and validator diagnostics using canonical schemasequenceDiagram
participant TestRunner
participant SempaiEngine as Sempai_Engine
participant Parser as Parser_path
participant Validator as Validator_path
participant Core as Sempai_core_Diagnostic
participant Snapshot as JSON_snapshot_tests
TestRunner->>SempaiEngine: compile_yaml(yaml_input)
SempaiEngine->>Parser: parse(yaml_input)
Parser-->>SempaiEngine: ParserError(parser_error)
SempaiEngine->>Core: from_parser_error(parser_error)
Core-->>SempaiEngine: DiagnosticReport{code,message,span,notes}
SempaiEngine-->>TestRunner: DiagnosticReport
TestRunner->>Snapshot: assert_parser_snapshot(DiagnosticReport as JSON)
TestRunner->>SempaiEngine: compile_dsl(dsl_input)
SempaiEngine->>Validator: validate(dsl_input)
Validator-->>SempaiEngine: ValidationError(validation_error)
SempaiEngine->>Core: from_validation_error(validation_error)
Core-->>SempaiEngine: DiagnosticReport{code,message,span,notes}
SempaiEngine-->>TestRunner: DiagnosticReport
TestRunner->>Snapshot: assert_validator_snapshot(DiagnosticReport as JSON)
Flow diagram for ExecPlan 4.1.2 stages A–Fflowchart TD
A["Stage A: Lock diagnostic JSON schema in sempai_core via failing tests and snapshots"]
B["Stage B: Implement canonical Diagnostic schema and parser/validator constructors"]
C["Stage C: Wire parser and validator emission in sempai Engine entrypoints"]
D["Stage D: Expand unit, BDD, and snapshot tests (parser, validator, CLI)"]
E["Stage E: Update design docs, users guide, and roadmap 4.1.2 status"]
F["Stage F: Run quality gates (check-fmt, lint, test, markdownlint, nixie)"]
GatesPass["All gates pass and acceptance criteria met"]
Escalate["Escalate per tolerances (scope, deps, interfaces, failing gates)"]
A --> B --> C --> D --> E --> F
F -->|check-fmt, lint, test, markdownlint, nixie all exit 0| GatesPass
F -->|gate fails or tolerances exceeded| Escalate
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…error codes This new ExecPlan formalizes the design and implementation plan to stabilize Sempai diagnostics as a contract with stable E_SEMPAI_* error codes. It outlines constraints, risks, and staged progress to unify parser and validator diagnostics under a canonical JSON schema, ensure stable snapshot coverage, and preserve CLI discoverability behavior. The plan includes extensive testing and documentation updates to guarantee contract and facade stability. Co-authored-by: devboxerhub[bot] <devboxerhub[bot]@users.noreply.github.com>
1292f48 to
e2bed7e
Compare
Summary
E_SEMPAI_*error codes.Changes
Rationale
Impact
Validation plan
How to review
E_SEMPAI_*codesNotes
crates/sempai-core,crates/sempai,docs/roadmap.md, anddocs/sempai-query-language-design.md).◳ Generated by DevBoxer ◰
ℹ️ Tag @devboxerhub to ask questions and address PR feedback
📎 Task: https://www.devboxer.com/task/9917800a-2e30-465f-bdd6-5bedfc0f8e25
Summary by Sourcery
Documentation: