lazycodex-ai 5.1.65 → 5.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +210 -158
- package/dist/cli/service-auth/account-home.d.ts +47 -0
- package/dist/cli/service-auth/account-home.fixture.d.ts +1 -0
- package/dist/cli/service-auth/credential-lock.d.ts +2 -0
- package/dist/cli/service-auth/index.d.ts +1 -1
- package/dist/cli-node/index.js +210 -158
- package/package.json +1 -1
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +12 -12
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/skills/browser/ATTRIBUTION.md +11 -7
- package/packages/omo-codex/plugin/skills/browser/SKILL.md +21 -6
- package/packages/omo-codex/plugin/skills/browser/references/commands.md +41 -4
- package/packages/omo-codex/plugin/skills/browser/references/owned-engine/frames-and-humans.md +15 -4
- package/packages/omo-codex/plugin/skills/browser/references/recipes/1password.md +4 -2
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/LICENSE +21 -0
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +4 -3
- package/packages/omo-codex/plugin/skills/debugging/references/tools/browser-qa.md +4 -3
- package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +6 -6
- package/packages/omo-codex/plugin/skills/ulw-research/references/research-collection.md +2 -2
- package/packages/omo-codex/plugin/skills/visual-qa/references/browser-setup.md +5 -4
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +3 -3
- package/packages/shared-skills/skills/browser/ATTRIBUTION.md +11 -7
- package/packages/shared-skills/skills/browser/SKILL.md +21 -6
- package/packages/shared-skills/skills/browser/references/commands.md +41 -4
- package/packages/shared-skills/skills/browser/references/owned-engine/frames-and-humans.md +15 -4
- package/packages/shared-skills/skills/browser/references/recipes/1password.md +4 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/LICENSE +21 -0
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +4 -3
- package/packages/shared-skills/skills/debugging/references/tools/browser-qa.md +4 -3
- package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +1 -1
- package/packages/shared-skills/skills/ulw-research/SKILL.md +6 -6
- package/packages/shared-skills/skills/ulw-research/references/research-collection.md +2 -2
- package/packages/shared-skills/skills/visual-qa/references/browser-setup.md +5 -4
|
@@ -17,6 +17,38 @@ await session.stop() // ALWAYS, on success and failure
|
|
|
17
17
|
on purpose. Throws `BskRpcError` `no_browser_connected` when no extension is attached — that is a
|
|
18
18
|
stop, not a cue to launch something else.
|
|
19
19
|
|
|
20
|
+
## Shared control (BrowserSkill 0.4+)
|
|
21
|
+
|
|
22
|
+
The person at the keyboard can work in the task tab while you do, so the extension refuses every
|
|
23
|
+
gated page action with `permission_denied` / `data.reason: "cooperation_sync_required"` unless it
|
|
24
|
+
carries the `context_id` of the latest `session.cooperate("sync")`. The daemon never fills it in
|
|
25
|
+
for you.
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
const sync = async () => (await session.cooperate("sync")).context_id
|
|
29
|
+
await session.click("@e3", { context: await sync() }) // one context, one action
|
|
30
|
+
await session.fill("#q", "hello", { clearBefore: true, context: await sync() })
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
| Call | Use |
|
|
34
|
+
|---|---|
|
|
35
|
+
| `session.cooperate("sync", { tabId, maxTokens })` | returns `{ context_id, ... }`; pass it as `{ context }` to the next gated action, then sync again |
|
|
36
|
+
| `session.cooperate("wait", { tabId, timeoutMs })` | after `cooperation_sync_required`: blocks (at most 25 s per call) until the person is done; repeat until it reports `ready`, then sync and replan from the live page |
|
|
37
|
+
|
|
38
|
+
- **Gated** (need `{ context }`): `navigate` (except the first navigation of the untouched blank tab),
|
|
39
|
+
`back`, `forward`, `reload`, `click`, `hover`, `focus`, `blur`, `fill`, `press`, `select`,
|
|
40
|
+
`scrollTo`, `wheel`, `evaluate` (and so `bskSnapshot`), `tabClose`, `resize`, `emulate`,
|
|
41
|
+
`observe({ probeHover: true })`, `screenshot({ fullPage: true })`.
|
|
42
|
+
- **Not gated:** `observe`, `snapshot`, `getHtml`, `screenshot()`, `console`, `network`,
|
|
43
|
+
`waitForNavigation`, the tab list/borrow/return calls, `requestHelp`.
|
|
44
|
+
- `dependsOn: ["@e2", ...]` narrows the check to the observed regions your decision used.
|
|
45
|
+
- A gated action accepts only its own options plus `{ context, dependsOn }`; any other key
|
|
46
|
+
(`contextId`, a stray option copied from another method) throws a `TypeError` before anything is
|
|
47
|
+
sent. Two exceptions: `bskSnapshot` and `screenshot({ fullPage: true })` pass unknown keys
|
|
48
|
+
through instead of throwing, so a misspelt `contextId` there sends no context and the daemon
|
|
49
|
+
refuses the call with `cooperation_sync_required`.
|
|
50
|
+
- Never replay a refused action blindly: the page may have changed under the person's hands.
|
|
51
|
+
|
|
20
52
|
## Targets
|
|
21
53
|
|
|
22
54
|
| Form | Meaning |
|
|
@@ -30,12 +62,12 @@ stop, not a cue to launch something else.
|
|
|
30
62
|
|
|
31
63
|
| Call | Returns |
|
|
32
64
|
|---|---|
|
|
33
|
-
| `bskSnapshot(session, { interactive, maxDepth })` | `{ tree, refs, css }` — the OmOWright accessibility tree with refs, computed in the page **without** leaving a global or touching the DOM |
|
|
65
|
+
| `bskSnapshot(session, { interactive, maxDepth, context })` | `{ tree, refs, css }` — the OmOWright accessibility tree with refs, computed in the page **without** leaving a global or touching the DOM |
|
|
34
66
|
| `session.observe({ maxTokens, cursor, probeHover })` | the daemon's semantic tree (`@vom`) with `@eN` refs, layers and hover probes — **the default read for shadow DOM and iframes** |
|
|
35
67
|
| `session.snapshot({ maxDepth, maxTokens })` | the daemon's plain accessibility tree |
|
|
36
68
|
| `session.getHtml({ ref, maxBytes })` | exact markup |
|
|
37
69
|
| `session.screenshot({ ref })` / `screenshot({ fullPage: true })` | `{ buffer, width, height, captureId }`; full-page captures stream back in chunks |
|
|
38
|
-
| `session.evaluate(expression, { awaitPromise, timeoutMs })` | `{ ok, value, error }` — **check `.ok`**; a resolved promise does not mean the script succeeded |
|
|
70
|
+
| `session.evaluate(expression, { awaitPromise, timeoutMs, context })` | `{ ok, value, error }` — **check `.ok`**; a resolved promise does not mean the script succeeded |
|
|
39
71
|
| `session.console({ since })` / `session.network({ since })` | buffered console entries / request metadata (no bodies) |
|
|
40
72
|
|
|
41
73
|
**Refs are reissued by every read.** Read a ref and act on it in the same cycle. A ref captured
|
|
@@ -44,6 +76,10 @@ neighbouring row.
|
|
|
44
76
|
|
|
45
77
|
## Acting
|
|
46
78
|
|
|
79
|
+
Every call here is gated: add `context` (from `cooperate("sync")`) to its options object, as in
|
|
80
|
+
`session.click(target, { context })`, `session.resize(width, height, { context })`,
|
|
81
|
+
`session.tabClose(id, { context })`.
|
|
82
|
+
|
|
47
83
|
| Need | Call |
|
|
48
84
|
|---|---|
|
|
49
85
|
| Click | `session.click(target, { button, clickCount, modifiers })` |
|
|
@@ -75,7 +111,7 @@ Traps:
|
|
|
75
111
|
const { tabs } = await session.tabList({ scope: "user" }) // "user" | "agent" | "all"
|
|
76
112
|
await session.tabBorrow(tabId) // the user confirms in the browser (60 s)
|
|
77
113
|
await session.tabReturn(tabId) // stop() returns anything still borrowed
|
|
78
|
-
await session.tabCreate({ url }); await session.tabSelect(id); await session.tabClose(id)
|
|
114
|
+
await session.tabCreate({ url }); await session.tabSelect(id); await session.tabClose(id, { context: await sync() })
|
|
79
115
|
```
|
|
80
116
|
|
|
81
117
|
Never invent tab ids and never repeat a denied borrow.
|
|
@@ -96,7 +132,8 @@ Every refusal is a `BskRpcError` with the daemon's own `code`:
|
|
|
96
132
|
| `no_browser_connected` | no extension attached | run the onboarding script, relay the human step, wait |
|
|
97
133
|
| `not_found` | stale ref or unknown session | read again; if the session is gone, start a new one |
|
|
98
134
|
| `invalid_params` | wrong option shape | fix the call, do not retry as-is |
|
|
99
|
-
| `permission_denied`
|
|
135
|
+
| `permission_denied` with `data.reason: "cooperation_sync_required"` | a gated action without the latest sync context, or the person is using the tab | `cooperate("wait")` until `ready`, sync, read the page again, replan |
|
|
136
|
+
| `permission_denied` (any other reason) | `evaluate` on a tab outside the Agent Window, or a denied borrow | stop; the user said no |
|
|
100
137
|
| `timeout` | the tool did not finish in its budget | read the page state before retrying once |
|
|
101
138
|
| `user_aborted` | the user pressed Stop in the browser | stop the task and report |
|
|
102
139
|
| `cdp_failed` | the page cannot be attached (restricted URL, DevTools open) | say which page and why |
|
|
@@ -19,10 +19,21 @@ miss has another cause and you climb the ladder instead.
|
|
|
19
19
|
|
|
20
20
|
## Dialogs never block
|
|
21
21
|
|
|
22
|
-
`alert`, `confirm`, `prompt`, and `beforeunload` are answered
|
|
23
|
-
|
|
24
|
-
Default to accepting (`{ accept: true }`; a
|
|
25
|
-
`{
|
|
22
|
+
`alert`, `confirm`, `prompt`, and `beforeunload` are answered at the protocol layer, before the
|
|
23
|
+
page sees them: by a `dialog` listener that answers, otherwise by the `dialogPolicy` passed to
|
|
24
|
+
`connectPipe` (or `browser.setDialogPolicy`). Default to accepting (`{ accept: true }`; a policy
|
|
25
|
+
function receives a plain `{ type, message, defaultPrompt, url }` and returns `{ accept, promptText }`).
|
|
26
|
+
|
|
27
|
+
`page.on("dialog", (dialog) => ...)` hands each listener a Playwright-style `Dialog` object, not a
|
|
28
|
+
plain object: read it through methods (`dialog.type()`, `dialog.message()`, `dialog.defaultValue()`,
|
|
29
|
+
and the `dialog.url` getter). A listener can answer it itself, which replaces the policy for that
|
|
30
|
+
dialog; a listener that only observes leaves it to the policy:
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
page.on("dialog", (dialog) => dialog.type() === "prompt" ? dialog.accept("42") : dialog.dismiss())
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
A dialog is answered once; a second `accept()` / `dismiss()` throws. A run that hangs on
|
|
26
37
|
an unhandled dialog looks exactly like a hang with no cause, which is the most expensive kind to
|
|
27
38
|
diagnose.
|
|
28
39
|
|
|
@@ -28,13 +28,15 @@ await session.tabReturn(vault.tab_id)
|
|
|
28
28
|
|
|
29
29
|
The app mutates its URL hash without updating the document title, so a signed-in vault can still
|
|
30
30
|
report a sign-in title. A live session's `location.href` contains the app path and never the
|
|
31
|
-
sign-in path. Read the URL from `tabList`, or `session.evaluate("location.href")
|
|
31
|
+
sign-in path. Read the URL from `tabList`, or `session.evaluate("location.href", { context })` with a
|
|
32
|
+
fresh `context` from `session.cooperate("sync")` (see the shared-control section of
|
|
33
|
+
[../commands.md](../commands.md)).
|
|
32
34
|
|
|
33
35
|
## The browser may be shared
|
|
34
36
|
|
|
35
37
|
Other automation may be driving the same window.
|
|
36
38
|
|
|
37
|
-
- **Clear the search box before typing** (`fill(target, value, { clearBefore: true })`). It often
|
|
39
|
+
- **Clear the search box before typing** (`fill(target, value, { clearBefore: true, context })`). It often
|
|
38
40
|
holds someone else's query, and typing alone appends to it, returning confident results for the
|
|
39
41
|
wrong search.
|
|
40
42
|
- **Read the autocomplete listbox, not the results grid.** The grid holds whatever query was last
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yeongyu Kim
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.3.0",
|
|
3
|
-
"sourceDigest": "
|
|
3
|
+
"sourceDigest": "cbbe7740c45d92126187ac9a7e460a1ff5b4882b653547ec3aee5a11c64b6ccf",
|
|
4
4
|
"files": {
|
|
5
5
|
"index.js": "f026b391aead15d15f361e82861336c023c80c42b01fc0ba28f6d5d77a16acc8",
|
|
6
|
-
"page-bundle.js": "ca93c410e45469db3f22951d953e32444975daf8827ff10a877c537338c8feb0"
|
|
6
|
+
"page-bundle.js": "ca93c410e45469db3f22951d953e32444975daf8827ff10a877c537338c8feb0",
|
|
7
|
+
"LICENSE": "b083425948376611de9b92b0aeb7377e604505756ea427e541a34d9b030d4dc1"
|
|
7
8
|
},
|
|
8
|
-
"stagedAtUtc": "2026-11-
|
|
9
|
+
"stagedAtUtc": "2026-11-10T19:29:58.468Z"
|
|
9
10
|
}
|
|
@@ -62,10 +62,11 @@ When the bug only happens signed in:
|
|
|
62
62
|
|
|
63
63
|
```js
|
|
64
64
|
const session = await omowright.connectBrowserSkill({ name: "debug repro", focused: false })
|
|
65
|
+
const sync = async () => (await session.cooperate("sync")).context_id // BrowserSkill 0.4: one context per page action
|
|
65
66
|
try {
|
|
66
|
-
await session.navigate(url)
|
|
67
|
-
const { tree, css } = await omowright.bskSnapshot(session, { interactive: true })
|
|
68
|
-
await session.click({ selector: css.e7 })
|
|
67
|
+
await session.navigate(url, { context: await sync() })
|
|
68
|
+
const { tree, css } = await omowright.bskSnapshot(session, { interactive: true, context: await sync() })
|
|
69
|
+
await session.click({ selector: css.e7 }, { context: await sync() })
|
|
69
70
|
const errors = await session.console({ since: 0 })
|
|
70
71
|
const shot = await session.screenshot()
|
|
71
72
|
} finally {
|
|
@@ -111,7 +111,7 @@ The rest of the surface (CUA coordinates, captcha solving, routes, traces, frame
|
|
|
111
111
|
|
|
112
112
|
### Tier 2b — attached engine (the user's account on a blocked host)
|
|
113
113
|
|
|
114
|
-
When the blocked flow needs the user's account, drive the browser they are already signed into instead of cloning their profile: `connectBrowserSkill()` → `session.navigate` → `bskSnapshot(session)` / `session.observe()` → `session.click` → `session.stop()
|
|
114
|
+
When the blocked flow needs the user's account, drive the browser they are already signed into instead of cloning their profile: `connectBrowserSkill()` → `session.navigate` → `bskSnapshot(session)` / `session.observe()` → `session.click` → `session.stop()`, each page action carrying `{ context }` from a fresh `session.cooperate("sync")` (BrowserSkill 0.4 refuses it otherwise). NEVER launch against or clear cookies/cache/site data from the user's live profile, and never fall back to the owned engine for an authenticated criterion: if no extension is connected, run the `browser` skill's onboarding script and relay its one human step. The full loop is the `browser` skill.
|
|
115
115
|
|
|
116
116
|
### Cookie login (cross-platform)
|
|
117
117
|
|
|
@@ -29,7 +29,7 @@ When translating `load_skills=[...]`, include the requested skill names in the s
|
|
|
29
29
|
|
|
30
30
|
# ULW-RESEARCH — Maximum-Saturation Research
|
|
31
31
|
|
|
32
|
-
You are the research orchestrator. The user has explicitly ordered exhaustive research: fan parallel worker swarms out over every relevant source, chase every lead they surface until the leads run dry, prove
|
|
32
|
+
You are the research orchestrator. The user has explicitly ordered exhaustive research: fan parallel worker swarms out over every relevant source, chase every lead they surface until the leads run dry, prove every conclusion by probing a source, reading the file, or running a tool before asserting it, and deliver a synthesis in which every claim carries a citation or a proof. Exhaustive coverage is the assignment, not a risk to manage.
|
|
33
33
|
|
|
34
34
|
## Activation
|
|
35
35
|
|
|
@@ -51,7 +51,7 @@ The research is done when all of these hold:
|
|
|
51
51
|
|
|
52
52
|
- Every axis from Phase 0 was covered by at least one dedicated worker.
|
|
53
53
|
- Every EXPAND lead was investigated or explicitly closed as a duplicate or dead end, and convergence was reached under the Phase 2 rules.
|
|
54
|
-
-
|
|
54
|
+
- Data came first: every conclusion was proven by probing a source, reading the file, or running a tool before it was asserted, never by plausibility, recall, or the shape of the code; contested, undocumented, and performance-shaped claims were additionally proven or refuted by executed code.
|
|
55
55
|
- Every claim in the deliverable cites a source or a verification artifact.
|
|
56
56
|
- Every asserted claim is represented in the claim graph, tied to an intent-vs-reality diff when an expected truth exists, and backed by observation manifest entries from independent observation groups or a documented single-source exception; convergence or exception status is explicit.
|
|
57
57
|
- The deliverable lane and format were derived from the destination or asked through the empty-info interview without blocking collection, recorded in `brief.md` with `answered_by`, and the final materials match that record.
|
|
@@ -72,7 +72,7 @@ Saturation is not just more searching; it is a knowledge-production protocol. Th
|
|
|
72
72
|
- `verification-economics.md` — one row per proof decision. Required fields: claim, risk, error cost, verification cost/time, chosen verification path, defer/verify decision, outcome, and residual risk.
|
|
73
73
|
- `cause-disappearance.md` — one row per causal finding. Required fields: cause id, expected truth, previous observation, `last_seen`, disconfirming observation, replacement cause if any, current status, and whether the violation is no longer observed.
|
|
74
74
|
|
|
75
|
-
Observation candidates and claim candidates travel back from workers as message text. The orchestrator writes the instrumentation artifacts, links candidates into the intent diff and claim graph, and records where each observation entered the synthesis. A
|
|
75
|
+
Observation candidates and claim candidates travel back from workers as message text. **Every conclusion stands on an observation a tool produced** — a page read, a file read, a command run — recorded in `observation-manifest.md`: a claim candidate, a DEAD END, a convergence call, and your own judgment that a topic is settled alike. What you or a worker knows from memory is a LEAD to probe, never evidence. The orchestrator writes the instrumentation artifacts, links candidates into the intent diff and claim graph, and records where each observation entered the synthesis. A claim is not ready for final materials until its expected truth/reality diff is closed or marked unknown, its claim node exists, and its independent-observation convergence status is supported or explicitly excepted.
|
|
76
76
|
|
|
77
77
|
## Run the swarm as a cooperating team
|
|
78
78
|
|
|
@@ -105,15 +105,15 @@ Every research spawn message contains, in order:
|
|
|
105
105
|
2. The budget lift: "This is an explicit exhaustive-research assignment. Your default retrieval budget and stop-when-answered rules do not apply — run the full protocol below and report every lead."
|
|
106
106
|
3. Scope — the axis, the sources to hit, and what a complete answer contains.
|
|
107
107
|
4. The role protocol (Phase 1).
|
|
108
|
-
5. The reply tail. EXPAND markers, observation candidates, and claim candidates travel back as message text, never as files. Every worker ends the reply with:
|
|
108
|
+
5. The reply tail. EXPAND markers, observation candidates, and claim candidates travel back as message text, never as files. Each claim candidate carries `OBSERVED: <URL read | file:line | command and its output>`; a claim the worker only remembers goes into the tail as a LEAD. Every worker ends the reply with:
|
|
109
109
|
|
|
110
110
|
```
|
|
111
111
|
## EXPAND
|
|
112
112
|
- LEAD: <discovery not yet investigated> — WHY: <why it matters> — ANGLE: <suggested search>
|
|
113
|
-
- DEAD END: <lead explored to exhaustion>
|
|
113
|
+
- DEAD END: <lead explored to exhaustion> — PROBED: <the searches, reads, or commands that exhausted it>
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
A worker with nothing to expand writes `## EXPAND` followed by `none — <one-line reason>`. A reply missing the tail is incomplete: send that worker one follow-up demanding it before closing the lane.
|
|
116
|
+
A worker with nothing to expand writes `## EXPAND` followed by `none — <one-line reason>`. A reply missing the tail, or a claim or DEAD END missing its `OBSERVED:`/`PROBED:` line, is incomplete: send that worker one follow-up demanding it before closing the lane.
|
|
117
117
|
|
|
118
118
|
## Execution references
|
|
119
119
|
|
|
@@ -139,7 +139,7 @@ task(subagent_type="explore", run_in_background=true, prompt="TASK: act as a cod
|
|
|
139
139
|
This is an explicit exhaustive-research assignment. Your default retrieval budget and stop-when-answered rules do not apply — run the full protocol below and report every lead.
|
|
140
140
|
SCOPE: find everything in this codebase related to <angle>: <what complete looks like>.
|
|
141
141
|
PROTOCOL: grep 3+ keyword variations; structural search; LSP references; globs; git history (-S and --grep). Cross-validate across tools. Report absolute paths and file:line patterns.
|
|
142
|
-
End your reply with the ## EXPAND tail: '- LEAD: <discovery> — WHY: <why> — ANGLE: <search>' per lead, or 'none — <reason>'.")
|
|
142
|
+
Tag every claim OBSERVED: <URL | file:line | command>. End your reply with the ## EXPAND tail: '- LEAD: <discovery> — WHY: <why> — ANGLE: <search>' per lead, '- DEAD END: <lead> — PROBED: <what exhausted it>', or 'none — <reason>'.")
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
## Phase 2 — Expand until convergence
|
|
@@ -154,7 +154,7 @@ This loop is what makes the mode research rather than search. Collect returns as
|
|
|
154
154
|
task(category="deep-low", load_skills=["browser"], run_in_background=true, prompt="TASK: expansion wave <N> — investigate: <lead>.
|
|
155
155
|
PARENT: <which return surfaced it>. This is an explicit exhaustive-research assignment; budgets do not apply.
|
|
156
156
|
<role protocol for the lead's territory — web protocol for external leads, explore protocol for codebase leads>
|
|
157
|
-
End your reply with the ## EXPAND tail.")
|
|
157
|
+
Tag every claim OBSERVED: <URL | file:line | command>. End your reply with the ## EXPAND tail.")
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
### Excursions — dive deep on a new find, then surface back out
|
|
@@ -65,14 +65,15 @@ cloning its profile:
|
|
|
65
65
|
|
|
66
66
|
```js
|
|
67
67
|
const session = await omowright.connectBrowserSkill({ name: "visual-qa capture", focused: false })
|
|
68
|
+
const sync = async () => (await session.cooperate("sync")).context_id // BrowserSkill 0.4: one context per page action
|
|
68
69
|
try {
|
|
69
|
-
await session.navigate(url, { waitUntil: "load" })
|
|
70
|
-
await session.resize(1440, 900)
|
|
70
|
+
await session.navigate(url, { waitUntil: "load", context: await sync() })
|
|
71
|
+
await session.resize(1440, 900, { context: await sync() }) // desktop column of the matrix
|
|
71
72
|
await Bun.write(`${outDir}/${route}-1440-top.png`, (await session.screenshot()).buffer) // { buffer, width, height }
|
|
72
|
-
await session.emulate({ overrides: { width: 390, mobile: true } }) // phone column; `off: true` restores
|
|
73
|
+
await session.emulate({ overrides: { width: 390, mobile: true }, context: await sync() }) // phone column; `off: true` restores
|
|
73
74
|
await Bun.write(`${outDir}/${route}-390-top.png`, (await session.screenshot()).buffer)
|
|
74
75
|
} finally {
|
|
75
|
-
await session.emulate({ off: true })
|
|
76
|
+
await session.emulate({ off: true, context: await sync() })
|
|
76
77
|
await session.stop()
|
|
77
78
|
}
|
|
78
79
|
```
|