PastAGI

PastAGI

By
Download on the App Store

All PastAGI episodes

  • Human-in-the-Loop AI Agents That Pause for Hours
    Deny on timeout (the safe default for money and access), escalate to the next human in the chain, or auto-approve with audit for low-risk, high-volume actions. Silent indefinite waiting is the one indefensible default: the run leaks, the requester refreshes forever, and nobody owns the decision.
    **Keep the audit trail.** Who decided, when, on what evidence, and what the agent did next. Regulators and incident reviews will ask for exactly this, and [NIST's human oversight appendix](https://airc.nist.gov/airmf-resources/airmf/appendices/app-c-ai-risk-management-and-human-ai-interaction/) is a reasonable frame for what good oversight evidence looks like.
    ## A Shipping Checklist for Long-Running Agents
    1. Classify the workload: p95 wait, blocking cost, retry blast radius.
    2. Pick the resume architecture explicitly and record why: polling for internal tools, webhook plus 202 for most production, durable execution for hours-long or many-step runs.
    3. Assign an idempotency key to every mutating tool call and test the replay path.
    4. Checkpoint conversation, tool ledger, pending intent, schema version, identity, and approval metadata.
    5. Version persisted state and test resume across a deploy.
    6. Re-authenticate and rehydrate context on resume; assume every session, token, and context window is stale.
    7. Revalidate inputs at resume time and surface diffs instead of executing blindly.
    8. Enforce one decision per intent; handle duplicate approvals and webhook redelivery.
    9. Define the timeout policy, deadline, and escalation chain before launch.
    10. Emit an audit trail of every approval, decision, and resulting action.
    Then map your tools onto the rule: sub-minute internal waits stay synchronous; minutes in production means webhook plus 202; hours, many steps, or audit obligations means a durable execution engine. Step Functions task tokens, LangGraph interrupts, and ADK session state all reduce to one of these three shapes.
    The 83-second demo proves an agent can wait. Production asks whether it can come back hours later, act exactly once, and explain itself. That is resume-path engineering, and it is now on your checklist.]]>
    0 min
  • AI Agents for Data Science Lost to a 76.5% Baseline
    **Before:** "Improve the accuracy of this Titanic model."
    >
    > **After:** "Train an XGBoost classifier on Pclass, Sex, Fare, and family-size features. Stratified 5-fold CV, tune tree depth and learning rate, then submit."
    The second prompt is smaller, not harder. It collapses a search across every estimator family, preprocessing scheme, and feature set into a search across a handful of hyperparameters, inside a feedback loop, cross-validation, that the agent can run locally as often as it likes. Gradient boosting has been the default answer for structured data since [the original XGBoost paper](https://arxiv.org/abs/1603.02754) made it fast and portable; the human simply transferred that prior. In verification terms, the human acted as the external verifier, naming an acceptance region before the loop began.
    The third data point extends the lesson from words to structure. The evolved harness scored 79.90% with candidate runs averaging around 13 minutes, and its instructions read like an external verifier in prose: fix validation folds and seeds, fit preprocessing inside each fold, keep the search bounded, check the submission schema, stop on evidence. Treat the number as directional, since it was measured locally. The pattern is still unmistakable: as the scaffold supplied more of the checking discipline, the same underlying model got more competent.
    ## Which ML work to hand off and which to keep
    ![Human in the loop machine learning keeps the person as the verifier of record while the agent runs every loop it can check.](https://images.pexels.com/photos/8386434/pexels-photo-8386434.jpeg?auto=compress&cs=tinysrgb&h=650&w=940)
    The rule falls straight out of the mechanism: delegate machine learning tasks to an AI agent wherever feedback is executable and local, and keep whatever involves judgment, priors, or construction of the verifier itself.
    > Delegate every loop the agent can check. Keep the loop that checks the agent.
    | Workflow step | Feedback the agent gets | Verdict |
    |---|---|---|
    | Data loading, schema and dtype checks | Runs or fails instantly | Hand off |
    | Cleaning and imputation | Unit tests on inputs and outputs | Hand off, review the diff |
    | Experiment tracking, reproducible configs | Deterministic and checkable | Hand off |
    | EDA and feature ideation | Generation is cheap, validation is not | Split: agent drafts, human curates |
    | Feature implementation | Leakage and distribution tests | Hand off, gated by tests |
    | Estimator selection | No executable signal within an hour | Keep: name the family up front |
    | Validation design | This is the verifier itself | Keep |
    | Hyperparameter tuning | Local CV inside your fixed folds | Hand off inside a harness |
    | Submission and delivery checks | Schema, row order, format | Hand off |
    ### Build the verifier before you delegate
    The highest-leverage move is writing the missing feedback channel yourself, as code. Three tests change the game:
    1. **Baseline regression test.** A sex-only model must reproduce roughly 76.5% accuracy; any pipeline that cannot beat it fails before you waste a submission.
    2. **Leakage test.** Any feature whose computation touches the target, including target encodings fit on all rows, fails the suite.
    3. **Fold-stability test.** CV scores across seeds and folds must stay within a tolerance you set; if the spread is wider than the gain, the gain is noise.
    With those in place, a delegation prompt can look like this:
    ```text
    Train an XGBoost classifier on the Titanic data.
    - Features: Pclass, Sex, Fare, SibSp, Parch, Embarked, engineered family size
    - Fixed stratified 5-fold CV, seed 42, preprocessing fit inside each fold
    - Include a sex-only baseline cell and assert my pipeline beats it
    - Fail the suite if any feature is computed using the target
    - Stop after 10 trials with no CV improvement; report the best config
    ```
    ### What stays human
    Estimator priors and the shortlist: a gradient-boosted ensemble, a regularized linear baseline, and for small data a tabular foundation model. Judging whether a CV delta is real, using the fold-noise arithmetic above. Aligning your metric with the private leaderboard and deciding when to stop. And auditing leakage in whatever the agent proposes, because agents will happily build the Titanic classics, such as per-ticket or family-group survival rates computed over all rows. That is the human plus agent data science workflow in one sentence, and it is what human in the loop machine learning should actually mean in practice: the human is the verifier of record.
    ## Where this argument could break
    Calibration cuts both ways, so name the conditions that would weaken the thesis. Longer budgets blunt it, since with enough hours an agent can discover tree ensembles empirically. Better scaffolds blunt it, which is what the 79.90% local result already shows. AutoML-grade search over a bounded model space replaces the human prior with brute force. Richer held-out feedback, meaning solid local validation discipline and tooling that makes the leaderboard proxy less noisy, attacks the root cause directly.
    The prior itself may also migrate into tools. [The TabPFN paper in Nature](https://www.nature.com/articles/s41586-024-08328-6) reports a tabular foundation model that, in its evaluations, outperforms strong baselines including gradient boosting on small datasets, exactly the Titanic regime. If tabular priors ship inside the tools agents already call, the human no longer needs to type XGBoost, and the estimator-selection half of the argument dissolves. The verification-geometry half survives, because someone still has to design the check.
    A clean falsification would look like this: a default scaffold, a single short run, matching strong human baselines across many tabular competitions, replicated by someone with no product to demo. Nothing like that is public today, and the MLE-bench record suggests the gap is real but scaffold-dependent. Until such a result appears, the leverage is in building the verifier yourself and handing the agent everything inside it.]]>
    0 min
  • Version Control for AI Coding Agents Starts Above Git
    @
    Tools:
    ```
    This is prompt-to-commit traceability: link agent prompts to commits, and every commit can answer what was asked and of which model. It is comparable in spirit to SLSA provenance attestations, with one caveat. Trailers report whatever wrote them, so verification belongs to CI.
    ### 5. CI Gates That Enforce the Contract
    None of it survives contact with a rushed agent unless CI makes the contract load-bearing:
    - Manifest present on agent branches, and its file list matches the actual diff
    - Trailers present, non-empty, and consistent with the manifest's run ID
    - Environment hash pinned and resolvable
    - Declared test command executed, with the result recorded
    Trust structure mechanically. Trust content only after review.
    ## Where the Workaround Stack Leaks
    Honest accounting, component by component, with the requirement each leak generates tagged on the end:
    - **Worktree sprawl.** Every worktree is a full working tree. Ten concurrent agents on a large monorepo means real disk and real cleanup duty; `git worktree prune` belongs in a scheduled job. *Feeds requirement 5, concurrency beyond branches.*
    - **Manifest drift.** CI can verify the manifest names exactly the files in the diff. It cannot verify that the intent summary is honest. A manifest written after the diff is a confession, not a contract. *Feeds requirement 2, machine-first metadata.*
    - **Checkpoint weight.** WIP commits clutter branch history for anyone reading it raw, and snapshots capture only Git-visible state. A row the agent migrated in a database is in no snapshot. *Feeds requirement 3, environments as versioned artifacts.*
    - **Trailer trust.** Trailers are as honest as the harness writing them. Provenance written by the agent is marketing; provenance written by the wrapper and verified by CI is evidence. *Feeds requirement 4, provenance by default.*
    - **Review stays the bottleneck.** The manifest renders intent, and a human still judges it. Stacked diffs and machine pre-review help at the margins. This stack makes agent work auditable, not small. *Feeds requirement 7, review decoupled from file counts.*
    Five leaks, five numbered requirements. The next section writes out all eight: these five lines supply five of them, and the mismatches above plus the substrate case at the end account for the other three.
    ## A Requirements Spec for Agent-Native Version Control
    Eight requirements for agent-native source control fall straight out of the leaks above. Steal this for a tool evaluation or an internal RFC:
    | # | Requirement | What it must guarantee |
    |---|---|---|
    | 1 | Logical change units | A change is addressed by intent, not file list; revert and cherry-pick operate on the whole logical unit |
    | 2 | Machine-first metadata | Manifests and attestations are native objects; line diffs are rendered for humans on demand |
    | 3 | Environments as versioned artifacts | Dependencies, migrations, and tool state are pinned and hashed per commit |
    | 4 | Provenance by default | Every agent commit carries run ID, prompt hash, model, and tool versions |
    | 5 | Concurrency beyond branches | Dozens of agents work one repository without branch algebra |
    | 6 | Replayable runs | Commit plus environment plus prompt re-executes deterministically |
    | 7 | Review decoupled from file counts | Review units are logical chunks, machine-prechecked and human-judged |
    | 8 | Substrate compatibility | Content addressing and Git protocol interop survive, because the ecosystem will not migrate twice |
    Score any self-described Git replacement against all eight. Anything failing more than two is a prototype wearing a manifesto, and anything that passes was probably built by someone who ran the workaround stack first and felt every leak.
    ## A 30-Day Rollout and What Git Still Gets Right
    | Week | Focus | Exit criterion |
    |---|---|---|
    | 1 | Worktree isolation | Every agent runs in its own worktree and branch; zero shared checkouts |
    | 2 | Traceability | All agent commits carry trailers; spot-check ten commits resolve to prompts |
    | 3 | Manifests plus CI gates | An agent PR without a consistent manifest cannot merge |
    | 4 | Environment pinning and checkpoints | Agent branches carry an env hash; risky steps are preceded by a WIP snapshot |
    This is the AI coding agent workflow change you can land in a month, and it leaves Git's genuine strengths intact. Content addressing gives integrity and deduplication that successor designs quietly re-invent. Ecosystem gravity is real: every CI runner, IDE, and security scanner speaks Git. Even the platform layer is reinforcing that substrate rather than abandoning it, as [GitHub's new storage architecture](https://github.blog/engineering/architecture-optimization/inside-githubs-new-git-storage-architecture/) shows, re-engineered for write-heavy repository growth, the kind of traffic agent activity produces. Read that as an acknowledgment that agent workloads strain current assumptions, one that keeps the Git interface intact.
    So no, replacing Git outright is not the near-term play. Layer agent-native semantics over the content-addressed substrate, run the layer until its leaks are familiar, and you will have written the real spec. When a candidate arrives promising to end the Git era, hand it the eight requirements and your own leak list. If it earns the migration, you will recognize it, because it will look like your layer with the leaks closed.]]>
    0 min
  • Airbnb's AI Customer Support Agents Decoded for Builders
    If your golden set is older than your youngest policy version, your evals are measuring a product you no longer ship.
    ## The latency versus accuracy tradeoff
    ![Conversational AI latency budgets differ sharply between chat and voice channels, where silence reads as failure.](https://images.pexels.com/photos/7709255/pexels-photo-7709255.jpeg?auto=compress&cs=tinysrgb&h=650&w=940)
    The second tension from the interview is the trade between conversational AI latency and answer quality, and it resolves along two independent axes.
    **Channel tolerance.** In chat, a few seconds of "checking your reservation" reads as diligence. In real-time voice, silence is failure and the budget collapses. Airbnb's engineering writing on its voice channel, where machine learning routes calls and assists human reps rather than conversing freely, is consistent with a latency bar too tight for open-ended generation.
    **Action risk.** Speed beats thoroughness for reversible moves: answering a checkout question should be fast and cheap. Irreversible moves invert the math. Issuing a refund or suspending a listing justifies a slower, verified path: a policy lookup, an evidence check, sometimes a human confirmation step.
    The SRE discipline transfers directly. Google's [service level objectives chapter](https://sre.google/sre-book/service-level-objectives/) treats latency as a budgeted resource per service; agents need the same treatment per channel and per action class. The resulting operating points:
    | | Reversible action | Irreversible action |
    |---|---|---|
    | **Chat** | Optimize for speed, single-pass answers | Spend seconds on verification, then act |
    | **Voice** | Pre-cached, small-context, conservative answers | Defer: warm transfer or callback with full context |
    ## A build spec and eval playbook
    For teams building AI customer support agents, the analysis compresses into five copyable artifacts. All of this is reconstruction, and the numeric sketches are illustrative starting points, not Airbnb's numbers.
    ### Party state trace on a refund dispute
    | Turn | Event | State after | Authority check |
    |---|---|---|---|
    | 1 | Guest reports host no-show, demands full refund | claim_open, evidence ledger empty | May gather evidence |
    | 2 | Agent pulls reservation and messages, matches policy tier | evidence_complete, refund_proposed | Within ceiling, could execute |
    | 3 | Host disputes the no-show claim | contested, all four parties active | Above ceiling: escalate |
    The turn-three flip is the whole design lesson. Your state machine needs an explicit transition for "counterparty entered and invalidated the plan."
    ### Policy store versioning
    Store policies as versioned objects with an identifier, region scope, effective window, and a pointer to the golden set that grades them. Deploy the triple (policy version, prompt, corpus snapshot) atomically, so evals always grade the exact configuration serving traffic.
    ### Eval cadence
    | Trigger | Scope | Gate |
    |---|---|---|
    | Policy change | Golden set for affected versions | Block deploy on regression |
    | Model or prompt change | Full suite plus sampled production replays | Error analysis on new clusters |
    | Weekly | Drift sample of live transcripts | Alert on cluster growth |
    | Seasonal refresh | Regional golden sets | Re-baseline scores |
    ### Channel latency budget
    A reasonable first budget: chat end to end around three to five seconds with visible "checking" states; voice first audio inside roughly one second, which forces cached policy summaries and pre-fetched context instead of full retrieval mid-call. Budget the internals explicitly (routing, retrieval, guardrail checks, generation) or the budget gets spent invisibly.
    ### Escalation design
    Escalation is a designed state transition, not a failure mode. The handoff packet a rep receives should carry the summary, the evidence ledger, the policy versions consulted, risk flags, and where the conversation turned. Cheap escalations that preserve state beat heroic autonomy that loses it.
    ## What the public record leaves open
    Honesty about the gaps is part of the spec. The record does not disclose which foundation models power Airbnb's agents, how traffic splits between AI and human reps, what the eval infrastructure looks like, or any production accuracy figures. Those details would settle whether the inferences here match practice, and they are worth watching for in engineering blog posts, earnings calls, and eval-infrastructure job postings.
    For your own go or no-go decision, three questions do most of the work:
    1. Can you enumerate the parties and their authority boundaries on one page?
    2. Are your policies written, versioned, and owned by someone?
    3. Can you re-baseline your evals faster than your policies drift?
    Answer no to any of the three and the constraint is not your model choice or your prompt library; it is the operational ground the agent would stand on. Fix that first, or pick a domain where the answers are already yes. Support earned the word gnarly, and that is exactly why building it well teaches more than the easy deployments ever will.]]>
    0 min