CedarCopilot wants to merge 0 commits into staging from refactor/write-document-guarded-playbook-dispatch
Live on prod, no production signal yet
OTEL fallback found no prod spans matching writeDocumentGuarded since deploy.
Libra has verdicts on 0 of 1 tracked behaviors on prod; 1 is still being checked. Libra checks hourly for 3 days after each deploy.
Merges the user- and org-PLAYBOOK.md branches in writeDocumentGuarded: match both paths up front, reject append once, narrow mode to 'upsert' | 'patch', then dispatch to the respective XML writer. Removes the duplicated append guard and the non-null-assertion drift between the two branches. No behavior change , pure refactor.
š¤ Generated with Claude Code
This refactor consolidates user and organization PLAYBOOK.md handling without changing dispatch behavior.
The PR appears safe to merge with no actionable defects identified.
The user and organization path patterns are mutually exclusive, the organization match is guaranteed non-null at its use site, and append rejection remains equivalent for both routes.
| Filename | Overview |
|---|---|
| apps/server/src/services/playbook/write-document-guarded.ts | Consolidates duplicated playbook dispatch and append validation while preserving the existing routing and writer arguments. |
Reviews (1): Last reviewed commit: "refactor(playbook): merge user/org PLAYB..." | Re-trigger Greptile
Libra has not measured any production surfaces for this change yet.