project-tiny-context-harness 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +355 -343
- package/assets/README.md +539 -527
- package/assets/README.zh-CN.md +300 -284
- package/assets/agents/.gitkeep +1 -1
- package/assets/agents/AGENTS_CORE.md +55 -53
- package/assets/context_templates/architecture.md +33 -33
- package/assets/context_templates/area.md +39 -39
- package/assets/context_templates/context.toml +30 -30
- package/assets/context_templates/deployment.md +35 -35
- package/assets/context_templates/global.md +51 -51
- package/assets/context_templates/product-surface-contract.md +64 -57
- package/assets/context_templates/screen-contract.md +180 -0
- package/assets/context_templates/verification.md +32 -32
- package/assets/github/.gitkeep +1 -1
- package/assets/github/harness.yml +41 -41
- package/assets/make/.gitkeep +1 -1
- package/assets/make/ty-context.mk +48 -48
- package/assets/skills/context_development_engineer/SKILL.md +92 -90
- package/assets/skills/context_full_project_export/SKILL.md +70 -70
- package/assets/skills/context_harness_upgrade/SKILL.md +60 -60
- package/assets/skills/context_product_plan/SKILL.md +77 -76
- package/assets/skills/context_surface_contract/SKILL.md +177 -162
- package/assets/skills/context_uiux_design/SKILL.md +108 -91
- package/assets/skills/long-task-workflow/SKILL.md +83 -83
- package/assets/skills/long-task-workflow/agents/openai.yaml +4 -4
- package/assets/skills/long-task-workflow/references/authority-lifecycle.md +57 -55
- package/assets/skills/long-task-workflow/references/contract-authoring.md +95 -91
- package/assets/skills/long-task-workflow/references/evidence-design.md +71 -69
- package/assets/skills/normal-long-task/SKILL.md +12 -12
- package/assets/skills/source-plan-authoring/SKILL.md +293 -290
- package/dist/lib/design-md.d.ts +7 -0
- package/dist/lib/design-md.js +47 -6
- package/dist/lib/doctor.js +19 -4
- package/dist/lib/long-task-authority-material-diff.js +28 -0
- package/dist/lib/long-task-authority-materials.js +14 -0
- package/dist/lib/long-task-authority-policy.d.ts +14 -0
- package/dist/lib/long-task-authority-policy.js +14 -0
- package/dist/lib/long-task-authority-types.d.ts +14 -0
- package/dist/lib/long-task-claim-definitions.js +14 -0
- package/dist/lib/long-task-contract-types.d.ts +14 -0
- package/dist/lib/long-task-product-shape.js +28 -0
- package/dist/lib/long-task-source-target-index.js +14 -0
- package/dist/schemas/long-task-delivery-v2/long-task-delivery-v2.schema.json +1 -1
- package/migrations/README.md +15 -15
- package/package.json +1 -1
- package/source-mappings.yaml +25 -25
|
@@ -1,72 +1,73 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: context_development_engineer
|
|
3
|
-
description: Use when the user explicitly asks for 开发工程师, 软件工程师, 研发工程师, 开发专家, 工程专家, 技术专家, 开发方案, 研发方案, 工程方案, 技术方案, 实现, 实现方案, 实施计划, 多开agent, subagent, software engineer, senior engineer, engineering expert, development plan, engineering plan, or technical implementation plan in a Minimal Context Harness project. Do not trigger for routine coding, bug fixes, small refactors, package/release work, or generic mentions of code, development, or engineering.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Context Development Engineer
|
|
7
|
-
|
|
8
|
-
## Package-Managed Boundary
|
|
9
|
-
|
|
10
|
-
This generated Skill provides portable engineering judgment. Project-specific rules belong in `<harnessRoot>/skills/development_engineer/SKILL.md`; the repo-local Skill is more specific while durable conclusions still belong in `project_context/**`.
|
|
11
|
-
|
|
12
|
-
When an active `/long-task-workflow` binding exists, that Skill owns lifecycle, one-workspace, no-proactive-subagent and Final Gate boundaries. This Skill contributes architecture and implementation judgment only; it must not create a second plan, agent scheduler or acceptance path.
|
|
13
|
-
|
|
14
|
-
## 目标
|
|
15
|
-
|
|
16
|
-
以开发工程师 / 技术专家视角完成实现判断,保护可维护架构,并把真正长期的工程事实压缩进可恢复的 Minimal Context,而不是增加流程文档。
|
|
17
|
-
|
|
18
|
-
## 默认工作方式
|
|
19
|
-
|
|
20
|
-
1. 读取 `project_context/global.md`、`project_context/architecture.md`、`project_context/context.toml`、default area root,并按 triggers/read policy 收集相关 on-demand Context 候选。
|
|
21
|
-
2. 在判断 `Context Delta` 前,用任务中明确的 area/module/API/Schema/state/security/verification/deployment 等少量高信号词,对 `project_context/**` 做一次 bounded text search;把命中的 Context 与 manifest 候选合并,只读取真正相关文件。搜索只补充语义判断,不创建索引、缓存或第二权威。
|
|
22
|
-
3. 确认目标、约束、成功标准、影响域、验证/部署路径和风险。能从代码或 Context 得到的事实不要重复询问。
|
|
23
|
-
4. Context 决定“应该是什么”;代码说明“现在是什么”;测试和运行证据证明行为。冲突是实现漂移、缺失工作或 stale Context,不能由代码静默重定义归属。
|
|
24
|
-
5. 第一处编辑前决定唯一 `Context Delta: none|required`。影响 durable architecture boundary、module ownership、API / Schema / data contract、state / runtime semantics、dependency direction、verification / deployment semantics 或 durable rationale / tradeoff 时为 `required`,先更新 owning Context。不要创建 `plan.md`、Task Contract 文件或 Markdown 映射表。
|
|
25
|
-
6. 用 Agent 内部计划保持 goal、non-goals、owner、boundaries、implementation surfaces、risk 和 verification 清晰。默认流程不要求或验证固定 `plan.md`、matrix、verdict 或 evidence ledger。
|
|
26
|
-
7. 普通 bug fix、局部样式/实现漂移、小重构、package/release、测试修复或探索性 spike 不支付架构仪式成本;它们是 small code task,除非过程中形成了新的长期工程事实。
|
|
27
|
-
8. 实现后运行 project-owned verification,做 `Contract Conformance` 和 Context drift check,只报告 `Context: 已更新 ...` 或 `Context: 本次无长期事实变化`。
|
|
28
|
-
|
|
29
|
-
## 风险触发 Architecture Gate
|
|
30
|
-
|
|
31
|
-
仅在下列任一情况触发;这是内部判断,不是新 artifact、validator 或 delta:
|
|
32
|
-
|
|
33
|
-
- 新长期模块/能力/公共抽象;
|
|
34
|
-
- 公共 API、Schema、data contract、持久化或迁移;
|
|
35
|
-
- source of truth、state ownership、runtime lifecycle 或 recovery 改变;
|
|
36
|
-
- 跨 area/domain 修改或新的 dependency direction;
|
|
37
|
-
- security/permission、兼容性、降级、重试、并发或不可逆边界;
|
|
38
|
-
- 一个变化异常扩散到多个不相关模块,或现有扩展点无法承载。
|
|
39
|
-
|
|
40
|
-
内部保持:
|
|
41
|
-
|
|
42
|
-
- `Architecture Context Hit`:哪个现有 Context 控制本次架构判断;
|
|
43
|
-
- `Decision Rationale Hit: existing|required|none`:是否存在会改变未来选择的稳定原因;
|
|
44
|
-
- owner 和唯一 source of truth;
|
|
45
|
-
- 正确 dependency direction 与禁止 bypass;
|
|
46
|
-
- interface、input/output、state、persistence 和 lifecycle;
|
|
47
|
-
- failure/retry/timeout/degraded/recovery、compatibility/migration;
|
|
48
|
-
- 应复用的 extension point,或新抽象为何确有净收益;
|
|
49
|
-
- 哪个 project-owned lint/AST/dependency/contract test 能证明边界。
|
|
50
|
-
|
|
51
|
-
持久结论进入最小 owning Context;实现细节留在代码。不要把“代码更优雅”当作架构要求,也不要让 Harness 变成跨语言通用 dependency analyzer。
|
|
52
|
-
|
|
53
|
-
## Capability-First Delivery Boundary
|
|
54
|
-
|
|
55
|
-
对外部来源中的产品/架构/实现/验收约束做内部分类:Context 已覆盖、需要更新、task-local、显式 out-of-scope 或需要真实用户决策。对 delivery / acceptance scope 使用 capability-first delivery boundary,区分:
|
|
56
|
-
|
|
57
|
-
- `system_capability_build`:形成可复用系统能力;
|
|
58
|
-
- `representative_sample_validation`:仅验证代表性样本;
|
|
59
|
-
- `full_population_operation`:权威范围内全量对象完成;
|
|
60
|
-
- `full_population_not_required`:AC 明确不要求全量。
|
|
61
|
-
|
|
62
|
-
sample provider / interface / page 证据不能替代 all-provider / all-interface / all-platform 或全量完成。来源要求全量而当前只能交付框架/样本时标记 `scope_conflict_requires_decision`;权威范围未收窄前不得声称完成。
|
|
63
|
-
|
|
1
|
+
---
|
|
2
|
+
name: context_development_engineer
|
|
3
|
+
description: Use when the user explicitly asks for 开发工程师, 软件工程师, 研发工程师, 开发专家, 工程专家, 技术专家, 开发方案, 研发方案, 工程方案, 技术方案, 实现, 实现方案, 实施计划, 多开agent, subagent, software engineer, senior engineer, engineering expert, development plan, engineering plan, or technical implementation plan in a Minimal Context Harness project. Do not trigger for routine coding, bug fixes, small refactors, package/release work, or generic mentions of code, development, or engineering.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Context Development Engineer
|
|
7
|
+
|
|
8
|
+
## Package-Managed Boundary
|
|
9
|
+
|
|
10
|
+
This generated Skill provides portable engineering judgment. Project-specific rules belong in `<harnessRoot>/skills/development_engineer/SKILL.md`; the repo-local Skill is more specific while durable conclusions still belong in `project_context/**`.
|
|
11
|
+
|
|
12
|
+
When an active `/long-task-workflow` binding exists, that Skill owns lifecycle, one-workspace, no-proactive-subagent and Final Gate boundaries. This Skill contributes architecture and implementation judgment only; it must not create a second plan, agent scheduler or acceptance path.
|
|
13
|
+
|
|
14
|
+
## 目标
|
|
15
|
+
|
|
16
|
+
以开发工程师 / 技术专家视角完成实现判断,保护可维护架构,并把真正长期的工程事实压缩进可恢复的 Minimal Context,而不是增加流程文档。
|
|
17
|
+
|
|
18
|
+
## 默认工作方式
|
|
19
|
+
|
|
20
|
+
1. 读取 `project_context/global.md`、`project_context/architecture.md`、`project_context/context.toml`、default area root,并按 triggers/read policy 收集相关 on-demand Context 候选。
|
|
21
|
+
2. 在判断 `Context Delta` 前,用任务中明确的 area/module/API/Schema/state/security/verification/deployment 等少量高信号词,对 `project_context/**` 做一次 bounded text search;把命中的 Context 与 manifest 候选合并,只读取真正相关文件。搜索只补充语义判断,不创建索引、缓存或第二权威。
|
|
22
|
+
3. 确认目标、约束、成功标准、影响域、验证/部署路径和风险。能从代码或 Context 得到的事实不要重复询问。
|
|
23
|
+
4. Context 决定“应该是什么”;代码说明“现在是什么”;测试和运行证据证明行为。冲突是实现漂移、缺失工作或 stale Context,不能由代码静默重定义归属。
|
|
24
|
+
5. 第一处编辑前决定唯一 `Context Delta: none|required`。影响 durable architecture boundary、module ownership、API / Schema / data contract、state / runtime semantics、dependency direction、verification / deployment semantics 或 durable rationale / tradeoff 时为 `required`,先更新 owning Context。不要创建 `plan.md`、Task Contract 文件或 Markdown 映射表。
|
|
25
|
+
6. 用 Agent 内部计划保持 goal、non-goals、owner、boundaries、implementation surfaces、risk 和 verification 清晰。默认流程不要求或验证固定 `plan.md`、matrix、verdict 或 evidence ledger。
|
|
26
|
+
7. 普通 bug fix、局部样式/实现漂移、小重构、package/release、测试修复或探索性 spike 不支付架构仪式成本;它们是 small code task,除非过程中形成了新的长期工程事实。
|
|
27
|
+
8. 实现后运行 project-owned verification,做 `Contract Conformance` 和 Context drift check,只报告 `Context: 已更新 ...` 或 `Context: 本次无长期事实变化`。
|
|
28
|
+
|
|
29
|
+
## 风险触发 Architecture Gate
|
|
30
|
+
|
|
31
|
+
仅在下列任一情况触发;这是内部判断,不是新 artifact、validator 或 delta:
|
|
32
|
+
|
|
33
|
+
- 新长期模块/能力/公共抽象;
|
|
34
|
+
- 公共 API、Schema、data contract、持久化或迁移;
|
|
35
|
+
- source of truth、state ownership、runtime lifecycle 或 recovery 改变;
|
|
36
|
+
- 跨 area/domain 修改或新的 dependency direction;
|
|
37
|
+
- security/permission、兼容性、降级、重试、并发或不可逆边界;
|
|
38
|
+
- 一个变化异常扩散到多个不相关模块,或现有扩展点无法承载。
|
|
39
|
+
|
|
40
|
+
内部保持:
|
|
41
|
+
|
|
42
|
+
- `Architecture Context Hit`:哪个现有 Context 控制本次架构判断;
|
|
43
|
+
- `Decision Rationale Hit: existing|required|none`:是否存在会改变未来选择的稳定原因;
|
|
44
|
+
- owner 和唯一 source of truth;
|
|
45
|
+
- 正确 dependency direction 与禁止 bypass;
|
|
46
|
+
- interface、input/output、state、persistence 和 lifecycle;
|
|
47
|
+
- failure/retry/timeout/degraded/recovery、compatibility/migration;
|
|
48
|
+
- 应复用的 extension point,或新抽象为何确有净收益;
|
|
49
|
+
- 哪个 project-owned lint/AST/dependency/contract test 能证明边界。
|
|
50
|
+
|
|
51
|
+
持久结论进入最小 owning Context;实现细节留在代码。不要把“代码更优雅”当作架构要求,也不要让 Harness 变成跨语言通用 dependency analyzer。
|
|
52
|
+
|
|
53
|
+
## Capability-First Delivery Boundary
|
|
54
|
+
|
|
55
|
+
对外部来源中的产品/架构/实现/验收约束做内部分类:Context 已覆盖、需要更新、task-local、显式 out-of-scope 或需要真实用户决策。对 delivery / acceptance scope 使用 capability-first delivery boundary,区分:
|
|
56
|
+
|
|
57
|
+
- `system_capability_build`:形成可复用系统能力;
|
|
58
|
+
- `representative_sample_validation`:仅验证代表性样本;
|
|
59
|
+
- `full_population_operation`:权威范围内全量对象完成;
|
|
60
|
+
- `full_population_not_required`:AC 明确不要求全量。
|
|
61
|
+
|
|
62
|
+
sample provider / interface / page 证据不能替代 all-provider / all-interface / all-platform 或全量完成。来源要求全量而当前只能交付框架/样本时标记 `scope_conflict_requires_decision`;权威范围未收窄前不得声称完成。
|
|
63
|
+
|
|
64
64
|
## Product Surface
|
|
65
|
-
|
|
66
|
-
涉及 Web/移动/桌面/游戏 UI、CLI/TUI、表单、配置、输入、选择、搜索、筛选、调度、预算/配额/限流或状态反馈时:
|
|
67
|
-
|
|
65
|
+
|
|
66
|
+
涉及 Web/移动/桌面/游戏 UI、CLI/TUI、表单、配置、输入、选择、搜索、筛选、调度、预算/配额/限流或状态反馈时:
|
|
67
|
+
|
|
68
68
|
- 对照已有 Product Surface / Surface Contract、页面职责和控件任务,而不是只确认字段已暴露;
|
|
69
|
-
-
|
|
69
|
+
- 对 material screen 同时读取 owning Screen/interaction Context(若存在),并用稳定 surface/control/target key 绑定真实 route/component、设计 target 和测试;产品方案只有粗粒度时,把缺失字段路由到 Context update、task-local Source 或 genuine decision,不能在代码里形成唯一隐藏事实源;
|
|
70
|
+
- 内部保持 Surface Contract Hit、main allows/forbids、drilldown ownership、long-task state requirement、implementation drift 和 verification;
|
|
70
71
|
- 缺失 durable surface responsibility 时设置 `Context Delta: required`,先用 `context_surface_contract` 或 owning Context 建立职责;
|
|
71
72
|
- 收尾用简短 `Contract Conformance` 说明命中的 Context、实现满足方式、未满足项和验证入口。
|
|
72
73
|
|
|
@@ -81,30 +82,31 @@ For material production UI, first confirm Design Authority readiness; then carry
|
|
|
81
82
|
- preserve approved semantic tokens and component APIs; do not bypass them with undeclared raw color, spacing, typography or motion values merely to match one screenshot;
|
|
82
83
|
- implement the declared Visual Coverage Set across the applicable viewport, theme/mode, state, content-stress and accessibility/motion combinations, while avoiding an unrequested full Cartesian expansion;
|
|
83
84
|
- run project-owned rendered/component/browser verification and report only the combinations actually checked. Static analysis, generated kits and screenshot artifacts are supporting review material rather than proof of every visual or behavioral claim.
|
|
85
|
+
- For each applicable material control, preserve region/location, type/label, user task, visibility/availability, trigger/input/validation/default, interaction/navigation, loading/empty/success/failure/recovery/permission/feedback and accessibility semantics. An omitted field is not permission to invent durable product behavior; resolve it through UI Authority Closure.
|
|
84
86
|
- never promote the implementation's own generated screenshot/diff into its target; exact targets and acceptance-affecting baselines are selected Source/verifier inputs before comparison.
|
|
85
87
|
|
|
86
|
-
If an active Long-Task applies, express material visual expectations through its existing Requirement, Control, Assertion, Check and external-confirmation mechanisms. Do not introduce a second visual plan, acceptance document or lifecycle.
|
|
88
|
+
If an active Long-Task applies, express material visual expectations through its existing Requirement, full Control projection, Assertion, Check, Stage, Binding and external-confirmation mechanisms. A design candidate or planned target cannot unlock fidelity implementation: selection must become real Source/registry authority and an adopted protected revision first. Do not introduce a second visual plan, acceptance document or lifecycle.
|
|
87
89
|
|
|
88
90
|
## Modularity Check
|
|
89
|
-
|
|
90
|
-
新实现、重构、重复逻辑、模块边界或影响面控制需要内部记录 `Modularity Check: none|required|exception`。
|
|
91
|
-
|
|
92
|
-
- 可用 `ty-context check-modularity --file <path> --limit 300` 做计划编辑审计,用 `make validate-code-modularity` 或 `ty-context check-modularity --touched --limit 300 --fail-on-warning` 做交付前硬审计;项目本地 Skill 的 limit 优先。
|
|
93
|
-
- 同时检查物理行数、单函数语句数、分支复杂度、导出数、状态转换和职责;压成一行不能规避。
|
|
94
|
-
- 风险点按 product surface、hook、model、adapter、component、service / facade 或 verification helper 等稳定边界判断,优先复用现有 extension point。
|
|
95
|
-
- 只实施高收益、低风险、语义稳定的抽象;不为一次性代码、不稳定语义或视觉整洁做抽象。
|
|
96
|
-
- `exception` 必须由 `<harnessRoot>/config.yaml` 中 lifecycle-complete waiver 授权,至少包含收窄的 `path`/`category`、`owner`、`introduced_at`、`reason`、`tracking_issue`、`expiry_condition`。交付说明不是机器豁免,已有债务不得继续接收新职责。
|
|
97
|
-
|
|
98
|
-
## 自动化机会
|
|
99
|
-
|
|
100
|
-
人工流程重复、确定、易漏步骤或顺序影响正确性时,评估 repo-local tool/script。脚本放在 owning module 的工具目录并有测试;可恢复入口、参数约束和适用边界写入 verification/deployment Context。不要把模块命令、provider id、artifact 路径或一次性结果写进本 Skill。
|
|
101
|
-
|
|
102
|
-
## Context 写入边界
|
|
103
|
-
|
|
104
|
-
- area/domain/subdomain:产品或包责任;contract:API/schema/event/workflow/interface;foundation:稳定概念;verification/deployment:可重复路径;implementation-index:导航;decision-rationale:会影响未来选择的稳定原因。
|
|
105
|
-
- 模块 Context 只保留 principles、design logic、rejected alternative/tradeoff 和长期约束;不编造 rationale,不复制实现摘要、命令输出、debug 过程、截图、日志、临时 JSON、raw payload、测试报告或 secrets。
|
|
106
|
-
- `Context Delta: none|required` 是唯一长期事实结果;`Architecture Context Hit`、`Decision Rationale Hit` 与 `Modularity Check` 仍只是内部路由问题。
|
|
107
|
-
|
|
108
|
-
## 输出边界
|
|
109
|
-
|
|
110
|
-
不默认创建 `.work_products/**`、tech plan、ADR、implementation doc、review/test/release 文档或 lifecycle phases。用户明确要求独立开发/技术方案时可以临时生成;稳定结论仍提炼回 `project_context/**`。
|
|
91
|
+
|
|
92
|
+
新实现、重构、重复逻辑、模块边界或影响面控制需要内部记录 `Modularity Check: none|required|exception`。
|
|
93
|
+
|
|
94
|
+
- 可用 `ty-context check-modularity --file <path> --limit 300` 做计划编辑审计,用 `make validate-code-modularity` 或 `ty-context check-modularity --touched --limit 300 --fail-on-warning` 做交付前硬审计;项目本地 Skill 的 limit 优先。
|
|
95
|
+
- 同时检查物理行数、单函数语句数、分支复杂度、导出数、状态转换和职责;压成一行不能规避。
|
|
96
|
+
- 风险点按 product surface、hook、model、adapter、component、service / facade 或 verification helper 等稳定边界判断,优先复用现有 extension point。
|
|
97
|
+
- 只实施高收益、低风险、语义稳定的抽象;不为一次性代码、不稳定语义或视觉整洁做抽象。
|
|
98
|
+
- `exception` 必须由 `<harnessRoot>/config.yaml` 中 lifecycle-complete waiver 授权,至少包含收窄的 `path`/`category`、`owner`、`introduced_at`、`reason`、`tracking_issue`、`expiry_condition`。交付说明不是机器豁免,已有债务不得继续接收新职责。
|
|
99
|
+
|
|
100
|
+
## 自动化机会
|
|
101
|
+
|
|
102
|
+
人工流程重复、确定、易漏步骤或顺序影响正确性时,评估 repo-local tool/script。脚本放在 owning module 的工具目录并有测试;可恢复入口、参数约束和适用边界写入 verification/deployment Context。不要把模块命令、provider id、artifact 路径或一次性结果写进本 Skill。
|
|
103
|
+
|
|
104
|
+
## Context 写入边界
|
|
105
|
+
|
|
106
|
+
- area/domain/subdomain:产品或包责任;contract:API/schema/event/workflow/interface;foundation:稳定概念;verification/deployment:可重复路径;implementation-index:导航;decision-rationale:会影响未来选择的稳定原因。
|
|
107
|
+
- 模块 Context 只保留 principles、design logic、rejected alternative/tradeoff 和长期约束;不编造 rationale,不复制实现摘要、命令输出、debug 过程、截图、日志、临时 JSON、raw payload、测试报告或 secrets。
|
|
108
|
+
- `Context Delta: none|required` 是唯一长期事实结果;`Architecture Context Hit`、`Decision Rationale Hit` 与 `Modularity Check` 仍只是内部路由问题。
|
|
109
|
+
|
|
110
|
+
## 输出边界
|
|
111
|
+
|
|
112
|
+
不默认创建 `.work_products/**`、tech plan、ADR、implementation doc、review/test/release 文档或 lifecycle phases。用户明确要求独立开发/技术方案时可以临时生成;稳定结论仍提炼回 `project_context/**`。
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: context_full_project_export
|
|
3
|
-
description: Use when the user explicitly asks to 导出尽可能详细的项目全量上下文, 全量上下文导出, 项目上下文全量导出, 项目整体上下文, full project context export, export full project context, project context export, project overall context, Source Pack export, source-pack export, code index export, task context export, 当前项目代码实现, 代码级实现导出, or code-level implementation export in a Minimal Context Harness project.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Context Full Project Export
|
|
7
|
-
|
|
8
|
-
## Package-Managed Boundary
|
|
9
|
-
|
|
10
|
-
This Skill is generated by `ty-context sync` and owned by the Harness package. Do not edit the generated `context_full_project_export` Skill directly.
|
|
11
|
-
|
|
12
|
-
This Skill creates a temporary export artifact only. It does not author durable Context and does not change `project_context/context.toml`.
|
|
13
|
-
|
|
14
|
-
## Purpose
|
|
15
|
-
|
|
16
|
-
When the user needs a full project context export, project overall context export or external LLM handoff, create temporary export artifacts that collect project Context, key agent guidance, architecture/module facts, code navigation and bounded source support for copying into an external tool or one-off discussion.
|
|
17
|
-
|
|
18
|
-
When the user needs a code-level implementation export, create one temporary Markdown snapshot of current source and engineering configuration files for upload to Web GPT or another external model.
|
|
19
|
-
|
|
20
|
-
## Workflow
|
|
21
|
-
|
|
22
|
-
1. Prefer the bounded Source Pack for external LLM / Web GPT planning. It writes at most 5 files total under `tmp/ty-context/context-exports/latest/` and removes old timestamped export rounds:
|
|
23
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --source-pack`
|
|
24
|
-
2. Use `--code-index` when implementation navigation is enough and full source bodies are not needed:
|
|
25
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code-index`
|
|
26
|
-
3. Use `--task-context <name>` for focused handoff, preferably with a profile or explicit include selectors:
|
|
27
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --task-context <name> --profile <profile-id>`
|
|
28
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --task-context <name> --include-context project_context/areas/main.md --include-code 'src/example/**'`
|
|
29
|
-
4. Use legacy `--all` when the user explicitly wants both old temporary artifacts in one command. Do not hand-write tracked export documents:
|
|
30
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --all`
|
|
31
|
-
5. Use legacy `--full` when only the project Context bundle is needed:
|
|
32
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --full`
|
|
33
|
-
6. Use legacy `--code` when only the full code-level implementation snapshot is needed. It generates one Markdown file by default and is the full fallback when Source Pack bundles are not enough:
|
|
34
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code`
|
|
35
|
-
7. Custom output paths are allowed only for legacy single-artifact modes and must stay under the temporary export directory. `--all` and Source Pack modes do not accept `--output`:
|
|
36
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --full --output tmp/ty-context/context-exports/my-export.md`
|
|
37
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code --output tmp/ty-context/context-exports/my-code-export.md`
|
|
38
|
-
8. Use dry-run mode to inspect planned sources before writing:
|
|
39
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --source-pack --check`
|
|
40
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code-index --check`
|
|
41
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --task-context <name> --check`
|
|
42
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --all --check`
|
|
43
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --full --check`
|
|
44
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code --check`
|
|
45
|
-
9. After exporting, report artifact paths, source counts, recommended upload sets and warnings to the user. Do not summarize export contents back into Context.
|
|
46
|
-
|
|
47
|
-
## Output Boundaries
|
|
48
|
-
|
|
49
|
-
- Export artifacts must remain temporary export artifacts, not Context.
|
|
50
|
-
- `--source-pack` defaults to `tmp/ty-context/context-exports/latest/`, with `source-pack-manifest.json`, `full-project-context.md`, `code-index.md` and optional `code-bundle-core.md` / `code-bundle-extended.md`.
|
|
51
|
-
- `--source-pack` and `--task-context` are capped at 5 output files. `--max-pack-files` cannot exceed 5.
|
|
52
|
-
- `--code-index` creates a navigation index and manifest without complete source bodies.
|
|
53
|
-
- `--task-context <name>` creates `task-contexts/task-context-<name>.md` plus optional support bundle; profile verification entries are listed, not executed.
|
|
54
|
-
- `--full` defaults to `tmp/ty-context/context-exports/full-project-context-<timestamp>.md`.
|
|
55
|
-
- `--code` defaults to `tmp/ty-context/context-exports/code-level-implementation-<timestamp>/code-level-implementation.md`.
|
|
56
|
-
- `--all` generates both default artifacts with the same timestamp.
|
|
57
|
-
- `--all` does not accept `--output`; custom filenames are supported only for `--full` or `--code`.
|
|
58
|
-
- `--code` creates one Markdown file, not shards or `all.md`.
|
|
59
|
-
- Do not output to `project_context/**`.
|
|
60
|
-
- Do not modify `project_context/context.toml`.
|
|
61
|
-
- Do not register export artifacts as `[[context]]`, `implementation-index` or any Context graph node.
|
|
62
|
-
- Do not write tracked docs; if the user asks for an ordinary docs path, redirect to `tmp/ty-context/context-exports/**`.
|
|
63
|
-
- Export contents may include redaction warnings; do not bypass secret/token/cookie/password/api_key/credential/bearer/authorization filtering. Use `--redaction-strict` when the user wants the command to fail if any redaction occurred.
|
|
64
|
-
- Profiles under `<harnessRoot>/config.yaml` are export selectors only. They must not become durable Context facts or execute verification commands.
|
|
65
|
-
|
|
66
|
-
## Handoff
|
|
67
|
-
|
|
68
|
-
- Report `Export: generated <path>` or `Export: check completed; no files written`.
|
|
69
|
-
- If the CLI rejects an output path, explain that this prevents temporary exports from polluting durable fact sources and suggest `tmp/ty-context/context-exports/<name>.md`.
|
|
70
|
-
- Context drift check should be `Context: no durable project facts changed` unless the task also changes Harness rules.
|
|
1
|
+
---
|
|
2
|
+
name: context_full_project_export
|
|
3
|
+
description: Use when the user explicitly asks to 导出尽可能详细的项目全量上下文, 全量上下文导出, 项目上下文全量导出, 项目整体上下文, full project context export, export full project context, project context export, project overall context, Source Pack export, source-pack export, code index export, task context export, 当前项目代码实现, 代码级实现导出, or code-level implementation export in a Minimal Context Harness project.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Context Full Project Export
|
|
7
|
+
|
|
8
|
+
## Package-Managed Boundary
|
|
9
|
+
|
|
10
|
+
This Skill is generated by `ty-context sync` and owned by the Harness package. Do not edit the generated `context_full_project_export` Skill directly.
|
|
11
|
+
|
|
12
|
+
This Skill creates a temporary export artifact only. It does not author durable Context and does not change `project_context/context.toml`.
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
|
|
16
|
+
When the user needs a full project context export, project overall context export or external LLM handoff, create temporary export artifacts that collect project Context, key agent guidance, architecture/module facts, code navigation and bounded source support for copying into an external tool or one-off discussion.
|
|
17
|
+
|
|
18
|
+
When the user needs a code-level implementation export, create one temporary Markdown snapshot of current source and engineering configuration files for upload to Web GPT or another external model.
|
|
19
|
+
|
|
20
|
+
## Workflow
|
|
21
|
+
|
|
22
|
+
1. Prefer the bounded Source Pack for external LLM / Web GPT planning. It writes at most 5 files total under `tmp/ty-context/context-exports/latest/` and removes old timestamped export rounds:
|
|
23
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --source-pack`
|
|
24
|
+
2. Use `--code-index` when implementation navigation is enough and full source bodies are not needed:
|
|
25
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code-index`
|
|
26
|
+
3. Use `--task-context <name>` for focused handoff, preferably with a profile or explicit include selectors:
|
|
27
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --task-context <name> --profile <profile-id>`
|
|
28
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --task-context <name> --include-context project_context/areas/main.md --include-code 'src/example/**'`
|
|
29
|
+
4. Use legacy `--all` when the user explicitly wants both old temporary artifacts in one command. Do not hand-write tracked export documents:
|
|
30
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --all`
|
|
31
|
+
5. Use legacy `--full` when only the project Context bundle is needed:
|
|
32
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --full`
|
|
33
|
+
6. Use legacy `--code` when only the full code-level implementation snapshot is needed. It generates one Markdown file by default and is the full fallback when Source Pack bundles are not enough:
|
|
34
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code`
|
|
35
|
+
7. Custom output paths are allowed only for legacy single-artifact modes and must stay under the temporary export directory. `--all` and Source Pack modes do not accept `--output`:
|
|
36
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --full --output tmp/ty-context/context-exports/my-export.md`
|
|
37
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code --output tmp/ty-context/context-exports/my-code-export.md`
|
|
38
|
+
8. Use dry-run mode to inspect planned sources before writing:
|
|
39
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --source-pack --check`
|
|
40
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code-index --check`
|
|
41
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --task-context <name> --check`
|
|
42
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --all --check`
|
|
43
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --full --check`
|
|
44
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context export-context --code --check`
|
|
45
|
+
9. After exporting, report artifact paths, source counts, recommended upload sets and warnings to the user. Do not summarize export contents back into Context.
|
|
46
|
+
|
|
47
|
+
## Output Boundaries
|
|
48
|
+
|
|
49
|
+
- Export artifacts must remain temporary export artifacts, not Context.
|
|
50
|
+
- `--source-pack` defaults to `tmp/ty-context/context-exports/latest/`, with `source-pack-manifest.json`, `full-project-context.md`, `code-index.md` and optional `code-bundle-core.md` / `code-bundle-extended.md`.
|
|
51
|
+
- `--source-pack` and `--task-context` are capped at 5 output files. `--max-pack-files` cannot exceed 5.
|
|
52
|
+
- `--code-index` creates a navigation index and manifest without complete source bodies.
|
|
53
|
+
- `--task-context <name>` creates `task-contexts/task-context-<name>.md` plus optional support bundle; profile verification entries are listed, not executed.
|
|
54
|
+
- `--full` defaults to `tmp/ty-context/context-exports/full-project-context-<timestamp>.md`.
|
|
55
|
+
- `--code` defaults to `tmp/ty-context/context-exports/code-level-implementation-<timestamp>/code-level-implementation.md`.
|
|
56
|
+
- `--all` generates both default artifacts with the same timestamp.
|
|
57
|
+
- `--all` does not accept `--output`; custom filenames are supported only for `--full` or `--code`.
|
|
58
|
+
- `--code` creates one Markdown file, not shards or `all.md`.
|
|
59
|
+
- Do not output to `project_context/**`.
|
|
60
|
+
- Do not modify `project_context/context.toml`.
|
|
61
|
+
- Do not register export artifacts as `[[context]]`, `implementation-index` or any Context graph node.
|
|
62
|
+
- Do not write tracked docs; if the user asks for an ordinary docs path, redirect to `tmp/ty-context/context-exports/**`.
|
|
63
|
+
- Export contents may include redaction warnings; do not bypass secret/token/cookie/password/api_key/credential/bearer/authorization filtering. Use `--redaction-strict` when the user wants the command to fail if any redaction occurred.
|
|
64
|
+
- Profiles under `<harnessRoot>/config.yaml` are export selectors only. They must not become durable Context facts or execute verification commands.
|
|
65
|
+
|
|
66
|
+
## Handoff
|
|
67
|
+
|
|
68
|
+
- Report `Export: generated <path>` or `Export: check completed; no files written`.
|
|
69
|
+
- If the CLI rejects an output path, explain that this prevents temporary exports from polluting durable fact sources and suggest `tmp/ty-context/context-exports/<name>.md`.
|
|
70
|
+
- Context drift check should be `Context: no durable project facts changed` unless the task also changes Harness rules.
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: context_harness_upgrade
|
|
3
|
-
description: Use when the user asks to upgrade Tiny Context, update Tiny Context, use the Tiny Context upgrade skill to upgrade this project, upgrade project-tiny-context-harness, run ty-context upgrade, run make ty-context-upgrade, Project Tiny Context Harness upgrade, 用 Tiny Context upgrade skill 升级这个项目, 升级 tiny context, 升级tiny context, or 更新 project-tiny-context-harness in a Minimal Context Harness project.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Context Harness Upgrade
|
|
7
|
-
|
|
8
|
-
## Package-Managed Boundary
|
|
9
|
-
|
|
10
|
-
This Skill is generated by `ty-context sync` and owned by the Harness package. Do not edit the generated `context_harness_upgrade` Skill directly.
|
|
11
|
-
|
|
12
|
-
This Skill handles Harness package upgrade and migration orchestration only. It does not author product facts, refactor business code, replace project tests or prove application quality.
|
|
13
|
-
|
|
14
|
-
## Purpose
|
|
15
|
-
|
|
16
|
-
When the user asks to upgrade Tiny Context / Project Tiny Context Harness in an existing project, run the canonical `upgrade` path, handle only migration-scoped follow-up, and leave durable project semantics to the project Context and user-owned code. A `sync-only` release means no new migration is expected; it does not change the default upgrade entry for explicit upgrade requests.
|
|
17
|
-
|
|
18
|
-
## Workflow
|
|
19
|
-
|
|
20
|
-
1. Read the project routing and Context entry points before changing files:
|
|
21
|
-
- `AGENTS.md`
|
|
22
|
-
- `project_context/global.md`
|
|
23
|
-
- `project_context/architecture.md`
|
|
24
|
-
- `project_context/context.toml`
|
|
25
|
-
2. Inspect the working tree with `git status --short`. Do not revert unrelated user changes.
|
|
26
|
-
3. Prefer project wrappers when present:
|
|
27
|
-
- `make ty-context-sync`
|
|
28
|
-
- `make ty-context-upgrade`
|
|
29
|
-
- `make ty-context-doctor`
|
|
30
|
-
- `make validate-context`
|
|
31
|
-
4. If no wrapper exists, use the package CLI explicitly:
|
|
32
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context sync`
|
|
33
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context upgrade --check`
|
|
34
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context upgrade`
|
|
35
|
-
- `npx --yes --package project-tiny-context-harness@latest ty-context doctor`
|
|
36
|
-
5. Run `upgrade --check` when useful, then run `upgrade`. This remains the default after package updates and for explicit upgrade requests because it plans migrations, applies safe migrations, refreshes managed assets and runs diagnostics.
|
|
37
|
-
6. Do not run standalone `sync` before `upgrade` for explicit upgrade requests. A direct `sync` is only a shortcut for releases explicitly marked `sync-only` when the user asks for managed-asset refresh instead of upgrade diagnostics.
|
|
38
|
-
7. Do not run standalone `sync` after a successful `upgrade` unless the project wrapper did not run sync or the user explicitly asks for another managed-asset refresh.
|
|
39
|
-
8. If `upgrade --check` or `upgrade` reports only `safe_pending` items and the command succeeds, do not invent additional manual cleanup.
|
|
40
|
-
9. If the report includes `manual_required` or `blocked`, handle only the listed migration scope. Use `project_context/context.toml`, role placement scan and the existing area graph to decide placement. Do not guess product or business semantics.
|
|
41
|
-
10. If the report includes `blocked`, treat it as a write preflight failure: resolve the blocked migration scope and rerun `upgrade` before expecting safe migrations or managed asset sync to have been applied.
|
|
42
|
-
11. Run diagnostics after migration-scoped follow-up:
|
|
43
|
-
- `make ty-context-doctor` or the CLI `doctor`
|
|
44
|
-
- `make validate-context`
|
|
45
|
-
12. Report commands run, migration status, diagnostics, files changed and any remaining manual items. Use `Context: no durable project facts changed` unless the upgrade exposed or required a real long-term project fact change.
|
|
46
|
-
|
|
47
|
-
## Manual Handling Rules
|
|
48
|
-
|
|
49
|
-
- `manual_required` means the Harness detected a migration-scoped item but cannot safely choose the project meaning. Fix it only when the existing Context or file structure proves the intended placement.
|
|
50
|
-
- `blocked` means the safe target already exists or another conflict prevents a mechanical write. Do not overwrite. Compare source and target, preserve user content and ask for direction if the conflict cannot be resolved from project facts.
|
|
51
|
-
- Deprecated override Skills under `ty-context-managed/override_skills/**` should be migrated to standalone project-local Skills only when their content is still relevant. Do not merge them into package-managed default Skills.
|
|
52
|
-
- Ambiguous Context roles should not be guessed from filenames like `api.md`, `notes.md` or `main.md` alone. Register a role only when the manifest, path convention or durable content makes it clear.
|
|
53
|
-
- If `upgrade` creates default `project_context/areas/main.md` or `project_context/areas/main/verification.md` but `project_context/context.toml` already declares real project areas and does not register `main`, remove those generated defaults instead of preserving them as durable project facts. If `main` is registered or contains user-authored facts, do not delete it automatically.
|
|
54
|
-
|
|
55
|
-
## Boundaries
|
|
56
|
-
|
|
57
|
-
- Do not restore legacy stage workflow, sprint documents or phase gates.
|
|
58
|
-
- Do not modify application code, product behavior, deployment settings or tests unless the user explicitly asks or a migration report points to a Harness-owned file in that scope.
|
|
59
|
-
- Do not write one-off command output, release logs, diagnostics or temporary migration notes into `project_context/**`.
|
|
60
|
-
- Do not edit package-managed generated surfaces directly in a consumer project unless the change is part of a migration conflict that cannot be resolved another way. Prefer rerunning `upgrade` / `sync` from the package source.
|
|
1
|
+
---
|
|
2
|
+
name: context_harness_upgrade
|
|
3
|
+
description: Use when the user asks to upgrade Tiny Context, update Tiny Context, use the Tiny Context upgrade skill to upgrade this project, upgrade project-tiny-context-harness, run ty-context upgrade, run make ty-context-upgrade, Project Tiny Context Harness upgrade, 用 Tiny Context upgrade skill 升级这个项目, 升级 tiny context, 升级tiny context, or 更新 project-tiny-context-harness in a Minimal Context Harness project.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Context Harness Upgrade
|
|
7
|
+
|
|
8
|
+
## Package-Managed Boundary
|
|
9
|
+
|
|
10
|
+
This Skill is generated by `ty-context sync` and owned by the Harness package. Do not edit the generated `context_harness_upgrade` Skill directly.
|
|
11
|
+
|
|
12
|
+
This Skill handles Harness package upgrade and migration orchestration only. It does not author product facts, refactor business code, replace project tests or prove application quality.
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
|
|
16
|
+
When the user asks to upgrade Tiny Context / Project Tiny Context Harness in an existing project, run the canonical `upgrade` path, handle only migration-scoped follow-up, and leave durable project semantics to the project Context and user-owned code. A `sync-only` release means no new migration is expected; it does not change the default upgrade entry for explicit upgrade requests.
|
|
17
|
+
|
|
18
|
+
## Workflow
|
|
19
|
+
|
|
20
|
+
1. Read the project routing and Context entry points before changing files:
|
|
21
|
+
- `AGENTS.md`
|
|
22
|
+
- `project_context/global.md`
|
|
23
|
+
- `project_context/architecture.md`
|
|
24
|
+
- `project_context/context.toml`
|
|
25
|
+
2. Inspect the working tree with `git status --short`. Do not revert unrelated user changes.
|
|
26
|
+
3. Prefer project wrappers when present:
|
|
27
|
+
- `make ty-context-sync`
|
|
28
|
+
- `make ty-context-upgrade`
|
|
29
|
+
- `make ty-context-doctor`
|
|
30
|
+
- `make validate-context`
|
|
31
|
+
4. If no wrapper exists, use the package CLI explicitly:
|
|
32
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context sync`
|
|
33
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context upgrade --check`
|
|
34
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context upgrade`
|
|
35
|
+
- `npx --yes --package project-tiny-context-harness@latest ty-context doctor`
|
|
36
|
+
5. Run `upgrade --check` when useful, then run `upgrade`. This remains the default after package updates and for explicit upgrade requests because it plans migrations, applies safe migrations, refreshes managed assets and runs diagnostics.
|
|
37
|
+
6. Do not run standalone `sync` before `upgrade` for explicit upgrade requests. A direct `sync` is only a shortcut for releases explicitly marked `sync-only` when the user asks for managed-asset refresh instead of upgrade diagnostics.
|
|
38
|
+
7. Do not run standalone `sync` after a successful `upgrade` unless the project wrapper did not run sync or the user explicitly asks for another managed-asset refresh.
|
|
39
|
+
8. If `upgrade --check` or `upgrade` reports only `safe_pending` items and the command succeeds, do not invent additional manual cleanup.
|
|
40
|
+
9. If the report includes `manual_required` or `blocked`, handle only the listed migration scope. Use `project_context/context.toml`, role placement scan and the existing area graph to decide placement. Do not guess product or business semantics.
|
|
41
|
+
10. If the report includes `blocked`, treat it as a write preflight failure: resolve the blocked migration scope and rerun `upgrade` before expecting safe migrations or managed asset sync to have been applied.
|
|
42
|
+
11. Run diagnostics after migration-scoped follow-up:
|
|
43
|
+
- `make ty-context-doctor` or the CLI `doctor`
|
|
44
|
+
- `make validate-context`
|
|
45
|
+
12. Report commands run, migration status, diagnostics, files changed and any remaining manual items. Use `Context: no durable project facts changed` unless the upgrade exposed or required a real long-term project fact change.
|
|
46
|
+
|
|
47
|
+
## Manual Handling Rules
|
|
48
|
+
|
|
49
|
+
- `manual_required` means the Harness detected a migration-scoped item but cannot safely choose the project meaning. Fix it only when the existing Context or file structure proves the intended placement.
|
|
50
|
+
- `blocked` means the safe target already exists or another conflict prevents a mechanical write. Do not overwrite. Compare source and target, preserve user content and ask for direction if the conflict cannot be resolved from project facts.
|
|
51
|
+
- Deprecated override Skills under `ty-context-managed/override_skills/**` should be migrated to standalone project-local Skills only when their content is still relevant. Do not merge them into package-managed default Skills.
|
|
52
|
+
- Ambiguous Context roles should not be guessed from filenames like `api.md`, `notes.md` or `main.md` alone. Register a role only when the manifest, path convention or durable content makes it clear.
|
|
53
|
+
- If `upgrade` creates default `project_context/areas/main.md` or `project_context/areas/main/verification.md` but `project_context/context.toml` already declares real project areas and does not register `main`, remove those generated defaults instead of preserving them as durable project facts. If `main` is registered or contains user-authored facts, do not delete it automatically.
|
|
54
|
+
|
|
55
|
+
## Boundaries
|
|
56
|
+
|
|
57
|
+
- Do not restore legacy stage workflow, sprint documents or phase gates.
|
|
58
|
+
- Do not modify application code, product behavior, deployment settings or tests unless the user explicitly asks or a migration report points to a Harness-owned file in that scope.
|
|
59
|
+
- Do not write one-off command output, release logs, diagnostics or temporary migration notes into `project_context/**`.
|
|
60
|
+
- Do not edit package-managed generated surfaces directly in a consumer project unless the change is part of a migration conflict that cannot be resolved another way. Prefer rerunning `upgrade` / `sync` from the package source.
|