Skip to content

feat: embed guarded browser tasks with resumable state - #148

Merged
senamakel merged 128 commits into
mainfrom
epic/202-tinycomputer
Oct 21, 2026
Merged

senamakel merged 128 commits into
mainfrom
epic/202-tinycomputer

Conversation

@senamakel

Copy link
Copy Markdown
Member

Add an embeddable browser task runtime so a server host can run Jev tasks in process with desktop dependencies optional. Hosts supply models, enforce an ActionGate, resolve secret facts by opaque handle, and inspect per-role usage. Paused input/human tasks export and import into a fresh manager while retaining their task identity and constraints.

The runtime also supports safe flow-prefix handoff, host recovery and payment continuation on the same browser session, atomic model-call reservations, cancellation/release ordering, private-field masking and fresh target validation. Payment checkpoints stay non-exportable. No hosted product default or production rollout changes here.

This rolls up the epic-branch work for #116 through #120 and subsequent guard, privacy, budget and lifecycle fixes. Part of tinyhumansai/openintents-core#202. Its qualification decision is NO-GO pending evidence; OpenHuman remains the host default.

Dependencies are pinned to canonical commits: TinyInference 0.5.0 with exact usage accounting (tinyhumansai/tinyinference#115), agent-browser ZIP/TLS hardening (tinyhumansai/agent-browser#8), and TinyBus main. Suggested integration order is the dependency PRs, this PR, then the host PR. All pinned commits already exist in their canonical repositories.

Validation: locked all-target/all-feature workspace check, formatting and strict engine/browser Clippy passed. Full engine and browser suites passed (546 and 290 tests). Fresh parent tests on the final dependency pin passed 15 budget tests and 3 usage tests. The pin includes the verified usage recovery and mixed-precision aggregation fixes. Desktop/platform CI remains for the final hosted pass.

Leave this final integration PR open for full CI and review; preserve individual commits.

senamakel and others added 30 commits October 21, 2026 02:54
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
…/tinycomputer into epic-202-u4-models

# Conflicts:
#	crates/tinycomputer-engine/src/agentic/runtime.rs
#	crates/tinycomputer-engine/src/lib.rs
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
senamakel and others added 2 commits October 21, 2026 17:36
Co-authored-by: Medulla <medulla@tinyhumans.ai>
chore: pin TinyInference usage aggregation fix
@tinysweeper

tinysweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Tiny Sweeper review

Findings

No active actionable findings.

Advisory notes

  • medium: Exclude host policy refusals by the code they actually carry ((pull request description))
    Problem: `ACTION_REFUSED` is never produced anywhere in the crate. A gate refusal is `Error::ActionRefused`, whose `wire_name()` is `errors::BLOCKED_BY_POLICY`, and `failure()` turns that i
    Suggested fix:
        reply.error.as_ref().is_some_and(|error| {
            error.code != "POLICY_DENIED" && error.message.contains("is covered by")
        })
    

Verdict: Incomplete · Priority: medium
Coverage: Reviewed 109 of 133 files; not reviewed: Cargo.lock, vendor/agent-bro…, and 2 additional unreviewed files; not reviewed (large PR): crates/tinycompu…, crates/tinycompu…, and 18 additional unreviewed files.

Diagnostics and supporting details

Full summary

Pull request purpose (title): feat: embed guarded browser tasks with resumable state. Tiny Sweeper completed its review; deterministic results follow.

Unreviewed paths

  • Cargo.lock
  • crates/tinycomputer-browser/src/action_gate.rs
  • crates/tinycomputer-browser/src/action_gate_tests.rs
  • crates/tinycomputer-browser/src/observer.rs
  • crates/tinycomputer-browser/src/observer_tests.rs
  • crates/tinycomputer-browser/src/surface/envelope.rs
  • crates/tinycomputer-browser/src/surface/envelope_tests.rs
  • crates/tinycomputer-core/src/surface/surface_tests/delivery_tests.rs
  • crates/tinycomputer-engine/src/planner/mod.rs
  • crates/tinycomputer-engine/src/task/browser_redaction_tests.rs
  • crates/tinycomputer-engine/src/task/budget.rs
  • crates/tinycomputer-engine/src/task/cancel.rs
  • crates/tinycomputer-engine/src/task/cancel_tests.rs
  • crates/tinycomputer-engine/src/task/persistence.rs
  • crates/tinycomputer-engine/src/task/resume.rs
  • crates/tinycomputer-engine/src/task/store.rs
  • crates/tinycomputer-engine/src/task/task_tests/payment_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs
  • crates/tinycomputer/Cargo.toml
  • crates/tinycomputer/src/tinybus_module/runner.rs
  • docs/technical/specs/desktop-module-contract.md
  • vendor/agent-browser
  • vendor/tinybus
  • vendor/tinyinference

Partial review reasons

  • critique: crates/tinycomputer-browser/src/action_gate.rs — not selected by the large-review budget
  • security: crates/tinycomputer-browser/src/action_gate.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-browser/src/action_gate_tests.rs — not selected by the large-review budget
  • security: crates/tinycomputer-browser/src/action_gate_tests.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-browser/src/observer.rs — not selected by the large-review budget
  • security: crates/tinycomputer-browser/src/observer.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-browser/src/observer_tests.rs — not selected by the large-review budget
  • security: crates/tinycomputer-browser/src/observer_tests.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-browser/src/surface/envelope.rs — not selected by the large-review budget
  • security: crates/tinycomputer-browser/src/surface/envelope.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-browser/src/surface/envelope_tests.rs — not selected by the large-review budget
  • security: crates/tinycomputer-browser/src/surface/envelope_tests.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-core/src/surface/surface_tests/delivery_tests.rs — not selected by the large-review budget
  • security: crates/tinycomputer-core/src/surface/surface_tests/delivery_tests.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/planner/mod.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/planner/mod.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/task/browser_redaction_tests.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/task/browser_redaction_tests.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/task/budget.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/task/budget.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/task/cancel.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/task/cancel.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/task/cancel_tests.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/task/cancel_tests.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/task/persistence.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/task/persistence.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/task/resume.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/task/resume.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/task/store.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/task/store.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/task/task_tests/payment_tests.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/task/task_tests/payment_tests.rs — not selected by the large-review budget
  • critique: crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs — not selected by the large-review budget
  • security: crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs — not selected by the large-review budget
  • critique: crates/tinycomputer/Cargo.toml — not selected by the large-review budget
  • security: crates/tinycomputer/Cargo.toml — not selected by the large-review budget
  • critique: crates/tinycomputer/src/tinybus_module/runner.rs — not selected by the large-review budget
  • security: crates/tinycomputer/src/tinybus_module/runner.rs — not selected by the large-review budget
  • critique: docs/technical/specs/desktop-module-contract.md — not selected by the large-review budget

Review snapshot

Change surface Files Review signal Count
Production 68 Active findings 0
Tests 49 Noted findings 1
Documentation 9 Resolved findings 0
Configuration 3 Pending checks/questions 59

Completeness: Incomplete
Test assessment: Test coverage is assessed from changed tests and lane evidence; execution is not claimed without trusted check data.

What changed

Whole pull-request diff spans 133 files with 12,694 additions and 619 deletions. Latest-push delta unavailable: from c79852e to 06f3449, with reason that there is no trusted base-to-head diff comparison; cached prompt differences are not a proven push delta.

Features

  • Added — In-process browser task runtime with optional desktop: Adds BrowserRunner and makes Tasks usable directly on browser sessions without TinyBus or a desktop adapter; the default desktop feature keeps desktop entry points available while embedding hosts can disable it. (crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/lib.rs, crates/tinycomputer-engine/Cargo.toml, crates/tinycomputer-engine/README.md)
  • Added — Host action gate and observer: Adds ActionGate/ActionRequest/ActionVerdict so a trusted host can refuse typed actions, raw commands, evaluations, navigations, and observations before they reach the page; ActionObserver receives successful metadata without request payload or typed values. (crates/tinycomputer-browser/src/action_gate.rs, crates/tinycomputer-browser/src/observer.rs, crates/tinycomputer-browser/src/sessions/mod.rs, crates/tinycomputer-browser/src/sessions/page.rs)
  • Added — Opaque secret handles and SecretHost redaction: Adds fact_handles with opaque handle, mask, and kind, plus SecretHost typing/redaction; handles stay host-side, duplicate value/handle names are refused, and host-held values are scrubbed from model inputs, screens, traces, and reports. (crates/tinycomputer-bus/src/agent/types/request.rs, crates/tinycomputer-core/src/facts/mod.rs, crates/tinycomputer-engine/src/task/secret_host.rs, crates/tinycomputer-engine/src/agentic/flow/secret.rs, crates/tinycomputer-engine/src/task/browser.rs)
  • Added — Per-role model usage accounting: Adds TaskUsage/ModelUsage and UsageRecorder so Jev, planner, rescue, and output calls accumulate provider-reported tokens and costs, with unknown measurements omitted rather than estimated. (crates/tinycomputer-bus/src/agent/types/usage.rs, crates/tinycomputer-engine/src/usage.rs, crates/tinycomputer-bus/src/agent/types/status.rs, crates/tinycomputer-bus/src/agent/types/report.rs)
  • Added — Paused-task export and import: Adds versioned snapshots for resumable input/approval/human pauses that retain task id, constraints, flow continuation, reports, budget spend, and usage while omitting inline secret values and refusing payment checkpoints or host-bound endpoints. (crates/tinycomputer-engine/src/task/persistence.rs, crates/tinycomputer-engine/src/task/controller.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs)
  • Added — Prefix handoff and host recovery on the retained browser session: Adds handoff_to_planner, host plan recovery, failed-step recovery, and payment continuation paths that keep the same task and current browser page, charge one task budget, and reject plans that navigate away or reopen the start page. (crates/tinycomputer-engine/src/task/drive.rs, crates/tinycomputer-engine/src/task/plan_recovery.rs, crates/tinycomputer-engine/src/task/recovery.rs, crates/tinycomputer-engine/src/task/controller.rs)
  • Modified — Cancellation and close retry ordering: Cancellation can wait for worker quiescence before runner release; a failed browser close keeps the session unconfirmed in the table so normal operations stay refused and an explicit later close may retry. (crates/tinycomputer-engine/src/task/cancel.rs, crates/tinycomputer-browser/src/sessions/mod.rs, crates/tinycomputer-browser/src/sessions/sessions_tests/lifecycle_tests.rs)
  • Modified — Private-field masking and fresh target validation: Adds without_form_values and private sight/tree/cover paths so editable control values are hidden from task observations, while shadow reads remap Sight candidates only to unique current native refs. (crates/tinycomputer-browser/src/surface/operations.rs, crates/tinycomputer-browser/src/surface/mod.rs, crates/tinycomputer-browser/src/surface/tree.rs, crates/tinycomputer-browser/src/surface/sight/sight.js)
  • 1 additional supported feature(s) omitted by the configured limit.

Tests

  • behavioral gate and observation tests — Gate refusals stop actions before dispatch, observations are classified by fixed purpose, debug output omits values and page URLs, and snapshots are discarded if the live URL changes during observation.: Tests lane reports these are behavioral assertions on consequences; the lane also flags the inline test module rule violation in crates/tinycomputer-browser/src/surface/operations.rs. Not evidence of execution. (crates/tinycomputer-browser/src/sessions/sessions_tests/page_tests.rs, crates/tinycomputer-browser/src/observer_tests.rs, crates/tinycomputer-browser/src/surface/surface_tests/operations_tests.rs)
  • behavioral persistence tests — Paused tasks round-trip into a fresh controller, omit inline secret values, retain opaque handles, drop process-local screenshots, refuse payment checkpoints and host-bound endpoints, and enforce canonical task ids.: Tests lane reports persistence consequences are pinned; not evidence of execution. (crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs)
  • behavioral cancellation and close tests — cancel_and_wait joins the worker before release; a failed close keeps the session unconfirmed and permits an explicit retry; a second close waits for the in-flight close.: Tests lane reports these lifecycle consequences are pinned; not evidence of execution. (crates/tinycomputer-engine/src/task/cancel_tests.rs, crates/tinycomputer-browser/src/sessions/sessions_tests/lifecycle_tests.rs)
  • behavioral handoff and recovery tests — A completed prefix hands the same task and surface to the planner, rejects reopening the shop start page, preserves handoff across export/import, and shares one host call budget across plan recovery and later failed-step recovery.: Tests lane reports these consequences are pinned; not evidence of execution. (crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs, crates/tinycomputer-engine/src/task/task_tests/rescue_tests.rs)

Before merge

  • Complete the critique review for crates/tinycomputer-engine/src/task/task_tests/payment_tests.rs, crates/tinycomputer/Cargo.toml, crates/tinycomputer-engine/src/task/persistence.rs, crates/tinycomputer-engine/src/task/budget.rs, crates/tinycomputer-browser/src/action_gate.rs, crates/tinycomputer-browser/src/action_gate_tests.rs, crates/tinycomputer-engine/src/planner/mod.rs, crates/tinycomputer-browser/src/observer.rs, crates/tinycomputer-browser/src/observer_tests.rs, crates/tinycomputer-engine/src/task/cancel.rs, crates/tinycomputer-engine/src/task/cancel_tests.rs, crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs, crates/tinycomputer-engine/src/task/store.rs, crates/tinycomputer-engine/src/task/browser_redaction_tests.rs, crates/tinycomputer/src/tinybus_module/runner.rs, crates/tinycomputer-engine/src/task/resume.rs, docs/technical/specs/desktop-module-contract.md, crates/tinycomputer-browser/src/surface/envelope.rs, crates/tinycomputer-browser/src/surface/envelope_tests.rs, crates/tinycomputer-core/src/surface/surface_tests/delivery_tests.rs.
  • Complete the security review for crates/tinycomputer-engine/src/task/task_tests/payment_tests.rs, crates/tinycomputer/Cargo.toml, crates/tinycomputer-engine/src/task/persistence.rs, crates/tinycomputer-engine/src/task/budget.rs, crates/tinycomputer-browser/src/action_gate.rs, crates/tinycomputer-browser/src/action_gate_tests.rs, crates/tinycomputer-engine/src/planner/mod.rs, crates/tinycomputer-browser/src/observer.rs, crates/tinycomputer-browser/src/observer_tests.rs, crates/tinycomputer-engine/src/task/cancel.rs, crates/tinycomputer-engine/src/task/cancel_tests.rs, crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs, crates/tinycomputer-engine/src/task/store.rs, crates/tinycomputer-engine/src/task/browser_redaction_tests.rs, crates/tinycomputer/src/tinybus_module/runner.rs, crates/tinycomputer-engine/src/task/resume.rs, crates/tinycomputer-browser/src/surface/envelope.rs, crates/tinycomputer-browser/src/surface/envelope_tests.rs, crates/tinycomputer-core/src/surface/surface_tests/delivery_tests.rs.
  • Review uncovered paths: crates/tinycomputer-browser/src/action_gate.rs, crates/tinycomputer-browser/src/action_gate_tests.rs, crates/tinycomputer-browser/src/observer.rs, crates/tinycomputer-browser/src/observer_tests.rs, crates/tinycomputer-browser/src/surface/envelope.rs, crates/tinycomputer-browser/src/surface/envelope_tests.rs, crates/tinycomputer-core/src/surface/surface_tests/delivery_tests.rs, crates/tinycomputer-engine/src/planner/mod.rs, crates/tinycomputer-engine/src/task/browser_redaction_tests.rs, crates/tinycomputer-engine/src/task/budget.rs, crates/tinycomputer-engine/src/task/cancel.rs, crates/tinycomputer-engine/src/task/cancel_tests.rs, crates/tinycomputer-engine/src/task/persistence.rs, crates/tinycomputer-engine/src/task/resume.rs, crates/tinycomputer-engine/src/task/store.rs, crates/tinycomputer-engine/src/task/task_tests/payment_tests.rs, crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs, crates/tinycomputer/Cargo.toml, crates/tinycomputer/src/tinybus_module/runner.rs, docs/technical/specs/desktop-module-contract.md.
Agent review details

critique

  • Conclusion: Neutral
  • Scope reviewed: incomplete; unanswered files: crates/tinycomputer-engine/src/task/task_tests/payment_tests.rs, crates/tinycomputer/Cargo.toml, crates/tinycomputer-engine/src/task/persistence.rs, crates/tinycomputer-engine/src/task/budget.rs, crates/tinycomputer-browser/src/action_gate.rs, crates/tinycomputer-browser/src/action_gate_tests.rs, crates/tinycomputer-engine/src/planner/mod.rs, crates/tinycomputer-browser/src/observer.rs, crates/tinycomputer-browser/src/observer_tests.rs, crates/tinycomputer-engine/src/task/cancel.rs, crates/tinycomputer-engine/src/task/cancel_tests.rs, crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs, crates/tinycomputer-engine/src/task/store.rs, crates/tinycomputer-engine/src/task/browser_redaction_tests.rs, crates/tinycomputer/src/tinybus_module/runner.rs, crates/tinycomputer-engine/src/task/resume.rs, docs/technical/specs/desktop-module-contract.md, crates/tinycomputer-browser/src/surface/envelope.rs, crates/tinycomputer-browser/src/surface/envelope_tests.rs, crates/tinycomputer-core/src/surface/surface_tests/delivery_tests.rs
  • Lane summary: Reviewed 6 of 26 files — 20 not reviewed. Reviewed 6 files; 5 findings. 20 files were omitted: not selected by the large-review budget.

security

  • Conclusion: Neutral
  • Scope reviewed: incomplete; unanswered files: crates/tinycomputer-engine/src/task/task_tests/payment_tests.rs, crates/tinycomputer/Cargo.toml, crates/tinycomputer-engine/src/task/persistence.rs, crates/tinycomputer-engine/src/task/budget.rs, crates/tinycomputer-browser/src/action_gate.rs, crates/tinycomputer-browser/src/action_gate_tests.rs, crates/tinycomputer-engine/src/planner/mod.rs, crates/tinycomputer-browser/src/observer.rs, crates/tinycomputer-browser/src/observer_tests.rs, crates/tinycomputer-engine/src/task/cancel.rs, crates/tinycomputer-engine/src/task/cancel_tests.rs, crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs, crates/tinycomputer-engine/src/task/store.rs, crates/tinycomputer-engine/src/task/browser_redaction_tests.rs, crates/tinycomputer/src/tinybus_module/runner.rs, crates/tinycomputer-engine/src/task/resume.rs, crates/tinycomputer-browser/src/surface/envelope.rs, crates/tinycomputer-browser/src/surface/envelope_tests.rs, crates/tinycomputer-core/src/surface/surface_tests/delivery_tests.rs
  • Lane summary: Reviewed 6 of 25 files — 19 not reviewed. Reviewed 6 files; 0 findings. 19 files were omitted: not selected by the large-review budget. 1 file was not security-reviewed: docs/technical/specs/desktop-module-contract.md (prose or tabular data).

tests

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The tests lane answered that, apart from the inline test module rule violation, behavioral additions are pinned by consequence tests: failed-close retry state, gate refusal before dispatch, snapshot re-checking after URL changes, secret redaction in screenshots/reports/rescue prompts, and host-work budget guards.
  • Lane summary: A rule-violation finding only: the pull request adds an inline test module in `surface/operations.rs` even though the repository requires unit tests to live in a separate `<module>_tests.rs` beside the module root, and this same PR edits the sanctioned `surface/surface_tests/operations_tests.rs`. Otherwise the behavioural additions here are pinned by tests that would fail on regression — the failed-close retry state, gate refusal before dispatch, snapshot re-checking after the live URL changes, secret redaction in screenshots/reports/rescue prompts, and the host-work budget guards each have a test asserting the consequence, not merely that a call returned. _The code index is behind this pull request (indexed at `4a5ca91333ff`), so retrieved context may be out of date._

commits

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The commits lane answered that it found no sensitive content in committed files.
  • Lane summary: No sensitive content in committed files. _The code index is behind this pull request (indexed at `4a5ca91333ff`), so retrieved context may be out of date._

description

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The description lane answered that the description matches the diff for ActionGate/ActionObserver, opaque secret handles, per-role usage, export/import of paused tasks, prefix handoff, payment continuation, budget reservations, cancellation ordering, form-value masking, and the contract bump to 2.24 plus spec notes.
  • Lane summary: The description matches what the diff does: ActionGate/ActionObserver, opaque secret handles, per-role usage, export/import of paused tasks, prefix handoff, payment continuation, budget reservations, cancellation ordering and form-value masking are all present, and the contract bump to 2.24 plus its spec notes are covered by the diff. One defect: the guard added to `covered` tests for an error code the refusal path never produces, so a host policy refusal can still be retried as a covered-target click. _The code index is behind this pull request (indexed at `4a5ca91333ff`), so retrieved context may be out of date._
Evidence and run details
  • Models: ladder/vectors-oai3, deepseek-v4.1-flash
  • Spend: $0.018003
  • Tokens: 1867817 input · 234494 output · 422272 cached · 758 embedding
  • Updated: 2026-10-21T17:28:35Z
  • Continuity: summary cache chain restarted at the storage ceiling.
Head State Pass summary
bfc73c3e2aa1 incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-21T12:11:24Z)
b2de3466c658 incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-21T12:29:31Z)
c79852ef7dfb incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-21T16:49:24Z)
06f34495a057 incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-21T17:28:35Z)

tinysweeper 0.1.2

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T17:32:26.310552Z 06f3449 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 132 billable files and costs up to $33.00.

Or wait 56 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd3e2091-5676-4146-a06c-87707be41cae
📥 Commits

Reviewing files that changed from the base of the PR and between 2523601 and 06f3449.

⛔ Files ignored due to path filters: 1
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing: 132
  • crates/tinycomputer-browser/src/action_gate.rs
  • crates/tinycomputer-browser/src/action_gate_tests.rs
  • crates/tinycomputer-browser/src/error/error_tests.rs
  • crates/tinycomputer-browser/src/error/mod.rs
  • crates/tinycomputer-browser/src/fake/mod.rs
  • crates/tinycomputer-browser/src/lib.rs
  • crates/tinycomputer-browser/src/observer.rs
  • crates/tinycomputer-browser/src/observer_tests.rs
  • crates/tinycomputer-browser/src/sessions/mod.rs
  • crates/tinycomputer-browser/src/sessions/page.rs
  • crates/tinycomputer-browser/src/sessions/sessions_tests/lifecycle_tests.rs
  • crates/tinycomputer-browser/src/sessions/sessions_tests/page_tests.rs
  • crates/tinycomputer-browser/src/surface/card.rs
  • crates/tinycomputer-browser/src/surface/cover.rs
  • crates/tinycomputer-browser/src/surface/envelope.rs
  • crates/tinycomputer-browser/src/surface/envelope_tests.rs
  • crates/tinycomputer-browser/src/surface/mod.rs
  • crates/tinycomputer-browser/src/surface/operations.rs
  • crates/tinycomputer-browser/src/surface/sight/mod.rs
  • crates/tinycomputer-browser/src/surface/sight/sight.js
  • crates/tinycomputer-browser/src/surface/sight/sight_tests/live_cover_tests.rs
  • crates/tinycomputer-browser/src/surface/sight/sight_tests/live_tests.rs
  • crates/tinycomputer-browser/src/surface/sight/sight_tests/reading_tests.rs
  • crates/tinycomputer-browser/src/surface/surface_tests/cover_tests.rs
  • crates/tinycomputer-browser/src/surface/surface_tests/operations_tests.rs
  • crates/tinycomputer-browser/src/surface/surface_tests/perception_tests.rs
  • crates/tinycomputer-browser/src/surface/surface_tests/tree_tests.rs
  • crates/tinycomputer-browser/src/surface/tabs.rs
  • crates/tinycomputer-browser/src/surface/tree.rs
  • crates/tinycomputer-bus/README.md
  • crates/tinycomputer-bus/src/agent/agent_tests.rs
  • crates/tinycomputer-bus/src/agent/mod.rs
  • crates/tinycomputer-bus/src/agent/types/mod.rs
  • crates/tinycomputer-bus/src/agent/types/models.rs
  • crates/tinycomputer-bus/src/agent/types/report.rs
  • crates/tinycomputer-bus/src/agent/types/request.rs
  • crates/tinycomputer-bus/src/agent/types/status.rs
  • crates/tinycomputer-bus/src/agent/types/usage.rs
  • crates/tinycomputer-bus/src/agent/types/usage_tests.rs
  • crates/tinycomputer-bus/src/browser/session/session_tests.rs
  • crates/tinycomputer-bus/src/flow/flow_tests.rs
  • crates/tinycomputer-bus/src/flow/types/request.rs
  • crates/tinycomputer-bus/src/version/mod.rs
  • crates/tinycomputer-bus/src/version/version_tests.rs
  • crates/tinycomputer-core/src/error/mod.rs
  • crates/tinycomputer-core/src/facts/facts_tests.rs
  • crates/tinycomputer-core/src/facts/mod.rs
  • crates/tinycomputer-core/src/lib.rs
  • crates/tinycomputer-core/src/surface/mod.rs
  • crates/tinycomputer-core/src/surface/surface_tests/delivery_tests.rs
  • crates/tinycomputer-engine/Cargo.toml
  • crates/tinycomputer-engine/README.md
  • crates/tinycomputer-engine/src/agentic/agentic_tests.rs
  • crates/tinycomputer-engine/src/agentic/flow/backend/mod.rs
  • crates/tinycomputer-engine/src/agentic/flow/brief.rs
  • crates/tinycomputer-engine/src/agentic/flow/decide.rs
  • crates/tinycomputer-engine/src/agentic/flow/enter/fill.rs
  • crates/tinycomputer-engine/src/agentic/flow/escalate/belief.rs
  • crates/tinycomputer-engine/src/agentic/flow/flow_tests.rs
  • crates/tinycomputer-engine/src/agentic/flow/flow_tests/hedge_tests.rs
  • crates/tinycomputer-engine/src/agentic/flow/flow_tests/quorum_tests.rs
  • crates/tinycomputer-engine/src/agentic/flow/flow_tests/secret_tests.rs
  • crates/tinycomputer-engine/src/agentic/flow/flow_tests/simulator.rs
  • crates/tinycomputer-engine/src/agentic/flow/look.rs
  • crates/tinycomputer-engine/src/agentic/flow/mod.rs
  • crates/tinycomputer-engine/src/agentic/flow/run.rs
  • crates/tinycomputer-engine/src/agentic/flow/secret.rs
  • crates/tinycomputer-engine/src/agentic/journal/journal_tests.rs
  • crates/tinycomputer-engine/src/agentic/mod.rs
  • crates/tinycomputer-engine/src/agentic/reply.rs
  • crates/tinycomputer-engine/src/agentic/runtime.rs
  • crates/tinycomputer-engine/src/agentic/runtime_tests.rs
  • crates/tinycomputer-engine/src/agentic/sage/mod.rs
  • crates/tinycomputer-engine/src/agentic/screen/mod.rs
  • crates/tinycomputer-engine/src/lib.rs
  • crates/tinycomputer-engine/src/planner/config.rs
  • crates/tinycomputer-engine/src/planner/hosted.rs
  • crates/tinycomputer-engine/src/planner/mod.rs
  • crates/tinycomputer-engine/src/planner/planner_tests.rs
  • crates/tinycomputer-engine/src/planner/planner_tests/retry_tests.rs
  • crates/tinycomputer-engine/src/rescue/mod.rs
  • crates/tinycomputer-engine/src/shape/mod.rs
  • crates/tinycomputer-engine/src/task/browser.rs
  • crates/tinycomputer-engine/src/task/browser_redaction_tests.rs
  • crates/tinycomputer-engine/src/task/browser_tests.rs
  • crates/tinycomputer-engine/src/task/budget.rs
  • crates/tinycomputer-engine/src/task/cancel.rs
  • crates/tinycomputer-engine/src/task/cancel_tests.rs
  • crates/tinycomputer-engine/src/task/controller.rs
  • crates/tinycomputer-engine/src/task/describe.rs
  • crates/tinycomputer-engine/src/task/drive.rs
  • crates/tinycomputer-engine/src/task/interpret.rs
  • crates/tinycomputer-engine/src/task/mod.rs
  • crates/tinycomputer-engine/src/task/persistence.rs
  • crates/tinycomputer-engine/src/task/plan_recovery.rs
  • crates/tinycomputer-engine/src/task/publish.rs
  • crates/tinycomputer-engine/src/task/recovery.rs
  • crates/tinycomputer-engine/src/task/resume.rs
  • crates/tinycomputer-engine/src/task/secret_host.rs
  • crates/tinycomputer-engine/src/task/secret_host_tests.rs
  • crates/tinycomputer-engine/src/task/store.rs
  • crates/tinycomputer-engine/src/task/task_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/output_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/payment_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/rescue_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/runner_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/start_tests.rs
  • crates/tinycomputer-engine/src/task/task_tests/status_tests.rs
  • crates/tinycomputer-engine/src/usage.rs
  • crates/tinycomputer-engine/src/usage_tests.rs
  • crates/tinycomputer-examples/src/bin/task_in_process.rs
  • crates/tinycomputer-examples/src/bin/task_live/main.rs
  • crates/tinycomputer-skills/skills/tinycomputer/SKILL.md
  • crates/tinycomputer/Cargo.toml
  • crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs
  • crates/tinycomputer/src/tinybus_module/dispatch/accessibility_tests.rs
  • crates/tinycomputer/src/tinybus_module/runner.rs
  • crates/tinycomputer/src/tinybus_module/tinybus_module_tests/tasks_tests.rs
  • crates/tinycomputer/tests/public_api_tests.rs
  • deny.toml
  • docs/crates/tinycomputer-engine/README.md
  • docs/crates/tinycomputer-engine/jev-runtime.md
  • docs/crates/tinycomputer-engine/tasks.md
  • docs/technical/specs/desktop-module-contract.md
  • docs/technical/specs/unified-agent.md
  • docs/technical/tasks.md
  • vendor/agent-browser
  • vendor/tinybus
  • vendor/tinyinference
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@tinysweeper tinysweeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

tinysweeper found nothing blocking, but could not review everything, so this is not an approval: crates/tinycomputer-browser/src/action_gate.rs, crates/tinycomputer-browser/src/error/error_tests.rs, crates/tinycomputer-browser/src/error/mod.rs, crates/tinycomputer-browser/src/fake/mod.rs, crates/tinycomputer-browser/src/lib.rs, crates/tinycomputer-browser/src/observer.rs, crates/tinycomputer-browser/src/sessions/mod.rs, crates/tinycomputer-browser/src/sessions/page.rs and 115 more.

$0.0001 · 0 in / 0 out · 775 embedded · ladder/vectors-oai3

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bfc73c3e2a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,724 @@
//! A browser-only [`super::FlowRunner`] for hosts embedding the engine.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Split oversized task modules by responsibility

This change introduces task/browser.rs at 724 lines and task/persistence.rs at 611 lines while expanding drive.rs, controller.rs, and recovery.rs to roughly 959, 803, and 498 lines respectively. These exceed the repository's module-size boundary and concentrate several independent responsibilities in single files; convert them to focused folder modules before merging.

AGENTS.md reference: AGENTS.md:L199-L214

Useful? React with 👍 / 👎.

senamakel and others added 3 commits October 21, 2026 17:50
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
fix(engine): keep stable Clippy clean with checked task ids

