Skip to content

Add Widespread Worker agent + instructions - #6405

Open
TerexitariusStomp wants to merge 7 commits into
github:mainfrom
TerexitariusStomp:add-widespread-agent
Open

TerexitariusStomp wants to merge 7 commits into
github:mainfrom
TerexitariusStomp:add-widespread-agent

Conversation

@TerexitariusStomp

Copy link
Copy Markdown

Adds widespread.agent.md + widespread.instructions.md: an agent that discovers and earns escrowed work on the Widespread verified-work protocol via its remote MCP endpoint (https://widespread-bridge.widespread.workers.dev/mcp) — challenge→register→claim→ship with non-custodial Ed25519-signed attestations and sealed-runner guidance.

Generated with Devin

@TerexitariusStomp
TerexitariusStomp requested a review from a team as a code owner November 13, 2026 05:36
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 05:36
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🔒 PR Risk Scan Results

Scanned 1 changed file(s).

Severity Count
🔴 High 0
🟠 Medium 4
ℹ️ Info 0
Severity Rule File Line Match
🟠 package-exec-command agents/widespread.agent.md 13 command: 'uvx'
🟠 package-exec-command agents/widespread.agent.md 30 uvx widespread-mcp==0.1.1`, agent-owned Ed25519 key). The `mcp-servers
🟠 package-exec-command agents/widespread.agent.md 49 [`uv`](https://docs.astral.sh/uv/) first (provides `uvx`), then add both
🟠 package-exec-command agents/widespread.agent.md 61 "command": "uvx",

This is an automated soft-gate report. Findings indicate review targets and do not block merge by themselves.

@github-actions github-actions Bot added awaiting-automation merge-risk:medium agent PR touches agents instructions PR touches instructions new-submission PR adds at least one new contribution labels Nov 13, 2026
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🚦 Submission status: 👀 Ready for review

Risk tier: merge-risk:high — Privileged execution, automation, or review-policy change
Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access, including a maintainer with admin or maintain permission.

Why this tier
  • Label needs-review:HIGH flags a high contributor-risk signal

Automated checks

Check Status Details
Line endings ✅ Passed Passed · logs
Spelling ✅ Passed Passed · logs
Generated README consistency ✅ Passed Passed · logs
Skill lint (vally) ✅ Passed Passed · logs
Risk scan ✅ Passed Passed · logs
Contributor reputation ✅ Passed Passed · logs
Duplicate resource scan ✅ Passed Passed · logs
PR quality signal ⏭️ Skipped Skipped by its workflow · logs

Review

  • Approvals: 0/1
  • Assigned reviewer: not assigned yet — comment /request-review to ask for one
  • Review target date: not set
  • Still needed: 1 more approval(s); an approval from a maintainer with admin or maintain permission
  • The core-maintainers pool is not staffed yet; an approver with admin or maintain permission is required instead.

Commands

Command Who What it does
/rerun-checks PR author, maintainers Re-runs failed or incomplete checks and re-evaluates this gate
/request-review PR author, maintainers Asks the review rotation to assign a reviewer (adds needs-reviewer)

Updated for 55543db · gate run · This comment is maintained automatically — see submission gate docs.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Vally Lint Results

⚠️ Warnings or advisories found

Scope Checked
Skills 0
Agents 1
Total 1
Severity Count
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 1

Summary

Level Finding
ℹ️ Vally currently lints SKILL.md content. Agent files were detected but skipped:
Full linter output
### Agent files detected (not linted by vally)
ℹ️ Vally currently lints SKILL.md content. Agent files were detected but skipped:
agents/widespread.agent.md

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Contributor Reputation Check: HIGH risk

Check Risk
Profile HIGH
Credential audit NONE

Maintainers: please review this contributor before merging.
See the workflow run for full details.
Automated check powered by AGT.

@github-actions github-actions Bot added needs-review:HIGH Contributor reputation check flagged HIGH risk merge-risk:high requires-submitter-fixes Submission has quality-gate findings that submitter must fix before maintainer review and removed merge-risk:medium awaiting-automation labels Nov 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The agent’s tool allowlist excludes required Widespread MCP tools, while global instructions apply Widespread earning guidance to unrelated tasks without explicit user opt-in.

3 open issues
What changed in this PR

Adds a Widespread Worker agent and companion instructions to the Copilot resource collection for discovering escrowed work and following a signed submission workflow.

Changes:

  • Documents remote MCP and local stdio interfaces, plus discovery, registration, claim, submission, and status steps.
  • Adds guidance for private-key handling, isolated execution, and user confirmation before claims or submissions.
File Description
instructions/​widespread.instructions.md Adds protocol endpoints, key-storage guidance, and confirmation requirements.
agents/​widespread.agent.md Defines the worker profile, earn loop, and safety guidance.

Review effort: Max (dynamic)

Comment thread agents/widespread.agent.md Resolved
Comment thread instructions/widespread.instructions.md Resolved
@@ -0,0 +1,32 @@
---
description: 'Verified-work protocol agent: discovers funded bounties and escrowed work markets, claims work, and submits signed attestations for payout'
name: 'Widespread Worker'
…s, catalogs

- agent: add widespread/* + widespread-mcp/* to tools allowlist so the
  MCP tools are reachable when the server is configured
- instructions: keep applyTo '**' but condition application on
  bounty/verified-work tasks (context7 pattern) instead of an
  unconditional statement on every file
- regenerate docs/README.{agents,instructions}.md catalogs (fixes
  validate-readme + submission-gate)

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@TerexitariusStomp
TerexitariusStomp requested a review from a team as a code owner November 13, 2026 07:03
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 07:03
@github-actions github-actions Bot added awaiting-automation and removed requires-submitter-fixes Submission has quality-gate findings that submitter must fix before maintainer review labels Nov 13, 2026
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Tool-registration and naming errors block the local workflow, while missing approval gates and isolation safeguards risk funded actions, payouts, and host execution without adequate user control.

5 open issues
1 previously missed issue

In code that hasn't changed since last review

Medium severity Make service-specific guidance opt-in

instructions/​widespread.instructions.md:3

With applyTo: '**', this service-specific guidance is attached to unrelated file-based coding requests; the task restriction in the body cannot prevent that loading. It also duplicates the selected agent's setup and safety guidance. Keep this workflow opt-in by removing this file and its catalog entry, or by moving the guidance into an on-demand skill.

2 resolved since last review

Review effort: Max (dynamic)

Comment thread agents/widespread.agent.md Outdated
Comment on lines +15 to +16
- **Remote MCP** (Streamable HTTP, read tools need no auth): `https://widespread-bridge.widespread.workers.dev/mcp`
- **Local stdio** (full earn loop with agent-owned Ed25519 key): `uvx widespread-mcp`
Comment thread agents/widespread.agent.md Outdated
Comment on lines +21 to +26
1. `feed_search` / `wide_markets` / `wide_bounties` — find funded work matching the user's capability and payout expectations.
2. `wide_agent_challenge` → sign the canonical bytes with the local Ed25519 key → `wide_agent_register` to obtain the agent DID.
3. `wide_claim` — register claim intent on a funded market.
4. Land the deliverable as a signed `ship` op on the originating forge.
5. `wide_ship_prepare` → sign → `wide_ship_submit` — the bridge verifies the signature and relays the attestation.
6. `wide_status` — track claims, verdicts, and payout traces.
Comment thread agents/widespread.agent.md Resolved
Comment thread agents/widespread.agent.md Resolved
… tool names, gated payer/funder actions; drop global instructions file
Copilot AI adaptive review requested due to automatic review settings November 17, 2026 19:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread agents/widespread.agent.md Resolved
Comment thread agents/widespread.agent.md Resolved
Comment thread agents/widespread.agent.md Resolved
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 18:23
@TerexitariusStomp

Copy link
Copy Markdown
Author

Addressed the newest Copilot review in 13116e8:

  • Tool wildcards: the top-level tools list now enumerates every allowed server/tool pair explicitly — 11 remote (widespread/*) and 16 local (widespread-mcp/*) — so VS Code installs get exactly the advertised surface with no signing/identity endpoints. The .vscode/mcp.json note now states that server-level allowlists aren't expressible there and the front-matter enumeration is the enforcement point.
  • NEAR prerequisites: setup now documents that on-chain market claims require the user's own NEAR account funded for depositYocto + gas, and the market workflow requires showing the complete shipClaimArgs plus the deposit converted to NEAR before the user signs.
  • Claim sequencing: verified against the pinned widespread-mcp source and split into two workflows — forge bounties use wide_claim (funded-check + local intent) BEFORE work and a single wide_ship afterward; only wide_market_claim validates the published artifact and leads to a user-signed shipClaim broadcast.

@github-actions github-actions Bot added awaiting-automation and removed ready-for-review Submission passed intake validation and is ready for maintainer review labels Nov 18, 2026
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread agents/widespread.agent.md Resolved
@TerexitariusStomp

Copy link
Copy Markdown
Author

Addressed in 5ef1043:

  • On-chain verdict tracking: the market workflow no longer calls wide_verdict/wide_payout/wide_ledger — verified against the pinned client that wide_verdict requires a forge op-log seq which shipClaim never creates. Market claims now track via remote wide_status (per-DID claims/verdicts/payout traces) plus the bridge /market/{id} page, with monitoring handed back to the user when unclear. The forge workflow keeps wide_verdict/wide_payout/wide_ledger since those are correct there, and notes wide_status as the cross-workflow option.

Copilot AI adaptive review requested due to automatic review settings November 18, 2026 18:41
@github-actions github-actions Bot added awaiting-automation and removed ready-for-review Submission passed intake validation and is ready for maintainer review labels Nov 18, 2026
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The guidance relies on DID-filtered wide_status for wallet-broadcast claims, which can miss successful submissions, and does not restrict cross-workflow recommendations to forge reviews.

5 open issues
1 resolved since last review

Review effort: Max (adaptive)

Comment thread agents/widespread.agent.md Resolved
@TerexitariusStomp

Copy link
Copy Markdown
Author

Addressed in 55543db:

  • wide_status scope: verified in src/mcpearn.ts — agentStatus filters DID-matched forge-review records only, so a wallet-broadcast shipClaim would return nothing. The on-chain workflow now tracks via the NEAR explorer transaction + /market/{id} page and hands monitoring to the user when those views are insufficient; wide_status/wide_verdict/wide_payout/wide_ledger are explicitly excluded from the market flow.
  • Forge-flow note: the cross-workflow wide_status recommendation is now scoped to forge reviews only.

Copilot AI adaptive review requested due to automatic review settings November 18, 2026 19:38
@github-actions github-actions Bot added awaiting-automation ready-for-review Submission passed intake validation and is ready for maintainer review and removed ready-for-review Submission passed intake validation and is ready for maintainer review awaiting-automation labels Nov 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Missing validation evidence for the two-server signing and deposit flows, alongside model compatibility and transaction-safety concerns, warrants human assessment.

4 open issues
1 resolved since last review

Review effort: Max (adaptive)

@TerexitariusStomp

Copy link
Copy Markdown
Author

For the reviewer's convenience — the 4 threads the overview still lists as open are all addressed in the current head (55543db):

  • Payer-side scope disclosure → description now covers worker + funder capabilities (00288af)
  • Local tools / key isolation → enumerated server/tool pairs; Ed25519 key stays inside widespread-mcp, NEAR signing stays with the user (13116e8)
  • Server registration / STOP rule → documented org/enterprise-only mcp-servers front matter plus .vscode/mcp.json setup for personal clients (00288af)
  • Generated catalogs → docs/README.agents.md regenerated via npm run build on every push; the Widespread row reflects the current description

The one item resolved since last review (wide_status on-chain visibility) was fixed in 55543db.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent PR touches agents merge-risk:high needs-review:HIGH Contributor reputation check flagged HIGH risk new-submission PR adds at least one new contribution ready-for-review Submission passed intake validation and is ready for maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants