onescience-runtime

Solid

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

AI & Automation 20 stars 1 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
44
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 不再自行执行环境检测。preflight 阶段改为**完整委托** `onescience-installer` 执行环境就绪预检: 1. 组装 preflight 上下文:`execution_channel`、`runtime.conda`、入口脚本路径、业务依赖列表等 2. 以 `installer_reason=preflight_validation` 委托 `skills/onescience-installer/SKILL.md` 执行完整的环境就绪检查 3. installer 返回 `preflight_result`: - `status=passed`:设置 `preflight_passed=true`、`execution_readiness=ready`,进入 execute - `status=partial`:记录警告和建议,若可继续执行则进入 execute - `status=failed`:installer 已进入修复流程;修复成功后重新读取 `onescience.json`,从 preflight 重新开始 - `status=blocked`:记录阻断原因,停止并向 orchestrator 报告 **职责说明**:环境就绪检测(conda 校验、Python 解释器、onescience/t...

Details

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

Similar Skills

Semantically similar based on skill content — not just same category