Skip to content

feat(broadcast): detect local scope conflicts#5937

Merged
AceHack merged 6 commits into
mainfrom
claim/backlog-0213-broadcast-conflict-detection-20260528
May 29, 2026
Merged

feat(broadcast): detect local scope conflicts#5937
AceHack merged 6 commits into
mainfrom
claim/backlog-0213-broadcast-conflict-detection-20260528

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 28, 2026

Summary

  • adds detectLocalBroadcastScopeConflicts for exact active scope overlap detection across local broadcast agents
  • ignores stale and idle envelopes so old or non-working broadcasts do not block work
  • covers active conflict detection and stale suppression in focused broadcast-local tests
  • releases claim backlog-0213-broadcast-conflict-detection-20260528 in this branch before PR publication

Validation

  • bun test tools/broadcast-local/schema.test.ts
  • git diff --check origin/main...HEAD

Agency-Signature-Version: 1
Agent: Vera
Agent-Runtime: OpenAI Codex
Agent-Model: GPT-5
Credential-Identity: AceHack
Credential-Mode: shared
Human-Review: not-implied-by-credential
Human-Review-Evidence: none
Action-Mode: autonomous-fail-open
Task: backlog-0213-broadcast-conflict-detection-20260528

Lior and others added 3 commits May 28, 2026 19:52
… conflict detection

Claim B-0213 follow-up work for local broadcast conflict detection after the schema, TTL, and receipt slice landed.

Agency-Signature-Version: 1
Agent: Vera
Agent-Runtime: OpenAI Codex
Agent-Model: GPT-5
Credential-Identity: AceHack
Credential-Mode: shared
Human-Review: not-implied-by-credential
Human-Review-Evidence: none
Action-Mode: autonomous-fail-open
Task: backlog-0213-broadcast-conflict-detection-20260528
Co-Authored-By: Codex <noreply@openai.com>
…pe conflicts

Add a local broadcast helper that reports exact active scope overlaps across agents while ignoring stale and idle envelopes.\n\nValidation:\n- bun test tools/broadcast-local/schema.test.ts\n- git diff --check

Agency-Signature-Version: 1
Agent: Vera
Agent-Runtime: OpenAI Codex
Agent-Model: GPT-5
Credential-Identity: AceHack
Credential-Mode: shared
Human-Review: not-implied-by-credential
Human-Review-Evidence: none
Action-Mode: autonomous-fail-open
Task: backlog-0213-broadcast-conflict-detection-20260528
Co-Authored-By: Codex <noreply@openai.com>
…or PR

Release the B-0213 conflict-detection claim in the same branch before PR publication.\n\nValidation:\n- bun test tools/broadcast-local/schema.test.ts\n- git diff --check origin/main...HEAD

Agency-Signature-Version: 1
Agent: Vera
Agent-Runtime: OpenAI Codex
Agent-Model: GPT-5
Credential-Identity: AceHack
Credential-Mode: shared
Human-Review: not-implied-by-credential
Human-Review-Evidence: none
Action-Mode: autonomous-fail-open
Task: backlog-0213-broadcast-conflict-detection-20260528
Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 28, 2026 23:58
@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.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a small conflict-detection utility to the local broadcast schema so tools can detect exact overlapping scopes across concurrently active (non-idle, non-stale) local broadcast envelopes, with targeted tests for the new behavior.

Changes:

  • Introduce detectLocalBroadcastScopeConflicts (plus LocalBroadcastScopeConflict) to find exact scope overlaps between active envelopes from different agents.
  • Exclude idle and stale envelopes from conflict consideration.
  • Add focused unit tests covering active conflict detection and stale suppression.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tools/broadcast-local/schema.ts Adds scope-conflict types + detection logic and filters out idle/stale envelopes.
tools/broadcast-local/schema.test.ts Adds tests for active overlap detection and stale overlap suppression.

Comment thread tools/broadcast-local/schema.ts Outdated
Comment thread tools/broadcast-local/schema.ts Outdated
Lior and others added 2 commits May 28, 2026 20:05
Address PR review feedback by replacing delimiter-based scope keys with JSON tuple keys and returning conflicts in canonical scope/id order. Add regression coverage for reversed input ordering and NUL-bearing scope values.

Agency-Signature-Version: 1
Agent: Vera
Agent-Runtime: OpenAI Codex
Agent-Model: GPT-5
Credential-Identity: AceHack
Credential-Mode: shared
Human-Review: not-implied-by-credential
Human-Review-Evidence: none
Action-Mode: autonomous-fail-open
Task: backlog-0213-broadcast-conflict-detection-20260528
Co-Authored-By: Codex <noreply@openai.com>
Keep the conflict-detector test expectations typed as LocalBroadcastScopeConflict so literal scope kinds do not widen to string under the full TypeScript gate.

Co-Authored-By: Codex <noreply@openai.com>

Codex-Origin: codex-launchd-loop

Codex-Surface: codex-background-service

Codex-Loop-Run-Id: 20260529T000633Z
Copilot AI review requested due to automatic review settings May 29, 2026 00:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread tools/broadcast-local/schema.ts Outdated
Comment thread tools/broadcast-local/schema.ts
Address latest PR review feedback by emitting every pairwise conflict for 3+ overlapping broadcasts and replacing locale-sensitive sorting with a code-point comparator. Add regression coverage for three-agent overlap.

Agency-Signature-Version: 1
Agent: Vera
Agent-Runtime: OpenAI Codex
Agent-Model: GPT-5
Credential-Identity: AceHack
Credential-Mode: shared
Human-Review: not-implied-by-credential
Human-Review-Evidence: none
Action-Mode: autonomous-fail-open
Task: backlog-0213-broadcast-conflict-detection-20260528
Co-Authored-By: Codex <noreply@openai.com>
@AceHack AceHack merged commit 4d707b9 into main May 29, 2026
32 checks passed
@AceHack AceHack deleted the claim/backlog-0213-broadcast-conflict-detection-20260528 branch May 29, 2026 00:23
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.

2 participants