ai-sdlc-shared-runtime
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseai-sdlc-shared-runtime: Portable Helper Dependency
ai-sdlc-shared-runtime:可移植助手依赖项
Internal AI SDLC dependency, not a client-facing lifecycle skill. Do not select it instead of the navigator or an owning workflow. Every installed capability that imports shared helpers must resolve this sibling package before it executes.
内部AI SDLC依赖项,并非面向客户端的生命周期技能。 请勿选择它来替代导航器或所属工作流。 所有导入共享助手的已安装功能必须在执行前解析此同级包。
0. Skill Card
0. 技能卡片
- Skill name:
ai-sdlc-shared-runtime - Primary audience: agent runners, platform engineers, harness maintainers
- Supporting audience: AI assistants and repository owners diagnosing install failures
- Audience tags: Platform, Maintainer, Dev
- SDLC stage: Installation and cross-lifecycle runtime support
- Purpose: Make the deterministic shared Python runtime portable when Skills CLI installs individual skill directories without the source-only directory.
skills/_shared/ - Output: Read-only runtime verification or an explicit installation blocker
- Skill name:
ai-sdlc-shared-runtime - 主要受众:Agent运行者、平台工程师、Harness维护者
- 辅助受众:AI助手及诊断安装失败的仓库所有者
- 受众标签:Platform、Maintainer、Dev
- SDLC阶段:安装及跨生命周期运行时支持
- 用途:当Skills CLI在不包含仅源码的目录的情况下安装单个技能目录时,确保确定性共享Python运行时的可移植性。
skills/_shared/ - 输出:只读运行时验证结果或明确的安装阻塞信息
0.1 Required Inputs
0.1 必填输入
- The installed skills root, normally for a project-scoped universal installation.
.agents/skills/ - The consumer repository root.
- The downstream skill script that failed or must be verified.
- The installed package revision or trusted source identity when known.
- 已安装技能的根目录,项目范围通用安装通常为。
.agents/skills/ - 消费者仓库根目录。
- 执行失败或需验证的下游技能脚本。
- 已知情况下的已安装包版本或可信源标识。
0.2 Clarification Rules
0.2 澄清规则
- Ask only when the installed skills root or failing downstream script cannot be located safely.
- Distinguish a missing runtime package from a corrupt runtime copy, missing Python, an unsupported package revision, and an application-level failure.
- Never infer that an import failure is permission to download or execute an unreviewed replacement.
- 仅当无法安全定位已安装技能根目录或失败的下游脚本时才询问。
- 区分缺失运行时包、损坏的运行时副本、缺失Python、不支持的包版本以及应用级故障。
- 绝不能推断导入失败意味着可以下载或执行未审核的替代项。
0.2.1 Flow Mode Flags
0.2.1 流程模式标志
- This package has no independent quick/full lifecycle flow.
- Preserve and
--quick-flowflags for the downstream owning skill; this runtime must not reinterpret them.--full-flow - Verification is read-only. Reinstallation or repair requires the same human authority and trusted source used for installation.
- 此包无独立的快速/完整生命周期流程。
- 为下游所属技能保留和
--quick-flow标志;此运行时不得重新解释这些标志。--full-flow - 验证为只读操作。重新安装或修复需要与安装时相同的人工权限和可信源。
0.3 Output Rules
0.3 输出规则
- Report the installed skills root, runtime path, checked downstream script, exact command, exit status, and any missing module.
- Return progress, blockers, and recommendations directly in the Codex response.
- Before the final response, emit the contract with
ai-sdlc-handoff/v1,result,blockers, andnext_required; every action includesnext_optional,reason, andcommand.expected_artifact - Do not create ,
summary.txt, or a runtime status artifact.*-summary.txt - Do not claim an installation is healthy from inventory alone; execute a representative downstream helper.
- 报告已安装技能根目录、运行时路径、已检查的下游脚本、确切命令、退出状态以及任何缺失的模块。
- 在Codex响应中直接返回进度、阻塞项和建议。
- 在最终响应前,发出包含、
result、blockers和next_required的next_optional协议;每个操作都包含ai-sdlc-handoff/v1、reason和command。expected_artifact - 请勿创建、
summary.txt或运行时状态工件。*-summary.txt - 仅通过清单无法判定安装是否正常;需执行一个有代表性的下游助手。
0.4 Artifact Routing
0.4 工件路由
- This skill creates no refinement or implementation artifact.
- Read installed files from the agent-owned skills root and consumer evidence from the current repository.
- Do not write ,
specs-refiniment/,specs/, or an_ai_sdlc/state.toonduring runtime verification._ai_sdlc/specs-index.toon - Route repair to the canonical install/update workflow and lifecycle work to the owning skill.
- 此技能不生成优化或实现工件。
- 从Agent所属的技能根目录读取已安装文件,从当前仓库读取消费者证据。
- 在运行时验证期间,请勿写入、
specs-refiniment/、specs/或_ai_sdlc/state.toon。_ai_sdlc/specs-index.toon - 将修复操作路由至标准安装/更新工作流,将生命周期工作路由至所属技能。
0.5 Feature State Machine
0.5 特性状态机
- This runtime is a utility and never begins or completes a feature stage.
- It may load for another skill, but it must not mutate lifecycle state on its own.
ai_sdlc_state_machine - Use only through the downstream owning workflow.
state.toon
- 此运行时是一个实用工具,从不启动或完成特性阶段。
- 它可为其他技能加载,但不得自行修改生命周期状态。
ai_sdlc_state_machine - 仅通过下游所属工作流使用。
state.toon
0.6 Artifact Metadata And Metatags
0.6 工件元数据与元标签
- Runtime verification is ephemeral and carries no or
artifact_metadata.metatags - The packaged helpers preserve the downstream skill's existing metadata and authority contracts; they do not create a second source of truth.
- 运行时验证是临时的,不携带或
artifact_metadata。metatags - 打包的助手保留下游技能现有的元数据和权限协议;它们不会创建第二个事实来源。
0.7 Specs Index
0.7 规范索引
- The runtime exposes index helpers but does not rebuild or a machine index by itself.
specs-index.md - Index reads and writes remain owned by the selected lifecycle workflow.
- 运行时公开索引助手,但不会自行重建或机器索引。
specs-index.md - 索引的读写仍由选定的生命周期工作流负责。
References
参考资料
- is a deterministic mirror of non-test Python helpers from
scripts/.skills/_shared/ - The source mirror is maintained by
.
python3 skills/_shared/sync_installed_runtime.py - Downstream scripts first use source when present and then fall back to this installed sibling package.
skills/_shared/
- 是
scripts/中非测试Python助手的确定性镜像。skills/_shared/ - 源码镜像由维护。
python3 skills/_shared/sync_installed_runtime.py - 下游脚本优先使用存在的源码,然后回退到此已安装的同级包。
skills/_shared/
Script Usage
脚本用法
-
Verify the generated mirror in a harness source checkout:bash
python3 skills/_shared/sync_installed_runtime.py --check -
Verify an installed downstream helper from a consumer repository:bash
python3 .agents/skills/ai-sdlc-sdd/scripts/sdd_artifact_scaffold.py --help -
A missingdirectory, stale mirror, import traceback, or non-zero helper smoke result is a blocker.
ai-sdlc-shared-runtime/scripts/
-
在Harness源码检出中验证生成的镜像:bash
python3 skills/_shared/sync_installed_runtime.py --check -
从消费者仓库验证已安装的下游助手:bash
python3 .agents/skills/ai-sdlc-sdd/scripts/sdd_artifact_scaffold.py --help -
缺失目录、镜像过期、导入回溯或助手冒烟测试结果非零均为阻塞项。
ai-sdlc-shared-runtime/scripts/
Purpose
用途
Keep installed AI SDLC capabilities executable without assuming that the user
cloned the harness source repository. Skills CLI discovers folders containing
; this package deliberately makes the formerly source-only shared
runtime part of that discovered installation set.
SKILL.md确保已安装的AI SDLC功能可执行,无需假设用户已克隆Harness源码仓库。Skills CLI会发现包含的文件夹;此包特意将原仅源码的共享运行时纳入该可发现的安装集合中。
SKILL.mdInputs
输入
- Resolve the current skill file and its sibling skills root.
- Locate under that root.
ai-sdlc-shared-runtime/scripts/ - Select the smallest downstream helper that exercises the reported dependency.
- Preserve the consumer repository as the helper's working directory.
- 解析当前技能文件及其同级技能根目录。
- 在该根目录下定位。
ai-sdlc-shared-runtime/scripts/ - 选择能测试报告依赖项的最小下游助手。
- 将消费者仓库保留为助手的工作目录。
Steps
步骤
- Confirm the runtime package and the requested downstream skill share one installed skills root.
- Run the downstream helper with before any mutating action.
--help - For SDD installation verification, write and finalize only a disposable fixture specification in a temporary consumer repository.
- Classify failures as missing package, stale mirror, Python incompatibility, invalid consumer root, or downstream contract failure.
- Reinstall from the reviewed pinned source when package bytes are missing or stale; do not patch installed generated files ad hoc.
- Rerun the exact helper smoke command and return the owning workflow handoff.
- 确认运行时包与请求的下游技能共享同一个已安装技能根目录。
- 在执行任何修改操作前,使用运行下游助手。
--help - 对于SDLC安装验证,仅在临时消费者仓库中编写并完成一个可丢弃的 fixture 规范。
- 将故障分类为缺失包、镜像过期、Python不兼容、无效消费者根目录或下游协议故障。
- 当包字节缺失或过期时,从已审核的固定源码重新安装;请勿临时修补已安装的生成文件。
- 重新运行确切的助手冒烟测试命令,并返回所属工作流的交接信息。
Output Spec
输出规范
A passing verification reports:
text
runtime: present
downstream helper: executable
consumer root: preserved
mutation: none, or disposable fixture only
next: owning lifecycle skillQuality gate:
- Pass when the generated runtime mirror matches its canonical source and an installed downstream helper imports and executes successfully.
- Fail when inventory exists but imports fail, the runtime is installed under a different root, generated bytes drift, or verification mutates real delivery artifacts.
验证通过时的报告:
text
runtime: present
downstream helper: executable
consumer root: preserved
mutation: none, or disposable fixture only
next: owning lifecycle skill质量门:
- 当生成的运行时镜像与其标准源码匹配,且已安装的下游助手可成功导入并执行时,验证通过。
- 当清单存在但导入失败、运行时安装在不同根目录下、生成字节偏移或验证修改了实际交付工件时,验证失败。
Examples
示例
Valid diagnosis:
text
The SDD helper cannot import ai_sdlc_artifact_helper because the shared runtime
package is absent. Reinstall the complete pinned package, then rerun --help.Invalid diagnosis:
text
Copy one module from an arbitrary checkout into the installed package and keep
working.Reject the invalid path because it bypasses package provenance and can mix
incompatible runtime bytes.
有效诊断:
text
The SDD helper cannot import ai_sdlc_artifact_helper because the shared runtime
package is absent. Reinstall the complete pinned package, then rerun --help.无效诊断:
text
Copy one module from an arbitrary checkout into the installed package and keep
working.拒绝无效路径,因为它绕过了包来源验证,可能混合不兼容的运行时字节。
Edge Cases
边缘情况
- A source checkout legitimately uses ; this is not drift.
skills/_shared/ - A project may expose host-specific symlinks, but all selected skill folders and the runtime must resolve to compatible bytes.
- Installing only one downstream skill without this dependency is incomplete.
- proves importability, not correctness of a consumer feature; run the downstream workflow's own validation for that claim.
--help
- 源码检出合理使用;这不属于偏移。
skills/_shared/ - 项目可能暴露特定于主机的符号链接,但所有选定的技能文件夹和运行时必须解析为兼容的字节。
- 仅安装一个下游技能而不安装此依赖项是不完整的。
- 仅证明可导入性,而非消费者功能的正确性;需运行下游工作流自身的验证来确认该主张。
--help
Scope Boundary
范围边界
This skill verifies the portable runtime dependency. It does not select product
work, approve network access, change policy, implement features, repair Git,
publish releases, or mutate authoritative lifecycle evidence.
此技能仅验证可移植运行时依赖项。它不选择产品工作、批准网络访问、更改策略、实现功能、修复Git、发布版本或修改权威生命周期证据。