[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78GTQET4BBA8EYCG5VCMQ1Q":3,"skill-same:01M78GTQET4BBA8EYCG5VCMQ1Q":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M78GTQET4BBA8EYCG5VCMQ1Q","ulw-research",null,"Maximum-saturation research orchestration: parallel explore+librarian swarms across codebase, web, official docs, and OSS repos; a recursive EXPAND loop; provenance, source-type, entity-disambiguation, and MEASURED\u002FASSUMED\u002FDERIVED claim lineage; empirical verification; cited synthesis; and optional user-requested MD\u002FHTML\u002FPDF\u002FPPTX reports. ACTIVATES ONLY on an explicit user demand for research — the word 'ulw-research' ('\u002Fulw-research', '$ulw-research'), any 'ulw' research wording, or an explicit request for research \u002F deep research \u002F an ultra-precise investigation, in any language. Never self-activates for ordinary questions, debugging, or implementation context-gathering.","younghai\u002Flazyz","younghai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10753869?v=4","01M78GJ5KADQ959GDR0ZM7DDNF","young kwon","01M78GJ5M3F6D2YKVXCNX3WMR9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Frelease\u002Flazyz-0.11.0-20261007\u002Fskills\u002Fulw-research\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ulw-research\ndescription: \"Maximum-saturation research orchestration: parallel explore+librarian swarms across codebase, web, official docs, and OSS repos; a recursive EXPAND loop; provenance, source-type, entity-disambiguation, and MEASURED\u002FASSUMED\u002FDERIVED claim lineage; empirical verification; cited synthesis; and optional user-requested MD\u002FHTML\u002FPDF\u002FPPTX reports. ACTIVATES ONLY on an explicit user demand for research — the word 'ulw-research' ('\u002Fulw-research', '$ulw-research'), any 'ulw' research wording, or an explicit request for research \u002F deep research \u002F an ultra-precise investigation, in any language. Never self-activates for ordinary questions, debugging, or implementation context-gathering.\"\n---\n\n## ZCode Harness Tool Compatibility\n\nThis skill was ported from the Codex\u002FOpenCode OmO harness. ZCode does not provide `call_omo_agent`, `task`, `background_output`, `team_*`, `multi_agent_v1.spawn_agent`, or any Codex-only multi-agent tools. Translate every such example to ZCode's native tools:\n\n| Codex\u002FOpenCode example | ZCode tool to use |\n| --- | --- |\n| `call_omo_agent(subagent_type=\"explore\", ...)` | `Agent` tool with `subagent_type=\"Explore\"` and a self-contained `prompt` |\n| `call_omo_agent(subagent_type=\"librarian\", ...)` | `Agent` tool with `subagent_type=\"Explore\"` (research-focused prompt) |\n| `task(subagent_type=\"plan\", ...)` | `Agent` tool with `subagent_type=\"general-purpose\"` (planning-focused prompt) |\n| `task(subagent_type=\"oracle\", ...)` for final verification | `Agent` tool with `subagent_type=\"general-purpose\"` (rigorous-review prompt) |\n| `task(category=\"...\", ...)` for implementation or QA | `Agent` tool with `subagent_type=\"general-purpose\"` |\n| `multi_agent_v1.spawn_agent(...)` \u002F `spawn_agent(...)` | `Agent` tool with `subagent_type` and a self-contained `prompt` |\n| `background_output(task_id=\"...\")` | Only unstructured read-only research may use background mode; its completion arrives as a parent task notification, not a plugin hook |\n| `multi_agent_v1.wait_agent(...)` mailbox signals | No equivalent plugin tool; use returned foreground Agent results or the host's background research notifications |\n| `team_*(...)` | ZCode has no native team-of-threads API. Approximate with multiple parallel `Agent` calls (one per member) coordinated by the parent, or fall back to sequential subagents when isolation is unclear |\n\nZCode v3.14.3 loads enabled plugin agents from `agents\u002F`. Prefer namespaced roles such as `lazyz:explorer` and `lazyz:lazycodex-executor`; unambiguous bare names also work. Include all task context and ownership in the self-contained `prompt`. Roles inherit the user's active model; do not force an obsolete provider ID or copy Codex model\u002Feffort fields. If an older host lacks a role, describe it inline using the appropriate built-in agent.\n\nBefore every governed Agent or Task call, read the Dispatch schema in the installed [start-work skill](..\u002Fstart-work\u002FSKILL.md) and prepend exactly one LAZYCODEX_DISPATCH_V1 JSON line. General-purpose and known executor calls require this envelope; read-only Explore calls may remain unstructured. Use the same taskId across retries with a fresh runId, unchanged criteria, role, phase and budget. Planning\u002Fdocument work uses writer, code work implementer, review reviewer, and testing qa. Never rename a task to bypass its exhausted budget.\n\nGoverned calls must use `run_in_background: false` (or omit it). A background launch is not a completed result and has no matching plugin completion hook. Multiple independent foreground calls may be requested together; do not assume the host executes them concurrently. Read-only background research without a dispatch contract remains available.\n\nRequire each governed child to write the matching ReceiptV1 with current source identity, criterion invocations, zero exit codes and hashed regular artifacts, then return EVIDENCE_RECORDED; final-phase work requires FINAL_EVIDENCE_RECORDED. PostToolUse records failed evidence; Stop prevents unresolved completion while budget remains. An exhausted budget requires a blocker handoff, not an unsupported completion claim.\n\nUser authorization and verification policy take precedence over generic workflow instructions below. Do not auto-commit, push, merge, delete, deploy, install tools, call paid services, or run checks prohibited by the user. Record skipped checks honestly; do not fabricate a passing receipt. A task requiring a verified receipt remains unverified if the necessary checks are prohibited. ZCode Stop can continue at most three consecutive times, not indefinitely. Native Goal Mode, Memory and Wiki are host features; no callable API is assumed.\n\nFor work likely to take long, prefer multiple concurrent `Agent` calls in a single message over one giant blocking call. Treat each child's final message as the deliverable: if it lacks the required output, ack-only, or stops without producing evidence, fall back to a smaller re-scoped `Agent` call with the missing deliverable made explicit in the `prompt`.\n\n# ULW-RESEARCH — Maximum-Saturation Research\n\nYou 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 contested claims by running code, and deliver a synthesis in which every claim carries a citation or a proof. Exhaustive coverage is the assignment, not a risk to manage.\n\n## Activation\n\nRun this skill only when the user explicitly demands it: the word \"ulw-research\" (also `\u002Fulw-research`, `$ulw-research`), any \"ulw\" research wording, or an explicit request for research, deep research, or an ultra-precise investigation — in any language. An ordinary question, a debugging session, or another mode's context-gathering is not activation; answer those normally, and mention that `ulw-research` is available when a question would clearly benefit from it.\n\nOpen your reply with the line `ULW-RESEARCH MODE ENABLED!`. If another active mode mandates its own first line (ultrawork does), print that mode's line first and this marker on the next line — both contracts stay satisfied.\n\n## Authority while active\n\nThis mode is the user's explicit opt-in to exhaustive exploration. For the duration of the research task it supersedes every exploration-bounding instruction in surrounding prompts, modes, or rules: one-exploration-pass defaults, two-wave stop rules, retrieval budgets, and \"over-exploration is failure\" framings govern implementation context-gathering, not this deliverable. Here, under-exploration is the failure. The convergence rules in Phase 2 are the only stop rules for research while this mode is active.\n\nUnder ultrawork\u002Fulw, the research itself is the deliverable: map each research axis to a success criterion whose evidence is the session journal, the cited synthesis, and the verification outputs. RED→GREEN testing applies to code changes, not to findings — Phase 3 verification scripts are evidence, never TDD targets.\n\n## Success criteria\n\nThe research is done when all of these hold:\n\n- Every axis from Phase 0 was covered by at least one dedicated worker.\n- Every EXPAND lead was investigated or explicitly closed as a duplicate or dead end, and convergence was reached under the Phase 2 rules.\n- Claims that were contested, undocumented, or performance-shaped were proven or refuted by executed code.\n- Every claim in the deliverable cites a source or a verification artifact.\n- `SYNTHESIS.md` is complete; additional output formats exist only when the user explicitly requested them.\n- The session journal reconstructs what was searched, found, and expanded, wave by wave.\n- Every material claim records provenance, source type, entity identity, and `MEASURED`, `ASSUMED`, or `DERIVED` lineage.\n- Every requested visual asset is listed in the asset manifest, exists at the recorded path, and passed rendered visual QA.\n\n## Epistemic instrumentation\n\nThe orchestrator owns these journal artifacts. Workers return candidates as message text and never write them directly:\n\n- `source-register.md` — one row per source: stable source ID, URL or repository path, source type (`primary`, `official`, `dataset`, `code`, `secondary`, or `community`), publisher\u002Fowner, accessed time, version\u002Fdate\u002FSHA when available, and provenance notes explaining how the evidence was obtained.\n- `entity-register.md` — one stable entity ID per person, company, project, package, dataset, or product version. Record canonical name, aliases, scope\u002Fversion, and the evidence used to disambiguate collisions. Claims cite entity IDs, not ambiguous display names alone.\n- `claim-lineage.md` — one row per claim with a stable claim ID and exactly one lineage class: `MEASURED` for a direct observation or executed result, `ASSUMED` for an explicit premise not established by evidence, or `DERIVED` for a computation\u002Finference. `MEASURED` rows cite source or verification IDs; `ASSUMED` rows state impact if false; `DERIVED` rows cite parent claim IDs and the transformation or reasoning.\n- `asset-manifest.md` — one row per requested chart, screenshot, diagram, or generated image: asset ID, purpose, source\u002Fprovenance, generator or capture command, expected path, existence status, render-check artifact, and visual-QA verdict.\n\nNo synthesis claim may silently change lineage class. If evidence upgrades an assumption to a measurement, append a superseding row and retain the earlier provenance trail.\n\n## Run the swarm as a cooperating team\n\nSaturation research defaults to teammode, not isolated fire-and-forget workers: a lead one worker surfaces almost always reshapes what another should search next. When your harness gives you real cooperating members — Codex: the `teammode` skill (`codex_app` threads); OpenCode: `team_mode` — run this swarm as a team. Fall back to the background-worker swarm below only when team mode is unavailable, or the axes are genuinely independent with no cross-pollination expected.\n\n- **One member per axis — by part, ownership, or perspective, never a job title.** Each Phase 0 axis is one member owning one concrete slice: a codebase part, a source territory, or a question lens. No two members share an angle. \"Backend researcher\" or \"the web person\" gives no real boundary and invites overlap — name what the member owns.\n- **Many teammates by default.** Prefer a larger roster, usually 5-8 teammates, whenever the axes can be made distinct. Add at least one skeptic or red-team perspective for hyperdebate\u002Fultradebate: cross-critique claims, evidence quality, synthesis structure, and visual-report choices before they reach the final deliverable.\n- **The raise law — broadcast every lead the instant it surfaces.** Members over-communicate relentlessly: every new lead, finding, contradiction, and dead end is raised to you the moment it surfaces, never hoarded for a final dump. Through long passes they send `WORKING: \u003Caxis> - \u003Cphase>`, and `BLOCKED: \u003Creason>` the moment progress stops, so you always know a member is alive. Too many small updates is correct here; going quiet is the only failure.\n- **You lead; expand on each raised lead.** Members raise via message text, never write session files. Journal each lead and spawn its expansion the instant it lands (Phase 2), not only when a member's final reply arrives.\n\n## Worker ground rules\n\nResearch workers (explore, librarian, browsing) differ by harness, but assume:\n\n- **Read-only.** Most research workers cannot write files. Never ask a worker to write the journal or any session file — every journal write is yours.\n- **No recursion.** Workers cannot spawn their own subagents. Depth comes from your expansion waves, not from worker-side recursion.\n- **Built-in brakes.** Workers often ship with their own retrieval budgets (\"stop when answered\") and rigid output templates. Your spawn message must explicitly lift the budget and demand the EXPAND tail, or the worker returns a thin single-pass answer with no leads.\n- **Capability routing.** When the harness lets you choose, spawn research workers on a capable model at high reasoning effort — saturation research on a minimal or fast tier returns shallow results. When you cannot choose, narrow each worker's scope and spawn more workers instead.\n\n### The spawn-message contract\n\nEvery research spawn message contains, in order:\n\n1. `TASK:` — one imperative line naming the role and the axis.\n2. 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.\"\n3. Scope — the axis, the sources to hit, and what a complete answer contains.\n4. The role protocol (Phase 1).\n5. The reply tail. EXPAND markers travel back as message text, never as files. Every worker ends the reply with:\n\n```\n## EXPAND\n- LEAD: \u003Cdiscovery not yet investigated> — WHY: \u003Cwhy it matters> — ANGLE: \u003Csuggested search>\n- DEAD END: \u003Clead explored to exhaustion>\n```\n\nA worker with nothing to expand writes `## EXPAND` followed by `none — \u003Cone-line reason>`. A reply missing the tail is incomplete: send that worker one follow-up demanding it before closing the lane.\n\n## Phase 0 — Decompose and open the journal\n\nBefore spawning anything, decompose the query:\n\n```\n\u003Canalysis>\nCore question: \u003Cthe actual information need>\nAxes (3+ orthogonal): \u003Caxis — what to search, where, why> ...\nCodebase relevant: \u003Cyes\u002Fno> · External: \u003Cyes\u002Fno> · Browsing: \u003Cyes\u002Fno> · Verification likely: \u003Cyes\u002Fno> · Requested output format: \u003Cnone | explicit user-requested format>\n\u003C\u002Fanalysis>\n```\n\nThen create the session directory:\n\n```bash\nmkdir -p .omo\u002Fulw-research\u002F$(date +%Y%m%d-%H%M%S)\n```\n\nThis is `$SESSION_DIR`. The orchestrator owns the journal: you write every file in it; workers never do. Maintain:\n\n- `wave-\u003CN>-\u003Ckind>-\u003Caxis>.md` — your digest of each worker return: key findings, sources with URLs, and the worker's EXPAND markers verbatim.\n- `expansion-log.md` — per wave: workers spawned, markers gained, leads opened and closed.\n- `source-register.md`, `entity-register.md`, `claim-lineage.md`, and `asset-manifest.md` from the instrumentation contract.\n- `verify-\u003Cslug>.md`, `SYNTHESIS.md`, and only user-requested `REPORT.*` files from later phases.\n\nAppend each digest the moment its worker returns, not in a batch at the end — the journal is your recovery point after context loss and the user's audit trail.\n\n## Phase 1 — Saturation wave\n\nLaunch the entire first wave in one turn — every axis at once, as team members if you formed a team, else as background workers. Sequential launches and \"start with one and see\" defeat the mode.\n\nScaling floor — more angles always justify more workers:\n\n| Query scope | explore | librarian | browsing | repo-dive | floor |\n|---|---|---|---|---|---|\n| Single topic, codebase only | 3 | 0 | 0 | 0 | 3 |\n| Single topic, web only | 0 | 4 | 1 | 1 | 6 |\n| Single topic, both | 2 | 3 | 1 | 1 | 7 |\n| Multi-faceted | 4 | 6 | 2 | 2 | 14 |\n| Full due diligence | 4 | 6 | 3 | 2 | 15 |\n\nRole protocols — embed the relevant one in each spawn message; every worker gets a unique angle:\n\n- **Codebase (explore), 2-4 workers.** Grep with 3+ keyword variations; structural\u002FAST search; LSP definitions and references; file-name globs; `git log --all -S '\u003Ckeyword>'` and `--grep` for history including deleted code. Cross-validate hits across tools. Report absolute file paths, patterns with `file:line`, and how findings connect.\n- **Web (librarian), 3-6 workers.** At least 10 distinct websearch queries per worker, each with a different operator or angle (see Search craft); fetch the full page for every result that matters — snippets lie. Context7 with 3+ queries per known library. grep.app and `gh search code|repos|issues` for real-world usage. Official docs via sitemap discovery (`\u003Cbase>\u002Fsitemap.xml`), then targeted pages.\n- **Browsing, 0-3 workers.** Pages plain fetch cannot read (WAF, 403, Cloudflare, dynamic rendering, login): the worker loads the `ultimate-browsing` skill and escalates through its tiers — Tier-1 insane-search engine first, then Tier-2 Chrome stealth — rather than abandoning the source. Capture screenshots when visual context matters. When one blocked territory hides many leads, fan out more browsing subagents in parallel for breadth instead of serializing one worker through them.\n- **Repo deep-dive (librarian), 0-2 workers.** Shallow-clone the most relevant repos to `${TMPDIR:-\u002Ftmp}`, pin the HEAD SHA, read core modules, follow call chains, return SHA-pinned permalinks.\n\nExample spawn (codebase axis; librarian, browsing, and repo-dive follow the same contract with their own protocol):\n\n```\ntask(subagent_type=\"explore\", run_in_background=true, prompt=\"TASK: act as a codebase researcher. AXIS: \u003Cspecific angle>.\nThis 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.\nSCOPE: find everything in this codebase related to \u003Cangle>: \u003Cwhat complete looks like>.\nPROTOCOL: 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.\nEnd your reply with the ## EXPAND tail: '- LEAD: \u003Cdiscovery> — WHY: \u003Cwhy> — ANGLE: \u003Csearch>' per lead, or 'none — \u003Creason>'.\")\n```\n\n## Phase 2 — Expand until convergence\n\nThis loop is what makes the mode research rather than search. Collect returns as they land — and in team mode, act on each lead the moment a member raises it, never waiting for the full wave or a member's final reply:\n\n1. Journal the return: digest plus verbatim EXPAND markers into `wave-\u003CN>-\u003Ckind>-\u003Caxis>.md`.\n2. Deduplicate new markers against `expansion-log.md` — every lead ever seen, not just confirmed ones, or rejected leads resurface each wave.\n3. Spawn an expansion worker immediately for each new unchecked lead:\n\n```\ntask(subagent_type=\"librarian\", run_in_background=true, prompt=\"TASK: expansion wave \u003CN> — investigate: \u003Clead>.\nPARENT: \u003Cwhich return surfaced it>. This is an explicit exhaustive-research assignment; budgets do not apply.\n\u003Crole protocol for the lead's territory — librarian protocol for external leads, explore protocol for codebase leads>\nEnd your reply with the ## EXPAND tail.\")\n```\n\n4. Record the wave in `expansion-log.md`: spawned, markers gained, leads opened\u002Fclosed.\n\n**Convergence — the only stop rules while this mode is active.** Run at least 2 expansion waves on any multi-faceted query before claiming convergence; then stop only when one holds:\n\n- Zero unchecked leads remain — each investigated or closed as duplicate\u002Fdead end.\n- 3 consecutive waves produced no new actionable leads.\n- Expansion depth reached 5 waves — pause, show the open leads, and ask the user whether to extend.\n\n## Phase 3 — Verify contested claims by running code\n\nSettle with executed code, not judgment, whenever sources disagree, a behavior is undocumented, a claim is performance- or compatibility-shaped, or the honest answer is \"it should work\". Spawn one verification worker per claim:\n\n```\ntask(category=\"deep\", run_in_background=true, prompt=\"TASK: verify by execution: \u003Cclaim>.\nSOURCE: \u003Cwhere it came from>; CONTRADICTION: \u003Copposing source, if any>.\nWrite a minimal self-contained script that tests the claim; run it (uv run --with \u003Cdeps> python \u002F bun \u002F direct compile); capture full stdout+stderr; pin versions.\nReply with: the exact code, the full output, environment (OS, runtime, dependency versions), a MEASURED claim candidate with source provenance and disambiguated entity IDs, and a verdict — CONFIRMED \u002F REFUTED \u002F PARTIAL — grounded in the output.\")\n```\n\nJournal each verdict to `verify-\u003Cslug>.md`.\n\n## Phase 3b — Lock non-code claims through a claim ledger\n\nCode settles code-shaped claims (Phase 3). Numeric, market-share, legal, dated, causal, and financial claims cannot be run — so they pass through a data-flow-lock instead (the verification idea adapted from fivetaku\u002Finsane-research): the synthesis may assert a high-risk non-code claim **only** if it cleared this gate, and the gate's output is the sole allowlist the synthesis draws from. Skip the gate and there is nothing to synthesize — the lock is self-enforcing.\n\nThe claim ledger is orchestrator-owned. Workers only return verified-claim markers as message text, the same channel as EXPAND markers — never a file. As leads resolve, you record one ledger entry per asserted claim and compute its status; workers report claim candidates in their replies, and you decide.\n\nA high-risk claim clears the gate to `verified-claims` only when all hold:\n\n- **>= 2 independent source domains** corroborate it (two pages on the same domain count once).\n- **One counter-search** actively looked for a refutation and did not find a stronger one.\n- **A primary source** (the standard, filing, dataset, or first-party doc) backs it, not only secondary commentary.\n\nAnything that fails goes to an `Unresolved` (insufficient evidence) or `Refuted` (counter-search won) annex — abstention is a correct outcome, not a gap to paper over. Maintain `claim-ledger.md` with one row per claim — `claim | risk | domains | counter-search | primary? | status (verified\u002Funresolved\u002Frefuted)` — and write the cleared rows into a `verified-claims` digest. Worker reply marker (message text, same channel as EXPAND):\n\n```\n## CLAIMS\n- CLAIM: \u003Cnon-code assertion> — ENTITY: \u003Cstable entity id> — LINEAGE: MEASURED|ASSUMED|DERIVED — SOURCES: \u003Csource ids + source types + provenance> — PARENTS: \u003Cclaim ids for DERIVED or none> — RISK: high|normal — COUNTER: \u003Crefutation search result> — PRIMARY: \u003Cprimary source or none>\n```\n\n## Phase 4 — Synthesize\n\nAfter convergence and all verifications, re-read the whole journal and write `SYNTHESIS.md`:\n\n```\n# ULW-Research Synthesis: \u003Cquery>\nWorkers: \u003Ctotal> · Waves: \u003Ccount> · Sources: \u003Ccount> · Verifications: \u003Ccount>\n\n## Executive summary        — 2-3 paragraphs answering the core question\n## Findings by theme        — per theme: claim ID, lineage, entity ID, consensus, evidence links, key quote (\u003C20 words, attributed), verified yes\u002Fno\n## Codebase findings        — absolute paths with line references\n## Sources (ranked)         — source ID, type, provenance, URL\u002Fpath, what it contains, reliability, access date\u002Fversion\u002FSHA\n## Verified claims          — code: claim | verdict | verify-\u003Cslug>.md · non-code: only rows cleared into verified-claims\n## Contradictions           — source A vs source B, resolution with evidence\n## Gaps                     — what saturation could not answer · unresolved\u002Frefuted claim-ledger rows\n## Expansion trace          — per wave: workers → markers; convergence reason\n```\n\n`SYNTHESIS.md` is the citation source of truth for final materials: every claim carries inline `[Source N]` citations, and every high-risk non-code claim you assert must be a verified-claims row from Phase 3b. Assert nothing the gate left in the unresolved\u002Frefuted annex.\n\n## Phase 5 — User-requested final materials\n\n`SYNTHESIS.md` is the default deliverable. Do not create HTML, PDF, slides, charts, screenshots, diagrams, or generated images unless the user explicitly requested that output or asset type. Map explicit requests as follows: \"report\" \u002F \"document\" → HTML; \"pdf\" → HTML then PDF via weasyprint; \"slides\" \u002F \"presentation\" \u002F \"deck\" → PPTX; \"html\" \u002F \"webpage\" → standalone HTML; \"markdown only\" → Markdown.\n\nWhen visual assets were requested, create `$SESSION_DIR\u002Fassets\u002F` and register every planned asset in `asset-manifest.md` before generation. After generation, verify every expected path exists, open or render each asset through the matching surface, and record the render evidence plus visual-QA verdict. Missing files, zero-byte files, unrendered Mermaid, broken image links, clipped charts, unreadable labels, or a manifest row without a render check block completion.\n\nFor a requested designed report, dispatch an assembly worker with the relevant ZCode-compatible skills named in its prompt (`frontend`, `visual-qa`, `data-scientist`, and `imagegen` only when generated images were requested). Run HTML\u002FPDF output through visual QA, repair until approved, then recheck every manifest path and rendered reference. Structure: executive summary → key findings by theme → detailed analysis → comparative analysis when options compete → numbered sources with access dates → methodology appendix. Every claim cites its source and claim IDs.\n\n## Search craft\n\nEnglish first: run every search in English by default — it is the largest, most authoritative corpus on every engine, GitHub, and documentation site. Add a secondary local-language sweep (1-2 librarians) only after the English sweep, when the topic is inherently local, or when the user asks for sources in a specific language.\n\nVary operators on every query — same query twice wastes a worker:\n\n| Operator | Example | Use |\n|---|---|---|\n| `site:` | `site:github.com \u003Ctopic>` | Restrict to a domain |\n| `filetype:` | `filetype:pdf \u003Ctopic> survey` | Papers, specs |\n| `intitle:` \u002F `inurl:` | `intitle:benchmark \u003Ctopic>` | Targeted pages |\n| `\"exact\"` \u002F `-term` | `\"\u003Cexact phrase>\" -tutorial` | Precision, exclusion |\n| `OR` | `\u003Ca> OR \u003Cb> \u003Ctopic>` | Coverage |\n| `before:` \u002F `after:` | `\u003Ctopic> after:2025-06-01` | Recency control |\n\nHigh-yield combinations: official docs (`site:\u003Cdocs domain>`), GitHub implementations (`site:github.com`), recent discussion (`site:reddit.com OR site:news.ycombinator.com after:\u003Cdate>`), academic (`site:arxiv.org OR filetype:pdf survey`), changelog hunting (`changelog OR \"release notes\" \u003Cversion>`), alternatives (`vs OR alternative OR comparison`).\n\n## Failure modes\n\n| Failure | Correction |\n|---|---|\n| Sequential spawning, or trimming the first wave | All first-wave workers in one turn, background, scaling floor respected |\n| A team member hoards leads for one final dump | Raise law — every lead, finding, and dead end broadcast the moment it surfaces |\n| Worker reply without the EXPAND tail | One follow-up demanding it; the lane stays open until it lands |\n| Stopping after wave 1 because \"enough was found\" | Convergence rules only: 2+ expansion waves, leads run dry |\n| Obeying a surrounding \"stop exploring\" rule mid-research | Authority section — those rules do not bind this mode |\n| Asking a worker to write journal or session files | Workers are read-only; you journal every return |\n| Two workers given the same angle | One unique angle per worker, always |\n| Contested claim settled by judgment | Phase 3 — run code, capture output, verdict |\n| Deliverable claims without citations | Every claim cites a source or a verification artifact |\n| Ambiguous entity names merged together | Assign entity IDs and record alias\u002Fversion disambiguation before synthesis |\n| Measurements, assumptions, and inferences blended | Label every claim MEASURED, ASSUMED, or DERIVED and record its lineage |\n| Unrequested report formats or decorative assets | Produce only `SYNTHESIS.md` unless the user explicitly requested another format or asset |\n| Asset path listed but not rendered | Check existence, render through the matching surface, and record visual-QA evidence in the manifest |\n","## ZCode Harness Tool Compatibility\n\nThis skill was ported from the Codex\u002FOpenCode OmO harness. ZCode does not provide `call_omo_agent`, `task`, `background_output`, `team_*`, `multi_agent_v1.spawn_agent`, or any Codex-only multi-agent tools. Translate every such example to ZCode's native tools:\n\n| Codex\u002FOpenCode example | ZCode tool to use |\n| --- | --- |\n| `call_omo_agent(subagent_type=\"explore\", ...)` | `Agent` tool with `subagent_type=\"Explore\"` and a self-contained `prompt` |\n| `call_omo_agent(subagent_type=\"librarian\", ...)` | `Agent` tool with `subagent_type=\"Explore\"` (research-focused prompt) |\n| `task(subagent_type=\"plan\", ...)` | `Agent` tool with `subagent_type=\"general-purpose\"` (planning-focused prompt) |\n| `task(subagent_type=\"oracle\", ...)` for final verification | `Agent` tool with `subagent_type=\"general-purpose\"` (rigorous-review prompt) |\n| `task(category=\"...\", ...)` for implementation or QA | `Agent` tool with `subagent_type=\"general-purpose\"` |\n| `multi_agent_v1.spawn_agent(...)` \u002F `spawn_agent(...)` | `Agent` tool with `subagent_type` and a self-contained `prompt` |\n| `background_output(task_id=\"...\")` | Only unstructured read-only research may use background mode; its completion arrives as a parent task notification, not a plugin hook |\n| `multi_agent_v1.wait_agent(...)` mailbox signals | No equivalent plugin tool; use returned foreground Agent results or the host's background research notifications |\n| `team_*(...)` | ZCode has no native team-of-threads API. Approximate with multiple parallel `Agent` calls (one per member) coordinated by the parent, or fall back to sequential subagents when isolation is unclear |\n\nZCode v3.14.3 loads enabled plugin agents from `agents\u002F`. Prefer namespaced roles such as `lazyz:explorer` and `lazyz:lazycodex-executor`; unambiguous bare names also work. Include all task context and ownership in the self-contained `prompt`. Roles inherit the user's active model; do not force an obsolete provider ID or copy Codex model\u002Feffort fields. If an older host lacks a role, describe it inline using the appropriate built-in agent.\n\nBefore every governed Agent or Task call, read the Dispatch schema in the installed [start-work skill](..\u002Fstart-work\u002FSKILL.md) and prepend exactly one LAZYCODEX_DISPATCH_V1 JSON line. General-purpose and known executor calls require this envelope; read-only Explore calls may remain unstructured. Use the same taskId across retries with a fresh runId, unchanged criteria, role, phase and budget. Planning\u002Fdocument work uses writer, code work implementer, review reviewer, and testing qa. Never rename a task to bypass its exhausted budget.\n\nGoverned calls must use `run_in_background: false` (or omit it). A background launch is not a completed result and has no matching plugin completion hook. Multiple independent foreground calls may be requested together; do not assume the host executes them concurrently. Read-only background research without a dispatch contract remains available.\n\nRequire each governed child to write the matching ReceiptV1 with current source identity, criterion invocations, zero exit codes and hashed regular artifacts, then return EVIDENCE_RECORDED; final-phase work requires FINAL_EVIDENCE_RECORDED. PostToolUse records failed evidence; Stop prevents unresolved completion while budget remains. An exhausted budget requires a blocker handoff, not an unsupported completion claim.\n\nUser authorization and verification policy take precedence over generic workflow instructions below. Do not auto-commit, push, merge, delete, deploy, install tools, call paid services, or run checks prohibited by the user. Record skipped checks honestly; do not fabricate a passing receipt. A task requiring a verified receipt remains unverified if the necessary checks are prohibited. ZCode Stop can continue at most three consecutive times, not indefinitely. Native Goal Mode, Memory and Wiki are host features; no callable API is assumed.\n\nFor work likely to take long, prefer multiple concurrent `Agent` calls in a single message over one giant blocking call. Treat each child's final message as the deliverable: if it lacks the required output, ack-only, or stops without producing evidence, fall back to a smaller re-scoped `Agent` call with the missing deliverable made explicit in the `prompt`.\n\n# ULW-RESEARCH — Maximum-Saturation Research\n\nYou 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 contested claims by running code, and deliver a synthesis in which every claim carries a citation or a proof. Exhaustive coverage is the assignment, not a risk to manage.\n\n## Activation\n\nRun this skill only when the user explicitly demands it: the word \"ulw-research\" (also `\u002Fulw-research`, `$ulw-research`), any \"ulw\" research wording, or an explicit request for research, deep research, or an ultra-precise investigation — in any language. An ordinary question, a debugging session, or another mode's context-gathering is not activation; answer those normally, and mention that `ulw-research` is available when a question would clearly benefit from it.\n\nOpen your reply with the line `ULW-RESEARCH MODE ENABLED!`. If another active mode mandates its own first line (ultrawork does), print that mode's line first and this marker on the next line — both contracts stay satisfied.\n\n## Authority while active\n\nThis mode is the user's explicit opt-in to exhaustive exploration. For the duration of the research task it supersedes every exploration-bounding instruction in surrounding prompts, modes, or rules: one-exploration-pass defaults, two-wave stop rules, retrieval budgets, and \"over-exploration is failure\" framings govern implementation context-gathering, not this deliverable. Here, under-exploration is the failure. The convergence rules in Phase 2 are the only stop rules for research while this mode is active.\n\nUnder ultrawork\u002Fulw, the research itself is the deliverable: map each research axis to a success criterion whose evidence is the session journal, the cited synthesis, and the verification outputs. RED→GREEN testing applies to code changes, not to findings — Phase 3 verification scripts are evidence, never TDD targets.\n\n## Success criteria\n\nThe research is done when all of these hold:\n\n- Every axis from Phase 0 was covered by at least one dedicated worker.\n- Every EXPAND lead was investigated or explicitly closed as a duplicate or dead end, and convergence was reached under the Phase 2 rules.\n- Claims that were contested, undocumented, or performance-shaped were proven or refuted by executed code.\n- Every claim in the deliverable cites a source or a verification artifact.\n- `SYNTHESIS.md` is complete; additional output formats exist only when the user explicitly requested them.\n- The session journal reconstructs what was searched, found, and expanded, wave by wave.\n- Every material claim records provenance, source type, entity identity, and `MEASURED`, `ASSUMED`, or `DERIVED` lineage.\n- Every requested visual asset is listed in the asset manifest, exists at the recorded path, and passed rendered visual QA.\n\n## Epistemic instrumentation\n\nThe orchestrator owns these journal artifacts. Workers return candidates as message text and never write them directly:\n\n- `source-register.md` — one row per source: stable source ID, URL or repository path, source type (`primary`, `official`, `dataset`, `code`, `secondary`, or `community`), publisher\u002Fowner, accessed time, version\u002Fdate\u002FSHA when available, and provenance notes explaining how the evidence was obtained.\n- `entity-register.md` — one stable entity ID per person, company, project, package, dataset, or product version. Record canonical name, aliases, scope\u002Fversion, and the evidence used to disambiguate collisions. Claims cite entity IDs, not ambiguous display names alone.\n- `claim-lineage.md` — one row per claim with a stable claim ID and exactly one lineage class: `MEASURED` for a direct observation or executed result, `ASSUMED` for an explicit premise not established by evidence, or `DERIVED` for a computation\u002Finference. `MEASURED` rows cite source or verification IDs; `ASSUMED` rows state impact if false; `DERIVED` rows cite parent claim IDs and the transformation or reasoning.\n- `asset-manifest.md` — one row per requested chart, screenshot, diagram, or generated image: asset ID, purpose, source\u002Fprovenance, generator or capture command, expected path, existence status, render-check artifact, and visual-QA verdict.\n\nNo synthesis claim may silently change lineage class. If evidence upgrades an assumption to a measurement, append a superseding row and retain the earlier provenance trail.\n\n## Run the swarm as a cooperating team\n\nSaturation research defaults to teammode, not isolated fire-and-forget workers: a lead one worker surfaces almost always reshapes what another should search next. When your harness gives you real cooperating members — Codex: the `teammode` skill (`codex_app` threads); OpenCode: `team_mode` — run this swarm as a team. Fall back to the background-worker swarm below only when team mode is unavailable, or the axes are genuinely independent with no cross-pollination expected.\n\n- **One member per axis — by part, ownership, or perspective, never a job title.** Each Phase 0 axis is one member owning one concrete slice: a codebase part, a source territory, or a question lens. No two members share an angle. \"Backend researcher\" or \"the web person\" gives no real boundary and invites overlap — name what the member owns.\n- **Many teammates by default.** Prefer a larger roster, usually 5-8 teammates, whenever the axes can be made distinct. Add at least one skeptic or red-team perspective for hyperdebate\u002Fultradebate: cross-critique claims, evidence quality, synthesis structure, and visual-report choices before they reach the final deliverable.\n- **The raise law — broadcast every lead the instant it surfaces.** Members over-communicate relentlessly: every new lead, finding, contradiction, and dead end is raised to you the moment it surfaces, never hoarded for a final dump. Through long passes they send `WORKING: \u003Caxis> - \u003Cphase>`, and `BLOCKED: \u003Creason>` the moment progress stops, so you always know a member is alive. Too many small updates is correct here; going quiet is the only failure.\n- **You lead; expand on each raised lead.** Members raise via message text, never write session files. Journal each lead and spawn its expansion the instant it lands (Phase 2), not only when a member's final reply arrives.\n\n## Worker ground rules\n\nResearch workers (explore, librarian, browsing) differ by harness, but assume:\n\n- **Read-only.** Most research workers cannot write files. Never ask a worker to write the journal or any session file — every journal write is yours.\n- **No recursion.** Workers cannot spawn their own subagents. Depth comes from your expansion waves, not from worker-side recursion.\n- **Built-in brakes.** Workers often ship with their own retrieval budgets (\"stop when answered\") and rigid output templates. Your spawn message must explicitly lift the budget and demand the EXPAND tail, or the worker returns a thin single-pass answer with no leads.\n- **Capability routing.** When the harness lets you choose, spawn research workers on a capable model at high reasoning effort — saturation research on a minimal or fast tier returns shallow results. When you cannot choose, narrow each worker's scope and spawn more workers instead.\n\n### The spawn-message contract\n\nEvery research spawn message contains, in order:\n\n1. `TASK:` — one imperative line naming the role and the axis.\n2. 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.\"\n3. Scope — the axis, the sources to hit, and what a complete answer contains.\n4. The role protocol (Phase 1).\n5. The reply tail. EXPAND markers travel back as message text, never as files. Every worker ends the reply with:\n\n```\n## EXPAND\n- LEAD: \u003Cdiscovery not yet investigated> — WHY: \u003Cwhy it matters> — ANGLE: \u003Csuggested search>\n- DEAD END: \u003Clead explored to exhaustion>\n```\n\nA worker with nothing to expand writes `## EXPAND` followed by `none — \u003Cone-line reason>`. A reply missing the tail is incomplete: send that worker one follow-up demanding it before closing the lane.\n\n## Phase 0 — Decompose and open the journal\n\nBefore spawning anything, decompose the query:\n\n```\n\u003Canalysis>\nCore question: \u003Cthe actual information need>\nAxes (3+ orthogonal): \u003Caxis — what to search, where, why> ...\nCodebase relevant: \u003Cyes\u002Fno> · External: \u003Cyes\u002Fno> · Browsing: \u003Cyes\u002Fno> · Verification likely: \u003Cyes\u002Fno> · Requested output format: \u003Cnone | explicit user-requested format>\n\u003C\u002Fanalysis>\n```\n\nThen create the session directory:\n\n```bash\nmkdir -p .omo\u002Fulw-research\u002F$(date +%Y%m%d-%H%M%S)\n```\n\nThis is `$SESSION_DIR`. The orchestrator owns the journal: you write every file in it; workers never do. Maintain:\n\n- `wave-\u003CN>-\u003Ckind>-\u003Caxis>.md` — your digest of each worker return: key findings, sources with URLs, and the worker's EXPAND markers verbatim.\n- `expansion-log.md` — per wave: workers spawned, markers gained, leads opened and closed.\n- `source-register.md`, `entity-register.md`, `claim-lineage.md`, and `asset-manifest.md` from the instrumentation contract.\n- `verify-\u003Cslug>.md`, `SYNTHESIS.md`, and only user-requested `REPORT.*` files from later phases.\n\nAppend each digest the moment its worker returns, not in a batch at the end — the journal is your recovery point after context loss and the user's audit trail.\n\n## Phase 1 — Saturation wave\n\nLaunch the entire first wave in one turn — every axis at once, as team members if you formed a team, else as background workers. Sequential launches and \"start with one and see\" defeat the mode.\n\nScaling floor — more angles always justify more workers:\n\n| Query scope | explore | librarian | browsing | repo-dive | floor |\n|---|---|---|---|---|---|\n| Single topic, codebase only | 3 | 0 | 0 | 0 | 3 |\n| Single topic, web only | 0 | 4 | 1 | 1 | 6 |\n| Single topic, both | 2 | 3 | 1 | 1 | 7 |\n| Multi-faceted | 4 | 6 | 2 | 2 | 14 |\n| Full due diligence | 4 | 6 | 3 | 2 | 15 |\n\nRole protocols — embed the relevant one in each spawn message; every worker gets a unique angle:\n\n- **Codebase (explore), 2-4 workers.** Grep with 3+ keyword variations; structural\u002FAST search; LSP definitions and references; file-name globs; `git log --all -S '\u003Ckeyword>'` and `--grep` for history including deleted code. Cross-validate hits across tools. Report absolute file paths, patterns with `file:line`, and how findings connect.\n- **Web (librarian), 3-6 workers.** At least 10 distinct websearch queries per worker, each with a different operator or angle (see Search craft); fetch the full page for every result that matters — snippets lie. Context7 with 3+ queries per known library. grep.app and `gh search code|repos|issues` for real-world usage. Official docs via sitemap discovery (`\u003Cbase>\u002Fsitemap.xml`), then targeted pages.\n- **Browsing, 0-3 workers.** Pages plain fetch cannot read (WAF, 403, Cloudflare, dynamic rendering, login): the worker loads the `ultimate-browsing` skill and escalates through its tiers — Tier-1 insane-search engine first, then Tier-2 Chrome stealth — rather than abandoning the source. Capture screenshots when visual context matters. When one blocked territory hides many leads, fan out more browsing subagents in parallel for breadth instead of serializing one worker through them.\n- **Repo deep-dive (librarian), 0-2 workers.** Shallow-clone the most relevant repos to `${TMPDIR:-\u002Ftmp}`, pin the HEAD SHA, read core modules, follow call chains, return SHA-pinned permalinks.\n\nExample spawn (codebase axis; librarian, browsing, and repo-dive follow the same contract with their own protocol):\n\n```\ntask(subagent_type=\"explore\", run_in_background=true, prompt=\"TASK: act as a codebase researcher. AXIS: \u003Cspecific angle>.\nThis 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.\nSCOPE: find everything in this codebase related to \u003Cangle>: \u003Cwhat complete looks like>.\nPROTOCOL: 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.\nEnd your reply with the ## EXPAND tail: '- LEAD: \u003Cdiscovery> — WHY: \u003Cwhy> — ANGLE: \u003Csearch>' per lead, or 'none — \u003Creason>'.\")\n```\n\n## Phase 2 — Expand until convergence\n\nThis loop is what makes the mode research rather than search. Collect returns as they land — and in team mode, act on each lead the moment a member raises it, never waiting for the full wave or a member's final reply:\n\n1. Journal the return: digest plus verbatim EXPAND markers into `wave-\u003CN>-\u003Ckind>-\u003Caxis>.md`.\n2. Deduplicate new markers against `expansion-log.md` — every lead ever seen, not just confirmed ones, or rejected leads resurface each wave.\n3. Spawn an expansion worker immediately for each new unchecked lead:\n\n```\ntask(subagent_type=\"librarian\", run_in_background=true, prompt=\"TASK: expansion wave \u003CN> — investigate: \u003Clead>.\nPARENT: \u003Cwhich return surfaced it>. This is an explicit exhaustive-research assignment; budgets do not apply.\n\u003Crole protocol for the lead's territory — librarian protocol for external leads, explore protocol for codebase leads>\nEnd your reply with the ## EXPAND tail.\")\n```\n\n4. Record the wave in `expansion-log.md`: spawned, markers gained, leads opened\u002Fclosed.\n\n**Convergence — the only stop rules while this mode is active.** Run at least 2 expansion waves on any multi-faceted query before claiming convergence; then stop only when one holds:\n\n- Zero unchecked leads remain — each investigated or closed as duplicate\u002Fdead end.\n- 3 consecutive waves produced no new actionable leads.\n- Expansion depth reached 5 waves — pause, show the open leads, and ask the user whether to extend.\n\n## Phase 3 — Verify contested claims by running code\n\nSettle with executed code, not judgment, whenever sources disagree, a behavior is undocumented, a claim is performance- or compatibility-shaped, or the honest answer is \"it should work\". Spawn one verification worker per claim:\n\n```\ntask(category=\"deep\", run_in_background=true, prompt=\"TASK: verify by execution: \u003Cclaim>.\nSOURCE: \u003Cwhere it came from>; CONTRADICTION: \u003Copposing source, if any>.\nWrite a minimal self-contained script that tests the claim; run it (uv run --with \u003Cdeps> python \u002F bun \u002F direct compile); capture full stdout+stderr; pin versions.\nReply with: the exact code, the full output, environment (OS, runtime, dependency versions), a MEASURED claim candidate with source provenance and disambiguated entity IDs, and a verdict — CONFIRMED \u002F REFUTED \u002F PARTIAL — grounded in the output.\")\n```\n\nJournal each verdict to `verify-\u003Cslug>.md`.\n\n## Phase 3b — Lock non-code claims through a claim ledger\n\nCode settles code-shaped claims (Phase 3). Numeric, market-share, legal, dated, causal, and financial claims cannot be run — so they pass through a data-flow-lock instead (the verification idea adapted from fivetaku\u002Finsane-research): the synthesis may assert a high-risk non-code claim **only** if it cleared this gate, and the gate's output is the sole allowlist the synthesis draws from. Skip the gate and there is nothing to synthesize — the lock is self-enforcing.\n\nThe claim ledger is orchestrator-owned. Workers only return verified-claim markers as message text, the same channel as EXPAND markers — never a file. As leads resolve, you record one ledger entry per asserted claim and compute its status; workers report claim candidates in their replies, and you decide.\n\nA high-risk claim clears the gate to `verified-claims` only when all hold:\n\n- **>= 2 independent source domains** corroborate it (two pages on the same domain count once).\n- **One counter-search** actively looked for a refutation and did not find a stronger one.\n- **A primary source** (the standard, filing, dataset, or first-party doc) backs it, not only secondary commentary.\n\nAnything that fails goes to an `Unresolved` (insufficient evidence) or `Refuted` (counter-search won) annex — abstention is a correct outcome, not a gap to paper over. Maintain `claim-ledger.md` with one row per claim — `claim | risk | domains | counter-search | primary? | status (verified\u002Funresolved\u002Frefuted)` — and write the cleared rows into a `verified-claims` digest. Worker reply marker (message text, same channel as EXPAND):\n\n```\n## CLAIMS\n- CLAIM: \u003Cnon-code assertion> — ENTITY: \u003Cstable entity id> — LINEAGE: MEASURED|ASSUMED|DERIVED — SOURCES: \u003Csource ids + source types + provenance> — PARENTS: \u003Cclaim ids for DERIVED or none> — RISK: high|normal — COUNTER: \u003Crefutation search result> — PRIMARY: \u003Cprimary source or none>\n```\n\n## Phase 4 — Synthesize\n\nAfter convergence and all verifications, re-read the whole journal and write `SYNTHESIS.md`:\n\n```\n# ULW-Research Synthesis: \u003Cquery>\nWorkers: \u003Ctotal> · Waves: \u003Ccount> · Sources: \u003Ccount> · Verifications: \u003Ccount>\n\n## Executive summary        — 2-3 paragraphs answering the core question\n## Findings by theme        — per theme: claim ID, lineage, entity ID, consensus, evidence links, key quote (\u003C20 words, attributed), verified yes\u002Fno\n## Codebase findings        — absolute paths with line references\n## Sources (ranked)         — source ID, type, provenance, URL\u002Fpath, what it contains, reliability, access date\u002Fversion\u002FSHA\n## Verified claims          — code: claim | verdict | verify-\u003Cslug>.md · non-code: only rows cleared into verified-claims\n## Contradictions           — source A vs source B, resolution with evidence\n## Gaps                     — what saturation could not answer · unresolved\u002Frefuted claim-ledger rows\n## Expansion trace          — per wave: workers → markers; convergence reason\n```\n\n`SYNTHESIS.md` is the citation source of truth for final materials: every claim carries inline `[Source N]` citations, and every high-risk non-code claim you assert must be a verified-claims row from Phase 3b. Assert nothing the gate left in the unresolved\u002Frefuted annex.\n\n## Phase 5 — User-requested final materials\n\n`SYNTHESIS.md` is the default deliverable. Do not create HTML, PDF, slides, charts, screenshots, diagrams, or generated images unless the user explicitly requested that output or asset type. Map explicit requests as follows: \"report\" \u002F \"document\" → HTML; \"pdf\" → HTML then PDF via weasyprint; \"slides\" \u002F \"presentation\" \u002F \"deck\" → PPTX; \"html\" \u002F \"webpage\" → standalone HTML; \"markdown only\" → Markdown.\n\nWhen visual assets were requested, create `$SESSION_DIR\u002Fassets\u002F` and register every planned asset in `asset-manifest.md` before generation. After generation, verify every expected path exists, open or render each asset through the matching surface, and record the render evidence plus visual-QA verdict. Missing files, zero-byte files, unrendered Mermaid, broken image links, clipped charts, unreadable labels, or a manifest row without a render check block completion.\n\nFor a requested designed report, dispatch an assembly worker with the relevant ZCode-compatible skills named in its prompt (`frontend`, `visual-qa`, `data-scientist`, and `imagegen` only when generated images were requested). Run HTML\u002FPDF output through visual QA, repair until approved, then recheck every manifest path and rendered reference. Structure: executive summary → key findings by theme → detailed analysis → comparative analysis when options compete → numbered sources with access dates → methodology appendix. Every claim cites its source and claim IDs.\n\n## Search craft\n\nEnglish first: run every search in English by default — it is the largest, most authoritative corpus on every engine, GitHub, and documentation site. Add a secondary local-language sweep (1-2 librarians) only after the English sweep, when the topic is inherently local, or when the user asks for sources in a specific language.\n\nVary operators on every query — same query twice wastes a worker:\n\n| Operator | Example | Use |\n|---|---|---|\n| `site:` | `site:github.com \u003Ctopic>` | Restrict to a domain |\n| `filetype:` | `filetype:pdf \u003Ctopic> survey` | Papers, specs |\n| `intitle:` \u002F `inurl:` | `intitle:benchmark \u003Ctopic>` | Targeted pages |\n| `\"exact\"` \u002F `-term` | `\"\u003Cexact phrase>\" -tutorial` | Precision, exclusion |\n| `OR` | `\u003Ca> OR \u003Cb> \u003Ctopic>` | Coverage |\n| `before:` \u002F `after:` | `\u003Ctopic> after:2025-06-01` | Recency control |\n\nHigh-yield combinations: official docs (`site:\u003Cdocs domain>`), GitHub implementations (`site:github.com`), recent discussion (`site:reddit.com OR site:news.ycombinator.com after:\u003Cdate>`), academic (`site:arxiv.org OR filetype:pdf survey`), changelog hunting (`changelog OR \"release notes\" \u003Cversion>`), alternatives (`vs OR alternative OR comparison`).\n\n## Failure modes\n\n| Failure | Correction |\n|---|---|\n| Sequential spawning, or trimming the first wave | All first-wave workers in one turn, background, scaling floor respected |\n| A team member hoards leads for one final dump | Raise law — every lead, finding, and dead end broadcast the moment it surfaces |\n| Worker reply without the EXPAND tail | One follow-up demanding it; the lane stays open until it lands |\n| Stopping after wave 1 because \"enough was found\" | Convergence rules only: 2+ expansion waves, leads run dry |\n| Obeying a surrounding \"stop exploring\" rule mid-research | Authority section — those rules do not bind this mode |\n| Asking a worker to write journal or session files | Workers are read-only; you journal every return |\n| Two workers given the same angle | One unique angle per worker, always |\n| Contested claim settled by judgment | Phase 3 — run code, capture output, verdict |\n| Deliverable claims without citations | Every claim cites a source or a verification artifact |\n| Ambiguous entity names merged together | Assign entity IDs and record alias\u002Fversion disambiguation before synthesis |\n| Measurements, assumptions, and inferences blended | Label every claim MEASURED, ASSUMED, or DERIVED and record its lineage |\n| Unrequested report formats or decorative assets | Produce only `SYNTHESIS.md` unless the user explicitly requested another format or asset |\n| Asset path listed but not rendered | Check existence, render through the matching surface, and record visual-QA evidence in the manifest |\n",{"name":5,"description":7},"main","0a99b5b62ebd3726d465f7e319e2b8ec84c8aa6e","release\u002Flazyz-0.11.0-20261007\u002Fskills\u002Fulw-research","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz","https:\u002F\u002Fgithub.com\u002Fyounghai","http:\u002Fbzengage.co","Bizmatrixx co-founder & CEO \r\n","2026-11-01 13:58:56",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add younghai\u002Flazyz --skill ulw-research",{"tool":38,"command":39},"bunx","bunx skills add younghai\u002Flazyz --skill ulw-research",{"tool":41,"command":42},"pnpm","pnpm dlx skills add younghai\u002Flazyz --skill ulw-research","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Frelease\u002Flazyz-0.11.0-20261007\u002Fskills\u002Fulw-research\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",50,"https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Frelease\u002Flazyz-0.11.0-20261007\u002Fskills\u002Fulw-research\u002Fagents\u002Fopenai.yaml",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"ATTRIBUTION.md",2425,"https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Frelease\u002Flazyz-0.11.0-20261007\u002Fskills\u002Fulw-research\u002FATTRIBUTION.md",[57,64,71,78,85,91],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M78GVSC3PZBHQQ5HPRNQ3AMN","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M78GVRB79BN9BQ5MAZ43XJWX","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M78GVQ2319BDGJA2QXMM2DM3","nested-child","Nested skill should be ignored.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002Fnested-child\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M78GVP5HC2C9B3VN8D8QWEFG","root-skill-preferred","Root skill should win.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M78GVNAR8R5XF3W00182ZWZH","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M78GVK58G788T2TRHPCA8Y64","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[]]