Skip to main content

Module browser_capture_shape

Module browser_capture_shape 

Source
Expand description

How many shaped captures an agent may make (#47629).

Browser capture can be told what the value should look like (agentmux_common::capture_shape: a short prefix, one of a closed list of named shapes, a length range), and nothing is saved if it is not. The answer to that, saved or not, is a yes or no about a value the agent cannot read, so it is budgeted like any other question about one:

  • an agent may make SHAPED captures with a shape in an hour, whether they match or not (a match is as much an answer as a miss), all its panes together: opening another pane starts nothing new;
  • at most MISSES of them may fail; the next one that does ends shapes for the agent for an hour, and the answer says so. A capture that fails because the host found no value to test counts as a miss too: that is the same answer.

A capture with no shape is not budgeted: it never answers about the value.

StructsΒ§

Agent πŸ”’
Ledger πŸ”’
What each agent has used, by agent.

ConstantsΒ§

LOCKED πŸ”’
MISSES πŸ”’
SHAPED πŸ”’
Shaped captures an agent may make, and how many may miss, in WINDOW.
WINDOW πŸ”’

FunctionsΒ§

ledger πŸ”’
miss πŸ”’
Note that a shaped capture did not match (or found nothing to test); the words to add to the answer when shapes are now refused for an hour.
start πŸ”’
Take one shaped capture from the agent’s budget.