@tinysweeper tinysweeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

tinysweeper found nothing blocking, but could not review everything, so this is not an approval: crates/tinycomputer-browser/src/sessions/sessions_tests/lifecycle_tests.rs, crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/task/store.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs, crates/tinycomputer-engine/src/task/task_tests/plan_tests.rs, crates/tinycomputer/tests/public_api_tests.rs, tinysweeper/description, tinysweeper/tests.

$0.0001 · 0 in / 0 out · 775 embedded · ladder/vectors-oai3

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2de3466c6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@senamakel senamakel self-assigned this Oct 21, 2026
senamakel and others added 6 commits October 21, 2026 16:21
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e70bef3a52

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Co-authored-by: Medulla <medulla@tinyhumans.ai>

@tinysweeper tinysweeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

tinysweeper could not complete coverage (16 unanswered item(s)), so this is not an approval.

Diagnostics

Total spend: $0.0207

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c79852ef7d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

senamakel and others added 2 commits October 21, 2026 17:18
Payment continuations now reserve each planner call against the task
budget before starting, refuse the transition when the budget is
exhausted, and reject plans that navigate away from the current checkout
page. Cancelling a payment checkpoint also closes its authorization so it
cannot be replayed, and evicted tasks release their runner slots.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The payment budget helper now binds the task call budget to a local before
starting payment work, instead of chaining the calls in one expression. This
keeps the lock guard from being held across the begin_payment_work call and
makes the borrow lifetimes explicit.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

