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
{{ message }}
Repository navigation
post-1.0: add structured error codes to runtime output #277
Issue #192 documents user-facing errors in `ERROR_REFERENCE.md` using docs-only reference codes (e.g. `PRS-001`, `STG-002`). This issue tracks the follow-on work to surface those codes at runtime.
Work item
Restructure Minigraf's error handling so that error codes appear in the actual error output seen by users and library consumers.
Currently all errors use `anyhow` with plain string messages. Adding runtime codes requires either:
Introducing a typed error enum hierarchy (replacing or wrapping `anyhow`)
Or a lightweight wrapper that tags an `anyhow::Error` with a stable code
Acceptance criteria
Each user-facing error category (parse, query, storage, WAL, API) has a typed variant or code tag
Runtime error output includes the reference code from `ERROR_REFERENCE.md`, e.g. `[PRS-001] Unexpected end of input`
Codes are stable across versions (renaming error text does not change the code)
Public API surface (db.rs) exposes typed errors so library consumers can match on specific variants
`ERROR_REFERENCE.md` codes remain in sync with runtime codes
Dependency
Depends on #192 (error message guide) for the code taxonomy.
Activity
docs: add error reference guide design spec (#192)
docs: add error reference guide implementation plan (#192)
docs: bring TEST_COVERAGE.md fully current (998 tests)
docs: add ERROR_REFERENCE.md codes for #303/#305 trailing-argument er…
docs: add structured error codes design spec for #277
docs: move error message templates into the registry, not call sites
docs: add foundation-PR implementation plan for #277; fix sync-test d…
feat: structured error codes foundation (MinigrafError, ErrorCategory…
feat: migrate WAL call sites to WAL-0xx error codes — #277 (4/6) (#363)
chore: raise binary-size CI budget from 1MB to ~1.2MB for #277 (#367)
feat: structured error codes — QRY-0xx query executor codes — #361 (5…
perf(error): shrink CodedError/ErrorCode binary-size footprint
feat: migrate storage call sites to STG-0xx error codes — #277 (3/6) (#…
feat: migrate parser.rs to PRS-0xx structured error codes — #277 (2/6) (
fix: satisfy clippy::useless_format on CI's newer toolchain
feat: migrate db.rs to API-0xx and audit remaining call sites to INT-…