Skip to content

chore: add opt-in local publication preflight - #114287

Closed
fr-meyer wants to merge 11 commits into
openclaw:mainfrom
fr-meyer:feat/publication-security-preflight
Closed

fr-meyer wants to merge 11 commits into
openclaw:mainfrom
fr-meyer:feat/publication-security-preflight

Conversation

@fr-meyer

@fr-meyer fr-meyer commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Contributors preparing security-sensitive branches have no optional worktree-local guard that binds an explicit reviewed path set, branch identity, and exact head before a push. The repository's hosted CI and canonical scripts/pr landing controls remain authoritative, but they do not provide that additional pre-publication convenience at the contributor worktree.

What This Change Does

Adds an opt-in, worktree-local publication preflight for contributors who want an additional local check before pushing a reviewed branch. It does not replace hosted CI, branch protection, or the maintained scripts/pr landing controls; those remain authoritative.

Current scripts/pr prepare-push synchronizes an already-open PR head under lease and ancestry checks. It does not cover this branch's distinct before-first-publication contributor use case. The standalone lane therefore retains unique behavior, but the PR stays draft while maintainers decide whether OpenClaw wants that optional convenience surface.

Review findings repaired

  • Preserves the existing automatic git-hooks installation during package prepare, including the maintained pre-commit hook.
  • Enables the optional pre-push gate only after explicit opt-in, recorded in the current worktree's Git metadata rather than shared repository config.
  • Documents both supported opt-ins: --install for manual setup and exact-value OPENCLAW_INSTALL_GIT_HOOKS=1 for non-interactive setup. Other values do not enable the preflight.
  • Accepts the documented git push origin HEAD form while still requiring one exact branch update at the current reviewed SHA.
  • Rejects empty/multiple ref updates once enabled and retains fail-closed behavior for missing preflight state.
  • Collects all open PRs and all changed files through gh api --paginate --slurp; malformed, truncated, or incomplete response shapes fail closed.
  • Includes added, copied, modified, renamed, and deleted paths in both staged and committed-range allowlist checks, so an unapproved tracked-file deletion cannot bypass the exact path set.
  • Makes the default CONTRIBUTING command runnable: it now uses the authenticated complete live inventory instead of requiring a nonexistent placeholder file. The optional --inventory-file path is documented only for trusted tooling that supplies a complete canonical snapshot, never a partial hand-written list.
  • Exercises the accepted pre-push update through a real local bare-remote git push. This avoids a Windows test-harness dependency on whichever incompatible bash happens to resolve first while preserving the direct multi-ref rejection assertion.
  • Requires update_existing to select an actual overlapping PR on the current feature branch, rejects a wrong-branch selection, and fails closed when any additional overlap is undeclared. The same complete-overlap requirement applies to supersede_existing.

Evidence

Reviewed head: d9700ba75ebc76c0be6198b483d02f6f033d8cdb

Frozen upstream base merged for this validation: d91b3970b47f3df9ebd36bb93c5074b24515dd82

Inspectable real hook behavior

The focused suite uses temporary Git repositories and real local bare remotes. On native Windows, the final exact-head run passed 11/11, including:

✓ keeps automatic maintained-hook setup transparent until explicit opt-in
✓ invokes the configured hook for an allowed push and rejects an unallowlisted commit
✓ rejects an unallowlisted tracked-file deletion through the real hook
✓ prepares, checks, approves, and accepts the exact pre-push update
✓ fails closed before approval

Those tests exercise real git push behavior and prove:

  • normal package preparation retains the maintained hook path without enabling the optional pre-push policy;
  • an unopted real push succeeds;
  • after explicit opt-in, git push origin HEAD at the approved exact SHA succeeds;
  • later unallowlisted additions and deletions are rejected;
  • an additional unreviewed ref in the same push is rejected.

Pagination proof

The regression fixture supplies multiple PR pages and multiple file pages, proves every PR/path is retained, asserts every request uses api --paginate --slurp, and verifies malformed page/file shapes fail closed.

A prior read-only live GitHub API shape check returned:

{"pages":22,"pulls":2191,"allPagesArrays":true}

This confirms the former 100-PR limit was materially incomplete and that the implemented page-array contract matches the observed response shape.

Current exact-head checks

  • Latest overlap-declaration regression suite: 13/13 passed, including the valid single-update path, wrong-branch rejection, additional-update overlap rejection, and additional-supersede overlap rejection.
  • Latest repair gates passed: pnpm tsgo:scripts, type-aware Oxlint (with only the branch's inherited test-line-48 conversion rule allowed), Oxfmt, and git diff --check.
  • Mandatory exact-branch repair review: TruffleHog clean in 6.6 seconds; 5,875-byte, one-pass Codex gpt-5.6-sol high-reasoning bundle; findings []; patch is correct at 0.98 confidence; reviewer exited 0.
  • Focused real-Git suite for the preceding portability repair: 11/11 passed.
  • Repository-selected changed-file plan: all conflict, attribution, registry, wildcard-export, duplicate-coverage, coercion, dependency-pin, format, and patch guards passed.
  • Root test-source type check passed.
  • Full script lint selected by the changed-file plan passed.
  • git diff --check passed.
  • Preceding exact-branch review on a69400bb79e2f50b3d3c4ba3176351f1a3a88bf6 against the frozen base: TruffleHog clean in 6.5 seconds; 58,581-byte one-pass Codex gpt-5.6-sol high-reasoning bundle; findings []; patch is correct at 0.99 confidence; terminal result autoreview clean: no accepted/actionable findings reported.
  • Fresh draft-safe hosted checks for d9700ba75ebc76c0be6198b483d02f6f033d8cdb are attached at run 31502685750. The substantive CI matrix is intentionally skipped while the PR remains draft; light repository checks are monitored separately.

Limitations and hosted proof

  • The configured Crabbox changed-gate helper failed its binary sanity check before dispatching any remote workload. The identical repository-selected plan was run locally on Windows using the helper's documented remote-child mode; this is local proof, not a claim of remote execution.
  • The bundled pnpm launcher reported Node 24.14.0 below the repository's current engine floor, while the direct runtime and pnpm exec node were Node 24.18.0. All selected gates completed successfully, but hosted exact-head CI remains authoritative for a supported clean runner.
  • The frozen validation base is intentionally fixed. By the final lease check, current main had advanced beyond it; this update did not chase later main after review.
  • The test-temp report remains warning-only for four raw temporary-directory helpers already present in this feature diff; the portability repair adds no new raw temporary directory.

Maintainer decision

This branch provides a contributor pre-publication surface that current scripts/pr prepare-push does not. Please decide whether to retain that optional standalone convenience or reject the product policy in favor of no local pre-publication layer. No merge, ready-for-review transition, or claim that a bypassable local hook is the repository's security boundary is requested by this update.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XL triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jul 27, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 27, 2026
@clawsweeper

clawsweeper Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 22, 2026, 12:10 AM ET / 04:10 UTC (Revision 20).

ClawSweeper review

What this changes

Adds an optional worktree-local push guard that checks reviewed paths, commit identity, privacy rules, overlapping pull requests, and approval of the exact commit.

Merge readiness

⛔ Blocked before merge - 11 items remain

Keep open: the first-publication use case remains distinct from current main and the merged hook repair. The contribution remains useful, but this review identifies four blocking defects and product sponsorship is still unresolved.

Priority: P3
Reviewed head: d9700ba75ebc76c0be6198b483d02f6f033d8cdb
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful implementation and real local-hook evidence, limited by four concrete defects and incomplete coverage of the documented entrypoint.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: The supplied Windows bare-remote traces meaningfully exercise the production hook, but preparation uses --inventory-json [] and closed stdin. They do not demonstrate the documented interactive, authenticated inventory path; the historical pagination count is separate evidence. Add a redacted after-fix terminal transcript covering that path and the resulting push; screenshots or recordings are welcome when useful. Remove credentials, private endpoints, IP addresses, and personal details. Updating the PR body should trigger review; otherwise ask a maintainer for @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The supplied Windows bare-remote traces meaningfully exercise the production hook, but preparation uses --inventory-json [] and closed stdin. They do not demonstrate the documented interactive, authenticated inventory path; the historical pagination count is separate evidence. Add a redacted after-fix terminal transcript covering that path and the resulting push; screenshots or recordings are welcome when useful. Remove credentials, private endpoints, IP addresses, and personal details. Updating the PR body should trigger review; otherwise ask a maintainer for @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 14 items Pinned introduced changes: Inspected the merge-base-to-head patch and complete changed implementation/tests. The new preflight owns the reported defects; the inherited unscoped hooksPath write is not attributed to this PR.
CLI input defect and test coverage: The executable reads stdin synchronously before argument parsing for every command. The test runner supplies ignored stdin for normal commands, hiding the interactive wait.
Node filesystem contract: The official filesystem documentation establishes synchronous blocking operations and numeric file-descriptor input: Node filesystem API. Repository identity was independently checked.
Findings 4 actionable findings [P2] [P2] Read stdin only for the hook command
[P2] [P2] Include file-type changes in both path inventories
[P2] [P2] Scan the commits being published, not only their net diff
Security Needs attention Endpoint-only scanning misses publishable sensitive history: A secret added and subsequently removed disappears from the scanned endpoint diff but remains in commits sent by Git push. The local gate can report success despite that exposure; hosted controls remain independent and authoritative.

How this fits together

This contributor tool sits between local branch preparation and Git push. It combines Git state, a saved review manifest, and GitHub pull-request inventory to allow or reject an opted-in push; hosted publication controls remain authoritative.

flowchart TD
  A[Explicit worktree opt-in] --> B[Local push hook]
  C[Git branch and changed paths] --> D[Publication preflight]
  E[GitHub pull request inventory] --> F[Review manifest and approval]
  F --> D
  B --> D
  D --> G[Allow exact push or explain rejection]
Loading

Decision needed

Question Recommendation
Should OpenClaw support this contributor first-push manifest workflow as maintained tooling? Sponsor a narrower first-push workflow: Retain the distinct use case under the tooling owner, with current hook semantics and complete publication validation.

Why: The existing PR landing flow requires an already-open PR, so the proposal has distinct value, but neither the discussion nor adjacent merged repair approves ownership of this additional workflow.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The supplied Windows bare-remote traces meaningfully exercise the production hook, but preparation uses --inventory-json [] and closed stdin. They do not demonstrate the documented interactive, authenticated inventory path; the historical pagination count is separate evidence. Add a redacted after-fix terminal transcript covering that path and the resulting push; screenshots or recordings are welcome when useful. Remove credentials, private endpoints, IP addresses, and personal details. Updating the PR body should trigger review; otherwise ask a maintainer for @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • [P2] Read stdin only for the hook command (P2) - Every direct CLI invocation evaluates readFileSync(0, "utf8") before argument parsing. From an ordinary interactive terminal, even --help, prepare, and approve wait for EOF without explaining why. The tests hide this by using ignored stdin for these commands. Parse the command first and consume stdin only for hook. This is a late discovery on the unchanged previously reviewed head.
  • [P2] Include file-type changes in both path inventories (P2) - --diff-filter=ACMRD excludes Git's T changes. Alongside an allowlisted ordinary edit, replacing another tracked regular file with a symlink can therefore pass both staged and committed path checks without that path appearing in the manifest. A type-change-only intended edit is also rejected as missing. Remove the restrictive filter or include type changes in both inventories. This is a late discovery on the unchanged previously reviewed head.
  • [P2] Scan the commits being published, not only their net diff (P2) - git diff upstream..HEAD compares endpoint trees. A branch can add sensitive content in one commit, remove it in the next, and retain an otherwise safe allowlisted edit; the scan and final path comparison then pass although push publishes the earlier commit and its sensitive blob. Inspect every outgoing commit for the promised privacy checks and path coverage. This is a late discovery on the unchanged previously reviewed head.
  • [P2] Reject inventories truncated by GitHub's file limit (P2) - The pull-request files endpoint returns at most 3,000 files even with pagination. An oversized open PR therefore produces valid pages that this code accepts as complete; an overlap outside those files is silently missed. Compare against authoritative changed-file metadata or fail closed when completeness cannot be established, including the endpoint ceiling. Existing malformed-page tests do not cover this valid-but-truncated response. This is a late discovery on the unchanged previously reviewed head.
  • Resolve security concern: Endpoint-only scanning misses publishable sensitive history - A secret added and subsequently removed disappears from the scanned endpoint diff but remains in commits sent by Git push. The local gate can report success despite that exposure; hosted controls remain independent and authoritative.
  • Resolve merge risk (P1) - The privacy gate can approve outgoing history containing credentials that were removed before HEAD; complete-history rejection is required before relying on its publication checks.
  • Resolve merge risk (P1) - Conflict resolution has not demonstrated preservation of the shipped hook-ownership repair, including existing custom or empty settings and linked-worktree isolation.
  • Complete next step (P2) - Obtain a tooling-owner decision on supporting the first-push workflow and resolve the current conflicts without losing shipped hook-ownership behavior.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P2] [P2] Read stdin only for the hook command — scripts/publication-preflight.mjs:821-828
  • [P2] [P2] Include file-type changes in both path inventories — scripts/publication-preflight.mjs:277-283
  • [P2] [P2] Scan the commits being published, not only their net diff — scripts/publication-preflight.mjs:614-618
  • [medium] Endpoint-only scanning misses publishable sensitive history — scripts/publication-preflight.mjs:616
Agent review details

Security

Needs attention: The new privacy detector misses sensitive content retained in intermediate commits; no dependency, credential-access, or hosted-permission expansion was found.

PR surface

Tests +561, Docs +66, Other +966. Total +1593 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 562 1 +561
Docs 1 66 0 +66
Config 0 0 0 0
Generated 0 0 0 0
Other 4 971 5 +966
Total 7 1599 6 +1593

Review metrics

Metric Value Why it matters
Production versus test growth Production/tooling +966, including 58 declaration lines; tests +561; docs +66. The growth implements a distinct optional workflow rather than a bug repair, making its maintenance ownership consequential.
Hook enablement controls 1 setup flag and 1 environment variable added; preflight defaults off. Both opt-in routes must coexist with shipped preservation of existing hook settings.

Stored data model

Persistent data-model change detected: serialized state: scripts/prepare-git-hooks.mjs, serialized state: scripts/publication-preflight.mjs, unknown-data-model-change: scripts/prepare-git-hooks.mjs, unknown-data-model-change: scripts/publication-preflight.mjs. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Preserve hook ownership and complete the checks (recommended)
    If sponsored, refresh against current main while retaining configured hook choices and repairing the incomplete publication checks.
  2. Pause pending tooling sponsorship
    Keep the draft unmerged until an owner accepts maintaining the separate first-push workflow.

