Skip to content

fix(review): restrict hosted reviews to public targets - #1292

Merged
steipete merged 3 commits into
mainfrom
fix/hosted-public-targets
Sep 1, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/hosted-public-targets

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 29, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Hosted target eligibility was inconsistent across webhook intake, maintainer commands, scheduled fanout, authority reservation, lifecycle acknowledgement and resumed publication. A repository could become private between an early check and a durable effect.

The final audit also found that signed command intake saved prompt content, receipts, watermarks and journey identifiers before checking current visibility. The later execution gate blocked target credentials, but could not undo that initial persistence.

Why This Change Was Made

Hosted ClawSweeper accepts explicitly configured public repositories and approved public openclaw/* / steipete/* fallbacks. Explicit denials override fallbacks. Private/internal, arbitrary third-party, and unverifiable targets are refused before the owning credential or persistence boundary. Operator-provided private checkouts remain supported for local review.

The queue performs fresh public visibility admission before authority reservations, command persistence, lifecycle acknowledgement and publication. Resumed work rechecks visibility independently. Command intake now uses the existing combined admission owner, removing its eligibility-only response adapter instead of introducing another check implementation.

User Impact

Eligible public contributors retain hosted review. Unsupported targets receive no hosted processing or target acknowledgement. GitHub metadata outages intentionally delay admission until visibility can be verified; this fail-closed availability tradeoff was accepted in #1292 (comment).

OpenClaw Bay Impact

Rejected command intake does not create a journey mapping or accepted-intake lifecycle effect. Lifecycle completion uses the same admission boundary. Bay stays observer-only; no new observer schema, browser GitHub calls or mutation controls are introduced.

Documentation and Cleanup

README and dispatcher/scheduler references describe the public-only hosted contract and local private-review path. The obsolete item_count workflow input is removed, manual review telemetry and reconciliation remain aligned, and the reusable admission script uses valid Node ESM execution. The proposed changelog entry was removed; release-note context stays here.

This is a security-boundary addition: production/workflow code is +1,978/-383 (net +1,595) against the integration base. The command-intake follow-up removes ten production lines relative to the submitted PR. The broader increase applies one trust boundary across existing entrypoints; it does not add an agent orchestration or judgment framework.

Evidence

  • Current head: df3a019fe8c10aff1311ca5aaaa9f14729c4c3ad; original contributor ancestry retained, including Vincent Koc's 10118afea4076df058d10215c32ecf2d284a854a.
  • The real Worker proof below fails the first-persistence contract on the submitted head and passes on the candidate.
  • Nine command-intake tests pass, including signed private/retryable admission refusal, public idempotency, and public-first commands whose visibility changes before resumed processing.
  • Full pnpm run check on the latest-main integration passed: 4,359 tests passed, 14 skipped, zero failures; all 13 changed-coverage checks passed. Managed precommit and committed Codex reviews were clean at the configured P0 scope.
  • The first full run caught an obsolete source-text assertion requiring visibility checks after persistence. That assertion was deleted; signed request, SQLite and resumed-command behavior tests protect the intended contract. The subsequent full gate passed.

Real Behavior Proof

Surface: production Worker, queue and command store in Wrangler 4.107.0 dev --local, using real disposable SQLite Durable Objects, signed synthetic requests, generated synthetic App credentials, and loopback GitHub API responses.

Provider: AWS Crabbox cbx_62c61f7c200a, Linux c7a.8xlarge, image ami-0461d919be7deb53c, Node24.18.1 and pnpm11.10.0. Native proof and full gate.

The same standalone script runs against the submitted head and working candidate. It holds the metadata response while querying SQLite, so later cleanup cannot hide premature persistence. It releases the response and records the final HTTP result and database state. The candidate queue source SHA-256 is 6b84f6e3aceea756b2b12558a55f11284dd5cd18a0a5998c00665f0b64a1db4b, verified against the committed source.

Metadata Submitted head Candidate
Private 202; prompt and four command records saved before visibility 422; zero intake/receipt/watermark/journey/revision rows, no prompt
Retryable 202; same premature persistence 503 plus Retry-After; same zero durable content
Public 202; normal intake 202; normal intake after visibility verification

Private/retryable cases requested zero target-write credentials. They used only the synthetic metadata-read credential needed for visibility. The public case persists exactly one command receipt. All fixture processes, listeners and temporary databases are cleaned up.

Limits: real Worker/SQLite execution with synthetic API responses; no real GitHub repository privacy changes, target credentials, production service mutation, or fleet deployment claim. The live trace covers the signed command-intake endpoint. Duplicate delivery and resumed-row behavior are additionally covered by the focused production-owner regression suite; the native trace is not presented as a duplicate-delivery or full review-execution proof.

Run after installing the repository dependencies:

node intake-proof.mjs "$PWD"
Standalone Worker and SQLite proof
import {createHash, createHmac, generateKeyPairSync} from 'node:crypto';
import {spawn, execFileSync} from 'node:child_process';
import {once} from 'node:events';
import {mkdtempSync, mkdirSync, writeFileSync, readFileSync, readdirSync, rmSync} from 'node:fs';
import {tmpdir} from 'node:os';
import {join, resolve} from 'node:path';
import {createServer} from 'node:http';
import {DatabaseSync} from 'node:sqlite';
import {pathToFileURL} from 'node:url';

const repo = resolve(process.argv[2]);
const {directReReviewIntake} = await import(pathToFileURL(join(repo,'src/repair/direct-re-review-admission.ts')));
const root = mkdtempSync(join(tmpdir(),'clawsweeper-intake-proof-'));
const marker = 'SYNTHETIC_INTAKE_PROMPT_MUST_NOT_PERSIST';
const targetRepo = 'openclaw/clawsweeper';
const tables = ['exact_review_command_intakes','exact_review_command_receipts',
  'exact_review_command_watermarks','exact_review_command_bay_journeys','exact_review_item_revisions'];
const git = (...args)=>execFileSync('git',args,{cwd:repo,encoding:'utf8'}).trim();
const report = {head:git('rev-parse','HEAD'),node:process.version,
  sourceSha256:createHash('sha256').update(readFileSync(join(repo,'dashboard/exact-review-queue.ts'))).digest('hex'),cases:[]};
const deadline = (p,ms,label)=>Promise.race([p,new Promise((_,reject)=>{
  const timer=setTimeout(()=>reject(new Error(label+' timed out')),ms);timer.unref();
})]);
function databases(dir) {
  return readdirSync(dir,{withFileTypes:true}).flatMap(e=>e.isDirectory()?databases(join(dir,e.name)):
    e.name.endsWith('.sqlite')?[join(dir,e.name)]:[]);
}
function snapshot(state) {
  const result={counts:Object.fromEntries(tables.map(t=>[t,0])),markerPresent:false,databases:0};
  for(const path of databases(state)) {
    const db=new DatabaseSync(path,{readOnly:true});
    try {
      const names=new Set(db.prepare("SELECT name FROM sqlite_master WHERE type='table'").all().map(r=>r.name));
      if(!names.has(tables[0])) continue;
      result.databases++;
      for(const table of tables) {
        if(names.has(table)) result.counts[table]+=Number(db.prepare(`SELECT COUNT(*) AS n FROM ${table}`).get().n);
      }
      result.markerPresent ||= JSON.stringify(db.prepare('SELECT * FROM exact_review_command_intakes').all()).includes(marker);
    } finally { db.close(); }
  }
  return result;
}
async function stop(child) {
  const signal=value=>{try {process.kill(-child.pid,value);}catch(error){if(error.code!=='ESRCH')throw error;}};
  signal('SIGTERM');
  if(child.exitCode!==null) return;
  const killer=setTimeout(()=>signal('SIGKILL'),5000);killer.unref();
  try { await once(child,'exit'); } finally { clearTimeout(killer); }
}
try {
  for(const mode of ['private','retryable','public']) {
    const fixture=join(root,mode);mkdirSync(fixture);
    const state=join(fixture,'state');mkdirSync(state);
    let metadataSeenResolve, releaseMetadata;
    const metadataSeen=new Promise(resolve=>metadataSeenResolve=resolve);
    const metadataGate=new Promise(resolve=>releaseMetadata=resolve);
    const requests=[];
    const api=createServer(async(req,res)=>{
      const chunks=[];for await(const chunk of req) chunks.push(chunk);
      const body=Buffer.concat(chunks).toString();
      const path=new URL(req.url,'http://localhost').pathname;
      let payload={};try {payload=body?JSON.parse(body):{};}catch{}
      requests.push({method:req.method,path,...(payload.permissions?{permissions:payload.permissions}:{})});
      res.setHeader('content-type','application/json');
      if(path===`/repos/${targetRepo}/installation`) return res.end(JSON.stringify({id:1}));
      if(path==='/app/installations/1/access_tokens') return res.end(JSON.stringify({token:'synthetic-loopback-token'}));
      if(path===`/repos/${targetRepo}`) {
        metadataSeenResolve(); await metadataGate;
        if(mode==='retryable') {res.statusCode=503;res.setHeader('retry-after','60');return res.end('{}');}
        return res.end(JSON.stringify({full_name:targetRepo,private:mode==='private',visibility:mode==='private'?'private':'public'}));
      }
      res.statusCode=503;res.end('{}');
    });
    api.listen(0,'127.0.0.1');await once(api,'listening');
    const apiPort=api.address().port;
    const portServer=createServer();portServer.listen(0,'127.0.0.1');await once(portServer,'listening');
    const port=portServer.address().port;await new Promise(resolve=>portServer.close(resolve));
    const secret='synthetic-intake-proof';
    const {privateKey}=generateKeyPairSync('rsa',{modulusLength:2048,privateKeyEncoding:{type:'pkcs8',format:'pem'},publicKeyEncoding:{type:'spki',format:'pem'}});
    const config=join(fixture,'wrangler.json');
    writeFileSync(config,JSON.stringify({name:'clawsweeper-intake-proof',main:join(repo,'dashboard/worker.ts'),
      compatibility_date:'2026-05-11',durable_objects:{bindings:[{name:'EXACT_REVIEW_QUEUE',class_name:'ExactReviewQueue'}]},
      migrations:[{tag:'proof-v1',new_sqlite_classes:['ExactReviewQueue']}],
      vars:{CLAWSWEEPER_WEBHOOK_SECRET:secret,CLAWSWEEPER_APP_ID:'1',CLAWSWEEPER_APP_PRIVATE_KEY:privateKey,
        GITHUB_API_URL:`http://127.0.0.1:${apiPort}`,hostedTargetConfiguredRepositories:[targetRepo]}}));
    const child=spawn('pnpm',['dlx','[email protected]','dev','--local','--config',config,'--port',String(port),'--persist-to',state],
      {cwd:fixture,detached:true,env:{...process.env,WRANGLER_SEND_METRICS:'false',CI:'1'},stdio:['ignore','pipe','pipe']});
    let logs='';let readyResolve;const ready=new Promise(resolve=>readyResolve=resolve);
    for(const stream of [child.stdout,child.stderr]) stream.on('data',chunk=>{
      logs+=chunk.toString();if(logs.includes('Ready on http')) readyResolve();
    });
    try {
      await deadline(Promise.race([ready,once(child,'exit').then(()=>{throw new Error('Wrangler stopped before ready');})]),120000,'Wrangler startup');
      const intake=directReReviewIntake({targetRepo,targetBranch:'main',itemNumber:42,itemKind:'pull_request',installationId:2,
        sourceCommentId:9001,sourceCommentUpdatedAt:'2026-09-01T12:00:00Z',
        commandBodyDigest:createHash('sha256').update(marker).digest('hex'),commandOrigin:'comment_router',
        additionalPrompt:marker,bayJourneyDeliveryId:'synthetic-intake-journey'});
      const body=JSON.stringify(intake);
      const posted=fetch(`http://127.0.0.1:${port}/internal/exact-review/command-intake`,{method:'POST',
        headers:{'content-type':'application/json','x-clawsweeper-exact-review-signature':`sha256=${createHmac('sha256',secret).update(body).digest('hex')}`},body});
      await deadline(metadataSeen,30000,'metadata request');
      const beforeVisibility=snapshot(state);
      releaseMetadata();
      const response=await deadline(posted,30000,'intake response');
      const responseBody=await response.json();
      const afterResponse=snapshot(state);
      const targetTokenRequests=requests.filter(r=>r.path.includes('/access_tokens')&&JSON.stringify(r.permissions)!==JSON.stringify({metadata:'read'})).length;
      const pass=mode==='public'?response.status===202&&responseBody.accepted===true&&afterResponse.counts.exact_review_command_receipts===1:
        response.status===(mode==='private'?422:503)&&!beforeVisibility.markerPresent&&!afterResponse.markerPresent&&
        Object.values(beforeVisibility.counts).every(n=>n===0)&&Object.values(afterResponse.counts).every(n=>n===0)&&targetTokenRequests===0;
      report.cases.push({mode,status:response.status,body:responseBody,retryAfter:response.headers.get('retry-after'),
        beforeVisibility,afterResponse,targetTokenRequests,requests,pass});
    } catch(error) {
      report.cases.push({mode,pass:false,error:error.message,diagnostic:logs.split('\n').filter(line=>
        !line.includes('PRIVATE_KEY')&&!line.includes('PRIVATE KEY')).slice(-15).join('\n')});
      throw error;
    } finally {
      releaseMetadata();await stop(child);
      api.closeAllConnections();await new Promise(resolve=>api.close(resolve));
      writeFileSync(join(fixture,'wrangler.log'),logs);
    }
  }
  report.pass=report.cases.every(c=>c.pass);
  if(!report.pass) process.exitCode=1;
} catch(error) {
  report.pass=false;report.error=error.message;process.exitCode=1;
} finally {
  rmSync(root,{recursive:true,force:true});
  report.fixtureRemoved=true;
  console.log(JSON.stringify(report,null,2));
}

Earlier Authority and Lifecycle Proof

Vincent's submitted head 10118afea4076df058d10215c32ecf2d284a854a supplied separate real Worker/SQLite authority and lifecycle traces. Public-to-private and public-to-retryable transitions rejected branch/source reservation without authority, sequence, alarm, queue, receipt or target-credential effects; public controls accepted. Lifecycle rejection avoided acknowledgement/Bay effects and the public control persisted its matching completion.

Those earlier traces used Node26.7.0 and Wrangler4.107.0 with synthetic loopback GitHub credentials. Their 78-entry manifest was verified by the original author. They are supporting evidence for unchanged authority/lifecycle paths, not reruns at this follow-up head. Recorded hashes: authority-results.json 90e33abd451c722031a4f48c53ff2328c53aa16fd2a163fa58fa22b207c11fd9; lifecycle-authority-trace 7822b6cb0e7e16518f84d137572ce4618a7ae24b4db0496fee7fbdf75f2a3913.

Review Disposition

The earlier authority-reservation race and required transition proof were addressed on the submitted head. The independent follow-up found and fixed the separate command first-persistence gap. The delayed visibility check remains for already-admitted rows. Current-head CI and a review of this updated body are required for landing. Maintainer acceptance of the public-only policy and its fail-closed availability tradeoff remains recorded in the linked decision above.

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 6:20 PM ET / 22:20 UTC.

ClawSweeper review

What this changes

This PR gates hosted review workflows, webhook commands, durable queueing, and publication on configured-target eligibility plus a fresh public-visibility check.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this active maintainer-authored PR open: the current head provides a coherent public-only hosted-review boundary and the follow-up closes the prior command-persistence gap. The accepted fail-closed availability tradeoff remains the principal merge consideration.

Priority: P1
Reviewed head: df3a019fe8c10aff1311ca5aaaa9f14729c4c3ad

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong real behavior proof and focused admission coverage support a mergeable patch, despite the necessarily broad cross-control-plane scope.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The supplied current-head Crabbox trace runs the production Worker and disposable SQLite Durable Objects through signed command intake with loopback GitHub metadata responses: private and retryable cases leave zero durable command rows, while the public control persists one normal receipt. It directly covers the follow-up persistence-order change; earlier Worker/SQLite traces remain supporting evidence for unchanged authority and lifecycle paths.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The supplied current-head Crabbox trace runs the production Worker and disposable SQLite Durable Objects through signed command intake with loopback GitHub metadata responses: private and retryable cases leave zero durable command rows, while the public control persists one normal receipt. It directly covers the follow-up persistence-order change; earlier Worker/SQLite traces remain supporting evidence for unchanged authority and lifecycle paths.
Evidence reviewed 6 items Current-head command admission: The command-intake route obtains hosted admission before calling the durable command-intake store, so terminal or retryable visibility outcomes return without storing command content.
Fresh public probe: The shared probe rejects malformed target names, treats 404 as terminal, requires matching repository identity and explicit public visibility, and treats other failures as retryable.
Persistence-owner rechecks: Queue admission is repeated for enqueue, authority reservations, active leases, publication, and resumed command processing rather than relying only on an earlier Worker result.
Findings None None.
Security None None.

How this fits together

ClawSweeper receives GitHub events and scheduled repository candidates, admits eligible public targets, then persists and dispatches review work. The queue and Worker also publish lifecycle state to the observer-only Bay surface.

flowchart LR
A[GitHub events] --> B[Target eligibility]
C[Scheduled repository fanout] --> B
B --> D[Public visibility check]
D --> E[Queue and command intake]
E --> F[Review and publication]
F --> G[Lifecycle and Bay status]
Loading

Before merge

  • Resolve merge risk (P1) - If GitHub metadata or the central metadata-token path is unavailable, hosted review admission pauses rather than proceeding; the PR discussion explicitly accepts this fail-closed behavior and retains local private-checkout review.
  • Complete next step (P1) - No discrete repair is identified on the current head; this active member-authored PR should remain available for maintainer review of its accepted fail-closed tradeoff.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Cross-boundary scope 45 files, +6,372 / -774 lines The change spans workflows, webhook ingress, durable queueing, publication, documentation, and focused regression coverage.
Production versus tests production/docs/workflows +2,031 / -420; tests +4,341 / -354 The large test delta reflects coverage across the multiple admission and persistence boundaries changed by the patch.

Merge-risk options

Maintainer options:

  1. Retain the accepted fail-closed admission policy (recommended)
    Proceed only with the current public-only boundary and local private-review fallback, accepting delayed hosted review when visibility cannot be verified.

Technical review

Best possible solution:

Keep one shared eligibility and live-public-visibility boundary at each durable or credential-bearing transition, while retaining the documented local-review path for private repositories.

Do we have a high-confidence way to reproduce the issue?

Yes. The current-head Worker/SQLite proof in the PR body exercises signed command intake with private, retryable, and public metadata outcomes, and the checked source confirms admission precedes durable intake storage.

Is this the best way to solve the issue?

Yes. A shared configured-target check plus fresh visibility checks at each persistence and credential boundary is the narrowest way to prevent a stale earlier admission from authorizing later effects.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4eb18d1e6fdc.

Labels

Label justifications:

  • P1: This protects real hosted-review workflows from processing a target after it becomes private or unverifiable.
  • merge-risk: 🚨 security-boundary: The patch changes authorization and pre-persistence admission decisions for target repository data and credentials.
  • merge-risk: 🚨 availability: Public metadata failures intentionally stop hosted review work until visibility can be checked.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The supplied current-head Crabbox trace runs the production Worker and disposable SQLite Durable Objects through signed command intake with loopback GitHub metadata responses: private and retryable cases leave zero durable command rows, while the public control persists one normal receipt. It directly covers the follow-up persistence-order change; earlier Worker/SQLite traces remain supporting evidence for unchanged authority and lifecycle paths.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied current-head Crabbox trace runs the production Worker and disposable SQLite Durable Objects through signed command intake with loopback GitHub metadata responses: private and retryable cases leave zero durable command rows, while the public control persists one normal receipt. It directly covers the follow-up persistence-order change; earlier Worker/SQLite traces remain supporting evidence for unchanged authority and lifecycle paths.

Evidence

What I checked:

  • Current-head command admission: The command-intake route obtains hosted admission before calling the durable command-intake store, so terminal or retryable visibility outcomes return without storing command content. (dashboard/exact-review-queue.ts:1014, df3a019fe8c1)
  • Fresh public probe: The shared probe rejects malformed target names, treats 404 as terminal, requires matching repository identity and explicit public visibility, and treats other failures as retryable. (src/hosted-target-admission.ts:157, df3a019fe8c1)
  • Persistence-owner rechecks: Queue admission is repeated for enqueue, authority reservations, active leases, publication, and resumed command processing rather than relying only on an earlier Worker result. (dashboard/exact-review-queue.ts:7536, df3a019fe8c1)
  • Current-head proof identity: The supplied Worker/SQLite proof records the same SHA-256 for the candidate queue source that is present in this checkout, covering private, retryable, and public command-intake outcomes. (dashboard/exact-review-queue.ts:1014, df3a019fe8c1)
  • Feature history: Durable re-review command intake predates this PR in the merged feature commit; this PR adds the public-admission boundary and the current-head follow-up modifies the persistence ordering. (dashboard/exact-review-queue.ts:1014, e0dc54438e5e)
  • Introduced scope: The verified merge-base is current main at 4eb18d1; the 45 changed files are the PR-introduced delta, so this work is not already implemented on main. (df3a019fe8c1)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Martin Cleary: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-29T03:29:02.715Z sha d4fcc84 :: needs real behavior proof before merge. :: [P1] Restrict hosted work to configured repository targets | [P2] Add a deadline to the reusable admission probe
  • reviewed 2026-08-29T05:34:52.449Z sha d4fcc84 :: needs real behavior proof before merge. :: [P1] Keep hosted work within the configured target scope | [P2] Bound the reusable admission probe
  • reviewed 2026-08-29T11:33:54.971Z sha 1234bc1 :: needs real behavior proof before merge. :: [P1] Gate lifecycle acknowledgement on fresh public admission
  • reviewed 2026-08-29T11:49:01.890Z sha e4e6b80 :: needs real behavior proof before merge. :: [P1] Gate lifecycle acknowledgements on fresh public admission
  • reviewed 2026-08-29T11:57:35.609Z sha e4e6b80 :: needs real behavior proof before merge. :: [P1] Gate lifecycle acknowledgements on fresh public admission
  • reviewed 2026-08-29T12:21:39.001Z sha e00cb5b :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-29T12:40:40.085Z sha e00cb5b :: needs real behavior proof before merge. :: [P1] Recheck visibility before persisting authority reservations
  • reviewed 2026-09-01T16:29:25.953Z sha 10118af :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 29, 2026
@vincentkoc
vincentkoc force-pushed the fix/hosted-public-targets branch from d4fcc84 to 1234bc1 Compare August 29, 2026 11:29
@clawsweeper clawsweeper Bot added P1 Urgent regression or broken agent/channel workflow affecting real users now. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 29, 2026
@vincentkoc
vincentkoc force-pushed the fix/hosted-public-targets branch 2 times, most recently from e4e6b80 to e00cb5b Compare August 29, 2026 12:17
@vincentkoc
vincentkoc force-pushed the fix/hosted-public-targets branch from e00cb5b to 10118af Compare September 1, 2026 16:24
@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 1, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Maintainer decision: accept the public-only hosted admission boundary and its
fail-closed behavior when repository visibility cannot be verified.

Private and internal targets remain unsupported by hosted ClawSweeper.
Maintainers can review those repositories locally from an operator-provided
checkout. The availability and authorization-boundary merge risks in the
current-head review are intentional and accepted.

steipete and others added 2 commits September 1, 2026 15:06
Use the shared public-target admission before persisting command prompts, and retain the separate visibility check for already-admitted work. Remove the redundant response conversion and keep release notes in this PR.

Co-authored-by: Vincent Koc <[email protected]>
Merge current main and remove the source-text assertion that required visibility checks to happen after command persistence. Signed request, SQLite, and resumed-command behavior coverage now protects the actual contract.

Co-authored-by: Vincent Koc <[email protected]>
@steipete
steipete marked this pull request as ready for review September 1, 2026 22:14
@steipete
steipete requested a review from a team as a code owner September 1, 2026 22:14
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Updated the existing contributor branch with current main and fixed command intake persisting prompt content before current public visibility was checked. The PR body contains the baseline/candidate native Worker + SQLite proof, source hash, successful full gate, managed review scope, and explicit proof limits. The existing public-only policy decision remains accepted. Please review head df3a019fe8c10aff1311ca5aaaa9f14729c4c3ad and this updated evidence.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(review): restrict hosted reviews to public targets This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit 7fd8583 into main Sep 1, 2026
12 of 13 checks passed
@steipete
steipete deleted the fix/hosted-public-targets branch September 1, 2026 22:26
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Landed as 7fd8583 after improving the existing contributor branch. Public visibility admission now happens before command prompts, receipts, watermarks and journey mappings are persisted; the redundant eligibility-only adapter is removed. Vincent Koc's contributor credit is retained.

Native production Worker/SQLite comparison: https://crabbox.openclaw.ai/portal/runs/run_d1c065742f8f. The submitted head saved private/retryable command content before its visibility response; the candidate refused those requests with zero command rows and no target-write credentials, while public intake succeeded. The fixture used signed synthetic requests and loopback metadata, not live repository privacy changes or production mutation.

Full check passed 4,359 tests (14 skipped, zero failures), plus 13 changed-coverage checks and nine focused command-intake tests. CI https://github.com/openclaw/clawsweeper/actions/runs/33565297909 and automerge E2E https://github.com/openclaw/clawsweeper/actions/runs/33565297980 passed; CodeQL passed. Current-head hosted review found no actionable findings and accepted the proof: #1292 (comment). The earlier dispatch was superseded by the successful fresh review.

The public-only hosted policy and fail-closed availability tradeoff are accepted as recorded above. Local private-checkout review remains documented. The merged tree was verified against the reviewed integration, and the task-owned AWS lease was released.

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

Labels

merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P1 Urgent regression or broken agent/channel workflow affecting real users now. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants