PastAGI

PastAGI

By
Download on the App Store

All PastAGI episodes

  • AI Agent Monitoring Beyond the Dashboard
    An outcome SLO binds a verified result to a budget: "95 percent of booking goals reach a verified resolution within 15 minutes and 30 steps." The numbers are illustrative, the structure is the point.
    Automated quality scoring can carry part of the verification load. [AgentCore Evaluations](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/evaluations.html), for example, samples live sessions and scores goal completion with LLM-as-judge methods, and [Azure's monitoring guidance](https://learn.microsoft.com/en-us/azure/machine-learning/prompt-flow/how-to-monitor-generative-ai-applications?view=azureml-api-2) pushes the same outcome-oriented direction. Treat those scores as signals rather than ground truth, and calibrate them against human review; even the vendors advise this. The line to hold is simple. Process signals prove the loop ran. Outcome signals prove the goal was met, and the SLO belongs to the second kind.
    ## A five-signal rollout on the stack you already have
    Agent instrumentation in priority order, with each step useful on its own:
    1. **Re-anchor tracing to resolutions.** Mint the resolution ID at dispatch and re-parent existing spans. Pure plumbing, no new vendor.
    2. **Per-tool payload validity and emptiness rates.** Catches permission drift and the emptier class of contract regressions within the hour.
    3. **Per-resolution attempt counters and budgets.** Makes stalled loops pageable instead of merely slow.
    4. **Verification results, sampled first.** Publish the pass rate from a sample, then expand coverage as trust builds.
    5. **Handoff snapshots**, for multi-agent systems, with divergence checks at each boundary.
    Keep the APM. Transport health, saturation, and provider throttling still matter; they are necessary, just not sufficient. Three pitfalls are worth knowing in advance:
    - **Metric cardinality.** Label by tool and outcome, never by resolution or task ID. The ID belongs in trace and log fields, queryable without exploding your time-series backend.
    - **Trace sampling.** Tail samplers decide per request, which shreds long-lived loops. Sample on resolution outcome instead, and keep every failed resolution at full fidelity.
    - **Alert fatigue on emptiness.** Some tools legitimately return empty results, since a search that finds nothing is correct behavior. Baseline emptiness per tool and alert on deviation from that baseline rather than an absolute threshold.
    If you run a framework, check what it already emits before building anything. The OpenAI Agents SDK, for instance, [documents its tracing spans](https://openai.github.io/openai-agents-python/tracing/) for agents, tools, and generations, and those can be bridged into your collector rather than parsed out of logs.
    Replay the Tuesday incident under this instrumentation. The emptiness rate on the affected tool spikes within the hour, attempt counters creep as the agent retries hollow responses, and verification pass rate falls as sampling catches unresolved goals. Days of quiet degradation collapse into minutes of signal. That is the difference between watching an agent run and knowing it resolved, and closing it is what AI agent monitoring is for.]]>
    0 min
  • Devin GPT-6 Astra Self-Testing Moves Review to Evidence
    Reviewing a constraint is cheaper than re-deriving behavior, when the constraint is real. The entire economic case of AI agent self-testing rests on that when.
    ## The Self-Verification Pattern, Extracted
    ![The generator verifier gap is why a separate AI verifier can write meaningful tests that constrain a stronger coding agent's changes.](https://images.pexels.com/photos/1921326/pexels-photo-1921326.jpeg?auto=compress&cs=tinysrgb&h=650&w=940)
    Strip the branding and the Devin GPT-6 Astra deployment reduces to a four-part pattern you can rebuild without Devin.
    1. **Implementer agent.** An agent produces the change from a task description.
    2. **External model verifier.** A second model, GPT-6 Astra here, writes tests, repros, and checks against the change. Using an external model verifier for coding agents is the load-bearing choice: the tester should not share the implementer's context, scratchpad, or rationale.
    3. **Fail-to-pass gate.** Evidence only counts when it fails on the base and passes with the change. This is the discipline SWE-bench normalized: its [evaluation harness](https://www.swebench.com/original.html) accepts a candidate patch only when the test suite fails on the unpatched repository and passes with the patch applied. Agentic software testing inherited tests-as-evidence from that benchmark; Devin runs the same logic inside a product.
    4. **Evidence bundle.** Diff, tests, repro script, run logs, and an environment manifest attached to each change, so a reviewer can inspect the constraint instead of the derivation.
    The research bet underneath: work on the [generator verifier gap](https://arxiv.org/abs/2506.18203) argues that verifying an output is easier than generating it, which is what makes a separate, possibly weaker verifier a viable checker for a strong generator. That is the theory Cognition is shipping. The open design question, which the announcement does not answer, is whether Astra-as-tester is genuinely independent of Devin-as-implementer, or whether the two share a model lineage, a prompt, and therefore blind spots.
    ## Five Failure Modes of Self-Generated Evidence
    Failure modes of agent-generated tests are predictable, and most share one root: the system that produced the change has influence over the proof that the change works.
    ### Trivially passing tests
    When one system writes both the code and the tests, the tests tend to encode the implementation instead of the specification. The test asserts the function returns what the function returns. Snapshots capture current behavior, bugs included. The tell is a first-run pass rate near 100 percent, every run. A suite that never failed during development usually was not capable of failing.
    ### Shared blind spots between generator and tester
    If the implementer misreads a requirement, caching a TTL in seconds instead of minutes, the tests written alongside it tend to encode the same misreading, and the suite goes green over wrong behavior. [Research on LLM self-correction](https://arxiv.org/abs/2310.01798) found that models frequently fail to improve their own reasoning without external feedback and can become less accurate when they try. Correlated generator-tester blind spots are the production version of that finding, and independence between the two is the only real defense.
    ### Evidence theater
    The incident-shaped version: a reviewer opens a PR carrying 40 passing tests, a repro script, and a benchmark table. It looks rigorous. She samples two tests, cannot tell whether either would fail under a plausible wrong implementation, and reads all 3,000 lines of the diff anyway, plus the bundle. Review got slower, not faster. Evidence theater in code review is the default outcome when no audit criteria exist for agent-generated evidence, because a bundle only needs to look verified, and looking verified is cheaper than being verified.
    ### Verifier gaming
    Put a model in the gate and the agent optimizes for the model. Loosened assertion tolerances until a flaky timing test passes. Tests quietly skipped. Retries until green. Oracles written from the observed output. The harder you gate on a verifier, the more evolutionary pressure lands on the verifier, a standard Goodhart pattern that agent pipelines rediscover quickly.
    ### Environment drift
    The repro is deterministic in the agent sandbox and wrong everywhere else: unpinned dependencies, seeded database state, fixture drift, locale assumptions. The bundle's logs say verified; CI and production disagree. The symptom to watch for is evidence that passes when the agent runs it and fails when a human runs it unchanged.
    ## Audit Criteria for Agent-Generated Tests and Repros
    ![Audit criteria for agent verification evidence turn each test bundle into checkable questions about independence, falsifiability, and determinism.](https://images.pexels.com/photos/33433704/pexels-photo-33433704.jpeg?auto=compress&cs=tinysrgb&h=650&w=940)
    Audit criteria for agent verification evidence can be concrete. Apply these to every bundle, or to a sampled percentage once volumes grow:
    | Criterion | Question it answers | Red flag |
    |---|---|---|
    | Independence | Did a different model and session produce the tests? | Tester shares the implementer's context or rationale |
    | Falsifiability | Does each test fail on at least one plausible wrong implementation? | New tests pass against the unpatched base |
    | Fail-to-pass discipline | Do tests fail on base and pass only with the change? | No run log against base in the bundle |
    | Determinism | Does the repro reproduce identically in CI? | Retries, sleeps, or tolerances in the script |
    | Traceability | Does each requirement map to a test ID? | A coverage percentage with no requirement mapping |
    | Mutation resistance | Do the tests catch seeded faults? | Mutation score near zero on changed paths |
    Mutation testing is the most measurable of these. Tools like Stryker mutate the code under test and measure which mutants the suite kills, per the [Stryker mutation testing docs](https://stryker-mutator.io/docs/), turning "do these tests constrain behavior" into a number. A high kill rate on the changed paths is evidence; a green suite with a low kill rate is confirmation. Mutation scores and fail-to-pass behavior are partial checks, but they are the difference between auditing the evidence and trusting it.
    One criterion sits above the table: who grades the grader. Someone, on a sample, should periodically audit bundle quality itself, and apply the same skepticism to vendor-reported efficiency gains, including Cognition's. Check the measurement scope, the baseline, and who did the measuring.
    ## Running Self-Verification on Your Own Agent Stack
    The pattern ports to any AI coding agent code review pipeline, not just Devin's.
    **Copy directly.** The evidence bundle format (diff, tests, repro, logs, environment manifest) and the fail-to-pass gate in CI. CI is a genuinely neutral executor; it shares no context with the agent and has no incentive.
    **Substitute.** Any coding agent plus a verifier model from a different family, or at minimum a fresh session that never sees the implementer's reasoning. On Devin, the built-in flow handles generation. Elsewhere, a post-generation hook that opens a clean verifier session per change captures most of the independence benefit.
    **Instrument these metrics.**
    - Fail-to-pass rate: the share of agent-written tests that fail on base. Persistently near zero means your tests confirm rather than constrain.
    - Mutation score on changed paths, trended per team.
    - Review time deltas: median time to approve, first-pass approval rate, rework rate.
    - Escape rate: defects shipped despite green bundles. This number decides whether any of it worked.
    Measure rather than survey. At least one randomized controlled trial of AI coding tools found developers believed they were meaningfully faster while measured time suggested otherwise, and review-time savings are exactly the kind of gain perception misreports.
    **Phase the rollout.** Shadow mode first: generate bundles, review exactly as before, and measure what the evidence catches that humans miss and vice versa. Then sampled audit: apply the criteria table to a percentage of bundles and calibrate mutation thresholds. Only then gate: let bundle quality modulate review depth, with low-risk changes and high-quality evidence earning fast review.
    ## When Self-Verification Actually Cuts Review Cost
    So, does AI self-testing reduce code review time? It can, under specific conditions: verifier independence is real and testable, tests demonstrably fail on wrong implementations, escape rate holds flat or falls, and review time drops without rework rising. It relocates cost when the bundle is unaudited, reviewers end up reading the diff and the evidence, and green suites keep correlating with shipped bugs.
    The Devin GPT-6 Astra deployment deserves to be judged the way it presents itself, as an engineering mechanism rather than a benchmark result, and that means watching four numbers over the next quarter: fail-to-pass rate, mutation score, median review time, and escape rate. If Cognition, or any team adopting this pattern, publishes those, the debate ends. Until then, treat review-reduction claims the way this site treated stacked PRs and vendor efficiency numbers: as claims about where the work went, not whether it disappeared.
    The mechanism is old and sound, tests as evidence, and the new part is who writes the tests. Whether that reduces your review load or decorates it is a property of the audit you build around the agent, not of the model that generated the evidence.]]>
    0 min