Technical review

Best possible solution:

A sponsored first-push workflow should preserve current hook ownership, inspect complete outgoing history and path inventories, and work interactively with authenticated GitHub collection.

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

Yes, source establishes concrete triggers in the proposed implementation: interactive stdin, file-type changes, reverted intermediate secrets, and capped GitHub inventories. These were not executed during this read-only review and are not current-main bug reproductions.

Is this the best way to solve the issue?

No, the current implementation does not reliably enforce its stated checks. The first-push boundary is distinct from scripts/pr, but it needs complete Git-history and API-inventory handling while retaining the current hook setup owner.

Full review comments:

  • [P2] [P2] Read stdin only for the hook command — scripts/publication-preflight.mjs:821-828
    Every direct CLI invocation evaluates readFileSync(0, "utf8") before argument parsing. From an ordinary interactive terminal, even --help, prepare, and approve wait for EOF without explaining why. The tests hide this by using ignored stdin for these commands. Parse the command first and consume stdin only for hook. This is a late discovery on the unchanged previously reviewed head.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] [P2] Include file-type changes in both path inventories — scripts/publication-preflight.mjs:277-283
    --diff-filter=ACMRD excludes Git's T changes. Alongside an allowlisted ordinary edit, replacing another tracked regular file with a symlink can therefore pass both staged and committed path checks without that path appearing in the manifest. A type-change-only intended edit is also rejected as missing. Remove the restrictive filter or include type changes in both inventories. This is a late discovery on the unchanged previously reviewed head.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] [P2] Scan the commits being published, not only their net diff — scripts/publication-preflight.mjs:614-618
    git diff upstream..HEAD compares endpoint trees. A branch can add sensitive content in one commit, remove it in the next, and retain an otherwise safe allowlisted edit; the scan and final path comparison then pass although push publishes the earlier commit and its sensitive blob. Inspect every outgoing commit for the promised privacy checks and path coverage. This is a late discovery on the unchanged previously reviewed head.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] [P2] Reject inventories truncated by GitHub's file limit — scripts/publication-preflight.mjs:690-701
    The pull-request files endpoint returns at most 3,000 files even with pagination. An oversized open PR therefore produces valid pages that this code accepts as complete; an overlap outside those files is silently missed. Compare against authoritative changed-file metadata or fail closed when completeness cannot be established, including the endpoint ceiling. Existing malformed-page tests do not cover this valid-but-truncated response. This is a late discovery on the unchanged previously reviewed head.
    Confidence: 0.97
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5b22b5522468.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is an optional contributor-tooling feature, not a current core runtime regression.
  • merge-risk: 🚨 compatibility: The proposed setup integration must be reconciled with shipped custom-hook and linked-worktree ownership guarantees.
  • merge-risk: 🚨 security-boundary: The new privacy check can give a successful publication verdict while sensitive content remains in outgoing commit history.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The supplied Windows bare-remote traces meaningfully exercise the production hook, but preparation uses --inventory-json [] and closed stdin. They do not demonstrate the documented interactive, authenticated inventory path; the historical pagination count is separate evidence. Add a redacted after-fix terminal transcript covering that path and the resulting push; screenshots or recordings are welcome when useful. Remove credentials, private endpoints, IP addresses, and personal details. Updating the PR body should trigger review; otherwise ask a maintainer for @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Endpoint-only scanning misses publishable sensitive history — scripts/publication-preflight.mjs:616
    A secret added and subsequently removed disappears from the scanned endpoint diff but remains in commits sent by Git push. The local gate can report success despite that exposure; hosted controls remain independent and authoritative.
    Confidence: 0.99

What I checked:

  • Pinned introduced changes: Inspected the merge-base-to-head patch and complete changed implementation/tests. The new preflight owns the reported defects; the inherited unscoped hooksPath write is not attributed to this PR. (scripts/publication-preflight.mjs:1, d9700ba75ebc)
  • CLI input defect and test coverage: The executable reads stdin synchronously before argument parsing for every command. The test runner supplies ignored stdin for normal commands, hiding the interactive wait. (scripts/publication-preflight.mjs:824, d9700ba75ebc)
  • Node filesystem contract: The official filesystem documentation establishes synchronous blocking operations and numeric file-descriptor input: Node filesystem API. Repository identity was independently checked.
  • Incomplete publication checks: Both path inventories use ACMRD, excluding type changes. Privacy scanning compares upstream and HEAD trees rather than examining every outgoing commit, so content introduced and subsequently removed is absent from the scan. (scripts/publication-preflight.mjs:616, d9700ba75ebc)
  • Git change and publication contracts: Git documents T as a separate file-type change, describes two-dot diff as an endpoint comparison, and states that push sends the necessary associated objects. Inspected diff options, git diff, and git push. (Documentation/diff-options.adoc:590)
  • GitHub file inventory ceiling: GitHub's pull-request files endpoint returns at most 3,000 files. The collector validates filenames but does not detect this truncation before treating the inventory as complete.

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Repair the four findings with regressions covering open stdin, type changes, intermediate sensitive commits, and capped inventories.
  • Add redacted after-fix proof of interactive preparation using the default authenticated inventory collector.
  • Obtain tooling sponsorship and resolve conflicts while preserving the shipped hook-ownership tests.

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 (19 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-11T11:10:56.463Z sha a69400b :: found issues before merge. :: [P2] Reject every undeclared overlapping pull request
  • reviewed 2026-08-11T14:57:48.107Z sha d9700ba :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-14T13:11:17.515Z sha d9700ba :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-15T15:55:36.868Z sha d9700ba :: needs real behavior proof before merge. :: none
  • reviewed August 18, 2026, 8:09 PM ET / August 19, 2026, 00:09 UTC sha unknown :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-19T00:09:47.186Z sha d9700ba :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-23T20:17:22.595Z sha d9700ba :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-01T05:20:19.102Z sha d9700ba :: needs real behavior proof before merge. :: none

@fr-meyer
fr-meyer force-pushed the feat/publication-security-preflight branch from 43ab022 to 2cafdef Compare July 27, 2026 07:02
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jul 27, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 27, 2026
@fr-meyer

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review\n\nFresh exact-head proof refresh request for 03c094b. No merge requested.

fr-meyer commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing this draft because the opt-in path disables the existing prepare-installed pre-commit hook and duplicates the canonical publication/landing controls. A successor, if requested, should integrate into the maintained flow rather than create a parallel gate. Branch preserved.

@fr-meyer fr-meyer closed this Aug 9, 2026
@fr-meyer fr-meyer reopened this Aug 9, 2026

fr-meyer commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Reopening for remediation. The next pass will preserve the existing pre-commit hook and reshape any publication security gate around the canonical maintained flow.

@fr-meyer fr-meyer changed the title chore: add fail-closed publication security preflight chore: add opt-in local publication preflight Aug 9, 2026
@fr-meyer

fr-meyer commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please re-review exact head 1b604e7050b54300762dbcacd2aa9facd08464f0 and update the original durable ClawSweeper review comment 5087384083 in place.

Both P1 findings are repaired: automatic pre-commit hook installation is preserved, and the documented git push origin HEAD form now passes under exact-SHA/single-ref enforcement. The PR body contains current-head real temporary-repository behavior proof (60/60 focused tests), quality gates, secret scan, and an explicit draft/maintainer-decision boundary. No merge or ready-for-review action is requested.

@clawsweeper

clawsweeper Bot commented Aug 9, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 9, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Aug 9, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 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 repository_dispatch).
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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. labels Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 11, 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 repository_dispatch).
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 status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 11, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 28, 2026
@fr-meyer

fr-meyer commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

v2026.9.2 reconciliation: audited against signed tag commit 3928bad at this exact PR head d9700ba. The opt-in, fail-closed local publication preflight is not provided by the release and remains an independent security/governance feature. Refresh on v2026.9.2 and preserve its exact-head tests.

@fr-meyer

fr-meyer commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

2026-09-10 current-main audit at 10af9ba: the publication-preflight capability remains unique; current main has extensive maintainer scripts but no equivalent opt-in local overlap declaration and publication inventory gate. The branch is 12,994 commits behind and 11 ahead. A synthetic current-main merge conflicts only in CONTRIBUTING.md, scripts/prepare-git-hooks.mjs, and its test; the standalone preflight implementation and declaration remain distinct. The 71 terminal green checks are historical, not current-main proof. Recommended next step: retain the PR, reduce/re-extract the security preflight against today's scripts/pr trust model, then rerun its focused tests and current policy guards. Do not close as obsolete and do not blindly merge the stale branch.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 22, 2026
@steipete

Copy link
Copy Markdown
Contributor

Thanks for the PR. We're closing older pull requests that have gone stale against current main.

This draft has had no commits since August 11, still needs behavior proof, and adds a large opt-in tooling surface without a maintainer sponsor. Please open a fresh, smaller proposal if you still want this guard.

@steipete steipete closed this Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants