onescience-runtime

Solid

【统一运行与基础诊断技能】按 discover、preflight、execute、diagnose 固定闭环执行测试任务,依据 onescience.json 的 execution_profile 三元组路由执行通道;SCnet 提交任务时必须读取根级 onescience.json.scnet 并把 region、partition/queue、work_dir 和资源参数交给 scnet-chat;配置问题自动委托 onescience-runsite 补齐后回到 runtime 继续原测试任务,环境问题自动委托 onescience-installer 安装或修复并 verify 成功后回到 runtime 继续原测试任务;当 execution_mode 为 slurm 且提交或运行反馈表明 partition、gpus_per_node、memory 等资源不可用时,探测可用 SLURM 资源并受控调整后重试。

AI & Automation 14 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
39
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# OneScience Runtime ## 执行流程 每次任务固定按 `discover -> preflight -> execute -> diagnose` 顺序处理。`execute` 是硬门禁阶段:只有 `preflight` 明确产出 `preflight_passed=true`、`execution_readiness=ready` 且 `evidence.preflight.status=passed` 后,才能读取和执行任何 execute 分支。缺少这些证据时,必须回到 `preflight`,不得直接提交本地、SSH、SLURM 或 SCnet 任务。 ### 1. discover 先读取项目根目录 `onescience.json`,并立即调用 `skills/onescience-runsite/SKILL.md` 对当前运行站点配置做校验、复用或补齐;不要直接信任已有 `onescience.json`。只有 `onescience-runsite` 完成已有配置检查、远程连接验证或缺失字段补齐并写回后,runtime 才重新读取 `onescience.json`,再优先消费: - `runtime.execution_profile.run_site` - `runtime.execution_profile.execution_mode` - `runtime.execution_profile.access_mode` `execution_channel` 由这三个字段派生;当前约定是 `run_site=local` 时 `access_mode` 允许为空,`execution_mode` 为空/`none` 视为非调度直接执行。若配置中已有 `execution_channel`,只作为对照证据,不作为唯一 routing 来源。 需要进入 discover 细节时,读取: - `./references/discover.md` ### 2. preflight discover 得到通道后,继续读取 `runtime.conda`: - `runtime.conda.enabled` - `runtime.conda.env_name`(仅 `enabled=true` 时需要) - `runtime.conda.activate_script`(仅 `enabled=true` 时需要) `runtime.conda` 缺失不是可默认跳过 conda 的信号。缺少该结构、`enabled` 缺失、`enabled=true` 但缺少 `env_name`,或无法通过当前执行通道确认环境 ready 时,必须设置 `next_action=onescience-installer` 并立即调用 `skills/onescience-installer/SKILL.md` 做发现、安装或修复;installer verify 成功后重新读取 `onescience.json` 与 `runtime.conda`,再从 `preflight` 重新检查。 并按需读取: - `runtime.scnet.*`(当 `execution_channel=scnet_mcp` 或后续需要委托 `scnet-chat` 提交任务时,这是 SCnet region/partition/work_dir/资源参数的唯一主来源) - `runtime.modules.*` - `r...

Details

Author
onescience-ai
Repository
onescience-ai/OneSkills
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category