Repository navigation
Sync upstream main through #977 into production beta - #67
Conversation
* Report Skill upload and update field errors * Keep the Skills update body rules outside the shared gate * Keep 400 for malformed Skill versions and the generic not-found message
…Max-AI#862) * Validate Session, Vault, Credential and Template request shapes * Expect named field errors in the Session official-client tests * Delete the unused objectMember helper
* Reject input whose selected Credential was deleted * Let admission decide any reused input key before the Credential check
Native code_mode runs model-written scripts in codex-code-mode-host, which Codex 0.153.4 looks for beside its executable. The Runtime image carried only the codex executable, so programmatic tool calling on Codex failed in every Docker, microsandbox and E2B Environment. The native installer already ships the whole package.
The old Feishu board held a few differences the ledger lacked: prefixed official IDs, the idle self_hosted switch to requires_action, and three unverified shapes (parallel pending calls, Subagent task text and nesting, Template and Session env). The ledger is their only home now. The Environment files guide also loses a Claude Code read fallback that no longer exists.
The skip link and the console router both use the URL fragment, so following #main-content sent every page to Overview and dropped its parameters. The link now moves focus to the main element without navigating. Closes MiniMax-AI#421.
* Leave build-only files out of native installers The node component omits the CI runner's global pnpm and the minimax component omits better-sqlite3's deps, src and binding.gyp. Neither is loaded at run time. linux-amd64 archives shrink by 4.6 MB (node) and 2.7 MB (minimax) compressed. * Stop publishing unused release archives The control archives carry the Core, Web and ingress images and the native catalog from the build to the publisher, which pushes the images to GHCR. No install path downloads them, so the publisher no longer uploads them as release assets (337 MB per release).
* Report initialization step timing * Address review of initialization step timing
…x-AI#868) * Accept HTTP model providers on loopback and private addresses A model provider base_url may now use HTTP when its host is a loopback or private IP address, so a local or LAN gateway works without a TLS terminator. A host name still needs HTTPS, because it can resolve to any address. Core admission and the Runtime's frozen-bundle check share the one rule in internal/modelprovider. Closes MiniMax-AI#416. * Keep the client's base_url check no stricter than Core * Leave the HTTP host rule to Core in the provider dialog test * Describe the HTTP host rule in the provider hint
Core journals connected when it observes the Runtime's connection and pending when the initialization Worker claims the Environment on that Runtime, so either can come first. On the mx test installation, 16 of 23 hosted Sessions recorded pending first and 7 connected first; the documents said connected usually came first.
* Publish reproducible performance results scripts/benchmark.py drives hosted Sessions through the official SDK, times E2B with its SDK, and builds the table from the Session records and the Core log lines it keeps. docs/performance.md describes each measurement, the setup and how to reproduce it; the records it was built from are in docs/performance. The README shows the table beside E2B and the limits that apply. The backend comparison listed E2B as not suspending idle sandboxes; E2B pauses them in place. * Rerun the performance results with a 4 GiB E2B comparison and a cold resume Measure every row with the final script, add the full-node and npm install rows and a run that resumes from disk, describe how the E2B comparison differs, and put the Docker and workspace limits in their owning docs. * Record E2B resources and check the performance tables against their records The E2B run now records each sandbox's CPUs and memory, and build-template.py takes --memory-mb so the 4 GiB comparison template can be built from the repository. report fails when a measurement has no samples or the Core log yields no lines, and a hygiene check compares the published tables with report's output. The docs state the run conditions, the full list of E2B differences and the suspension triggers by link.
An active Codex goal makes app-server start a continuation turn on its own whenever the thread goes idle. On mx a hosted Session whose Turn created a goal ran a second native turn right after the Turn completed: two exec_command calls wrote notes.txt in the workspace and update_goal closed the goal, while the API listed one completed Turn. The adapter now passes --disable goals, an unattended-cloud override for work that outlives its Turn.
Codex opens its SQLite databases on every app-server start. Under the hosted state directory, which lives on NFS workspace storage, a new Codex Session's native_prepare took 1.48-1.74 s on mx (n=5); with CODEX_SQLITE_HOME under the Runtime home on the VM's own disk it took 0.38-0.44 s (n=5). Nothing the Session needs is lost when the compute is replaced: Codex rebuilds the thread index and history views from the rollouts in CODEX_HOME and reads dynamic tools from the rollout, and goals, whose state lives only in SQLite, are disabled.
…ts API (MiniMax-AI#700) Parsar is an optional example product, started independently of Core, that reaches Core only through the public /v1 Agents API with a Project key. It assembles reusable resources into conversational Agents for the Web and Feishu: Agents carry their Harness, model and execution options, resources and an environment template; a Turn ledger and monitor recover failed or silent Turns while nothing has run; 运行 shows every running conversation; Feishu adds onboarding, in-place cards and media delivery; cli.mjs manages the workspace through the same routes as the UI. @oac/agents-client now projects reasoning summary stream events.
Remove text that restates a fact another document owns, statements about code that no longer exists (managed HTTPS and domain actions, config.json, Harness-level workspace reads, a deleted contract test, the helper wire version, the MiniMax functions and multi_agent rejection, the Caddy hop in the quick-tunnel guide), the stale impeccable sidecar and four unreferenced console screenshots. Chinese mirrors follow each English edit.
Drop the restated owner sentence, the external product copy rule, the product service separation bullets that AGENTS.md and the Core service guide already state, Parsar example facts its README owns or that no longer exist (projects, tasks, comments, Cron plans, local MCP tokens), a pointer that only restates AGENTS.md, the Harness catalog details owned by the Harness protocol, and rename-era wording.
…iniMax-AI#881) * fix(microsandbox): increase bounded filesystem snapshot budget * fix(parsar): observe uncertain follow-up submissions * fix(parsar): confirm uncertain input receipt before tracking turns
The README introduces the project briefly. The performance table and the limits list return to their owners: docs/performance.md, Choose a sandbox backend, the Workspace filesystem protocol, Set up workspace storage and Suspension.
* Remove the Docker sandbox backend * Pin host capacity in the node installer tests * Fit three Web acceptance specs to microsandbox * Compare the review size by text content
* Enforce the sandbox network cap Add the deployment network cap (public, exact private domains), the Provider NetworkSupport declaration and the Egress that Core sends at Create and Resume. microsandbox and E2B enforce it in their adapters; the node installer no longer writes network rules. * Carry the network cap through the Web fixtures
* Enforce disabled and restricted Environment networks * Regenerate the E2B helper contract
…I#935) On an ext4 export without iversion, nfsd derives the change attribute from coarse ctime. A client that lists a directory and then creates a file in the same tick keeps serving the old listing, so a later RemoveAll misses the file and fails with ENOTEMPTY. Codex scans its thread-writer lock directory before it creates the lock, so reusing an Environment failed Runtime preparation. Document the export filesystem requirement and log the preparation error.
…#946) - An Agent whose template or capabilities need the bot identity saves without a bot; only its conversations require one. Binding a bot needs a saved Agent, so the Feishu template could never be used. - A Feishu message Core refuses is rejected with its reason instead of failing, so the resend, /clear and later messages in that chat are no longer skipped. The inbound manual retry had no producer left and is removed. - An environment template trial result is cleared when the template changes. - Settings no longer repeats the 运行/用量/审计日志 links, and the new Agent page drops the 保存后可绑定 note.
…I#951) An administrator archive expired the Environment and then cancelled the Session's pending input. A cancelled initial input on an openai_hosted Session projects no activity, so the Session read idle with no error and the caller could not learn that its input would never run. Compute expiry already failed the input first, so the same expiry read failed. Both now end the Environment through sessions.ExpireEnvironment: expire a live Environment, fail input that never ran, cancel active work. TerminateEnvironment fails a live Environment whose compute did not expire and expires every other one, which removes the three-way termination decision.
) A message sent while a turn ran kept the turn's card where it was, so the answer appeared above the latest message. The steering message now takes over the card: Parsar recalls the old card and continues the turn in a new one that replies to the steering message, so a turn has one card and it always follows the latest message. Generated with [Devin](https://devin.ai) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ax-AI#953) Feishu shows every recall in the chat, so recalling the card a steering message replaced left a notice in the middle of the conversation. The earlier card now shrinks to one grey line, 已并入下方回复. Generated with [Devin](https://devin.ai) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
A steer moved the card the thread had last shown, which is not always the running turn's card, so the turn's result went to its old card and the new card stayed at 处理中. A turn's card is now the newest unmoved card one of its own inputs opened, for moving it on a steer and for writing the result. Generated with [Devin](https://devin.ai) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Folding a steered turn's earlier card marked it moved before the edit and swallowed a failed edit, which left the card at 处理中, and it deleted an earlier card whose send was attempted but unconfirmed. The card is now marked moved only after the edit succeeds or Feishu can no longer edit it, a retry never folds the steering message's own card, and an unconfirmed card is kept and delivered with the folded content. Generated with [Devin](https://devin.ai) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…AI#956) Anyone replying in a group topic reached the bot. Now only the topic's participants do without a mention: the person who opened it and anyone who has since mentioned the bot there. Others are answered when they mention the bot, which makes them participants. Generated with [Devin](https://devin.ai) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…I#965) A Turn in waiting kept its OAC_EXECUTION_CONCURRENCY slot until the application answered, so as many unanswered questions as slots stopped all hosted execution. The delivery loop now reports whether its Turn waits; the Session stays reserved, but the Worker counts only the other Sessions against the limit.
Agents choose one or two blind reviewers by risk, review follow-up changes only, and end the gate after at most three rounds by finishing or reassessing the design. In-scope blocker, high-severity and data-integrity findings always block completion. CONTRIBUTING.md points agents to the gate and lists it in the ownership table.
Core fails a Session when its first input's deadline passes while the sandbox waits for a free slot. Parsar reported that as a model timeout, which pointed users at the wrong cause. Generated with [Devin](https://devin.ai) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…AI#970) * Tell Feishu Agents how their reply reaches the conversation An Agent answering a group topic posted its authorization link and QR code with lark-cli to the group's main chat, outside the topic. The Feishu source line now also tells the Agent to answer in its final reply, which Parsar posts back where the message came from, to put images or files for the person in outputs and name them, and not to post into that conversation with lark-cli. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * Hide the Feishu source line from 运行 prompts Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* Prepare no sandbox for expired input A never-allocated Environment whose initial input expired, with no live input, is no longer placement demand; it waits again from its live input's creation once new input arrives. Provisioning rechecks the same query before creating a workspace for a new or released allocation, and ReserveAllocation rechecks it under the deployment lock; a failed recheck releases that attempt's node reservation like any failed preparation. * Bound placement demand cost and keep preparation errors Read live input through the unique pending row and the input history only for an Environment never allocated, so the demand scan no longer grows with history. The preparation check lists only Environments the view marks as not waiting, so reset, failed and not-ready cases keep their own errors; a lapsed refusal rescans placement at once. Document the pending state of an Environment whose input expired. * Index the initial input and pin refusal errors in tests The never-allocated demand test reads a Session's initial input through a partial index, so the scan no longer reads its whole input history. Tests pin that reset, failed and not-ready cases keep their own errors and that a lapsed release wakes the placement scan.
…#973) The trace view and the item renderers each had an itemStatusKind function with different fallbacks (queued vs completed), and trace-model restated the item status set by hand. One Record<ItemStatus, StatusKind> now drives both icons and the accepted status set, so a status added to the generated API fails typecheck until it is mapped instead of rendering as completed or disappearing.
… unused helpers (MiniMax-AI#974) * Read tool search support from Harness declarations in the discovery test The test restated which built-in Harnesses support tool search (only claude_sdk). Declarations are the only source of support facts, so declaring tool search for another Harness broke an unrelated execution test. Iterate the built-in registry and expect admission exactly where the declaration says tool search is supported. * Delete unused test helpers testAgents, readReceipt and fakeGateway.wantAuth have no callers or readers (staticcheck U1000).
) * Warn once when a Runtime history exporter starts failing Export errors and exporter panics were discarded without any trace, so an unreachable OTLP collector or a failing history insert looked exactly like a Runtime with no history. The dispatcher now logs one warning at the start of each outage with the exporter type and outcome class (error, timeout, panic); the error text is not logged because it may carry a collector response. Observation results and queue behaviour are unchanged. * Refresh the Chinese runtime observability translation hash
* Test that unstarted compute fails a Session's unrun first input * Keep a generation usable after its collection fails * Stop retrying collection of generations that never prepared * Test that a deployment change leaves a preparing sandbox on its generation * Document collecting a generation the node never prepared
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3f9ebd9b6
ℹ️ 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".
| for v := low; v <= high; v += increment { | ||
| mask |= 1 << v |
There was a problem hiding this comment.
Prevent integer overflow when expanding cron steps
On a 64-bit Core, the expression 1-59/9223372036854775807 * * * * passes step validation because strconv.Atoi accepts the positive increment. However, v += increment overflows after the first iteration, making v negative and causing mask |= 1 << v to panic. This is reachable through periodic Automation creation and updates, aborting the HTTP request instead of returning a validation error or a valid schedule. Bound the increment or stop before an addition that would overflow; the existing parser tests do not cover this input.
Useful? React with 👍 / 👎.
Sync MiniMax-AI/OpenAgentCore through e6788d1 (MiniMax-AI#977) onto the production beta hotfix 1af2d9e. Includes the 84 upstream commits after 7490e65 and preserves the SandBase direct provisioning and settlement fixes. The separate artifact reconnect change is excluded.
Local qualification covered the populated PostgreSQL 16 upgrade from schema 10 to 18, reading historical encrypted inputs, continuing a beta session, direct provisioning at 8/12/20 candidates, and the Web/API/Runtime paths. The clean sync branch built Core and passed the runtimebootstrap, public contract and gateway tests.
Production rollout requires matching Runtime templates (wire 0.26.0, bootstrap 4). Existing beta Runtime connections reject the new wire protocol. Migrations 14 and 16 backfill existing rows. Full production-volume migration time and a recoverable production backup have not been verified. Rolling back the control-plane image alone cannot restore the beta schema.