Skip to content

fix: restore clippy and rustfmt on main, restructure secure-exec docs - #2004

Merged
NathanFlurry merged 1 commit into
mainfrom
stack/fix-native-sidecar-allow-from_virtual-argument-count-for-clippy-ztxnwqzw
Sep 21, 2026
Merged

NathanFlurry merged 1 commit into
mainfrom
stack/fix-native-sidecar-allow-from_virtual-argument-count-for-clippy-ztxnwqzw

Conversation

@NathanFlurry

@NathanFlurry NathanFlurry commented Sep 21, 2026

Copy link
Copy Markdown
Member
  • Silence clippy too_many_arguments on ActiveUnixListener::from_virtual and fix three rustfmt violations that landed broken on main.
  • Restructure the Secure Exec sidebar into General, Use Cases, Executing Code, Security, and Reference; drop icons outside the first two groups.
  • Delete the Platforms, Execution Model, Errors, Limitations, API Reference, Going Further, and Python pages, folding what survives into Execute & Evaluate and Quickstart.
  • Remove per-tenant VM guidance from all docs and examples.
  • Add a Code Mode use case page and example on the current host functions API.
  • Trim the Introduction to the snippet, feature bullets, and Where to start.

@NathanFlurry

NathanFlurry commented Sep 21, 2026

Copy link
Copy Markdown
Member Author

Stack for rivet-dev/agentos

Get stack: forklift get 2004
Push local edits: forklift submit
Merge when ready: forklift merge 2004

change ztxnwqzw

@railway-app

railway-app Bot commented Sep 21, 2026

Copy link
Copy Markdown

🚅 Environment agentos-pr-2004 in rivet-frontend has no services deployed.

@the-company-company the-company-company Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found

Reviewed commit 72efa1b.

@NathanFlurry
NathanFlurry force-pushed the stack/fix-native-sidecar-allow-from_virtual-argument-count-for-clippy-ztxnwqzw branch from 72efa1b to b807ba9 Compare September 21, 2026 07:43
@NathanFlurry NathanFlurry changed the title fix(native-sidecar): allow from_virtual argument count for clippy fix(native-sidecar): restore clippy and rustfmt on main Sep 21, 2026
@NathanFlurry NathanFlurry changed the title fix(native-sidecar): restore clippy and rustfmt on main fix: restore clippy, rustfmt, and host function parity on main Sep 21, 2026
@NathanFlurry
NathanFlurry force-pushed the stack/fix-native-sidecar-allow-from_virtual-argument-count-for-clippy-ztxnwqzw branch from b807ba9 to de33b39 Compare September 21, 2026 08:06

@the-company-company the-company-company Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 2 medium · 🔵 1 low

Reviewed commit de33b39.

name: "store",
description: "Read the order book.",
functions: {
listOrders: hostFunction({

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Medium · The new Code Mode example is rejected before execution

validateHostFunctions() only accepts function keys matching ^[a-z0-9]+(?:-[a-z0-9]+)*$, and VM creation calls that validator whenever hostFunctions are supplied. The listOrders key therefore throws Host function name "listOrders" must be lowercase alphanumeric with optional single hyphen separators, so this new runnable example and its embedded docs snippet cannot reach evaluate. Name the registered function "list-orders"; the guest-facing identifier will still be converted to listOrders.

Comment thread secure-exec/docs/content/docs/npm.mdx Outdated
Comment on lines +17 to +19
- Packages install into the working directory, `/workspace`. Run your code from a
file there so it finds them. Inline code has a
[limitation](/secure-exec/docs/limitations) here.
here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low · The npm guidance now ends with a broken sentence

Removing the limitations link leaves the rendered bullet as “Inline code has a here,” so readers no longer get either a valid explanation or usable prose. Replace these two lines with a complete description of the inline import-resolution limitation, or link to the section that now owns that guidance.

name: "math",
description: "Math utilities",
hostFunctions: ["add"],
functions: ["add"],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Medium · The same host-function assertion remains broken in the nightly suite

This updates the migration-parity expectation to match listHostFunctionsPayload(), which emits functions, but packages/core/tests/sidecar-host-function-dispatch.nightly.test.ts:66 still expects the old hostFunctions field for the identical agentos list-host-functions response. That nightly test will continue failing whenever it runs. Update the duplicate assertion in the same change, or share one response fixture so the two suites cannot drift again.

@NathanFlurry NathanFlurry changed the title fix: restore clippy, rustfmt, and host function parity on main fix: restore clippy and rustfmt on main, restructure secure-exec docs Sep 21, 2026
@NathanFlurry
NathanFlurry force-pushed the stack/fix-native-sidecar-allow-from_virtual-argument-count-for-clippy-ztxnwqzw branch from de33b39 to eb03942 Compare September 21, 2026 08:57

@the-company-company the-company-company Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 2 medium-severity findings

Reviewed commit eb03942.

Comment on lines 28 to 29

- **Set `timeoutMs` on every call** that runs code you did not write.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Medium · The docs stop treating a VM as the tenant isolation boundary

This removes the only explicit multi-tenant isolation rule while the remaining VM docs still state that calls in one VM share its filesystem, network, packages, processes, and limits. Reusing such a VM for mutually untrusted tenants lets one tenant observe or affect state left by another, including files and long-running processes; changing only the per-session credential does not isolate that shared VM state. Keep the one-tenant-per-VM guidance in the security responsibilities (and the credential example), or document an equally strong tenant boundary.

published as host ports.
- External network access is **denied by default**. Grant it, or specific hosts,
with [permissions](/secure-exec/docs/permissions).
- Read or cancel response bodies you request. See

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Medium · The networking disposal workaround disappears while the behavior remains

The deleted limitations page documents that VMs which used the network can take several seconds longer to dispose, and much longer when a response body is left unread (tracked in #1989). This diff does not change that runtime behavior, but it removes both the limitations page and this networking-page instruction to read or cancel bodies. Users can now follow the networking docs and encounter unexplained cleanup stalls with no mitigation. Preserve this warning and workaround on the networking page until the underlying issue is fixed.

- Silence clippy too_many_arguments on ActiveUnixListener::from_virtual and fix three rustfmt violations that landed broken on main.
- Restructure the Secure Exec sidebar into General, Use Cases, Executing Code, Security, and Reference; drop icons outside the first two groups.
- Delete the Platforms, Execution Model, Errors, Limitations, API Reference, Going Further, and Python pages, folding what survives into Execute & Evaluate and Quickstart.
- Remove per-tenant VM guidance from all docs and examples.
- Add a Code Mode use case page and example on the current host functions API.
- Trim the Introduction to the snippet, feature bullets, and Where to start.
@NathanFlurry
NathanFlurry force-pushed the stack/fix-native-sidecar-allow-from_virtual-argument-count-for-clippy-ztxnwqzw branch from eb03942 to 06db7b1 Compare September 21, 2026 09:03

@the-company-company the-company-company Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 2 medium-severity findings

Reviewed commit 06db7b1.

Comment on lines 28 to 29

- **Set `timeoutMs` on every call** that runs code you did not write.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Medium · The docs stop treating a VM as the tenant isolation boundary

This still removes the only explicit multi-tenant isolation rule while the remaining VM docs state that calls in one VM share its filesystem, network, packages, processes, and limits. Reusing such a VM for mutually untrusted tenants lets one tenant observe or affect state left by another; changing only the per-session credential does not isolate that shared state. Keep the one-tenant-per-VM guidance in the security responsibilities and credential example, or document an equally strong tenant boundary.

published as host ports.
- External network access is **denied by default**. Grant it, or specific hosts,
with [permissions](/secure-exec/docs/permissions).
- Read or cancel response bodies you request. See

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Medium · The networking disposal workaround disappears while the behavior remains

The deleted limitations page documents that VMs which used the network can take several seconds longer to dispose, and much longer when a response body is left unread (tracked in #1989). This head still does not change that runtime behavior, but removes both the limitations page and this instruction to read or cancel bodies. Preserve the warning and workaround on the networking page until the underlying issue is fixed.

@NathanFlurry
NathanFlurry merged commit 06db7b1 into main Sep 21, 2026
5 of 7 checks passed
@NathanFlurry
NathanFlurry deleted the stack/fix-native-sidecar-allow-from_virtual-argument-count-for-clippy-ztxnwqzw branch September 21, 2026 09:07

This branch is being deployed

4 in progress deployments
rivet-frontend / rivet-pr-5324 06db7b15 Deployed Sep 21, 2026 by railway-app[bot]
rivet-frontend / rivet-pr-5338 06db7b15 Deployed Sep 21, 2026 by railway-app[bot]
rivet-frontend / rivet-pr-5333 06db7b15 Deployed Sep 21, 2026 by railway-app[bot]
rivet-frontend / rivet-pr-5328 06db7b15 Deployed Sep 21, 2026 by railway-app[bot]
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