Skip to content

test: merge Windows security suites and table path contract twins - #812

Closed
steipete wants to merge 1 commit into
mainfrom
steipete/deslop-r5-tests-path
Closed

steipete wants to merge 1 commit into
mainfrom
steipete/deslop-r5-tests-path

Conversation

@steipete

@steipete steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The portable Windows security suite and its locality-failure sibling shared identical native-off setup, read spies, and replacement helpers across two files; workspace read contracts were written separately for sync and async variants; fallback-write cleanup and the FIFO-swap open interceptor were duplicated per entry point; and one Root-open smoke test was covered by the retained disposal test.

User Impact

No user-visible change; tests only (src/ and native/ byte-identical).

Why This Change Was Made

  • windows-security-locality-failure.test.ts merges into windows-security-portable.test.ts (Windows-gated), reusing the same setup, watchNextFileReads(), and one replaceOnce() helper that keeps its exact-one-match assertion.
  • Workspace read contracts run per sync/async variant from one body; fallback-write cleanup and the FIFO-swap interceptor are shared; Root-open mode options become a table, and the subsumed smoke test is removed.

Net -175 lines, one fewer file.

Evidence

  • Expanded counts: the 4 locality cases moved, sync/async contract variants separated into rows (19 → 23), and only the subsumed fs-safe.test.ts smoke test removed (34 → 33); no reference to the deleted file remains.

  • Focused run: 71 passed, 28 Windows-only skips (baseline 68 passed).

  • tsc, lint:file-size, lint:fs-boundary: pass. Codex autoreview (P0-P2): clean.

  • Tests added or updated when behavior changed

  • Security and compatibility impact considered

  • CHANGELOG.md updated when release-relevant

  • No credentials, private paths, private hosts, or sensitive contents included

@steipete
steipete requested a review from a team as a code owner October 1, 2026 14:34
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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 Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 10:37 AM ET / 14:37 UTC.

ClawSweeper review

What this changes

Consolidates Windows security tests and shared filesystem test fixtures, tables equivalent sync/async and mode cases, and removes a redundant Root-open smoke test.

Merge readiness

✅ Ready for maintainer review

Keep open: the consolidation remains distinct from current main, preserves the inspected security assertions, and introduces no actionable correctness defect. The repository policy and MEMBER association also preclude automatic cleanup closure.

Priority: P3
Reviewed head: d06510257021f7ff3e53c7683bd12f3c5a5f12d6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused test consolidation preserves the inspected coverage and has no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER association exempts this test-only PR from contributor runtime proof; no production authority or stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER association exempts this test-only PR from contributor runtime proof; no production authority or stored-data contract changes.
Evidence reviewed 7 items Policy and repository identity: Read the full root AGENTS.md; no nested AGENTS.md or maintainer notes were found. Security coverage preservation and omission of maintenance-only changelog entries apply. The origin URL confirms the target repository.
Pinned introduced scope: The verified main-to-head delta changes six test paths, with 155 additions and 330 deletions; src, native, workflows, package metadata, and lockfiles are unchanged. Current main retains the separate tests being consolidated.
Windows coverage retained: Compared the deleted locality-failure suite with its destination: all four expanded cases retain their platform gate, native-off setup, failure injection, rejection and preservation assertions, and timeouts. The shared replacement helper retains its exact-one-match assertion.
Findings None None.
Security None None.

How this fits together

fs-safe guards filesystem operations on untrusted paths. These tests exercise file admission, permissions, identity checks, and cleanup through its public APIs and Windows security bridge.

flowchart TD
 A[Test paths and files] --> B[Root and workspace APIs]
 A --> C[Windows security bridge]
 B --> D[Permission and identity checks]
 C --> D
 D --> E[Allowed operation or rejection]
 E --> F[Content, handle, and cleanup assertions]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Test consolidation production +0/-0; tests +155/-330; net -175 lines The reduction is confined to tests and introduces no production growth.

Technical review

Best possible solution:

Retain the smaller shared test structure while preserving the platform gates, injected race scenarios, and security assertions.

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

Not applicable: this PR consolidates existing tests rather than reporting a runtime defect; no tests were executed during this read-only review.

Is this the best way to solve the issue?

Yes: sharing equivalent fixtures and table cases reduces duplication while retaining the inspected assertions and platform-specific scenarios.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is test maintenance with no introduced user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER association exempts this test-only PR from contributor runtime proof; no production authority or stored-data contract changes.

Label justifications:

  • P3: This is test maintenance with no introduced user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER association exempts this test-only PR from contributor runtime proof; no production authority or stored-data contract changes.

Evidence

What I checked:

  • Policy and repository identity: Read the full root AGENTS.md; no nested AGENTS.md or maintainer notes were found. Security coverage preservation and omission of maintenance-only changelog entries apply. The origin URL confirms the target repository. (AGENTS.md:1, d06510257021)
  • Pinned introduced scope: The verified main-to-head delta changes six test paths, with 155 additions and 330 deletions; src, native, workflows, package metadata, and lockfiles are unchanged. Current main retains the separate tests being consolidated. (d06510257021)
  • Windows coverage retained: Compared the deleted locality-failure suite with its destination: all four expanded cases retain their platform gate, native-off setup, failure injection, rejection and preservation assertions, and timeouts. The shared replacement helper retains its exact-one-match assertion. (test/windows-security-portable.test.ts:382, d06510257021)
  • Contract and smoke coverage: The workspace table retains directory, missing-file, original-cause, hardlink, and symlink checks for both variants. The retained disposal test performs the same Root-open content read as the removed smoke test. Shared FIFO and fallback-write helpers preserve their race triggers and assertions. (test/sync-async-contracts.test.ts:216, d06510257021)
  • Prior merged area contribution: GitHub verifies steipete authored the merged Windows fallback implementation at feat(windows): support secure operations without native addon #476, whose merge SHA is 34156e0. This supplies routing evidence beyond authorship of the proposed branch. (test/windows-security-portable.test.ts, 34156e0730f5)
  • Recent fixture history: Available main history includes prior fixture consolidation and filesystem identity work by Peter Steinberger. Some deeper history reads failed because historical objects could not be fetched; no introduction claim relies on those unavailable objects. (test/guarded-write-cleanup.test.ts, 74cf375d1807)

Likely related people:

  • steipete: 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.

steipete added a commit that referenced this pull request Oct 1, 2026
Merge the Windows locality-failure suite into the portable Windows security suite with shared setup and read spies, run workspace read contracts per sync/async variant from one body, share fallback-write cleanup and the FIFO-swap interceptor, table Root-open mode options, and drop one subsumed smoke test. Tests only; net -175 lines.
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Landed on main as 8cb983c through the batch PR #816 (rebase merge, one commit per original PR), to avoid ten serial up-to-date CI cycles. Content is identical to this PR's reviewed diff.

@steipete steipete closed this Oct 1, 2026
steipete added a commit that referenced this pull request Oct 1, 2026
Merge the Windows locality-failure suite into the portable Windows security suite with shared setup and read spies, run workspace read contracts per sync/async variant from one body, share fallback-write cleanup and the FIFO-swap interceptor, table Root-open mode options, and drop one subsumed smoke test. Tests only; net -175 lines.
@steipete
steipete deleted the steipete/deslop-r5-tests-path branch October 1, 2026 17:08
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. 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.

1 participant