Skip to content

chore(agents): distinguish source-session test roots - #204524

Merged
vincentkoc merged 1 commit into
mainfrom
test/cli-fork-root-fixture-20261124
Nov 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/cli-fork-root-fixture-20261124

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The fork-dispatch test gives the source session and fallback workspace the same root. It can therefore pass even when dispatch drops the source session's stored root.

User Impact

No runtime behavior changes. The existing test now detects loss of the source session's filesystem boundary.

Why This Change Was Made

Give the source session a distinct fixture root and expect that root in the constructed tool permission context. All existing cases and assertions remain.

Evidence

  • Controlled mutation: dropping only the forwarded source root passes the original test and fails the updated grant assertion.
  • After restoring production code byte-for-byte, all 42 dispatch tests and 15 grant-context tests pass.
  • Focused format, lint, agent-test typecheck, line-cap, and whitespace checks pass.
  • Full local ClawSweeper review of the committed range found no actionable issues.
  • This proves dispatch-to-grant root propagation; it does not claim live CLI process or filesystem-enforcement coverage.

@vincentkoc vincentkoc self-assigned this Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review November 24, 2026 09:04
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Nov 24, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 24, 2026
@vincentkoc
vincentkoc merged commit bc653bb into main Nov 24, 2026
177 checks passed
@vincentkoc
vincentkoc deleted the test/cli-fork-root-fixture-20261124 branch November 24, 2026 09:19
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 24, 2026
* commit '391dea93e0a97fff97f9f3d5e94eac992b247b09': (21 commits)
  test(update): cover maintenance release before conversion (#204548)
  fix(ci): control memory pressure in cron rearm fixture (#204543)
  fix: align release workflow tests with retained evidence
  test(ui): open the Settings drawer by keyboard before the Escape check (#204539)
  fix(ci): avoid redundant globs for literal test inventories (#204529)
  fix(pr): retain protected resources after native squash merges (#204496)
  fix(ui): show the check mark on the custom ask_user answer (#199999)
  chore(ui): refresh control ui locales (#204542)
  fix(update): build Git releases only once (#204512)
  fix(ci): avoid repeated full-inventory matching (#204525)
  test(ci): align exec completion fixtures with process instances (#204507)
  test(update): replace mocked JSON routing with child proof (#204527)
  fix(slack): reject system events with an unresolved conversation type (#204444)
  test(agents): distinguish the source-session root (#204524)
  perf(ai): keep Responses tool history checkpointed across turns (#204519)
  feat(zai): add GLM-5.4 as the Coding Plan default (#204522)
  ci: cover unscheduled test files daily and fail when a test has no scheduled lane (#204472)
  fix(ci): model a distinct FRV job retry in CLI fixtures (#204517)
  improve(ui): defer sign-in controls until needed (#204484)
  test(agents): assert the prepared MCP hook prompt (#204508)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant