Skip to content

feat(core): freeze native command environments before admission - #388

Merged
lg2m merged 2 commits into
feat/linux-command-custodyfrom
feat/native-command-environment
Oct 21, 2026
Merged

lg2m merged 2 commits into
feat/linux-command-custodyfrom
feat/native-command-environment

Conversation

@lg2m

@lg2m lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Native command workers now execute with environment values captured by the submitting caller. A reused worker cannot supply stale values or fill in variables absent from that snapshot. Retry identity includes an environment digest; request records and debug output omit the values. Commands can still print them into output.

Snapshots preserve native strings, validate names and duplicates, and bound count and size before execution. The private command-owner API becomes v2; the public QQ protocol is unchanged.

Validation: the captured-environment regression failed with worker-environment fallback and passes with the snapshot; 54 focused core tests and 19 real-worker/private-API tests pass. Formatting, repository lint and Clippy pass. Full tests run in CI.

Stacked on #387. Normal agent-to-worker routing follows in the next PR. This adds no filesystem or network containment claim.

@lg2m lg2m added the ci:full label Oct 21, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T09:50:39.090959Z 1439b98 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lg2m

lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 222bdd2711

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lg2m

lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 28dc45d57b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lg2m
lg2m removed this pull request from stack #390 October 21, 2026 09:18
@lg2m
lg2m added this pull request to stack #392 October 21, 2026 09:18
@lg2m
lg2m force-pushed the feat/native-command-environment branch from 28dc45d to 1439b98 Compare October 21, 2026 09:34
@lg2m

lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 1439b98922

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lg2m
lg2m merged commit c747652 into main Oct 21, 2026
8 checks passed
@lg2m
lg2m deleted the feat/native-command-environment branch October 21, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant