docs: sync error-codes.mdx with actual source code#10
Merged
Conversation
**Removed phantom error codes (not in source):** - All PROPOSAL codes (001-017) - never implemented - All RUN codes (001-009) - never implemented - All SPEC codes (001-004) - never implemented **Added missing error codes from source:** - UZ-SCORING-001 - UZ-RUNS-410 (Pipeline v1 removed) - UZ-PROFILE-001, UZ-PROFILE-002 - UZ-GATE-001 to UZ-GATE-004 - UZ-STARTUP-001 to UZ-STARTUP-007 - UZ-SANDBOX-001 to UZ-SANDBOX-003 - UZ-EXEC-001 to UZ-EXEC-014 - UZ-SLACK-001 to UZ-SLACK-003 **Result:** Error codes now 100% synchronized between src/errors/error_entries.zig and api-reference/error-codes.mdx (99 codes each)
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
Synchronizes api-reference/error-codes.mdx with the actual error codes defined in the usezombie source code (src/errors/error_entries.zig).
Changes
Removed (phantom codes not in source):
Added (codes that exist in source but were missing from docs):
Verification
100% synchronized. Each error code in src/errors/error_entries.zig now has a matching entry in api-reference/error-codes.mdx.
Greptile Summary
This PR removes 30 undocumented/phantom error codes and adds 32 codes across 8 new sections (Scoring, Profile, Gate, Startup, Sandbox, Executor, Slack, Pipeline v1 removed) to match the actual source. Two minor style-guide deviations were found in the newly added content: a single-quoted CLI reference instead of backtick code formatting (
UZ-STARTUP-001) and use of "task" instead of the required term "run" (UZ-EXEC-007).Confidence Score: 5/5
Safe to merge — documentation-only change with two minor style-guide deviations that don't block merge.
All findings are P2 style issues (backtick formatting and a single terminology word). No correctness, data-integrity, or structural problems were found. The sync of 62 error codes (30 removed, 32 added) looks complete and internally consistent.
No files require special attention beyond the two inline suggestions on api-reference/error-codes.mdx.
Important Files Changed
zombied doctorand "task" terminology on UZ-EXEC-007.Sequence Diagram
sequenceDiagram participant C as Client participant Z as zombied API participant DB as Database / Redis C->>Z: API Request alt Valid request Z->>DB: Process DB-->>Z: Result Z-->>C: 2xx Success else Auth failure Z-->>C: 401/403 UZ-AUTH-* else Validation error Z-->>C: 400 UZ-REQ-* / UZ-UUIDV7-* else Resource not found Z-->>C: 404 UZ-ZMB-009 / UZ-PROFILE-001 / UZ-AGENT-001 else Execution failure Z->>DB: Write gate/exec results DB-->>Z: Error Z-->>C: 500 UZ-EXEC-* / UZ-GATE-* / UZ-SANDBOX-* else Billing / entitlement Z-->>C: 402/403 UZ-BILLING-* / UZ-ENTL-* else Service unavailable Z-->>C: 503 UZ-INTERNAL-001 / UZ-STARTUP-* end Note over Z,C: All error responses use RFC 7807 application/problem+jsonPrompt To Fix All With AI
Reviews (1): Last reviewed commit: "docs: sync error-codes.mdx with actual s..." | Re-trigger Greptile
Context used: