Repository navigation
Conversation
…types - Zod schema for settings.json with passthrough for forward compatibility (AC-1) - validateSettings() with clear error messages for type mismatches (AC-2) - Settings validation warnings in sequant status command (AC-3) - JSONC settings file with inline comments from sequant init (AC-4) - SettingsSchema and error types exported from package (AC-5, AC-10) - SequantError base class with 6 typed subclasses and isRetryable (AC-6) - classifyError() returns typed instances; exit codes as primary signal (AC-7) - Run logs store errorType + metadata, backwards compatible (AC-8) - Phase executor retry logic uses error.isRetryable (AC-9) Closes #507
…ects
- Add generateSettingsReference to init.test.ts settings mock
- Use thresholdWithDefaults() factory for ScopeThresholdSchema so partial
input like { yellow: 10 } fills missing fields from threshold-specific
defaults instead of failing validation
10 tasks
These fields are written to settings.json by sequant init but were missing from the Zod schema and KNOWN_KEYS map, causing false "unknown key" warnings on every project that ran init.
classifyError() now returns SequantError instances instead of string categories (#507 AC-7). Use errorTypeToCategory() wrapper to preserve the existing test assertions.
Use errorTypeToCategory() and populate new ErrorContext fields (errorType, errorMetadata, isRetryable) to match the refactored classifyError() return type.
The -y flag was added in 5987921 but the integration test wasn't updated to match. Unit test already expected the correct args.
admarble
deleted the
feature/507-arch-configuration-schema-validation-and-structure
branch
April 9, 2026 03:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.sequant/settings.jsonwith.passthrough()for forward compatibility.validateSettings()produces clear error messages for type mismatches and warns on unknown/misspelled keys.sequant statusdisplays validation warnings;sequant initgenerates documented JSONC settings file with companion reference doc.SequantErrorbase class with 6 typed subclasses (ContextOverflowError,ApiError,HookFailureError,BuildError,TimeoutError,SubprocessError). Each hasisRetryableproperty and typed metadata.classifyError()refactored to return typed instances with exit codes as primary signal.errorType+metadata(backwards compatible). Phase executor retry logic useserror.isRetryableinstead of string matching. All types exported from package.AC Coverage
Test plan
npm run buildpassesnpm run lintpassesCloses #507
🤖 Generated with Claude Code