Skip to content

docs(backend): pipeline change notes as per-change files, contracts stay in the doc - #24251

Merged
Git-on-my-level merged 1 commit into
mainfrom
shipspeed/pipeline-doc-fragments
Nov 1, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
shipspeed/pipeline-doc-fragments

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Stops every audio, transcription and lifecycle PR from editing the same 8,791-line doc.

backend/AGENTS.md told every audio, transcription, conversation-lifecycle, speaker or listen/pusher change to update backend/docs/listen_pusher_pipeline.mdx in the same PR. Between 10-18 and 11-01:

  • 165 fleet PRs edited that file;
  • 77 of them had to merge main back in, and each catch-up re-ran the pre-push gate and a full CI cycle (shipspeed baseline, conflict hot spots).

The new rule:

  • Change notes (what changed, why, rollout and flag state, evidence) go in backend/docs/listen_pusher_pipeline/changes/YYYY-MM-DD-<slug>.md, one new file per change. Concurrent PRs never touch the same note.
  • Contracts stay in the pipeline doc: env vars and defaults, wire and payload fields, ordering and idempotency guarantees, sequence diagrams. Tests (for example tests/unit/test_vad_cache_ttl_config.py) and the flag registry cite that file, so contract edits still happen there.
  • Notes are folded into the doc periodically by one docs-only PR.

The backend/AGENTS.md rule is shortened to stay inside its agents-md-lean byte budget; the detail lives in changes/README.md.

Rollout / merge notes

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

…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]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-01T14:59:18.208327Z
We couldn’t complete this review. Comment @codex review to try again.
7c75e57 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 2 files

Confidence score: 4/5

  • backend/AGENTS.md omits ordering, idempotency, and sequence-diagram exceptions referenced by the README, leaving the contract guidance inconsistent. Keep those contract changes in listen_pusher_pipeline.mdx too.
  • backend/docs/listen_pusher_pipeline/changes/README.md allows 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

Comment thread backend/AGENTS.md
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Suggested change
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.

Comment on lines +3 to +4
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Suggested change
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.

@Git-on-my-level
Git-on-my-level merged commit 83cdd10 into main Nov 1, 2026
65 checks passed
@Git-on-my-level
Git-on-my-level deleted the shipspeed/pipeline-doc-fragments branch November 1, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant