project-tiny-context-harness 0.2.48 → 0.2.49

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.
@@ -1 +1 @@
1
-
1
+
@@ -1,58 +1,58 @@
1
- # Minimal Context Harness Protocol
2
-
3
- 本项目使用 Minimal Context Harness。Harness 只维护上下文质量,不替项目证明产品质量。
4
-
5
- ## AGENTS.md 定位
6
-
7
- - `AGENTS.md` 是 agent 启动路由器和硬边界,只放事实源入口、不可违反规则、关键触发器和最短验证入口。
8
- - 长设计理由默认压缩进 `project_context/**`;若项目已有明确的本地 spec / design 文档,可按项目约定使用。角色流程 / checklist 放 Skills,人类使用说明放 README;新增 AGENTS 规则前优先压缩或替换旧规则,不默认追加。
9
- - 建议把 AGENTS 主路径保持在约 40-70 行;这是软预算,不是 validator 或 CI gate。
10
-
11
- ## Context 优先级阶梯
12
-
13
- 1. 先读 `project_context/global.md`、`project_context/architecture.md` 和 `project_context/context.toml`,再按 graph 读取相关 area / context unit。
14
- 2. 若任务涉及 Web 页面、前端布局、UI/UX、产品模块边界或信息放置,先做页面产品定位检查,再完成变更分类;若 UI 改动涉及输入、选择、搜索、筛选、表单/配置、调度/时间窗口、预算/配额/限流或加载/空态/错误态,按产品/UIUX Skill 的控件任务框架做轻量检查。
15
- 3. 若任务新增、迁移或整理 Context 文件,先做 role placement scan:area 只代表产品域归属;contract / foundation / subdomain / verification / deployment / implementation-index / decision-rationale 等按读取目的拆成 role Context。
1
+ # Minimal Context Harness Protocol
2
+
3
+ 本项目使用 Minimal Context Harness。Harness 只维护上下文质量,不替项目证明产品质量。
4
+
5
+ ## AGENTS.md 定位
6
+
7
+ - `AGENTS.md` 是 agent 启动路由器和硬边界,只放事实源入口、不可违反规则、关键触发器和最短验证入口。
8
+ - 长设计理由默认压缩进 `project_context/**`;若项目已有明确的本地 spec / design 文档,可按项目约定使用。角色流程 / checklist 放 Skills,人类使用说明放 README;新增 AGENTS 规则前优先压缩或替换旧规则,不默认追加。
9
+ - 建议把 AGENTS 主路径保持在约 40-70 行;这是软预算,不是 validator 或 CI gate。
10
+
11
+ ## Context 优先级阶梯
12
+
13
+ 1. 先读 `project_context/global.md`、`project_context/architecture.md` 和 `project_context/context.toml`,再按 graph 读取相关 area / context unit。
14
+ 2. 若任务涉及 Web 页面、前端布局、UI/UX、产品模块边界或信息放置,先做页面产品定位检查,再完成变更分类;若 UI 改动涉及输入、选择、搜索、筛选、表单/配置、调度/时间窗口、预算/配额/限流或加载/空态/错误态,按产品/UIUX Skill 的控件任务框架做轻量检查。
15
+ 3. 若任务新增、迁移或整理 Context 文件,先做 role placement scan:area 只代表产品域归属;contract / foundation / subdomain / verification / deployment / implementation-index / decision-rationale 等按读取目的拆成 role Context。
16
16
  4. 对产品方案、UI/UX、系统设计、架构边界、API / Schema、模块设计原则、状态或运行语义、验证设计等任务,先把相关模块设计上下文编译进当前任务契约;契约第一段用 `Context Delta: none|required` 声明是否改变长期事实,再写本次 Task Contract。
17
- 5. `Context Delta: required` 则 context-first;普通 bug fix、局部样式、局部漂移修复、测试修复或 spike 默认 code-first,但一旦产生长期结论必须回写 Context。
18
- 6. 收尾做 Contract Conformance 和 Context drift check,只报告 `Context: 已更新 ...` 或 `Context: 本次无长期事实变化`;不要把一次性证据、任务契约或实现摘要写入 Context。
19
-
20
- ## 事实源
21
-
22
- - 项目全局上下文:`project_context/global.md`
23
- - 架构上下文:`project_context/architecture.md`(克制、最小,只记录系统边界、组件关系和长期约束)
24
- - Context 图谱:`project_context/context.toml`(Schema v4 默认事实源;声明产品域 area/context_unit、role、触发条件和按需读取策略)
25
- - 产品域 / context unit 上下文:`project_context/areas/**/*.md`
26
- - 产品质量事实:项目自己的代码、测试、smoke、CI、hidden probe 或人工验收
27
-
28
- ## 工作规则
29
-
30
- 1. 新会话或继续工作时,先读取 `project_context/global.md`、`project_context/architecture.md` 和 `project_context/context.toml`;按其中 default area 和触发条件读取相关 context。
31
- 2. 第一处代码编辑前先做轻量变更分类,不按固定时长计时。若任务涉及 Web 页面、前端布局、UI/UX、产品模块边界或信息应该放在哪个页面 / 模块,先做页面产品定位检查,再完成变更分类:用户在这个页面要完成什么判断,产品必须提供哪些信息 / 动作 / 反馈,哪些信息不应常驻,哪些属于下游消费层 / 运维层 / 详情层 / 其他页面,当前布局和信息密度是否匹配页面任务。若 UI 改动涉及输入、选择、搜索、筛选、表单/配置、调度/时间窗口、预算/配额/限流或加载/空态/错误态,按产品/UIUX Skill 的控件任务框架做轻量检查,识别既有 Context 是否适用以及是否缺少长期页面/控件契约。多页面或多模块归属不清时,先审查全站或相关页面的信息架构,再收窄到代码模块实现。该检查是判断是否需要 context-first 的输入,不等于必须更新 Context,也不要求独立文档或新的 gate。
17
+ 5. `Context Delta: required` 则 context-first;普通 bug fix、局部样式、局部漂移修复、测试修复或 spike 默认 code-first,但一旦产生长期结论必须回写 Context。
18
+ 6. 收尾做 Contract Conformance 和 Context drift check,只报告 `Context: 已更新 ...` 或 `Context: 本次无长期事实变化`;不要把一次性证据、任务契约或实现摘要写入 Context。
19
+
20
+ ## 事实源
21
+
22
+ - 项目全局上下文:`project_context/global.md`
23
+ - 架构上下文:`project_context/architecture.md`(克制、最小,只记录系统边界、组件关系和长期约束)
24
+ - Context 图谱:`project_context/context.toml`(Schema v4 默认事实源;声明产品域 area/context_unit、role、触发条件和按需读取策略)
25
+ - 产品域 / context unit 上下文:`project_context/areas/**/*.md`
26
+ - 产品质量事实:项目自己的代码、测试、smoke、CI、hidden probe 或人工验收
27
+
28
+ ## 工作规则
29
+
30
+ 1. 新会话或继续工作时,先读取 `project_context/global.md`、`project_context/architecture.md` 和 `project_context/context.toml`;按其中 default area 和触发条件读取相关 context。
31
+ 2. 第一处代码编辑前先做轻量变更分类,不按固定时长计时。若任务涉及 Web 页面、前端布局、UI/UX、产品模块边界或信息应该放在哪个页面 / 模块,先做页面产品定位检查,再完成变更分类:用户在这个页面要完成什么判断,产品必须提供哪些信息 / 动作 / 反馈,哪些信息不应常驻,哪些属于下游消费层 / 运维层 / 详情层 / 其他页面,当前布局和信息密度是否匹配页面任务。若 UI 改动涉及输入、选择、搜索、筛选、表单/配置、调度/时间窗口、预算/配额/限流或加载/空态/错误态,按产品/UIUX Skill 的控件任务框架做轻量检查,识别既有 Context 是否适用以及是否缺少长期页面/控件契约。多页面或多模块归属不清时,先审查全站或相关页面的信息架构,再收窄到代码模块实现。该检查是判断是否需要 context-first 的输入,不等于必须更新 Context,也不要求独立文档或新的 gate。
32
32
  3. 对产品方案、UI/UX、系统设计、架构边界、API / Schema、模块设计原则、状态机或运行语义、验证设计等任务,第一处代码编辑前先编译当前任务契约:用 `Context Delta: none|required` 作为唯一正式长期事实判断点,再写本次 Task Contract,并把命中的模块设计上下文、它控制的当前选择、首选路径和 fallback / degraded path 条件写入任务契约。普通 bug fix、局部样式、小重构、局部漂移修复、测试修复或 spike 不强制编译任务契约。
33
- 4. 当新增、迁移或整理 `project_context/areas/**` 时,做 role placement scan(软约束,不做 gate):`area` / `domain` 保留产品域归属,`subdomain` 用于产品域内较小 ownership,`contract` 用于 API / schema / event / 跨域接口语义,`foundation` 用于稳定理论 / 词汇 / 背景材料,`verification` / `deployment` 用于可复用执行路径,`implementation-index` 只做代码导航索引,`decision-rationale` 记录稳定设计原因,`archive` 用于非默认读取的历史或外部材料。
34
- 5. 若任务契约声明 `Context Delta: required`,默认走 context-first:第一处代码编辑前先更新相关 `project_context/**`,写入必要且足以指导实现的长期结论,再按 Context 和 Task Contract 对齐实现、验证和收尾。
35
- 6. 普通 bug fix、局部样式、局部实现漂移修复、测试修复或探索性 spike 不更新 Context,可先改代码;一旦形成长期结论,继续对齐或交付前必须回写 `project_context/**`。
36
- 7. `project_context/**` 是项目意图、产品域职责、架构边界、集成方向、允许/禁止依赖、验证关键路径和部署关键路径的权威事实源;代码是当前实现状态的权威事实源。
37
- 8. 当代码形态、搜索结果或相邻实现与 Context 声明冲突时,把差异视为实现漂移、缺失工作或 Context 过期并显式说明;不要用当前代码形态或关键词搜索结果覆盖 Context 已声明的职责、归属或集成意图。
38
- 9. 每个有意义的方案或实现变更收尾时做 Contract Conformance 和 Context drift check:对照 Task Contract 区分实现偏差、契约遗漏或长期事实缺失;实现偏差修实现,契约遗漏回 Task Contract,长期事实缺失回 `Context Delta` 并先更新 Context。交付说明只报告轻量状态:`Context: 已更新 ...` 或 `Context: 本次无长期事实变化`;Conformance 证据属于本次交付,不写入 `project_context/**`。
39
- 10. 长期事实只写入 `project_context/**`;不要默认创建 PRD、tech plan、ADR、implementation doc、review/test/release 文档。
40
- 11. 用户明确要求“产品方案 / 产品经理 / 产品专家”、“设计稿 / UI/UX 设计方案 / 视觉专家”或“开发工程师 / 技术方案 / 开发方案 / 实现 / 实现方案 / 实施计划 / 技术专家 / 多开agent / subagent”这类角色或强产物名时,使用对应 Context authoring Skill,把长期结论写回 `project_context/**`。
41
- 12. 用户明确要求“导出尽可能详细的项目全量上下文 / 全量上下文导出 / full project context export / 当前项目代码实现 / 代码级实现导出”时,使用 `context_full_project_export` Skill;默认优先运行 `sdlc-harness export-context --all` 同时生成项目级 Context 汇总和代码级实现快照;只需要单份产物时再用 `--full` 或 `--code`;导出产物只放 `tmp/sdlc/context-exports/**`,不得放入或注册到 `project_context/**` / `project_context/context.toml`。
42
- 13. 当任务涉及设计稿、重做设计、视觉方案、设计系统、visual polish、frontend redesign 或 frontend styling,且存在可扫描的 UI 代码、页面文件、构建产物目录或本地/远程 URL 时,默认运行 `npx impeccable detect <target>` 做 Impeccable 视觉审查;没有可扫描目标、命令不可用或扫描失败时,说明原因并继续。Impeccable 不是 `validate-context` gate,也不替代截图检查、项目测试或人工判断。
43
- 14. SDLC / Harness managed surfaces 是生成资产:`AGENTS.md` managed block、`.agent/pjsdlc_managed/**`、`.agent/skills/context_product_plan/**`、`.agent/skills/context_uiux_design/**`、`.agent/skills/context_development_engineer/**` 和 `.agent/skills/context_full_project_export/**` 禁止承载项目特定规则;直接编辑会在 `sync` 时被覆盖或产生漂移。项目本地产品 / UIUX / 开发规则必须新建独立 Skill,例如 `.agent/skills/product_plan/SKILL.md`、`.agent/skills/uiux_design/SKILL.md` 或 `.agent/skills/development_engineer/SKILL.md`;当项目本地 Skill 与默认 Skill 同时适用时,优先使用更具体的项目本地 Skill。项目本地 Skill 的 front matter `description` 触发词应与本文件中的角色触发规则和对应默认 `context_*` Skill 保持一致;新增或收窄关键词时,同步更新本地 Skill 描述和项目级 agent 指引,避免 Skill 触发条件与 SDLC 工作规则漂移。
44
- 15. ADR 降级为 Context 中的 `Design Rationale`;实现说明优先写成代码注释、测试名或模块 Context 中的关键约束。
45
- 16. Harness workflow gate 只运行 `validate-context`,用于检查上下文是否可恢复;不检查 context/code 修改顺序。自动化最多提示 context-first 风险,不做阻断。
46
- 17. 产品质量由项目自己的验证入口证明;Context 只能声明验证 / 部署关键路径,不能伪造“测试已通过”或“部署已成功”。
47
- 18. Verification / Deployment Role Context 规则:area 是产品域归属;`verification` 和 `deployment` 是 area-owned 的按需读取角色,用来提高关键测试、smoke、CI、部署、云端初始化或运行拓扑路径的重复执行效率。Context 不记录一次性测试日志、完整命令输出、临时 JSON、CI artifact、测试报告、release ledger、secret、token、cookie、device id 或 raw payload;只记录特殊准备、最短命令或路径、预期阶段 / 信号、可接受 warning、已排除的重复探索点。跨产品域路径可放 project-level role Context,普通产品域路径放 owning area 下的 role Context。
48
- 19. `sync` 只刷新 managed guidance、默认 Skill 和工具;不会合并 Skill override,也不会覆盖用户新建的独立项目本地 Skill。
49
- 20. 普通项目默认只有一个 `main` area 和一个 `areas/main/verification.md`;monorepo 或 product-family 项目可在 `context.toml` 中增加多个产品域 `area` / `context_unit`,并用 `context_role` 或 manifest role 区分 `area`、`subdomain`、`contract`、`foundation`、`verification`、`deployment`、`archive`、`implementation-index` 和 `decision-rationale` 等不同 Context 类型。
50
-
51
- ## 常用命令
52
-
53
- - `make validate-context`:检查 `project_context/**` 是否足够支持 agent 恢复上下文。
54
- - `make sdlc-sync`:刷新 managed guidance、Context template、默认 Skill 和工具。
55
- - `npx --yes --package project-tiny-context-harness@latest sdlc-harness export-context --all`:同时导出临时项目级 Context 汇总和代码级实现 Markdown 到 `tmp/sdlc/context-exports/**`。
56
- - `npx --yes --package project-tiny-context-harness@latest sdlc-harness export-context --full`:导出临时项目级 Context 汇总 Markdown 到 `tmp/sdlc/context-exports/**`。
57
- - `npx --yes --package project-tiny-context-harness@latest sdlc-harness export-context --code`:导出临时代码级实现 Markdown 到 `tmp/sdlc/context-exports/**`。
58
- - `npx --yes --package project-tiny-context-harness@latest sdlc-harness doctor`:临时诊断 canonical SDLC CLI;避免裸 `npx sdlc-harness` 解析到旧包名或旧本地缓存。
33
+ 4. 当新增、迁移或整理 `project_context/areas/**` 时,做 role placement scan(软约束,不做 gate):`area` / `domain` 保留产品域归属,`subdomain` 用于产品域内较小 ownership,`contract` 用于 API / schema / event / 跨域接口语义,`foundation` 用于稳定理论 / 词汇 / 背景材料,`verification` / `deployment` 用于可复用执行路径,`implementation-index` 只做代码导航索引,`decision-rationale` 记录稳定设计原因,`archive` 用于非默认读取的历史或外部材料。
34
+ 5. 若任务契约声明 `Context Delta: required`,默认走 context-first:第一处代码编辑前先更新相关 `project_context/**`,写入必要且足以指导实现的长期结论,再按 Context 和 Task Contract 对齐实现、验证和收尾。
35
+ 6. 普通 bug fix、局部样式、局部实现漂移修复、测试修复或探索性 spike 不更新 Context,可先改代码;一旦形成长期结论,继续对齐或交付前必须回写 `project_context/**`。
36
+ 7. `project_context/**` 是项目意图、产品域职责、架构边界、集成方向、允许/禁止依赖、验证关键路径和部署关键路径的权威事实源;代码是当前实现状态的权威事实源。
37
+ 8. 当代码形态、搜索结果或相邻实现与 Context 声明冲突时,把差异视为实现漂移、缺失工作或 Context 过期并显式说明;不要用当前代码形态或关键词搜索结果覆盖 Context 已声明的职责、归属或集成意图。
38
+ 9. 每个有意义的方案或实现变更收尾时做 Contract Conformance 和 Context drift check:对照 Task Contract 区分实现偏差、契约遗漏或长期事实缺失;实现偏差修实现,契约遗漏回 Task Contract,长期事实缺失回 `Context Delta` 并先更新 Context。交付说明只报告轻量状态:`Context: 已更新 ...` 或 `Context: 本次无长期事实变化`;Conformance 证据属于本次交付,不写入 `project_context/**`。
39
+ 10. 长期事实只写入 `project_context/**`;不要默认创建 PRD、tech plan、ADR、implementation doc、review/test/release 文档。
40
+ 11. 用户明确要求“产品方案 / 产品经理 / 产品专家”、“设计稿 / UI/UX 设计方案 / 视觉专家”或“开发工程师 / 技术方案 / 开发方案 / 实现 / 实现方案 / 实施计划 / 技术专家 / 多开agent / subagent”这类角色或强产物名时,使用对应 Context authoring Skill,把长期结论写回 `project_context/**`。
41
+ 12. 用户明确要求“导出尽可能详细的项目全量上下文 / 全量上下文导出 / full project context export / 当前项目代码实现 / 代码级实现导出”时,使用 `context_full_project_export` Skill;默认优先运行 `sdlc-harness export-context --all` 同时生成项目级 Context 汇总和代码级实现快照;只需要单份产物时再用 `--full` 或 `--code`;导出产物只放 `tmp/sdlc/context-exports/**`,不得放入或注册到 `project_context/**` / `project_context/context.toml`。
42
+ 13. 当任务涉及设计稿、重做设计、视觉方案、设计系统、visual polish、frontend redesign 或 frontend styling,且存在可扫描的 UI 代码、页面文件、构建产物目录或本地/远程 URL 时,默认运行 `npx impeccable detect <target>` 做 Impeccable 视觉审查;没有可扫描目标、命令不可用或扫描失败时,说明原因并继续。Impeccable 不是 `validate-context` gate,也不替代截图检查、项目测试或人工判断。
43
+ 14. SDLC / Harness managed surfaces 是生成资产:`AGENTS.md` managed block、`.agent/pjsdlc_managed/**`、`.agent/skills/context_product_plan/**`、`.agent/skills/context_uiux_design/**`、`.agent/skills/context_development_engineer/**` 和 `.agent/skills/context_full_project_export/**` 禁止承载项目特定规则;直接编辑会在 `sync` 时被覆盖或产生漂移。项目本地产品 / UIUX / 开发规则必须新建独立 Skill,例如 `.agent/skills/product_plan/SKILL.md`、`.agent/skills/uiux_design/SKILL.md` 或 `.agent/skills/development_engineer/SKILL.md`;当项目本地 Skill 与默认 Skill 同时适用时,优先使用更具体的项目本地 Skill。项目本地 Skill 的 front matter `description` 触发词应与本文件中的角色触发规则和对应默认 `context_*` Skill 保持一致;新增或收窄关键词时,同步更新本地 Skill 描述和项目级 agent 指引,避免 Skill 触发条件与 SDLC 工作规则漂移。
44
+ 15. ADR 降级为 Context 中的 `Design Rationale`;实现说明优先写成代码注释、测试名或模块 Context 中的关键约束。
45
+ 16. Harness workflow gate 只运行 `validate-context`,用于检查上下文是否可恢复;不检查 context/code 修改顺序。自动化最多提示 context-first 风险,不做阻断。
46
+ 17. 产品质量由项目自己的验证入口证明;Context 只能声明验证 / 部署关键路径,不能伪造“测试已通过”或“部署已成功”。
47
+ 18. Verification / Deployment Role Context 规则:area 是产品域归属;`verification` 和 `deployment` 是 area-owned 的按需读取角色,用来提高关键测试、smoke、CI、部署、云端初始化或运行拓扑路径的重复执行效率。Context 不记录一次性测试日志、完整命令输出、临时 JSON、CI artifact、测试报告、release ledger、secret、token、cookie、device id 或 raw payload;只记录特殊准备、最短命令或路径、预期阶段 / 信号、可接受 warning、已排除的重复探索点。跨产品域路径可放 project-level role Context,普通产品域路径放 owning area 下的 role Context。
48
+ 19. `sync` 只刷新 managed guidance、默认 Skill 和工具;不会合并 Skill override,也不会覆盖用户新建的独立项目本地 Skill。
49
+ 20. 普通项目默认只有一个 `main` area 和一个 `areas/main/verification.md`;monorepo 或 product-family 项目可在 `context.toml` 中增加多个产品域 `area` / `context_unit`,并用 `context_role` 或 manifest role 区分 `area`、`subdomain`、`contract`、`foundation`、`verification`、`deployment`、`archive`、`implementation-index` 和 `decision-rationale` 等不同 Context 类型。
50
+
51
+ ## 常用命令
52
+
53
+ - `make validate-context`:检查 `project_context/**` 是否足够支持 agent 恢复上下文。
54
+ - `make sdlc-sync`:刷新 managed guidance、Context template、默认 Skill 和工具。
55
+ - `npx --yes --package project-tiny-context-harness@latest sdlc-harness export-context --all`:同时导出临时项目级 Context 汇总和代码级实现 Markdown 到 `tmp/sdlc/context-exports/**`。
56
+ - `npx --yes --package project-tiny-context-harness@latest sdlc-harness export-context --full`:导出临时项目级 Context 汇总 Markdown 到 `tmp/sdlc/context-exports/**`。
57
+ - `npx --yes --package project-tiny-context-harness@latest sdlc-harness export-context --code`:导出临时代码级实现 Markdown 到 `tmp/sdlc/context-exports/**`。
58
+ - `npx --yes --package project-tiny-context-harness@latest sdlc-harness doctor`:临时诊断 canonical SDLC CLI;避免裸 `npx sdlc-harness` 解析到旧包名或旧本地缓存。
@@ -1,31 +1,31 @@
1
- # Architecture Context
2
-
3
- This is the restrained architecture context. Keep only facts that help a fresh agent recover system shape, boundaries and durable constraints quickly.
4
-
5
- ## System Boundary
6
-
7
- - Describe what is inside this project and what external systems, providers or runtime assumptions sit outside it.
8
-
9
- ## Component Map
10
-
11
- - List the smallest useful set of components, areas or context units and how they relate.
12
-
13
- ## Data / Control Flow
14
-
15
- - Summarize only the durable request, event, state or data flow that is hard to infer from code alone.
16
-
17
- ## Design Rationale
18
-
19
- - Record architecture-level choices that still constrain future work; architecture boundary changes should be captured here before implementation alignment.
20
-
21
- ## Constraints And Tradeoffs
22
-
23
- - Capture performance, safety, integration, deployment or maintainability constraints that matter for future changes.
24
-
25
- ## Verification Implications
26
-
27
- - List project-specific verification entry points affected by architectural changes; do not claim tests already passed.
28
-
29
- ## Open Risks
30
-
31
- - List unresolved architectural risks or unknowns.
1
+ # Architecture Context
2
+
3
+ This is the restrained architecture context. Keep only facts that help a fresh agent recover system shape, boundaries and durable constraints quickly.
4
+
5
+ ## System Boundary
6
+
7
+ - Describe what is inside this project and what external systems, providers or runtime assumptions sit outside it.
8
+
9
+ ## Component Map
10
+
11
+ - List the smallest useful set of components, areas or context units and how they relate.
12
+
13
+ ## Data / Control Flow
14
+
15
+ - Summarize only the durable request, event, state or data flow that is hard to infer from code alone.
16
+
17
+ ## Design Rationale
18
+
19
+ - Record architecture-level choices that still constrain future work; architecture boundary changes should be captured here before implementation alignment.
20
+
21
+ ## Constraints And Tradeoffs
22
+
23
+ - Capture performance, safety, integration, deployment or maintainability constraints that matter for future changes.
24
+
25
+ ## Verification Implications
26
+
27
+ - List project-specific verification entry points affected by architectural changes; do not claim tests already passed.
28
+
29
+ ## Open Risks
30
+
31
+ - List unresolved architectural risks or unknowns.
@@ -1,14 +1,14 @@
1
- # Area Context: main
2
-
3
- ## Responsibility
4
-
5
- - Describe this product/domain area or context unit's responsibility.
6
-
7
- ## User / System Contract
8
-
9
- - Describe the external behavior, API, CLI, UI, screen state, interaction or data contract. Contract changes should be captured here before implementation alignment.
10
- - For UI/page areas, name the page responsibility, core user judgment, persistent information/actions/feedback, non-persistent information, and what belongs in downstream consumption, ops, detail or other surfaces when those facts are durable.
11
-
1
+ # Area Context: main
2
+
3
+ ## Responsibility
4
+
5
+ - Describe this product/domain area or context unit's responsibility.
6
+
7
+ ## User / System Contract
8
+
9
+ - Describe the external behavior, API, CLI, UI, screen state, interaction or data contract. Contract changes should be captured here before implementation alignment.
10
+ - For UI/page areas, name the page responsibility, core user judgment, persistent information/actions/feedback, non-persistent information, and what belongs in downstream consumption, ops, detail or other surfaces when those facts are durable.
11
+
12
12
  ## Core Data / API / State
13
13
 
14
14
  - Summarize important data structures, APIs, state transitions or rules.
@@ -23,16 +23,16 @@
23
23
  ## Key Constraints
24
24
 
25
25
  - List constraints that are not obvious from code alone, including product rules, responsive/a11y needs or visual boundaries.
26
-
27
- ## Code Entry Points
28
-
29
- - `src/` or the concrete file/function entry points.
30
-
31
- ## Related Role Context
32
-
33
- - Verification paths live in this area's `verification` role Context, such as `project_context/areas/main/verification.md`.
34
- - Deployment/runtime/bootstrap paths live in this area's optional `deployment` role Context when those facts exist.
35
-
36
- ## Open Risks
37
-
38
- - List unresolved risks or blockers.
26
+
27
+ ## Code Entry Points
28
+
29
+ - `src/` or the concrete file/function entry points.
30
+
31
+ ## Related Role Context
32
+
33
+ - Verification paths live in this area's `verification` role Context, such as `project_context/areas/main/verification.md`.
34
+ - Deployment/runtime/bootstrap paths live in this area's optional `deployment` role Context when those facts exist.
35
+
36
+ ## Open Risks
37
+
38
+ - List unresolved risks or blockers.
@@ -1,27 +1,27 @@
1
- # Schema v4 Minimal Context graph manifest.
2
- # Keep the default product/domain area for ordinary projects. Role context nodes
3
- # are read-purpose slices owned by an area or, only when cross-domain, by the project root.
4
- # When migrating deep files under project_context/areas/**, refine obvious
5
- # contract/foundation/subdomain/verification/deployment/implementation-index/
6
- # decision-rationale/archive files into [[context]] entries instead of keeping
7
- # every Markdown file as an [[areas]] product owner.
8
-
9
- [[areas]]
10
- id = "main"
11
- root = "."
12
- context = "project_context/areas/main.md"
13
- kind = "app"
14
- default = true
15
-
16
- [[context]]
17
- path = "project_context/areas/main/verification.md"
18
- role = "verification"
19
- read_policy = "default"
20
- triggers = ["test", "verify", "verification", "smoke", "ci"]
21
-
22
- # Example optional node:
23
- # [[context]]
24
- # path = "project_context/areas/main/deployment.md"
25
- # role = "deployment"
26
- # read_policy = "on-demand"
27
- # triggers = ["deploy", "deployment", "runtime", "cloud", "docker"]
1
+ # Schema v4 Minimal Context graph manifest.
2
+ # Keep the default product/domain area for ordinary projects. Role context nodes
3
+ # are read-purpose slices owned by an area or, only when cross-domain, by the project root.
4
+ # When migrating deep files under project_context/areas/**, refine obvious
5
+ # contract/foundation/subdomain/verification/deployment/implementation-index/
6
+ # decision-rationale/archive files into [[context]] entries instead of keeping
7
+ # every Markdown file as an [[areas]] product owner.
8
+
9
+ [[areas]]
10
+ id = "main"
11
+ root = "."
12
+ context = "project_context/areas/main.md"
13
+ kind = "app"
14
+ default = true
15
+
16
+ [[context]]
17
+ path = "project_context/areas/main/verification.md"
18
+ role = "verification"
19
+ read_policy = "default"
20
+ triggers = ["test", "verify", "verification", "smoke", "ci"]
21
+
22
+ # Example optional node:
23
+ # [[context]]
24
+ # path = "project_context/areas/main/deployment.md"
25
+ # role = "deployment"
26
+ # read_policy = "on-demand"
27
+ # triggers = ["deploy", "deployment", "runtime", "cloud", "docker"]
@@ -1,35 +1,35 @@
1
- # Deployment Context: main
2
-
3
- This optional role Context records critical repeat-execution paths for deploy, runtime bootstrap, cloud initialization and operational recovery. Keep it minimal and durable.
4
-
5
- ## Owner
6
-
7
- - Owning area: `main`.
8
-
9
- ## Runtime Topology
10
-
11
- - List durable service distribution only when it matters for rerunning deploy or bootstrap, such as Web/API/worker/Redis/DB/Docker/cloud instance boundaries.
12
-
13
- ## Deployment Paths
14
-
15
- - List the shortest deploy, CI/CD, bootstrap, migration, health-check or rollback/degradation command/path.
16
-
17
- ## Required Preparation
18
-
19
- - List only durable setup such as cloud resources, env files, compose profiles, secret mounting names or database initialization steps. Do not store secret values.
20
-
21
- ## Expected Signals
22
-
23
- - Name health checks, status transitions, URLs, queues, containers or logs-at-a-glance that show the path reached the intended stage.
24
-
25
- ## Acceptable Warnings
26
-
27
- - List known benign warnings or slow-start states.
28
-
29
- ## Excluded Dead Ends
30
-
31
- - List previously ruled-out deploy/bootstrap paths only when remembering them prevents repeated wasted work.
32
-
33
- ## Forbidden Content
34
-
35
- - Do not record one-off logs, full command output, CI artifacts, release ledgers, secrets, tokens, cookies, device ids, raw payloads or claims that deployment already succeeded.
1
+ # Deployment Context: main
2
+
3
+ This optional role Context records critical repeat-execution paths for deploy, runtime bootstrap, cloud initialization and operational recovery. Keep it minimal and durable.
4
+
5
+ ## Owner
6
+
7
+ - Owning area: `main`.
8
+
9
+ ## Runtime Topology
10
+
11
+ - List durable service distribution only when it matters for rerunning deploy or bootstrap, such as Web/API/worker/Redis/DB/Docker/cloud instance boundaries.
12
+
13
+ ## Deployment Paths
14
+
15
+ - List the shortest deploy, CI/CD, bootstrap, migration, health-check or rollback/degradation command/path.
16
+
17
+ ## Required Preparation
18
+
19
+ - List only durable setup such as cloud resources, env files, compose profiles, secret mounting names or database initialization steps. Do not store secret values.
20
+
21
+ ## Expected Signals
22
+
23
+ - Name health checks, status transitions, URLs, queues, containers or logs-at-a-glance that show the path reached the intended stage.
24
+
25
+ ## Acceptable Warnings
26
+
27
+ - List known benign warnings or slow-start states.
28
+
29
+ ## Excluded Dead Ends
30
+
31
+ - List previously ruled-out deploy/bootstrap paths only when remembering them prevents repeated wasted work.
32
+
33
+ ## Forbidden Content
34
+
35
+ - Do not record one-off logs, full command output, CI artifacts, release ledgers, secrets, tokens, cookies, device ids, raw payloads or claims that deployment already succeeded.
@@ -1,53 +1,53 @@
1
- # Project / Delivery Context
2
-
3
- ## Project Goal
4
-
5
- - Describe the user-visible goal this project is trying to achieve.
6
-
7
- ## Non-goals / Boundaries
8
-
9
- - List what this project intentionally does not do.
10
-
11
- ## Background
12
-
13
- - Capture the minimum background a fresh agent needs before changing code.
14
-
15
- ## Design Rationale
16
-
17
- - Record durable choices that are hard to infer from code or tests. Classify changes before implementation; if a change alters product ownership/plans, module responsibilities, information architecture, API/Schema, state/scheduler semantics, cross-area boundaries, verification role paths or deployment role paths, update Context before code with enough durable context to guide implementation.
18
-
19
- ## Architecture Context
20
-
21
- - Link to `project_context/architecture.md`; keep architecture notes minimal and focused on boundaries, components and constraints that are not obvious from code.
22
-
23
- ## Context Graph
24
-
25
- - Link to `project_context/context.toml` and keep its default area, role, trigger, read policy and boundary metadata aligned with this Context.
26
- - When adding or reorganizing files under `project_context/areas/**`, run a soft role placement scan before registering every Markdown file as an area: product ownership stays in `area` / `domain` / `subdomain`; contracts, foundations, verification, deployment, implementation indexes, decision rationale and archives should use role Context when that better fits the reading purpose.
27
-
28
- ## Product / Delivery Brief
29
-
30
- - Capture durable product goals, users, core flows, acceptance signals and non-goals.
31
-
32
- ## UX / Screen Brief
33
-
34
- - Capture durable screen, flow, interaction, responsive and accessibility facts. Use `DESIGN.md` for visual identity and design tokens when needed.
35
- - For web/front-end surfaces, record durable page responsibilities, core user judgments, persistent information boundaries and cross-page or cross-layer ownership when they guide future changes.
36
-
37
- ## Verification Entry Points
38
-
39
- - Point to the default verification context for repeatable test, smoke, CI or validation paths.
40
- - Project-level cross-domain verification may live here only as a short index; execution details belong in `verification` role Context.
41
-
42
- ## Current State
43
-
44
- - Summarize what is implemented, blocked or risky right now.
45
-
46
- ## Next Safe Action
47
-
48
- - State the safest next step for a fresh agent, including whether the next change should update Context before code.
49
-
50
- ## Context Index
51
-
52
- - [main](areas/main.md)
53
- - [main verification](areas/main/verification.md)
1
+ # Project / Delivery Context
2
+
3
+ ## Project Goal
4
+
5
+ - Describe the user-visible goal this project is trying to achieve.
6
+
7
+ ## Non-goals / Boundaries
8
+
9
+ - List what this project intentionally does not do.
10
+
11
+ ## Background
12
+
13
+ - Capture the minimum background a fresh agent needs before changing code.
14
+
15
+ ## Design Rationale
16
+
17
+ - Record durable choices that are hard to infer from code or tests. Classify changes before implementation; if a change alters product ownership/plans, module responsibilities, information architecture, API/Schema, state/scheduler semantics, cross-area boundaries, verification role paths or deployment role paths, update Context before code with enough durable context to guide implementation.
18
+
19
+ ## Architecture Context
20
+
21
+ - Link to `project_context/architecture.md`; keep architecture notes minimal and focused on boundaries, components and constraints that are not obvious from code.
22
+
23
+ ## Context Graph
24
+
25
+ - Link to `project_context/context.toml` and keep its default area, role, trigger, read policy and boundary metadata aligned with this Context.
26
+ - When adding or reorganizing files under `project_context/areas/**`, run a soft role placement scan before registering every Markdown file as an area: product ownership stays in `area` / `domain` / `subdomain`; contracts, foundations, verification, deployment, implementation indexes, decision rationale and archives should use role Context when that better fits the reading purpose.
27
+
28
+ ## Product / Delivery Brief
29
+
30
+ - Capture durable product goals, users, core flows, acceptance signals and non-goals.
31
+
32
+ ## UX / Screen Brief
33
+
34
+ - Capture durable screen, flow, interaction, responsive and accessibility facts. Use `DESIGN.md` for visual identity and design tokens when needed.
35
+ - For web/front-end surfaces, record durable page responsibilities, core user judgments, persistent information boundaries and cross-page or cross-layer ownership when they guide future changes.
36
+
37
+ ## Verification Entry Points
38
+
39
+ - Point to the default verification context for repeatable test, smoke, CI or validation paths.
40
+ - Project-level cross-domain verification may live here only as a short index; execution details belong in `verification` role Context.
41
+
42
+ ## Current State
43
+
44
+ - Summarize what is implemented, blocked or risky right now.
45
+
46
+ ## Next Safe Action
47
+
48
+ - State the safest next step for a fresh agent, including whether the next change should update Context before code.
49
+
50
+ ## Context Index
51
+
52
+ - [main](areas/main.md)
53
+ - [main verification](areas/main/verification.md)
@@ -1,32 +1,32 @@
1
- # Verification Context: main
2
-
3
- This role Context records critical repeat-execution paths for the owning area. Keep it minimal: enough for a future agent to rerun verification without rediscovering setup, not a test report.
4
-
5
- ## Owner
6
-
7
- - Owning area: `main`.
8
-
1
+ # Verification Context: main
2
+
3
+ This role Context records critical repeat-execution paths for the owning area. Keep it minimal: enough for a future agent to rerun verification without rediscovering setup, not a test report.
4
+
5
+ ## Owner
6
+
7
+ - Owning area: `main`.
8
+
9
9
  ## Verification Paths
10
10
 
11
11
  - `npm test` or the shortest project-specific test, smoke, CI, probe or validation command.
12
12
  - Verification paths are reusable execution instances, not independent definitions of the verification target. For capability, metric or acceptance claims, first use the owning module's design Context to decide what claim should be proven, then choose the command or probe.
13
-
14
- ## Required Preparation
15
-
16
- - List only durable setup such as services, env files, fixtures, local runtimes or external dependencies needed before rerun.
17
-
18
- ## Expected Signals
19
-
20
- - Name the stage, health check, status, artifact shape or observable signal that means the path reached the intended point.
21
-
22
- ## Acceptable Warnings
23
-
24
- - List warnings that are expected and should not trigger repeated investigation.
25
-
26
- ## Excluded Dead Ends
27
-
28
- - List previously ruled-out commands, providers, endpoints or setup paths only when remembering them prevents repeated wasted work.
29
-
30
- ## Forbidden Content
31
-
32
- - Do not record one-off logs, full command output, temporary JSON, CI artifacts, test reports, secrets, tokens, cookies, device ids, raw payloads or pass/fail claims.
13
+
14
+ ## Required Preparation
15
+
16
+ - List only durable setup such as services, env files, fixtures, local runtimes or external dependencies needed before rerun.
17
+
18
+ ## Expected Signals
19
+
20
+ - Name the stage, health check, status, artifact shape or observable signal that means the path reached the intended point.
21
+
22
+ ## Acceptable Warnings
23
+
24
+ - List warnings that are expected and should not trigger repeated investigation.
25
+
26
+ ## Excluded Dead Ends
27
+
28
+ - List previously ruled-out commands, providers, endpoints or setup paths only when remembering them prevents repeated wasted work.
29
+
30
+ ## Forbidden Content
31
+
32
+ - Do not record one-off logs, full command output, temporary JSON, CI artifacts, test reports, secrets, tokens, cookies, device ids, raw payloads or pass/fail claims.
@@ -1 +1 @@
1
-
1
+
@@ -1,26 +1,26 @@
1
- # pjsdlc:sdlc-harness:github-workflow:begin
2
- name: Harness Gates
3
-
4
- on:
5
- pull_request:
6
- push:
7
- branches:
8
- - main
9
- workflow_dispatch:
10
- inputs:
11
- gate:
12
- description: "Make target to run"
13
- required: true
14
- default: "validate-context"
15
- type: choice
16
- options:
17
- - validate-context
18
- - validate-harness
19
-
20
- jobs:
21
- harness:
22
- runs-on: ubuntu-latest
23
- steps:
1
+ # pjsdlc:sdlc-harness:github-workflow:begin
2
+ name: Harness Gates
3
+
4
+ on:
5
+ pull_request:
6
+ push:
7
+ branches:
8
+ - main
9
+ workflow_dispatch:
10
+ inputs:
11
+ gate:
12
+ description: "Make target to run"
13
+ required: true
14
+ default: "validate-context"
15
+ type: choice
16
+ options:
17
+ - validate-context
18
+ - validate-harness
19
+
20
+ jobs:
21
+ harness:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
24
  - uses: actions/checkout@v6
25
25
  - uses: actions/setup-node@v6
26
26
  with:
@@ -33,5 +33,5 @@ jobs:
33
33
  - name: Run harness gate
34
34
  run: make "${HARNESS_GATE}"
35
35
  env:
36
- HARNESS_GATE: ${{ github.event.inputs.gate || 'validate-context' }}
37
- # pjsdlc:sdlc-harness:github-workflow:end
36
+ HARNESS_GATE: ${{ github.event.inputs.gate || 'validate-context' }}
37
+ # pjsdlc:sdlc-harness:github-workflow:end
@@ -1 +1 @@
1
-
1
+