Skip to content

feat(test): run the CLI test runner under a declared root security scope - #107

Merged
wolfy-j merged 1 commit into
masterfrom
feat/test-runner-command-security
Aug 8, 2026
Merged

feat(test): run the CLI test runner under a declared root security scope#107
wolfy-j merged 1 commit into
masterfrom
feat/test-runner-command-security

Conversation

@wolfy-j

@wolfy-j wolfy-j commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Companion to wippyai/runtime#558.

The test runner discovers and executes arbitrary registry entries, so it needs an unrestricted scope; the CLI launcher installing it is the trust anchor (the operator started wippy run test on their own deployment).

  • wippy.test:runner_policy — allow-all security.policy owned by the module.
  • wippy.test:runner — declares meta.command.security (actor wippy.test:runner, policy runner_policy), which the patched CLI resolves and installs at launch.

Under strict security mode (default since runtime v0.3.27a) the actor-less runner had every registry read denied and reported No tests found on every module harness. With runtime#558 + this change, the kickside-module template harness discovers and passes its full suite with strict mode on (verified E2E; stock CLI on the same tree still fails, proving the launcher change is the enabling piece).

On CLIs without runtime#558 the extra meta and policy entry are inert; behavior is unchanged. Needs a wippy/test republish once merged.

The runner discovers and executes arbitrary registry entries, so it declares
meta.command.security with its own actor and an unrestricted runner_policy.
The CLI launcher (wippyai/runtime#558) resolves the block and installs the
context at start, which restores test discovery under strict security mode —
previously the actor-less runner process had every registry read denied and
reported 'No tests found'.
@wolfy-j
wolfy-j force-pushed the feat/test-runner-command-security branch from 8e27599 to 04bafc7 Compare August 8, 2026 00:36
@wolfy-j
wolfy-j merged commit 31544d3 into master Aug 8, 2026
21 checks passed
@wolfy-j
wolfy-j deleted the feat/test-runner-command-security branch August 8, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant