Skip to content

test: let Node own validation fixture cleanup - #1099

Merged
steipete merged 9 commits into
mainfrom
codex/disk-full-incident
Sep 1, 2026
Merged

steipete merged 9 commits into
mainfrom
codex/disk-full-incident

Conversation

@hxy91819

@hxy91819 hxy91819 commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Repeated target-validation tests left their Git checkouts, tool shims and FIFO fixtures in the shared temporary directory. The test file created those directories but had no cleanup owner, including when invoked directly with node --test.

Why This Change Was Made

Allocate this test file's fixtures beneath one private temporary root and register its removal with native node:test after. Fixture constructors use a small local allocator; recursive removal does not inspect FIFO contents or follow directory symlinks into unrelated trees.

The final implementation is confined to the owning test file. The test runner, package scripts and CI routing match main. There is no host temporary-directory scan, stale-root TTL, heartbeat, signal state machine, global TMP override or cross-suite registry. This keeps raw node --test a supported path and lets the test harness own normal teardown.

User Impact

Successful and failing target-validation runs remove their own fixtures while preserving FIFO safety coverage and unrelated files. This does not remove historical temporary directories or promise cleanup after SIGKILL, process crashes or reboots. Product-created diagnostic backups and other test files are outside this change.

OpenClaw Bay Impact

None. No production runtime, queue, publication or dashboard behavior changes.

Evidence

The final branch is 8e829d12ac840098b63dc255c6aa2655d226323f, integrated with main 488b65173fa5bee156b917c57e651ec44dc41567. Its tree ce1ccf50567c4d1fa5f2f0e208030dc9bf431e08 is identical to the independently executed candidate f4fcbff6b3b31599b3c0fe3bfb873b9bb39a6a7a; the last integration changed ancestry only. The final delta is one test file, 93 additions and 84 deletions.

Live proof used a fresh AWS/Linux Crabbox lease cbx_28deee7715ec, Node 24.18.1 and repository-pinned pnpm 11.10.0. The source bundle, tracked files and candidate tree were verified before execution. The lease had no instance profile, no hydrated operator credentials, and a task-owned empty HOME. Production namespace and Landlock support remained enabled.

Run run_25ba804a2b20 exercised six raw node --test cases. The baseline source came from 6a1d212386d8b2e0f2a7d934e27160faeef09525, whose tree matches main at 488b65173fa5bee156b917c57e651ec44dc41567. The success and failure lifecycle cases append one synthetic test to copies of the actual test source; the candidate FIFO-preflight case executes the actual unchanged test file.

Case Baseline Candidate
Successful test containing FIFO and symlink Exits 0; fixture remains Exits 0; owned root removed
Intentional assertion failure containing FIFO and symlink Exits 1; fixture remains Exits 1; owned root removed
Existing non-regular package-metadata FIFO preflight Exits 0; fixture remains Exits 0; owned root removed

Every case completed normally without a watchdog kill, and the unrelated sentinel referenced by the fixture symlink remained byte-for-byte unchanged. The proof removed only its own synthetic baseline/candidate directories. Tracked source was unchanged by execution.

Final test source SHA-256: 8b227e2767667061e70278b50162de951b7c9c449feeaad8f7d359247e621420.
Baseline test source SHA-256: 950b9f3dbf00a05fc857d8faf0b4c2ee3d0f2b3f146cc28e310705094a2a34de.

Corrected full-gate run run_23754b70a04e: pnpm run check passed 4,367 tests, seven skipped, zero failures, plus all 13 changed-coverage tests. All three affected Git-config tests passed separately before that full gate. The final tracked source and tree were verified unchanged after execution.

An initial full-gate attempt had three unrelated Git-config test failures because the proof launcher set GIT_CONFIG_GLOBAL=/dev/null, preventing fixtures from writing their own temporary global config. The corrected launcher removes that override and retains isolated HOME and disabled system config. No source fix was needed for those failures.

The earlier six-case local macOS/Node 24.20.0 proof also passed. The Linux run above supplies the final integrated-source proof. Crash/SIGKILL/reboot cleanup and historical directory deletion are intentionally outside this contract; there is no claim of a live production deployment.

Contributor credit

Preserves the existing contribution and commit ancestry from @hxy91819 (masonxhuang <[email protected]>). The simplification keeps owned fixture cleanup while leaving command routing with Node and the existing test runner.

Standalone six-case proof harness

Save this script beside baseline-test.ts (the baseline revision's test/repair/target-validation.test.ts) and run node native-proof.mjs /path/to/current/checkout after a frozen install and build. The script records one JSON result and captured stdout/stderr per case. It creates controlled test copies in the checkout and removes them on completion.

import assert from "node:assert/strict";
import { createHash } from "node:crypto";
import { execFileSync, spawnSync } from "node:child_process";
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { fileURLToPath } from "node:url";

const worktree = process.argv[2];
assert.ok(worktree, "worktree argument is required");
const artifacts = path.dirname(fileURLToPath(import.meta.url));
const base = "6a1d212386d8b2e0f2a7d934e27160faeef09525";
const relativeTest = "test/repair/target-validation.test.ts";
const baseline = fs.readFileSync(path.join(artifacts, "baseline-test.ts"), "utf8");
const candidate = fs.readFileSync(path.join(worktree, relativeTest), "utf8");
const digest = (value) => createHash("sha256").update(value).digest("hex");
const proofRoot = fs.mkdtempSync(path.join(os.tmpdir(), "clawsweeper-1099-proof-"));
const sentinel = path.join(proofRoot, "unrelated-sentinel.txt");
const sentinelText = "synthetic unrelated sentinel: preserve exactly\n";
fs.writeFileSync(sentinel, sentinelText);
const appended = `
test("owned fixture lifecycle proof", () => {
  const cwd = packageFixture({});
  fs.writeFileSync(process.env.CLAWSWEEPER_1099_MARKER, cwd);
  fs.symlinkSync(process.env.CLAWSWEEPER_1099_SENTINEL, path.join(cwd, "sentinel-link"));
  execFileSync("mkfifo", [path.join(cwd, "fifo")]);
  assert.equal(process.env.CLAWSWEEPER_1099_MODE, "pass", "intentional lifecycle assertion failure");
});
`;
const results = [];
const copiedPaths = [];
try {
  for (const revision of ["baseline", "candidate"]) {
    for (const mode of ["pass", "fail", "fifo-preflight"]) {
      const name = `${revision}-${mode}`;
      const caseRoot = path.join(proofRoot, name);
      fs.mkdirSync(caseRoot);
      const marker = path.join(proofRoot, `${name}.marker`);
      const copyPath = path.join(worktree, "test/repair", `.pr1099-${name}.test.ts`);
      copiedPaths.push(copyPath);
      const source = revision === "baseline" ? baseline : candidate;
      fs.writeFileSync(copyPath, source + (mode === "fifo-preflight" ? "" : appended));
      const pattern = mode === "fifo-preflight"
        ? "^workspace preflight rejects non-regular package metadata without blocking$"
        : "^owned fixture lifecycle proof$";
      const actualPath = revision === "candidate" && mode === "fifo-preflight"
        ? path.join(worktree, relativeTest)
        : copyPath;
      const args = ["--test", "--test-reporter=tap", "--test-concurrency=1", "--test-name-pattern", pattern, actualPath];
      const started = Date.now();
      const child = spawnSync(process.execPath, args, {
        cwd: worktree,
        env: {
          ...process.env,
          TMPDIR: caseRoot,
          TEMP: caseRoot,
          TMP: caseRoot,
          CLAWSWEEPER_1099_MARKER: marker,
          CLAWSWEEPER_1099_SENTINEL: sentinel,
          CLAWSWEEPER_1099_MODE: mode,
        },
        encoding: "utf8",
        timeout: 30_000,
        maxBuffer: 4 * 1024 * 1024,
      });
      fs.writeFileSync(path.join(artifacts, `${name}.stdout.txt`), child.stdout ?? "");
      fs.writeFileSync(path.join(artifacts, `${name}.stderr.txt`), child.stderr ?? "");
      const retainedEntries = fs.readdirSync(caseRoot);
      const markerTarget = fs.existsSync(marker) ? fs.readFileSync(marker, "utf8") : null;
      const result = {
        revision,
        mode,
        command: [process.execPath, ...args],
        durationMs: Date.now() - started,
        exitCode: child.status,
        signal: child.signal,
        error: child.error?.message ?? null,
        retainedEntries,
        fixtureExistsAfter: markerTarget ? fs.existsSync(markerTarget) : null,
        sentinelSha256: digest(fs.readFileSync(sentinel)),
      };
      results.push(result);
      assert.equal(child.error, undefined, `${name}: child must complete without watchdog termination`);
      assert.equal(child.signal, null, `${name}: expected ordinary test completion`);
      assert.equal(child.status, mode === "fail" ? 1 : 0, `${name}: expected test exit`);
      if (mode === "fail") assert.match(child.stdout, /intentional lifecycle assertion failure/);
      assert.match(child.stdout, /# tests 1\b/);
      assert.equal(fs.readFileSync(sentinel, "utf8"), sentinelText);
      assert.equal(retainedEntries.length > 0, revision === "baseline", `${name}: fixture root cleanup`);
      if (markerTarget) assert.equal(result.fixtureExistsAfter, revision === "baseline");
      fs.rmSync(copyPath);
      fs.rmSync(caseRoot, { recursive: true, force: true });
    }
  }
} finally {
  for (const copied of copiedPaths) fs.rmSync(copied, { force: true });
  fs.rmSync(proofRoot, { recursive: true, force: true });
  const report = {
    node: process.version,
    platform: `${process.platform}/${process.arch}`,
    git: execFileSync("git", ["--version"], { encoding: "utf8" }).trim(),
    base,
    head: execFileSync("git", ["rev-parse", "HEAD"], { cwd: worktree, encoding: "utf8" }).trim(),
    candidateTree: execFileSync("git", ["write-tree"], { cwd: worktree, encoding: "utf8" }).trim(),
    baselineSourceSha256: digest(baseline),
    candidateSourceSha256: digest(candidate),
    sourceUnchangedByProof: digest(fs.readFileSync(path.join(worktree, relativeTest))) === digest(candidate),
    sentinelExpectedSha256: digest(sentinelText),
    syntheticRootRemoved: !fs.existsSync(proofRoot),
    limits: "Only explicitly test-owned fixtures; no SIGKILL/crash cleanup claim. Baseline/candidate synthetic lifecycle cases append one controlled test; candidate FIFO preflight runs the actual unchanged working test file. No host temporary-directory scan.",
    results,
  };
  fs.writeFileSync(path.join(artifacts, "result.json"), `${JSON.stringify(report, null, 2)}\n`);
}
console.log(JSON.stringify({ cases: results.length, cleanupVerified: true, sentinelPreserved: true }));

@hxy91819
hxy91819 requested a review from a team as a code owner August 10, 2026 15:27
@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 10, 2026
@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 7:40 PM ET / 23:40 UTC.

ClawSweeper review

What this changes

The PR groups temporary validation-test fixtures under one Node test-suite root and removes that root with Node’s teardown hook.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

The PR is a narrow, test-only cleanup with direct current-head lifecycle proof and no correctness finding. It remains open because repository policy requires explicit maintainer judgment for a member-authored pull request; the remaining current-head check should finish before merge.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The change is tightly scoped and backed by direct lifecycle proof; explicit maintainer review remains required for this member-authored PR.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The supplied exact-head Crabbox trace exercises the changed Node teardown through successful and intentionally failing node --test runs with FIFO and symlink fixtures, observing removal of the owned root while an unrelated sentinel stays unchanged.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The supplied exact-head Crabbox trace exercises the changed Node teardown through successful and intentionally failing node --test runs with FIFO and symlink fixtures, observing removal of the owned root while an unrelated sentinel stays unchanged.
Evidence reviewed 4 items Introduced cleanup owner: The reviewed head creates one suite-owned temporary root, registers native Node teardown, and routes temporary fixture constructors through the local allocator.
Current-main necessity check: The fetched main tip changes 19 other paths from the PR base and does not modify the affected validation test; this PR's test-file delta remains needed.
Feature-history routing: The native-teardown integration commit records the intended design: suite-owned temporary fixtures removed with node:test while direct node --test remains supported.
Findings None None.
Security None None.

How this fits together

The repair validation tests create disposable target repositories, tool shims, and filesystem edge cases to verify ClawSweeper’s repair safeguards. Those fixtures are consumed by the test runner and should disappear once the suite completes.

flowchart LR
  A[Node test suite] --> B[Fixture allocator]
  B --> C[Suite-owned temporary root]
  C --> D[Validation fixtures]
  D --> E[Repair validation checks]
  E --> F[Node teardown]
  F --> G[Fixture root removed]
Loading

Decision needed

Question Recommendation
Should this member-authored test-only cleanup be merged after the current in-progress check completes? Merge after checks: Accept the suite-owned Node teardown once the current head’s required check is green.

Why: Repository policy reserves member-authored PRs for explicit maintainer judgment even when the code and supplied proof are sound.

Before merge

  • Resolve merge risk (P1) - The required pnpm check for the current head is still in progress; its result should be confirmed before merge.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Test LOC delta production +0, tests +9 net (93 added, 84 removed) All introduced lines are confined to one validation test file.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Merge the suite-owned Node teardown after the current-head check succeeds, retaining the supplied direct node --test lifecycle proof.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Merge the suite-owned Node teardown after the current-head check succeeds, retaining the supplied direct node --test lifecycle proof.

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

Not applicable: this PR repairs test-fixture lifetime rather than a user-facing issue.

Is this the best way to solve the issue?

Yes: native Node test teardown keeps ownership in the suite rather than adding runner-wide cleanup machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 7b645130563f.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The supplied exact-head Crabbox trace exercises the changed Node teardown through successful and intentionally failing node --test runs with FIFO and symlink fixtures, observing removal of the owned root while an unrelated sentinel stays unchanged.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.

Label justifications:

  • P3: This is test-only cleanup with no production runtime or user-facing behavior change.
  • 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 (logs): The supplied exact-head Crabbox trace exercises the changed Node teardown through successful and intentionally failing node --test runs with FIFO and symlink fixtures, observing removal of the owned root while an unrelated sentinel stays unchanged.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied exact-head Crabbox trace exercises the changed Node teardown through successful and intentionally failing node --test runs with FIFO and symlink fixtures, observing removal of the owned root while an unrelated sentinel stays unchanged.

Evidence

What I checked:

  • Introduced cleanup owner: The reviewed head creates one suite-owned temporary root, registers native Node teardown, and routes temporary fixture constructors through the local allocator. (test/repair/target-validation.test.ts:49, 8e829d12ac84)
  • Current-main necessity check: The fetched main tip changes 19 other paths from the PR base and does not modify the affected validation test; this PR's test-file delta remains needed. (test/repair/target-validation.test.ts:49, 7b645130563f)
  • Feature-history routing: The native-teardown integration commit records the intended design: suite-owned temporary fixtures removed with node:test while direct node --test remains supported. (test/repair/target-validation.test.ts:49, 73db0fc0eeee)
  • Head-specific behavior proof: The PR body records an exact-head Crabbox Node 24 six-case before/after run: successful, failing, and FIFO-preflight node:test cases remove only the owned root and preserve an unrelated symlink sentinel; the corrected full gate reports 4,367 tests with zero failures. (test/repair/target-validation.test.ts:49, 8e829d12ac84)

Likely related people:

  • Peter Steinberger: 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.

  • Confirm the current head’s in-progress pnpm check result before merging.

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 (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-11T00:28:19.431Z sha 1aa53a6 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-11T06:29:52.041Z sha a602f2b :: found issues before merge. :: [P2] Refresh proof for the latest runner invocation
  • reviewed 2026-08-11T06:36:47.348Z sha a602f2b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-11T12:11:07.285Z sha a602f2b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-12T06:24:31.715Z sha a602f2b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-12T23:32:24.400Z sha a602f2b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T15:00:03.905Z sha a602f2b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T09:02:44.577Z sha a602f2b :: needs maintainer review before merge. :: none

@hxy91819
hxy91819 force-pushed the codex/disk-full-incident branch from 4b99634 to 1aa53a6 Compare August 10, 2026 15:46
@hxy91819
hxy91819 changed the base branch from feature/automerge-stable-red-proof to main August 10, 2026 15:46
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 10, 2026
@hxy91819

Copy link
Copy Markdown
Member Author

Local black-box validation completed against commit 1aa53a6a09.

Environment:

  • Linux, Node v24.15.0
  • Corepack resolved the repository pin to pnpm 11.10.0

Evidence:

  1. Lifecycle and runner behavior

    Command:

    node --test test/run-node-tests.test.ts test/test-temp-root-runner.test.ts
    

    Result: 10 passed, 0 failed. This exercises successful FIFO cleanup, assertion-failure cleanup, stale-root TTL cleanup, and SIGTERM cleanup through the real CLI runner. Matching run-root and validation-directory counts were unchanged before and after.

  2. Incident-equivalent FIFO fixture

    Command:

    node --test --test-name-pattern "workspace preflight rejects non-regular package metadata without blocking" test/repair/target-validation.test.ts
    

    Result: 1 passed, 0 failed. The FIFO preflight itself completed in 28.8 ms, below its 1-second behavior bound, and left no matching validation directory behind.

  3. Repeated full target-validation runs

    Command, executed twice:

    node --test --test-reporter=tap test/repair/target-validation.test.ts
    

    Results:

    • run 1: 198 passed, 3 skipped, 0 failed; 132.9 s
    • run 2: 198 passed, 3 skipped, 0 failed; 130.6 s
    • the total count of matching top-level ClawSweeper temporary directories was identical before and after each run
    • no clawsweeper-validation-* directory remained after either run

No pre-existing historical temporary directories were deleted during this validation.

The PR CI pnpm check also passed: https://github.com/openclaw/clawsweeper/actions/runs/31405434604/job/93510465585

steipete added a commit that referenced this pull request Aug 10, 2026
…ck finalization (#1109)

Three repair lanes rolled up PR status checks independently, and the
finalizer's copy had a live bug: it processed every check entry instead of
deduplicating to the newest run per check identity, so an older failed run of
a re-run check remained a blocker after the newer run succeeded. The
finalizer's classifications feed the published repair queue via
repair-publish-results, making stale failures veto finalization.

All three lanes now share src/repair/status-check-rollup.ts (latest-run
selection, ignored-name parsing, casing and timestamp precedence implemented
once); lane policy stays in the callers.

Proof (docs/proof/status-check-rollup): a red-then-green regression test, and
a real-payload production-boundary trace -- the identical real 26-entry check
payload from PR #1099 classified by both implementations: pre-change code
reports two stale CANCELLED blockers, this head reports zero, and the real
report-only finalizer confirms needs_checks=0. Verified in a Docker-backed
Crabbox local-container with committed provenance.

Automation-risk disposition: the newest run of a check identity is its
current state (the rule the router and post-flight lanes already applied);
blast radius is finalizer classifications in the published repair queue;
rollback is a revert restoring per-entry processing.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 11, 2026
@clawsweeper clawsweeper Bot added 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 11, 2026
@clawsweeper clawsweeper Bot removed the proof: sufficient Contributor real behavior proof is sufficient. label Aug 12, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 23, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 30, 2026
roboclaw-bot and others added 7 commits September 1, 2026 15:27
Keep changed-gate cache restoration independent of pending runtime artifacts. Preserve the fresh-output binding for archive smoke and extend the existing regression to cover warm caches across success, fallback and tampering.

Co-authored-by: VACInc <[email protected]>
Merge current main and use strict validation for the build/check/smoke success fixture. Preserve the existing missing-script fallback and artifact-tampering scenarios.

Co-authored-by: VACInc <[email protected]>
Keep all target-validation fixtures under one suite-owned directory and remove it with node:test after. Remove the proposed global temp reaper, heartbeat, signal lifecycle and runner overrides; raw node --test remains supported.

Co-authored-by: masonxhuang <[email protected]>
Place the three detached-process test shims inside their target fixtures so the production sandbox can load them. Preserve namespace, mount and process-reaping assertions.
Integrate the reviewed cache-restoration changes. Keep the native containment shims inside their fixture checkouts and bring the new cache fixture under the existing test-owned temporary root.

Co-authored-by: masonxhuang <[email protected]>
Preserve the reviewed single-root teardown and native fixture placement on current main.

Co-authored-by: masonxhuang <[email protected]>
@steipete steipete changed the title test: isolate and clean temporary test roots test: let Node own validation fixture cleanup Sep 1, 2026
@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. and removed merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. labels Sep 1, 2026
@steipete
steipete merged commit 311b985 into main Sep 1, 2026
22 of 26 checks passed
@steipete
steipete deleted the codex/disk-full-incident branch September 1, 2026 23:44
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Merged as 311b985. The final implementation keeps temporary-fixture ownership in the validation test file and delegates cleanup to Node's native teardown. It replaces the proposed runner-wide reaper/heartbeat/signal machinery with one owned root: one file, nine net added lines, and direct node --test remains supported.

Live AWS and macOS proof reproduced leaked baseline fixtures and verified cleanup after success, intentional assertion failure, and the actual FIFO preflight test. The unrelated symlink target remained unchanged. AWS run run_23754b70a04e passed the full gate: 4,367 tests passed, seven skipped, zero failures, plus 13 prompt-coverage tests. An initial launcher-only Git-config override caused three failures; removing that override passed the three affected cases and the full gate without any source change.

Current-head ClawSweeper review reported no correctness/security findings with sufficient proof; independent review found no actionable P1/P2 regression. GitHub CI, Windows, sparse-build, containment smoke and CodeQL passed. The merged tree matches the expected combination with current main, and the changed test file's hash matches the live-tested source. The isolated main checkout is clean; AWS lease cbx_28deee7715ec is released and independently verified stopped.

Thanks @hxy91819 for the original contribution. This covers ordinary test completion and failure; crash/SIGKILL cleanup and historical temporary directories remain outside its ownership contract.

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

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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.

3 participants