Repository navigation
Tighten Lambda release, install and secret checks, and rank free offers as priced - #49
Conversation
…rs as priced - The lease's Lambda state records Seen once Lambda first shows the instance while acquire waits for it. A lease has at most one instance, so release treats a seen instance that Lambda no longer lists as terminated, inside the ten-minute launch window and after a restart alike. Only an instance never seen still waits out the window. - The Lambda provider always logs in as ubuntu; the user setting is gone, and a config that still sets it fails as an unknown key. - Acquire checks a private copy of errand_binary and uploads that same copy. - An instance type whose architecture errand does not know fails before launch instead of skipping the check. - On Windows, a secret file whose DACL lets anyone but the owner, SYSTEM or Administrators read it is refused (fsowner.Private). - price_per_hour is kept as set or unset, so a free offer sorts before an unpriced one. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013BQxiCNDXMnjv5pvmgo5E6
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9d37a2e1db
ℹ️ 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".
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013BQxiCNDXMnjv5pvmgo5E6
Keeps #49's changes: no Lambda user setting, optional prices, the Seen check on release, and installing the copy of errand that was checked, which now covers downloaded and self builds too. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01QRtura6rhpHQz6RRGcL3uk
Before: A lease released in its first ten minutes could stay "releasing" until the launch window passed, even though Lambda had already terminated its machine. A Lambda
userother than ubuntu rented a machine errand couldn't log in to.errand_binarywas checked, then reopened for upload, so different bytes could reach the machine. An unknown instance architecture skipped the architecture check. On Windows, a secret file that other users could read through its ACL was accepted. A free offer (price_per_hour = 0) ranked after an unpriced one.After: Release finishes as soon as an instance Lambda has shown is no longer listed, also after a cloud peer restart. The Lambda
usersetting is gone, and the login is always ubuntu. The binary that was checked is the one installed. An unknown architecture fails before launch. Windows secret files must be readable only by their owner, SYSTEM and Administrators.price_per_hour = 0counts as a price and sorts first.How: the lease's saved Lambda state records
seenthe first time Lambda answers for the instance. A lease has at most one instance, so a seen instance that is no longer listed has been terminated, and the ten-minute settle window applies only to an instance that was never seen. Acquire copieserrand_binaryto a private file, checks the copy and uploads it.fsowner.Privatechecks the mode on Unix and the DACL on Windows. Prices are optional values, with nil meaning unpriced.Closes items in #33: release soon after launch, Lambda
user,errand_binarycheck-to-upload, unknown Lambda architecture, Windows secret ACL,price_per_hour = 0.🤖 Generated with Claude Code
https://claude.ai/code/session_013BQxiCNDXMnjv5pvmgo5E6
Generated by Claude Code