Skip to content

P1 process: add duplicate-write idempotency guard for automation #27

Description

@marcohost33-maker

Problem

A repeated connector write during the 2026-07-14 knowledge-transfer pass created duplicate T2-governance issues #25 and #26. #26 was immediately closed as duplicate, but the event exposes a general idempotency gap for automated issue creation.

Required control

Before creating a new issue, automation should:

  1. derive a deterministic idempotency key from repository, normalized title, scope/ref ID and operation type;
  2. search open and recently closed issues for that key or exact normalized title;
  3. reuse/comment on the existing issue when the intended scope matches;
  4. create only when no equivalent record exists;
  5. record the resulting issue number before any retry;
  6. make retries read-after-write rather than blind replays.

Suggested metadata

Embed a hidden or visible marker such as:

IDEMPOTENCY_KEY: browser|T2-admission-policy|2026-07-14|create-issue

Metric

DuplicateWriteRate = duplicate side effects / attempted write operations

Hard target for deterministic automation: zero. Any duplicate must be closed or reconciled and retained as a negative result.

Acceptance

  • issue/PR creation helper performs preflight search
  • retries use read-after-write confirmation
  • deterministic idempotency marker documented
  • regression test simulates timeout after successful remote write
  • negative-result entry retained

This issue is process hardening and does not block the browser runtime architecture decision.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium priority

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions