Skip to content

feat(runner): capture sanitized host state - #46

Merged
Windsor Nguyễn (windsornguyen) merged 1 commit into
codex/runner-contractfrom
codex/runner-probe
Aug 14, 2026
Merged

feat(runner): capture sanitized host state#46
Windsor Nguyễn (windsornguyen) merged 1 commit into
codex/runner-contractfrom
codex/runner-probe

Conversation

@windsornguyen

@windsornguyen Windsor Nguyễn (windsornguyen) commented Jul 30, 2026

Copy link
Copy Markdown
Member

Summary

This change adds a Linux runner probe that records an allowlisted environment, process identity, kernel, cgroup, package, path, tool, and hosted-tool-cache inventory.

Evidence

  • The test fixture defines a sentinel secret environment variable.
  • The serialized probe omits the sentinel value and retains only the declared GitHub runner variables.
  • The probe does not traverse arbitrary environment variables, process environments, home directories, cloud metadata, or GitHub temporary files.

Tests

  • npm run lint.
  • npm run typecheck.
  • npm test.
  • npm run build.
  • npm run package.
  • npm audit --audit-level=high.
  • npm audit signatures.

Compatibility

This change adds a public API. The probe supports Linux and reports an error on another operating system.

Review focus

Review the environment and filesystem allowlists, deterministic ordering, error handling, and serialized schema.

@windsornguyen
Windsor Nguyễn (windsornguyen) merged commit 0fc5346 into main Aug 14, 2026
14 checks passed
@cind-bot

cind-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Here's a flower for all your hard work! 🌸

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.

2 participants