Adversarial PR & Architecture Audit Pro

    by 牧翊

    1

    Audit high-risk PRs and architecture RFCs with a dispute ledger, sign-off rules, a 24-point concurrency checklist, and a decision brief that preserves adopted contracts.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Adversarial PR & Architecture Audit Pro

    Example session with this skill installed

    Audit this RFC for production readiness and make a local JSON ledger and Markdown engineering decision brief with the bundled validator if available.

    RFC §1 Inbox. We durably record one inbox row per event using UNIQUE (source_event_id) and return the same job handle on retry.

    §2 Daily digest worker. A worker claims a pending digest using SELECT id FROM digest_jobs WHERE state = 'pending' LIMIT 1, writes state = 'running' in a later statement filtered only by id, and publishes a digest after its transaction commits.

    §3 Rollout. Start with two workers and monitor queue latency. An older proposal used a per-process Set of event IDs and was dropped because each worker had its own Set. No code, migration or concurrent-delivery test has been supplied.

    • Read your context and instructions
    • Compiled the adversarial pr

    Engineering Decision Brief — Daily digest inbox and worker rollout

    • Verdict: BLOCK
    • Audited scope: RFC §1 Inbox, §2 Daily digest worker, §3 Rollout, and the historical process-local deduplication proposal. The RFC and its contract inventory were reviewed. Implementation code, migration, database isolation configuration, publisher behavior, and concurrent-delivery results are unavailable. The three audit perspectives come from one reviewer.

    1. Executive Summary and Steel-Man Thesis

    A durable inbox gives retries a shared record from which to recover the original job handle. Post-commit publication avoids emitting a digest for a claim that rolls back. The separate select and update are straightforward with a single active worker. Starting with two workers adds processing capacity, and queue latency gives operators a direct signal of pending backlog.

    Under isolation that allows the two updates to commit, a second worker can claim the same job by ID after the first worker commits. The interval between commit and publication also needs a recovery protocol. The production decision is blocked on exclusive claims, crash-safe publication, and proof of durable inbox-to-job behavior.

    An atomic conditional update can give a pair of workers that inspect the same row one explicit winner. A short transaction that selects with a row lock and skips locked jobs, where supported, can distribute available work among consumers. Both options depend on verified database semantics. A durable outbox can preserve dispatch intent across crashes, and a stable publisher idempotency key can suppress repeat delivery after an ambiguous acknowledgment. A one-worker pilot reduces concurrent claim contention after the release blockers close.

    2. Adopted Technical Contracts

    [C1] Durable inbox with one row per source event

    Owner: Architect

    We durably record one inbox row per event using `UNIQUE (source_event_id)`
    

    [C2] Stable job handle on retry

    Owner: Architect

    return the same job handle on retry.
    

    [C3] Publish after a successful commit

    Owner: Architect

    publishes a digest after its transaction commits.
    

    [C4] Queue latency as a rollout signal

    Owner: Maintainer

    monitor queue latency.
    

    3. Dispute Ledger

    IDFindingSeverityEvidence locationFailure conditionResolutionSign-off
    D1Two workers can claim and publish the same digestHIGHRFC §2 Daily digest worker and §3 RolloutWorkers A and B both read the same pending job. A updates it to running by ID and commits. B then updates that ID, which still matches the predicate. Under isolation that permits both commits, both workers proceed to publish.Demonstrate an atomic transition that succeeds for exactly one worker and gates publication on the successful claim. A conditional update must test pending state and verify affected rows. A transactional row-locking claim must prove exclusivity under the intended database settings.rejects
    D2Post-commit publication has two unaddressed crash windowsHIGHRFC §2 Daily digest workerA worker dies after committing the running state and before publishing, leaving the pending selector unable to pick up the job. If the publisher accepts a request before the worker records its outcome, a retry can publish a second digest.Show durable dispatch intent and recovery, for example an outbox committed with the state change. Use a stable digest publication identity that the publisher or downstream can deduplicate. Provide fault-injection evidence for both crash windows.rejects
    D3The stable inbox-to-job contract lacks implementation evidenceHIGHRFC §1 Inbox and supplied evidence noteIf the inbox row commits before a job is durably associated and the process stops in between, the retry can find the inbox row without its job. If retries can schedule work independently, callers may enqueue multiple jobs even with one inbox row.Supply the migration and intake code demonstrating a valid, unique source event identity and durable association with one job. Show that retries recover the winning job handle and the scheduling path remains idempotent under duplicate delivery and interruption.rejects
    D4Queue latency leaves rollout failure modes unobservedMEDIUMRFC §3 RolloutA digest publishes twice or remains running past its recovery deadline while pending queue latency is still within target.Keep the production rollout blocked until D1–D3 close. Then gate the initial rollout to one active worker, track duplicate publication and age of running jobs alongside queue latency, and verify the worker-count rollback procedure.conditional_fallback

    4. Negative List of Rejected Approaches

    • [C5] Process-local Set of event IDs — The Set offers a low-latency lookup within one worker. Each worker has a separate Set, so two processes can independently accept the same event.
    • [C6] Pending-row read followed by an update filtered by ID — The later update still matches after another worker moves that row to running. The RFC supplies no lock, conditional state predicate, or verified isolation behavior that would ensure exclusive claims.
    • [C7] Start with two workers under the stated rollout — Two workers expose the claim race, and queue latency alone can miss repeated publication and stalled running jobs.

    5. Conditional Fallbacks and Re-evaluation Triggers

    • [D4] Reopen when a second active worker is requested, a duplicate digest is observed, or a running job exceeds the agreed recovery deadline.

    6. Actions and Verification

    • [ ]

    RFC §2 / D1 — Document the database engine and isolation level. Implement a guarded claim with an explicit successful external-publication owner. (Verify: Synchronize two consumers competing for one pending job under the intended database settings. Assert one winning claim and one externally visible digest.)

    • [ ]

    RFC §2 / D2 — Specify durable dispatch, retry and recovery, and publisher idempotency behavior. (Verify: Stop the worker immediately after commit before dispatch, then in a separate run after publisher acceptance before acknowledgment is persisted. Restart and assert eventual completion and exactly one externally visible digest in each run.)

    • [ ]

    RFC §1 / D3 — Supply the applied migration and intake transaction or equivalent atomic job association. (Verify: Deliver duplicates concurrently and retry after an interruption around job creation. Confirm one durable inbox row, one logical job, and the same returned job handle.)

    • [ ]

    RFC §3 / D4 — Document the single-worker pilot after blocker closure, the monitoring thresholds, and the worker-count rollback procedure. (Verify: Show that an injected duplicate and an overdue running job raise the required alerts. Exercise rollback of worker count and account for in-flight jobs before enabling two workers.)

    Delta Guard

    Section 2 reproduces 4 adopted contract snippet(s) from the supplied ledger.
    Compare the ledger with the source contract inventory to verify coverage.

    Source comparison completed before rendering. The adopted excerpts C1 through C4 were checked against the supplied RFC and reproduced verbatim above.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Review a high-risk pull request, architecture proposal, or production-readiness decision from architect, challenger, and maintainer perspectives. Record evidence and resolution criteria in a dispute ledger, then produce an engineering decision brief with a verdict, adopted contracts, rejected approaches, and follow-up checks.

    The included Python validator checks the ledger's evidence fields and sign-off rules. An unresolved high-severity rejection requires a BLOCK verdict. The Markdown renderer carries forward the adopted snippets recorded in the ledger. The audit compares those snippets to the reviewed material.

    The package also includes a 24-point concurrency and idempotency checklist and a six-section brief template. The validator uses Python 3.9+ standard library and makes no network calls. With shell access it can write a new brief in your workspace. The workflow also supports manual verification and a brief in chat.

    The audit covers the supplied files or proposal. The validator checks ledger fields and sign-off consistency. Source coverage and technical conclusions depend on the evidence available to the reviewer. Independent sign-off requires actual independent reviewers.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    Nothing to install. It runs in your AI agent.

    Optional
    Python 3.9+

    Python and shell access support local ledger validation and file rendering. The in-chat audit can work from a supplied diff or RFC.

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Reads the supplied review scope. When file deliverables are requested, the bundled validator runs locally and writes a new ledger or brief in the project workspace.

    Listed8 days ago

    What's inside

    Frequently Asked Questions

    Use it for high-risk pull requests, architecture RFCs, or rollout decisions where a reviewer needs a traceable record of evidence, disputes and adopted contracts.

    The in-chat audit can run from the material you supply. Shell access and Python 3.9+ are needed to run the bundled validator and render a new Markdown brief as a file.

    The package includes the four-phase audit instructions, a 24-point concurrency and idempotency checklist, a ledger format and six-section decision-brief template, and the standard-library Python validator and renderer.

    A rejected HIGH or CRITICAL dispute requires a BLOCK verdict. Conditional fallbacks need a stated guardrail and a trigger that reopens the decision. The reviewer checks the supporting evidence against the supplied material.

    It can return the brief in chat. When file deliverables are requested, the local workflow creates new audit files inside the project workspace. The renderer preserves the recorded adopted snippets and refuses to overwrite an existing output file.

    New in Code Quality & Review

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.