improvement(mothership): do not silently re-route missing stream id#4295
improvement(mothership): do not silently re-route missing stream id#4295icecrasher321 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Reviewed by Cursor Bugbot for commit eb6fa2c. Configure here. |
Greptile SummaryThis PR tightens the Confidence Score: 5/5Safe to merge — single-line guard addition with no risk of regression. The change is a one-liner that adds a logically correct, non-breaking constraint. It only tightens validation for an edge case (empty No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Raw stream event JSON] --> B[parsePersistedStreamEventEnvelopeJson]
B --> C{Valid JSON?}
C -- No --> D[Return: invalid_json error]
C -- Yes --> E[parsePersistedStreamEventEnvelope]
E --> F{isContractEnvelope?}
F -- Yes --> G[Return: ok=true]
F -- No --> H{isSyntheticFilePreviewEventEnvelope?}
H -- Yes --> G
H -- No --> I[Return: invalid_stream_event error]
F --> J[isValidEnvelopeShell]
J --> K[isStreamRef]
K --> L{streamId is string?}
L -- No --> M[FAIL]
L -- Yes --> N{streamId.length > 0?}
N -- No --> M
N -- Yes --> O[Continue validation...]
Reviews (1): Last reviewed commit: "improvement(mothership): do not silently..." | Re-trigger Greptile |
Summary
Stream ID must exist
Type of Change
Testing
Tested manually
Checklist