Skip to content

fix(tinycomputer-engine): redact private form observations - #142

Merged
senamakel merged 7 commits into
epic/202-tinycomputerfrom
epic-202-h5-canary
Oct 21, 2026
Merged

senamakel merged 7 commits into
epic/202-tinycomputerfrom
epic-202-h5-canary

Conversation

@senamakel

@senamakel senamakel commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Redact host-held values from production task observations and remove editable form-control values structurally whenever a SecretHost is active. The host retains private live reads and field authorization for its own checks.

  • Add a BrowserSurface mode that removes editable values from tree and Sight observations.
  • Keep unreferenced editable-control values out of shared context while preserving labels, refs, states, and non-form context.
  • Wrap the task flow's Surface with host redaction for screen text, candidate labels and values, and browser replies.
  • Cover restored-field masking, rescue-visible text, context preservation, and fail-closed paused-task export.

Validation:

  • cargo fmt --all --check
  • cargo test -p tinycomputer-engine rescue_visible_text_is_redacted_by_the_host
  • cargo test -p tinycomputer-engine jev_screen_context_and_candidate_labels_are_redacted_before_model_use
  • cargo test -p tinycomputer-engine a_paused_task_with_a_host_value_leak_fails_closed
  • cargo test -p tinycomputer-browser private_observations_hide_editable_values_and_keep_useful_structure
  • cargo test -p tinycomputer-browser unreferenced_editable_values_do_not_become_shared_context
  • cargo clippy -p tinycomputer-engine --all-targets -- -D warnings
  • cargo clippy -p tinycomputer-browser --all-targets -- -D warnings

Refs tinyhumansai/openintents-core#197
Part of tinyhumansai/openintents-core#202

Parent validation: full engine suite passed 526 tests before the final browser-only parser/Sight changes. On frozen c309368, parent passed the real Chrome private/public Sight fixture with agent-browser enabled and the parser-to-model-description field-descendant regression. Numeric values, object keys, observation errors and secret-shaped bounds are covered. Worker canary integration remains a separate core PR before #197 completion.

@tinysweeper

tinysweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Tiny Sweeper review

Tiny Sweeper reviewed this change across 5 lane(s) and found 0 active actionable finding(s). Detailed lane evidence and any incomplete work are listed below.

State: Incomplete
Priority: none
Reviewed head: c30936838be3
Updated: 2026-10-21T03:56:02Z

Review snapshot

Change surface Files Review signal Count
Production 6 Active findings 0
Tests 5 Noted findings 0
Documentation 0 Resolved findings 0
Configuration 0 Pending checks/questions 24

Completeness: Incomplete
Test assessment: No supported feature-to-test mapping was available; this does not mean tests are absent or passed.

Features

None identified with supported citations.

Tests

No supported feature-to-test mapping was produced. Test execution is not inferred.

  • Unreviewed: tinysweeper/tests

Findings

No active actionable findings.

Could not review: 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_tests.rs, crates/tinycomputer-browser/src/surface/sight/sight_tests/reading_tests.rs, crates/tinycomputer-browser/src/surface/surface_tests/tree_tests.rs, crates/tinycomputer-browser/src/surface/tree.rs, crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/task/browser_tests.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs, tinysweeper/description, tinysweeper/tests

Before merge

  • Complete the critique review for 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/tree.rs, crates/tinycomputer-browser/src/surface/sight/sight.js, 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/tree_tests.rs, crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/task/browser_tests.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs.
  • Complete the security review for crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/task/browser_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/tree.rs, crates/tinycomputer-browser/src/surface/sight/sight.js, 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/tree_tests.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs.
  • Complete the tests review for tinysweeper/tests.
  • Complete the description review for tinysweeper/description.

How this fits together

flowchart LR
  n0["..._iframes_and_sponsored_blocks_are_removed<br/>changed"]:::changed
  n1["...re_offered_as_options_and_chosen_by_value"]:::impacted
  n2["Value"]:::impacted
  n3["live_reading"]:::impacted
  n4["live_results"]:::impacted
  n5["shown_names"]:::impacted
  n0 -->|calls| n3
  n0 -->|tests| n3
  n0 -->|calls| n5
  n0 -->|tests| n5
  n1 -->|calls| n4
  n1 -->|tests| n4
  n1 -->|calls| n5
  n1 -->|tests| n5
  n3 -->|uses| n2
  n3 -->|calls| n4
  n4 -->|uses| n2
  n5 -->|uses| n2
  classDef changed fill:#0d4429,stroke:#238636,color:#e6edf3
  classDef impacted fill:#161b22,stroke:#6e7681,color:#c9d1d9
  classDef flagged fill:#5a1e02,stroke:#d93f0b,color:#ffffff
  classDef blocking fill:#67060c,stroke:#f85149,color:#ffffff
Loading
Agent review details

critique

  • Conclusion: Neutral
  • Scope reviewed: incomplete; unanswered: 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/tree.rs, crates/tinycomputer-browser/src/surface/sight/sight.js, 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/tree_tests.rs, crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/task/browser_tests.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs
  • Lane summary: Reviewed 0 files; 0 findings. 11 files could not be reviewed: 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/tree.rs, crates/tinycomputer-browser/src/surface/sight/sight.js, 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/tree_tests.rs, crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/task/browser_tests.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs.

security

  • Conclusion: Neutral
  • Scope reviewed: incomplete; unanswered: crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/task/browser_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/tree.rs, crates/tinycomputer-browser/src/surface/sight/sight.js, 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/tree_tests.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs
  • Lane summary: Reviewed 0 files; 0 findings. 11 files could not be reviewed: crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/task/browser_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/tree.rs, crates/tinycomputer-browser/src/surface/sight/sight.js, 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/tree_tests.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs.

tests

  • Conclusion: Neutral
  • Scope reviewed: incomplete; unanswered: tinysweeper/tests
  • Lane summary: No reviewer produced a usable response.

commits

  • Conclusion: Neutral
  • Scope reviewed: all assigned evidence
  • Lane summary: Nothing sensitive found in what this pull request commits.

description

  • Conclusion: Neutral
  • Scope reviewed: incomplete; unanswered: tinysweeper/description
  • Lane summary: No reviewer produced a usable response.
Evidence and run details
  • Models: ladder/vectors-oai3
  • Spend: $0.000098
  • Tokens: 0 input · 0 output · 0 cached · 754 embedding
Head State Pass summary
9ddf6d942c0d incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-21T03:40:29Z)
9cfc89f93408 incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-21T03:45:44Z)
1083deb99eba incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-21T03:50:59Z)
c30936838be3 incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-21T03:55:08Z)
c30936838be3 incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-21T03:56:02Z)

tinysweeper 0.1.2

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2a00a91c-f259-4312-b6fc-642de48554a8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector

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 ⚠️ Failed 2026-10-21T03:29:18.536735Z
We couldn’t complete this review. Comment @codex review to try again.
42dc90b PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@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/surface/mod.rs, crates/tinycomputer-browser/src/surface/operations.rs, crates/tinycomputer-browser/src/surface/surface_tests/tree_tests.rs, crates/tinycomputer-browser/src/surface/tree.rs, crates/tinycomputer-engine/src/task/browser.rs, crates/tinycomputer-engine/src/task/browser_tests.rs, crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs, tinysweeper/description and 1 more.

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

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 found nothing blocking, but could not review everything, so this is not an approval: crates/tinycomputer-engine/src/task/browser.rs, tinysweeper/description, tinysweeper/tests.

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

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 found nothing blocking, but could not review everything, so this is not an approval: crates/tinycomputer-engine/src/task/browser.rs, tinysweeper/description, tinysweeper/tests.

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

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 found nothing blocking, but could not review everything, so this is not an approval: crates/tinycomputer-browser/src/surface/operations.rs, crates/tinycomputer-browser/src/surface/surface_tests/tree_tests.rs, crates/tinycomputer-browser/src/surface/tree.rs, tinysweeper/description, tinysweeper/tests.

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

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 found nothing blocking, but could not review everything, so this is not an approval: crates/tinycomputer-browser/src/surface/mod.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_tests.rs, crates/tinycomputer-browser/src/surface/sight/sight_tests/reading_tests.rs, crates/tinycomputer-browser/src/surface/surface_tests/tree_tests.rs, crates/tinycomputer-browser/src/surface/tree.rs, tinysweeper/description and 1 more.

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

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 found nothing blocking, but could not review everything, so this is not an approval: crates/tinycomputer-browser/src/surface/sight/sight.js, tinysweeper/description, tinysweeper/tests.

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

@senamakel
senamakel merged commit acf4264 into epic/202-tinycomputer Oct 21, 2026
13 of 20 checks passed

@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/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_tests.rs, crates/tinycomputer-browser/src/surface/sight/sight_tests/reading_tests.rs, crates/tinycomputer-browser/src/surface/surface_tests/tree_tests.rs, crates/tinycomputer-browser/src/surface/tree.rs and 5 more.

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

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