tasks.remove(&oldest_final);

P2 Badge Release retained checkpoints before start-task eviction

When the 32-entry task store is full and its oldest final entry is a non-continuable payment checkpoint, starting another task removes that cell without calling runner.release. Such checkpoints intentionally retain their browser session, so the task becomes unreachable while its BrowserRunner surface still consumes one of the eight browser slots; repeated evictions can exhaust all slots. Release the evicted cell's task resources as the import eviction path already does.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

)
.await;
} else {
runner.release(&id);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Retain checkout sessions while awaiting planner answers

When a payment continuation plan returns any questions, this releases the retained checkout session before publishing NeedsInput. After the caller supplies those values, supply starts the navigation-free payment plan on a newly created browser session, so it cannot inspect or fill the original checkout page. Keep the retained session until the continuation finishes, is cancelled, or otherwise reaches a terminal state.

Useful? React with 👍 / 👎.

Comment on lines +85 to +86
drop(work);
handle_plan_failure(cell, runner, id, task, reason).await;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep payment recovery authorized after planner failure

When payment planning fails and the runner has plan recovery enabled, dropping this payment HostWorkGuard changes host_work from PaymentActive to Closed; handle_plan_failure then calls host_plan, whose begin_work() accepts only Open. Consequently the configured recovery callback is never invoked for payment planner errors or timeouts and the task always fails with an unavailable host-work budget. Run recovery under the existing payment scope or explicitly transition to a state that permits the fallback.

Useful? React with 👍 / 👎.

@senamakel
senamakel merged commit e943c2d into main Oct 21, 2026
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant