Repository navigation
OpenAI4S v1.0.3 closes three reviews and fixes security problems in the web requests the daemon makes itself. The improvement report that followed 1.0.2, items P0-1 to P2-1, lands first #282. A hands-on review of the workbench, CLI and agent runtime recorded 136 gaps, all closed: 125 as recommended and 11 in the form an earlier owner decision allows #305. A review of the agent harness recorded 105 more (103 done, 2 in part), followed by ten rounds of self-review #317 and sixteen owner decisions #318. The fetch-path security fixes first prepared for the 1.0.x line in #316 reach this release through #317, and two Linux sandbox fixes follow #321, #322. The release also adds StepFun's Step Plan #291, runs lab devices on their real simulators #283, and raises the Python floor to 3.11 #319.
The database moves from schema 45 to 52, and Python 3.11 or newer is required. Read “Upgrading to 1.0.3” before starting this version on an existing data directory.
Highlights
- Web requests go where they were checked. The daemon's own requests (
web_fetch,web_download,web_probe, an endpoint's readiness probe, the HTTP MCP connector andopenai4s share import) were checked against one reading of a URL and sent by another, and a fetch permission rule was matched against the URL as typed; releases from 0.1.0 to 1.0.2 are affected. A checked request now dials the host and the addresses that were checked; see "Security" #317, #316. - A network approval reaches only the session that asked. One approval of
request_network_accessused to open the host to every session until the daemon stopped. Settings → Network now lists each approval in effect with Revoke, a saved deny closes an approved host, and rules are stored as the host a client dials #317, #318. - A Cell's network goes through one checked door, and
askis the default. Under an enforced single-user sandbox (Seatbelt, or bubblewrap outside WSL) a Cell's HTTP(S) goes through a loopback egress proxy that applies the web tools' lists, where it used to fail outright; underask, a request to a host outside them waits on the approval card. The default egress mode wasoff#305, #317. - Memory you review. Memory and automatic capture are on by default, and what capture extracts takes effect only once someone keeps it (Keep, Dismiss and Undo under the answer, or the Memory page). The agent can correct or forget a memory, and a new session loads memories by topic #305, #317.
- Answers are checked. Each completed turn is reviewed automatically, by default by another saved model with a usable key, and the findings go back to the agent as a follow-up turn.
verify_doischecks every DOI in one call against Crossref and DataCite, with retraction notices, and an answer citing a DOI nothing checked, or one not registered, is sent back once #305, #317, #318. - You see which sessions need you. Home shows a card for a session waiting on your answer, and keeps one for a session that failed, was stopped or finished while you were away until you open it. Running sessions older than the 50 newest are listed, and a long session can continue in a new one from a summary #282, #317.
- A manual Notebook Cell runs once. Like the message receipts of 1.0.2, a Notebook Cell carries a client-minted id; when the answer to Run is lost, the Notebook asks what became of it instead of running it again #282.
- A dead kernel costs one Cell, not the turn. A Cell that kills its kernel comes back to the model as a failed Cell with a note that the kernel was restarted, and the turn goes on; three deaths in a row end it and offer Continue. It used to end with "internal error" #317.
Downloads
| Download | For |
|---|---|
| OpenAI4S-1.0.3-macos-arm64.dmg (SHA-256) | macOS Apple Silicon (arm64); embedded Python and science stack; ad-hoc signed |
OpenAI4S-1.0.3-linux-x86_64.tar.gz |
Linux x86_64; embedded Python and the default science stack |
OpenAI4S-1.0.3-windows-x86_64.zip |
Windows x86_64 with WSL2; includes the same Linux payload |
openai4s-1.0.3-evidence.zip |
Publishing-workflow evidence: build receipts (with the upgrade read-back), quality receipt, SBOM and provenance |
| OpenAI4S-1.0.3-macos-arm64-validation.json | Supplemental local macOS build and validation record |
| OpenAI4S-1.0.3-windows-x86_64-validation.json | Windows/WSL2 host acceptance record for this ZIP, verified before PyPI was approved |
| SHA256SUMS | SHA-256 digests of the package, evidence and validation files |
Python packages are on PyPI and the container image on GHCR. Verify downloads with sha256sum --ignore-missing -c SHA256SUMS on Linux, or shasum -a 256 --ignore-missing -c SHA256SUMS on macOS. openai4s verify-package openai4s-1.0.3-evidence.zip checks the evidence archive's internal integrity.
- macOS Apple Silicon: download the DMG and its
.sha256file into one folder, runshasum -a 256 -c OpenAI4S-1.0.3-macos-arm64.dmg.sha256(it must printOK), open the DMG and drag OpenAI4S.app into Applications. The image is ad-hoc signed, with no Developer ID signature and no Apple notarization: if macOS blocks the first launch, use System Settings → Privacy & Security → Open Anyway. Intel Macs install from PyPI. - Linux: unpack the tarball and run
./OpenAI4S, or./install.shfor a per-user PATH entry and menu item. Install bubblewrap for sandboxed cells. - Windows: install WSL2 with Ubuntu 24.04 (
wsl --install -d Ubuntu-24.04), extract the complete ZIP to a local folder and double-clickOpenAI4S.cmd. - Python:
python -m pip install --upgrade "openai4s[science]==1.0.3", thenopenai4s serve. Python 3.11+ is required; pip on Python 3.10 does not install 1.0.3, so a 3.10 install needs a new virtual environment made with 3.11 or newer. The core remains standard-library-only, and thescienceextra installs the same packages as in 1.0.2: numpy, pandas, matplotlib, scikit-learn, openpyxl, statsmodels and seaborn. - Containers:
docker pull --platform linux/amd64 ghcr.io/pku-yuangroup/openai4s:1.0.3. - R: the R kernel is not bundled. The first-run wizard and Settings → Compute build the managed Python and R environments with one click; with no micromamba, mamba or conda on
PATH, the build downloads micromamba and runs it only after its SHA-256 matches the pinned value.openai4s setup --profile standardoropenai4s setup --only rdoes the same from a terminal.
Configure a model under Settings → Models after the first start. No model key is included.
Fixed
Agent loop and models
- Kernel deaths. The cell card says which Cell's kernel died, how and what comes next, and
openai4s runreports a run that kernel deaths ended as failed instead of crashing #317. - Too deep to read. A Cell or tool-call arguments nested too deep for the interpreter are that call's error and the turn goes on; a provider reply that deep is a provider error, and a completion whose entry point is too deep to compile is refused like a syntax error. Each used to end the turn with "internal error" #317.
- No response at all. A model request that gets no byte of a response within
OPENAI4S_LLM_TIMEOUTis sent once more, where it used to end the turn, and the status row says it is retrying #318. - Text-only models after a switch. A session holding an image failed every turn after a switch to a text-only model. The image is now left out with a note, and kept for the next model that can see it #291.
- Sub-agents. A child given
output_schemais told the fields to return, and a result missing one is sent back once instead of failing the child #318. A sub-agent's background jobs stop when it ends, and its files are its own artifacts, bound to the Cells that wrote them #317. - Orphaned workers. A Python worker whose daemon has died stops itself and the shell commands it started #317.
- Completions whose inline
main_tablehas a row that does not fit its columns are refused #317.
Web tools
- URLs. A space, a character outside ASCII or one of
"<>\^`{|}in a path or query is sent escaped, and an international host name is requested under its ASCII form. Withoutrequests, 1.0.2 failed on most of these before sending anything #317. - Cut-short bodies. A response that ends before its declared length is an error (
ResponseCutShort). Withoutrequests, 1.0.2 returned half a file as the whole, andweb_downloadput it in place of the file that was there #317. - Redirects under
askto a host outside the lists raise the approval card for that host, or are refused when nobody can answer; they were followed #317.
Review and literature
- The automatic review sees every Cell of the session with its duration, reads Cells and files through read-only tools, tells "the answer is wrong" from "could not verify", skips a turn that ran nothing and links each finding to its step #317.
- Sources. Crossref, Europe PMC, bioRxiv / medRxiv and GEO join
science_search. A source that fails no longer reads as empty, a cut full text says where it was cut, a retraction notice is not read as the work it retracts, and PubMed takesyear_fromandyear_to#317.
Notebook, artifacts and sessions
- Exact links. Completion links pin the version the turn produced when its snapshot was saved, and say so when it was not; an exact-version read never serves the live file #282.
- Read lineage. A Notebook read links only to the version whose bytes it read; other reads show as observed but unlinked #282.
- Import and view targets the session and project open at the click; leaving stops it, and on Home it refuses instead of creating a stray session #282.
- Files and figures. The execution log lists the files each Cell wrote, a sub-agent's included, and file counts cover every file. Captured figures are named by title, so a re-run joins them, drafts are numbered, and a PNG gets a PDF twin #305, #317.
- Memory. Search ranks memories by the words they match. A forgotten memory is not saved back, proposed again, or restored by a revert or a re-import #317.
- Interrupted sessions. A session a killed daemon left processing reads as interrupted after the restart, and the review, question or recovery it left open is settled. Deleting a session deletes what its sub-agents recorded and its usage records #317.
Skills
- One odd file costs one Skill. A
SKILL.mdorkernel.pythat is a FIFO, a directory or not UTF-8 used to stop every Skill listing, the Skill block of every prompt or every kernel's helpers; akernel.pythat did not compile stopped every session's Python kernel from starting. The Skill is now listed or reported as broken, with the reason #317. - Saves and deletes. A save that cannot read part of a Skill is refused and leaves it whole; it used to answer success without the files it could not list. A delete removes the whole directory or nothing #317.
Linux, remote compute, MCP and lab
- Team-mode kernels on Linux were all refused: bubblewrap was asked to mask the database after the data directory turned read-only, so the sandbox self-test failed with
Read-only file system. No Cell ran outside the sandbox. 0.2.0 to 1.0.2 build the command in the same order (read from the code) #322. - bubblewrap starts. A worker killed by a signal reports that signal, and a failed worker handshake says what came back #317.
- BYOC confinement on Linux. The self-test probed with
/bin/shand could report an active boundary where the helper's interpreter could not start inside it. The probe now runs the interpreter, soautodegrades visibly andenforcerefuses before any spawn #284. - Slow MCP connectors. A connector's
initializereply gets a startup allowance (600 s when no timeout is set;OPENAI4S_MCP_STARTUP_Sor a connector'sstartup_timeout), so a simulator endpoint that takes over a minute no longer fails its handshake #303. - Lab cameras. A device whose capture returns an image gets an artifact store, so the capture completes with a reference #288.
Added since 1.0.2
- StepFun's Step Plan as the
stepfunprovider, defaulting to the subscription channel andstep-5-preview, in first-run setup, Settings → Models andopenai4s init. These models, and Volcengine Ark's, are offeredrun_cellfrom the first call #291, #305. - The lab on real simulators.
openai4s lab add <id> --backend simserves a market device on its recorded simulator, in a container without network #283. OpenMHS is pinned at 9da319f, with 215 simulations that have a real-simulator record in a market of 799 devices (25 pin updates, #285 to #315). - Command line #305:
openai4s open,logs,service install|uninstall|status|print(a LaunchAgent or systemd user unit that restarts the daemon after a crash) andupdate --check|--apply|--to; a global--data-dir;serve --base-path; an always-on event log;./setup.shlinksopenai4sinto~/.local/bin. - Environments. One-click managed builds #305, and an optional deep-learning environment with CPU PyTorch, xgboost, lightgbm, pysam and PyMuPDF (
openai4s setup --profile deep-learning) #317. - Composer and plans #305: steering a running turn, "Wrap up now", side questions, per-session reasoning effort and sub-agent model, a fallback model profile, a native
ask_userquestion card, plans with scope, risks and parallel groups. - Sessions #305, #317: pinned sessions, a notification in a hidden tab, "N new" with a jump back, a read-only page for each sub-agent, and per-session switches for memory, specialists and compute.
- Settings #305: Network, Storage, Credentials, Usage (by model and purpose, optional prices) and Licensing pages; S3-compatible artifact export; a Modal compute provider; NVIDIA NIM keys; publisher text-mining keys and a library proxy prefix; a kernel resource monitor.
- Viewers #317: a genome browser for VCF, BED and GFF; Word documents as read-only HTML; audio; every structure in SMILES and SD files; a PDF's first page on its card; line numbers; GFM task lists and footnotes; TeX in messages.
- Tools:
verify_doisas a native tool,host.exec_waitto wait for a background job without holding the kernel, andfieldsto pick values from a JSON answer ofweb_fetch#317;host.web_fetch_many#305. - Skills and onboarding #305: import from a public GitHub repository, a bundled Skill for authoring Skills, "Save as a skill", and example sessions from five more fields.
- API: every new route and field is listed in the upgrade guide, among them Notebook Cell receipts, memory review, session continuation, network grants with revoke routes, and byte ranges,
HEADandETagon artifact bytes. - A 16-task real-model evaluation in
harness/live_eval/, run by hand before a release #318.
Changed behaviour
-
Python 3.11 is the floor. 1.0.2 also ran on 3.10, which reached end of life in October 2026. The app packages and the container image bring their own Python #319.
-
New defaults #305, each with a way back:
Change Switch back with Egress mode ask(wasoff)Settings → Network, or OPENAI4S_EGRESS=offAutomatic review on session menu → Review, or OPENAI4S_AUTO_REVIEW_DEFAULT=offMemory and automatic capture on Settings → Memory, or OPENAI4S_MEMORY_AUTO_CAPTURE=0PubMed, ClinVar and ClinicalTrials.gov offered OPENAI4S_STAGE10_SCIENTIFIC_CONNECTORS=0openai4s setupbuilds managed generationsopenai4s setup --in-placeAutomatic review and capture can each add a model call to a completed turn. Where a managed
pythongeneration is applied, it is the default kernel on the Web and inopenai4s run;OPENAI4S_DEFAULT_ENVstill wins. -
Network rules #317, #318. A rule for
request_network_accessis stored as the host a client dials (lower case, no port, ASCII). A rule that would match no request is refused with 400network_rule_refused.request_network_accesswith a wildcard is refused before any card, andweb_fetchandweb_downloadrefuse a*in a URL's host. An approval of a name with no dot, or of a shared suffix such asgithub.io, opens that name alone. -
Ollama web tools. Where configured,
web_fetchfetches a page itself underaskorallowlist, or where a deny applies, so every redirect is checked #318. -
Proxy and certificate variables #317.
ALL_PROXYis honoured, and a SOCKS proxy fails with a sentence naming the variable.REQUESTS_CA_BUNDLEandCURL_CA_BUNDLEset the trust store for all Host HTTPS, the model client included, and an unreadable certificate path is an error. A checked request no longer readsrequests'certifibundle, netrc credentials or theNO_PROXYentries onlyrequestsmatched. Check these variables before upgrading a machine behind a proxy. -
Exports and licences #318. A session package leaves out the text of other projects' memories unless asked for (
?memories=all). A licence confirmation names the Skill'sSKILL.md, so under a commercial use intent each restricted Skill must be confirmed again once. -
Skill directories. A directory whose name starts with a dot is not a Skill #317. The daemon's start removes
.<name>.backup-<id>and.<name>.delete-<id>copies over a day old #318. -
The data directory keeps an empty
openai4s.db-journal#321, and a successful upgrade keepsopenai4s.db.pre-upgrade.bak#318. -
BYOC providers no longer see daemon variables outside the helper's allowlist; a secret goes in
provider.jsonsecret_env#282. -
openai4s urlprints a single-use sign-in link that works for three minutes #305. -
API. An exact-version read answers 404
artifact_version_unavailableor 503artifact_read_staging_failedinstead of serving the live file, andGET /frames?running=answers 400invalid_runningfor an unknown value #282. Whole-session routes answer a sub-agent's frame with 404not_a_session_root(was 500), a question your Stop ended iscancelledwithreason: "turn_stopped", andverify_doistakesreferences#317.PUT /licensingrequiresdigest#318. -
Dependencies #289, #320: the workbench is built with TypeScript 7, Preact 11 and Vite 8; RDKit 2026.9.2, PyYAML 6.0.4 and filelock 4.3.0 are locked. statsmodels stays at 0.14.6, because 0.15.0 breaks the single-cell stack.
Security
Each problem below is fixed in 1.0.3. The affected releases are those the pull requests and the upgrade guide state; the fetch-path problems were reproduced on 1.0.2 against stand-in servers on loopback, and where a range was read from the release tags instead, the item says so.
- The address check and the client read different things. The check that keeps
web_fetchand the daemon's other requests away from loopback, private and metadata addresses looked a name up, and the client looked it up again.web_fetchcould therefore return a page from a metadata address (every release from 0.1.0 to 1.0.2); from 0.2.0, the endpoint probe reported such a name ready and the HTTP MCP connector sent its first request there with its configured headers. Some URL spellings were checked as one host and sent to another (escapes, a user name, an all-numeric host, a backslash whererequestswas installed). A checked request now goes through the standard library to the addresses the check returned, and a URL the rules and the client read differently is refused before any card #317, #316. - Redirects. Wherever the standard library carried a request, a redirect to
file:returned a file of the daemon's machine as the page (tried on 0.2.0, 0.3.0 and 1.0.2). Every hop must now behttp://orhttps://, an endpoint probe stays on its origin, andopenai4s share importchecks every redirect, where it used to check only the typed link, and refuses ports above 65535 #317. - Addresses. 100.64.0.0/10, which holds carrier-grade NAT, one cloud's metadata service and mesh-VPN peers, passed the web tools' check in every release from 0.1.0 to 1.0.2; it is refused now, as is
fec0::/10. An IPv4-mapped IPv6 address passed the egress allowlist to the IPv4 host inside it (0.1.0 to 1.0.2); an IPv6 address is now one host in every spelling #317. - Fetch permission rules were matched against the URL as typed, so a deny for
web_fetchorweb_downloadmissed the same host written with a port, in capitals or with escapes (every release through 1.0.2). A rule is now asked about the host the request goes to, a deny about every redirect too, and no deny or ask matches less than before #317. - Network approvals opened a host to every session until the daemon stopped, a saved deny did not close an approved host, and an approval of a shared suffix opened every site under it. An approval now reaches only the session that asked and its sub-agents, and a deny closes the host #317, #318.
- A Linux Cell could read the database journal. bubblewrap masks the database's companion files only if they exist when a Cell's command is built, and SQLite's default rollback journal exists only during a write. A Cell started between writes could read it while the daemon wrote, and it can hold earlier contents of rows with plaintext credentials (under
OPENAI4S_SECRET_STORE=plaintext) and managed endpoint credentials. Every release from 0.1.0 to 1.0.2 masks the same way (read in the tags, not reproduced in a real Cell); macOS and team-mode Cells were not affected. The Store now keeps an empty journal, so the command masks it #321. openai4s urlprinted the access token, the daemon's long-lived credential; it now prints a single-use link #305.- The BYOC helper starts from an exact environment allowlist with every deny rule on top; Docker content-trust passphrases,
PYTHONPATH,LD_*,DYLD_*and other daemon variables are dropped #282. - Workspace links. The daemon runs outside the kernel sandbox. Saving a plan, restoring or forking a checkpoint, deleting an Artifact and writing a team-mode upload no longer follow a link a Cell left in the workspace #317.
- Code scanning. The permission rules' package-install pattern took polynomial time on crafted input, and is now read word by word #317.
- Licensed Skills. Under a commercial use intent the kernel imported the helper code of a Skill refused for its licence; it now refuses it at every start, restart, respawn and recovery, and fails closed #318.
Upgrading from 1.0.2
- Back up first. Stop the daemon (
openai4s stop, then checkopenai4s status) and copy the whole data directory while nothing is running, including anyopenai4s.db-waloropenai4s.db-journalfile, for examplecp -a ~/.openai4s ~/.openai4s-before-1.0.3. The container image keeps its data in the/datavolume. Copy out anything you want from a.<name>.backup-<id>Skill directory: the first start removes those over a day old. - Use Python 3.11 or newer for a PyPI or source install. On 3.10, make a new virtual environment; in a source checkout, run
git submodule update --init third_party/OpenMHSafter checking outv1.0.3, then./setup.shagain. - The first database-opening command migrates schema 45 → 52. Migrations 46 to 51 add tables, nullable columns and an index, and rewrite or remove no row that 1.0.2 stored; its memories read as
confirmed. Migration 52 rewrites saved network rules into today's stored form, keeping each rule's id, scope, decision and times. A rule it cannot rewrite without changing what it does is kept as it was, and rows that would hold one text become one rule with the strictest decision. The settingnetwork_rules_v52lists what happened to each row. - A copy of the old database is kept as
openai4s.db.pre-upgrade.bak. It holds everything the database held, credentials included; delete it once you no longer need it. It does not replace your own copy. - Downgrade is unsupported. 1.0.2 refuses a schema 52 database with
future_schemabefore it writes anything. Restore your copy and install 1.0.2 again before anything opens it.
The release workflow's upgrade read-back now starts from the published 1.0.2 Linux bundle #282. The upgrade guide, with every route and field an API client sees change, is in English and 中文.
Known limitations
- Validation scope: source CI and the full tagged publishing workflow passed at
0a93d8a2017bc0d850cf9608d0725068dad6fd1a. The publishing run passed 8 quality gates and attested 14 source checks recorded against that commit, among them the offline suites on Python 3.11 to 3.14, the workbench in Chromium, Firefox and WebKit, and the full Linux bubblewrap filesystem and egress boundary. Serial pytest passed 21,749 tests (132 skipped, 8 deselected, 4 expected failures); response-schema recapture also passed 21,749 tests, all 307 route contracts matched, and all 38 harness scenarios passed. The Linux bundle passed all 10 installed-runtime checks, including the real browser and restart read-back, and all 14 upgrade read-back checks against the published 1.0.2 bundle (schema 45 → 52). Distribution metadata and packaged resources, the Windows archive and launcher checks and evidence sealing passed. The job that made the release public passed on its first attempt. Every public download matchesSHA256SUMS(checked from an anonymous download), and the wheel and sdist on PyPI match the sealed build receipts. A separate clean installation from PyPI reported 1.0.3, carried all 614 Skills, started, created a schema-52 database and stopped cleanly. The macOS DMG (SHA-25627d92ae49833478f12089f8376c3dabd10eac2278f9c4d9400a2ecded9c807ed) has its own record: the same 10 installed-runtime checks from a copy under a path containing spaces, the Seatbelt boundary inenforcemode (workspace writes allowed, writes elsewhere and raw network blocked, no daemon secret in a Cell or its subprocess), and a signature check before and after the run. Under its embedded interpreter the offline suite passed 21,844 tests and failed 21: 19 start a child interpreter that this run could not give the source or pytest, and passed in a writable copy of the same app; one is the known free-disk-space flake in the doctor report and passed when re-run; one needspertpy, which is not bundled. The GHCR publishing workflow built the image, passed its container smoke checks and pushed only then;1.0.3andlatestboth resolve tosha256:19019faf014aad356783523d65c210825de8310ee4744f269ee5b736d4f3f008(linux/amd64), read anonymously from the registry after publication. - Windows/WSL2: before PyPI was approved, the staged ZIP (SHA-256
f226a98a5c018dcfa5b44450b8e57ef5b7f03d62041756b1a9d27c58d9a648f4) passed the host checklist on Windows Server 2025 Datacenter (build 26100) with WSL 3.0.5 and Ubuntu 24.04.5: start through the shippedOpenAI4S.cmd, the authenticated workbench in Windows Chromium, two Python Cells with a figure and two CSV versions, the installed-runtime checks inside WSL including restart read-back, a relaunch that read the first CSV version back byte for byte, status and stop, and bubblewrap isolation enforced with its self-test passing. R is not bundled and was not exercised, and the run used no model credential. Its record isOpenAI4S-1.0.3-windows-x86_64-validation.json. Windows on ARM and the wider Windows 10/11 host matrix were not exercised, and the launcher is unsigned. https://proxies. Through a proxy whose URL begins withhttps://, a checked request to anhttps://URL starts with aCONNECTin the clear, carrying the user name and password from the proxy's URL where it holds both. 1.0.2 withrequestsspoke TLS to such a proxy forweb_fetchandweb_download, and where onlyALL_PROXYnames it the clearCONNECTis new on every install. This is not fixed in 1.0.3 #317, #316.- Proxies and the address check. Through a proxy the check is made on this machine's resolver answers and the proxy resolves the name itself, as in every release; where the daemon must not reach private addresses through a proxy, the proxy has to refuse them.
- Unmasked journal. The journal is still readable from a Linux Cell after a writer in SQLite's default mode deleted it (an external tool, OpenAI4S 0.1.0 or 0.2.0) and before this build next opens the database, and for a kernel started before any process of this build opened the data directory, as the Jupyter bridge can right after an upgrade #321.
- The kernel egress proxy is not offered in team mode or under WSL, where a sandboxed Cell has no network, and is not chained to a saved corporate proxy #305.
- The licence gate does not cover a background kernel (
host.exec_background) or a kernel the Jupyter bridge starts #318. - A request sent again after no response may be billed twice by the provider; the first send is recorded with unknown usage #318.
- The legacy UI (
OPENAI4S_WEBUI=legacy) has no question card, soask_userwaits out its timeout there #305. - The upgrade test covers one path: data written by 1.0.2, on the Linux x86_64 bundle. The PyPI wheel, the container image, the Windows package, the macOS app and data written by older releases are not covered by it.
- macOS: the DMG is ad-hoc signed and Apple Silicon only. As for 1.0.2, it was built locally and attached after the publishing workflow, so the evidence archive does not describe it; its validation record does. It was built at the release PR's merge commit, one commit before the tag; the tag adds only test and workflow changes #326, and every file the app takes from the repository is identical at the tag.
- The lab is simulation only, and the Python and desktop packages do not bundle OpenMHS; run
openai4s lab setup.--backend simneeds Docker or Podman and an environment built per device, and a captured image's bytes cannot be read over the stdio pipe #283, #288. - Deprecated bare
@namereferences are still removed in 1.1.0; use the pinned@name#v-<version_id>form. - Containers: unprivileged containers may lack working bubblewrap namespaces. In that state, allowlist mode refuses new cells.
Contributors
Thank you to everyone who contributed since v1.0.2:
- @Nobody-Zhang — the improvement report items, the hands-on and harness reviews and their fixes, the fetch-path and sandbox security fixes, the StepFun provider, the lab's simulator backend, the Python 3.11 floor and release engineering.
Full changelog
中文摘要
- 定位: 本版收尾三轮评审,并修复守护进程自身联网请求中的一组安全问题。1.0.2 之后的改进报告 P0-1 至 P2-1 先落地(#282);对工作台、命令行和 agent 运行时的实地评审记录的 136 个缺口全部关闭(#305);对 agent 框架的评审又记录了 105 个(103 个完成、2 个部分完成),随后是十轮自查(#317)和十六项负责人决定(#318)。最初为 1.0.x 分支准备的联网安全修复(#316)经 #317 进入本版,另有两项 Linux 沙箱修复(#321、#322)。新增阶跃星辰 Step Plan(#291)和实验室真实仿真器(#283),Python 最低版本升到 3.11(#319)。
- 数据库从 schema 45 升级到 52,需要 Python 3.11 或更新版本: 第 46 到 51 步只新增表、可为空的列和索引,不改写或删除 1.0.2 存下的任何行;第 52 步把已保存的联网规则改写成今天的存法(保留 id、范围、判定和时间,处理结果记在设置项
network_rules_v52)。升级前请先停止 daemon 并复制整个数据目录(cp -a ~/.openai4s ~/.openai4s-before-1.0.3)。升级成功后会保留openai4s.db.pre-upgrade.bak,其中有升级前的全部内容(包括凭据),不需要时请删除。不支持降级:1.0.2 会以future_schema拒绝 schema 52,回退请恢复备份。Python 3.10 上的 pip 不会安装 1.0.3,需要用 3.11 或更新版本新建虚拟环境;各平台安装包和容器镜像自带 Python,不受影响。 - 联网请求发往检查过的地址(#317、#316):
web_fetch、web_download、web_probe、端点就绪探测、HTTP MCP 连接器和openai4s share import以前按一种读法检查网址、按另一种读法发送,web_fetch的许可规则也按键入的原文匹配,0.1.0 到 1.0.2 各有受影响的范围。现在经检查的请求只连接检查过的主机和地址,规则按请求实际要去的主机来问,重定向只跟到http://或https://,100.64.0.0/10 与fec0::/10被拒绝。 - 联网许可只给提出申请的会话(#317、#318): 以前批准一次
request_network_access会对所有会话开放该主机,直到 daemon 停止。现在"设置 → 网络"列出每项生效的许可并可撤销,已保存的拒绝规则会关闭已批准的主机。 - 单元联网经同一道检查,默认模式为
ask(#305、#317): 在强制沙箱下(单用户的 Seatbelt,或 WSL 之外的 bubblewrap),单元的 HTTP(S) 经回环上的出口代理、按与 web 工具相同的名单放行;在ask模式下,访问名单外主机的请求等待审批卡片。以前默认是off。 - 记忆先审后用、回答先经检查(#305、#317、#318): 记忆和自动提取默认开启,提取出的内容要有人保留才生效;每轮完成后自动评审,默认由另一个可用的已保存模型担任评审;
verify_dois一次核对全部 DOI(Crossref 与 DataCite,含撤稿),引用了未核对或未注册 DOI 的回答会被退回一次。 - 其他: 首页为等待回答、失败、被停止或在你离开期间完成的会话保留卡片(#317);Notebook 手动单元带提交回执,应答丢失时查询结果而不是重跑(#282);内核崩溃只让这个单元失败,回合继续(#317);新增
openai4s open、logs、service、update,openai4s url改为一次性、三分钟有效的登录链接,可一键构建受管的 Python 与 R 环境(#305);Linux 团队模式内核恢复可用(#322);数据库日志文件对 Linux 单元保持屏蔽(#321);新增基因组浏览器、Word、音频和分子结构预览(#317)。 - 行为变化: 出口模式默认
ask,自动评审和记忆默认开启,默认提供 PubMed、ClinVar、ClinicalTrials.gov,openai4s setup默认构建受管环境(均可关闭,或用--in-place);不会匹配任何请求的联网规则以400 network_rule_refused拒绝;会话包默认不含其他项目的记忆正文;商用意图下受限 Skill 需重新确认一次。https://代理的CONNECT以明文发送的问题在 1.0.3 中尚未修复。 - 下载: macOS(Apple Silicon,ad-hoc 签名,未经 Apple 公证,首次启动需在"系统设置 → 隐私与安全性"中选择"仍要打开")、Linux x86_64、Windows x86_64(需 WSL2)安装包见上表;Python 包在 PyPI(
pip install --upgrade "openai4s[science]==1.0.3",需要 Python 3.11+),容器镜像在 GHCR(ghcr.io/pku-yuangroup/openai4s:1.0.3)。首次启动后在"设置 → 模型"中配置服务商,安装包不含任何模型 Key。