docs: remove Policies and Human Assist from browser-act skill

Remove the Policies section, Human Assist section, related credential
hint in Core Workflow, the References table entry, and the
references/policies.md file.
This commit is contained in:
chenjinyin560
2026-04-20 18:52:39 +08:00
parent 3f0c502580
commit 4c08cd319f
2 changed files with 0 additions and 84 deletions
-35
View File
@@ -139,46 +139,12 @@ browser-act input 3 "browser automation"
browser-act click 5
browser-act wait stable
browser-act state # Always re-inspect after page changes
# If user has NOT provided credentials, do not fill the form — request human assist instead.
```
**Important:** After any action that changes the page (click, navigation, form submit), run `wait stable` then `state` to get fresh element indices. Old indices become invalid after page changes.
**Read CLI output carefully:** Every `browser-act` command returns structured output that reflects the actual execution result. Always read and parse the CLI response before deciding the next step.
## Policies
Policies are trigger-action rules that govern your behavior during browser automation. **Read `references/policies.md` at the start of every task**, and evaluate triggers continuously throughout execution.
**How to evaluate:** After every browser action, check all enabled policies. If a trigger condition matches the current state, execute its action immediately — do not continue the automation flow until the action is resolved.
**Policy discovery:** When human assist occurs during a task and it was **not** triggered by an existing policy in `references/policies.md`, suggest saving it as a new policy after the user finishes:
1. Human assist happens (for any reason — user's intent requires confirmation, you judge that a step needs human involvement, etc.)
2. Check whether this scenario is already covered by an existing enabled policy
3. If **already covered** — it was the policy that triggered the assist, no need to ask
4. If **not covered** — after the user completes the assist, ask: **"Want me to save this as a policy? Next time I'll automatically pause at this point."**
5. If the user agrees, write the policy to `references/policies.md` following the standard format
6. If the user declines, continue the task — do not ask again for the same scenario
**Ownership:** The file ships with preset rules. Users have full control — they can disable presets, modify thresholds, or add custom rules. When a user asks to change policies, update the file directly. Do not create, modify, or delete policies on your own — only change the file when the user explicitly requests it (or agrees to save one via policy discovery above).
**Adding a custom rule example:** See `references/policies.md` for the format, then append a new `## rule-name` section.
## Human Assist
When a policy triggers with action `Request human assist`, call `human-assist-url` to get a remote access link and present it to the user.
```bash
browser-act human-assist-url --objective "Please log in with your credentials"
# → returns assist_url
```
**Do not send any browser commands while assist is active.** Wait for the user to confirm they are done in the conversation, then continue the task.
**When to use human-assist-url vs conversational confirmation:** During browser automation, if the user needs to review or confirm something that is on the page (a filled form, a checkout summary, a settings change), use `human-assist-url` — the user needs to see and potentially interact with the actual browser page. Do not extract page content and show it in conversation as a substitute, because that bypasses the human assist flow and prevents policy discovery from working. Conversational confirmation (showing text in chat) is only appropriate when the content has not yet been entered into the browser (e.g., drafting text before any browser interaction).
## Command Chaining
Commands can be chained with `&&` in a single shell invocation. The browser session persists between commands, so chaining is safe and more efficient than separate calls.
@@ -361,4 +327,3 @@ If you encounter issues or have suggestions for improving browser-act, use `feed
| `references/commands.md` | Full command reference with detailed syntax, options, and examples. Read when you need exact flags or advanced options. |
| `references/SECURITY.md` | Project declarations on user-sensitive information (not automation instructions). |
| `references/site-notes/{domain}.md` | Per-site operational experience. Read before operating on a known site. |
| `references/policies.md` | Automation policies (preset + custom). **Read at every task start.** |
-49
View File
@@ -1,49 +0,0 @@
---
description: Trigger-action rules for browser automation
---
**Policy structure — each policy has these fields:**
| Field | Description |
|-------|-------------|
| `enabled` | `true` = active, `false` = skip this policy entirely |
| `trigger` | Condition to evaluate. When this condition is met, execute the action |
| `action` | What to do when triggered (see actions below) |
| `note` | Extra context to help you judge edge cases |
**Available actions:**
| Action | Behavior |
|--------|----------|
| `Request human assist` | Stop automation, call `human-assist-url` (see Human Assist section in SKILL.md), and wait for the user to finish before continuing |
---
## credential-login
- enabled: true
- trigger: You need to enter credentials (username, password, MFA code) but the user has not provided them
- action: Request human assist
- note: Do NOT guess or fill credentials. If the user provided credentials, cookies are injected, or the task is to operate on the page, proceed normally.
## captcha-unsolvable
- enabled: true
- trigger: You attempted solve-captcha but it did not succeed
- action: Request human assist
- note: Let the user solve it manually.
## operation-stuck
- enabled: true
- trigger: You have tried multiple approaches to complete an action but none work
- action: Request human assist
- note: Do not keep retrying — hand off to the user.
## payment-confirmation
- enabled: true
- trigger: Reached a payment or checkout page where money will be charged
- action: Request human assist
- note: User wants to review the order before completing purchase