onescience-runtime — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited onescience-runtime (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
onescience-runtime 是统一运行入口。建议把它视为一个公开 skill、四个内部阶段:
discoverpreflightexecutediagnose在运行任务里:
execution_modeonescience-installer需要进一步判断字段归属或层间交接时,读取 ./references/runtime_contract.md。 需要把语义环境线索通过实际通道确认成环境事实时,读取 ./references/runtime_probe_contract.md。 需要查看 SSH/SLURM 只读探测信号采集模板时,读取 ./assets/probe_templates/ssh_slurm_probe.sh。 需要查看 SCnet DAS / torch 轻量环境探针模板时,读取 ./assets/probe_templates/scnet_das_torch_probe.sh。 需要明确 discover/preflight/execute/diagnose 四阶段分别该交接什么时,读取 ./references/runtime_phase_handoffs.md。 需要确认 runtime_profile_ref/install_profile_ref 的规范命名与绑定关系时,读取 ./assets/execution_profiles.json。 需要查看 phase 级结构化示例时,读取 ./assets/phase_examples/。 需要快速判断当前请求该阻断、确认还是继续时,读取 ./references/runtime_decision_matrix.md。 需要走 SCnet MCP 通道时,读取 ./references/scnet_channel.md。 需要处理 OneScience 生信模型推理交接时,读取 ./assets/bio_inference_templates/bio_inference_handoff.yaml。 需要确认 per-model request、推理 manifest 与校验工具归属时,读取 {onescience_path}/onescience/examples/biosciences/_manifests/ 下的 contract.json、inference_run_manifest.yaml、model_requests/ 与 tools/;per-model request 示例已归属 OneScience 官方仓库,runtime 不再在 skills/onescience-runtime/assets/ 保留本地副本。 需要处理“远程环境未配置”或“远程信息不完整”的异常场景时,读取 ../../references/remote_fallback.md。
runtime 使用以下执行模式:
execution_mode=localexecution_mode=local_slurmexecution_mode=remote_slurmexecution_mode=remote_direct补充接入元数据:
access_mode=localaccess_mode=sshaccess_mode=cloud_api路由映射:
execution_channel=local_direct 等价于 local + localexecution_channel=local_slurm 等价于 local_slurm + localexecution_channel=ssh_slurm 等价于 remote_slurm + sshexecution_channel=scnet_mcp 等价于 remote_direct + cloud_apilocal_slurm(登录节点直接提交模式)适用场景:
sbatch、squeue、sacct、module 命令可直接调用,无需 SSH 跳转与 remote_slurm 的区别:
access_mode=localdiscover 阶段直接执行本地命令探测:which sbatch、conda info --envs、module availexecute 阶段直接调用 sbatch,不通过 SSHexecution_channel=local_slurmonescience.json 中的 SSH Host 字段,但仍需 partition/queue 信息自动识别规则:若 which sbatch 成功且无 SSH 上下文,优先识别为 local_slurm。
remote_slurm(当前默认远程模式)适用场景:
onescience.json、tpl.slurm 或现有 SLURM 配置提交remote_direct(SCnet MCP)适用场景:
SCnettask_id、下载日志、MCP 提交local(同环境直接运行模式)适用场景:
执行特点:
execution_channel=local_directdiscover 阶段只确认本地入口脚本、解释器、依赖和路径约束execute 阶段直接生成并执行本地命令远程意图优先于任何“本地最小验证”建议。只要用户明确要求远程执行、远程测试、提交到 SLURM 或提交到 SCnet,就不要在本地执行测试脚本、训练脚本、业务入口脚本,或通过 import 运行依赖来判断远程环境;本地只允许做文件存在性、提交清单、命令模板渲染和不触发业务依赖的静态语法检查。
runtime 现在同时消费:
hardware_profileruntime_profileinstall_profile用户自然语言里的 Host、队列、区域、设备类型、module、conda 环境或远端路径只表示环境线索。runtime 可以把它们整理为候选,但不能在未经确认和探测时直接当作 hardware_profile、submission_target 或最终 backend。
remote_slurmonescience.json 位于项目根目录runtime.execution_profile.execution_mode 应为 remote_slurmruntime.execution_profile.access_mode 应为 sshruntime.backend_id 来自 stable backend registryruntime.execution_profile.runtime_profile_ref/install_profile_ref 来自 execution_profiles.jsontpl.slurm 优先位于项目根目录;缺失时回退到 skill 内置模板remote_directtask_idonescience.json 或 SSH 上下文如果当前环境缺少运行所需依赖,但问题属于“环境未安装/未修复”,应回退到 onescience-installer,不要在 runtime 中临时补装。注意不要把 install_profile_ref 误当成 installer backend 名称;真正的安装骨架仍由 install profile 再绑定到 dcu_remote_install/gpu_remote_install 等 installer backend。
execution_modediscoverssh_slurm 走 SSH / SLURM 探针,scnet_mcp 走 SCnet MCP 区域、队列和任务接口preflightsubmission_blocked=missing_entrypoint,不要继续远程提交onescience-installerexecuteremote_slurm:读取 onescience.json、模板和 backend specs,生成并提交作业remote_direct:上传、提交、查状态、下载日志local:本地直接执行diagnoselocal_preparation;若未执行本地脚本,应显式记录 local_execution=skipped_by_remote_intentonescience-runtime 的职责.onescience/logs/<job_id>/remote_slurm 默认同步 *.out 与 *.errremote_direct 默认下载平台关联的标准输出与错误日志sync_status=failedexecution_state=running_or_unknownonescience.json至少给出:
execution_channelexecution_modeaccess_moderegion/queuesync_statussubmission_blocked 或等价阻断原因如果进入远程运行,建议额外给出:
observations.status_sourceobservations.log_readiness一句话原则:
onescience-runtime 负责“发现环境、预检、执行、基础诊断”的运行闭环;环境安装请回退到 onescience-installer。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.