Repository navigation
docs(backend): pipeline change notes as per-change files, contracts stay in the doc - #24251
Conversation
…tay in the doc 165 fleet PRs edited backend/docs/listen_pusher_pipeline.mdx in 14 days and 77 of them had to merge main back in (shipspeed baseline 11-01). Narrative change notes now go in backend/docs/listen_pusher_pipeline/changes/, one new file per change; env, wire, payload and ordering contracts stay in the pipeline doc, which tests and the flag registry cite. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
2 issues found across 2 files
Confidence score: 4/5
backend/AGENTS.mdomits ordering, idempotency, and sequence-diagram exceptions referenced by the README, leaving the contract guidance inconsistent. Keep those contract changes inlisten_pusher_pipeline.mdxtoo.backend/docs/listen_pusher_pipeline/changes/README.mdallows concurrent notes to collide under the date-plus-slug format. Include an issue or PR identifier in each filename.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="backend/AGENTS.md">
<violation number="1" location="backend/AGENTS.md:164">
P2: This instruction omits ordering, idempotency guarantees, and sequence diagrams from the contract exceptions, contradicting the referenced README. Keep those contract changes in `listen_pusher_pipeline.mdx` too, or contributors will place canonical contract updates in temporary notes.</violation>
</file>
<file name="backend/docs/listen_pusher_pipeline/changes/README.md">
<violation number="1" location="backend/docs/listen_pusher_pipeline/changes/README.md:3">
P3: The date-plus-short-slug format does not enforce the README's “never edit the same note” guarantee. Include an issue or PR identifier in each filename so concurrent changes cannot collide.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| Firestore schema rollout, readiness, and change controls are documented in [Firestore queries and indexes](../.github/agent-docs/firestore-queries-and-indexes.md). | ||
|
|
||
| Update this map for inter-service call changes. For audio, transcription, conversation lifecycle (including advisory cross-device overlap links), speakers, or listen/pusher WebSocket changes, update `backend/docs/listen_pusher_pipeline.mdx` in the same PR; it owns the overlap env/wire contract. | ||
| Update this map for inter-service call changes. For audio, transcription, conversation lifecycle (including advisory cross-device overlap links), speakers, or listen/pusher WebSocket changes, add a note under `docs/listen_pusher_pipeline/changes/` in the same PR (see its README); edit `docs/listen_pusher_pipeline.mdx` only for env/wire/payload contract changes. |
There was a problem hiding this comment.
P2: This instruction omits ordering, idempotency guarantees, and sequence diagrams from the contract exceptions, contradicting the referenced README. Keep those contract changes in listen_pusher_pipeline.mdx too, or contributors will place canonical contract updates in temporary notes.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/AGENTS.md, line 164:
<comment>This instruction omits ordering, idempotency guarantees, and sequence diagrams from the contract exceptions, contradicting the referenced README. Keep those contract changes in `listen_pusher_pipeline.mdx` too, or contributors will place canonical contract updates in temporary notes.</comment>
<file context>
@@ -161,7 +161,7 @@ Subscription plan contract: edit `config/plan_catalog.json`, then run `python sc
Firestore schema rollout, readiness, and change controls are documented in [Firestore queries and indexes](../.github/agent-docs/firestore-queries-and-indexes.md).
-Update this map for inter-service call changes. For audio, transcription, conversation lifecycle (including advisory cross-device overlap links), speakers, or listen/pusher WebSocket changes, update `backend/docs/listen_pusher_pipeline.mdx` in the same PR; it owns the overlap env/wire contract.
+Update this map for inter-service call changes. For audio, transcription, conversation lifecycle (including advisory cross-device overlap links), speakers, or listen/pusher WebSocket changes, add a note under `docs/listen_pusher_pipeline/changes/` in the same PR (see its README); edit `docs/listen_pusher_pipeline.mdx` only for env/wire/payload contract changes.
## Import Rules
</file context>
| Update this map for inter-service call changes. For audio, transcription, conversation lifecycle (including advisory cross-device overlap links), speakers, or listen/pusher WebSocket changes, add a note under `docs/listen_pusher_pipeline/changes/` in the same PR (see its README); edit `docs/listen_pusher_pipeline.mdx` only for env/wire/payload contract changes. | |
| Update this map for inter-service call changes. For audio, transcription, conversation lifecycle (including advisory cross-device overlap links), speakers, or listen/pusher WebSocket changes, add a note under `docs/listen_pusher_pipeline/changes/` in the same PR (see its README); edit `docs/listen_pusher_pipeline.mdx` for env/wire/payload, ordering, idempotency, or diagram contract changes. |
| One file per change, named `YYYY-MM-DD-<short-slug>.md`. Two PRs never edit the same note, so pipeline | ||
| documentation no longer forces a merge of `main` into every audio, transcription or lifecycle branch. |
There was a problem hiding this comment.
P3: The date-plus-short-slug format does not enforce the README's “never edit the same note” guarantee. Include an issue or PR identifier in each filename so concurrent changes cannot collide.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/docs/listen_pusher_pipeline/changes/README.md, line 3:
<comment>The date-plus-short-slug format does not enforce the README's “never edit the same note” guarantee. Include an issue or PR identifier in each filename so concurrent changes cannot collide.</comment>
<file context>
@@ -0,0 +1,19 @@
+# Listen + Pusher pipeline change notes
+
+One file per change, named `YYYY-MM-DD-<short-slug>.md`. Two PRs never edit the same note, so pipeline
+documentation no longer forces a merge of `main` into every audio, transcription or lifecycle branch.
+
</file context>
| One file per change, named `YYYY-MM-DD-<short-slug>.md`. Two PRs never edit the same note, so pipeline | |
| documentation no longer forces a merge of `main` into every audio, transcription or lifecycle branch. | |
| One file per change, named `YYYY-MM-DD-<short-slug>-<issue-or-pr>.md`; include an issue or PR identifier so concurrent changes cannot choose the same filename. This keeps pipeline | |
| documentation from forcing a merge of `main` into every audio, transcription or lifecycle branch. |
Summary
Stops every audio, transcription and lifecycle PR from editing the same 8,791-line doc.
backend/AGENTS.mdtold every audio, transcription, conversation-lifecycle, speaker or listen/pusher change to updatebackend/docs/listen_pusher_pipeline.mdxin the same PR. Between 10-18 and 11-01:mainback in, and each catch-up re-ran the pre-push gate and a full CI cycle (shipspeed baseline, conflict hot spots).The new rule:
backend/docs/listen_pusher_pipeline/changes/YYYY-MM-DD-<slug>.md, one new file per change. Concurrent PRs never touch the same note.tests/unit/test_vad_cache_ttl_config.py) and the flag registry cite that file, so contract edits still happen there.The
backend/AGENTS.mdrule is shortened to stay inside itsagents-md-leanbyte budget; the detail lives inchanges/README.md.Rollout / merge notes
🤖 Generated with Claude Code