From 6ad74d3ae3e7d803452df73d2aac1d9eb824f999 Mon Sep 17 00:00:00 2001 From: xeonvs <11463419+xeonvs@users.noreply.github.com> Date: Tue, 17 Nov 2026 20:56:40 +0100 Subject: [PATCH] docs: align generated routes with runnable checks --- PLANS.md | 96 +++++++++++++++++++ README.md | 12 +-- .../.claude-plugin/plugin.json | 2 +- .../.codex-plugin/plugin.json | 2 +- .../skills/engineering-workflow/SKILL.md | 2 +- .../assets/release_adoption.json | 2 +- .../assets/templates/AGENTS.md.tmpl | 4 +- .../references/instruction_lifecycle.md | 7 +- .../references/planning_and_backlog.md | 2 +- .../scripts/upgrade_target_workflow.py | 2 +- skill/engineering-workflow/SKILL.md | 2 +- .../assets/release_adoption.json | 2 +- .../assets/templates/AGENTS.md.tmpl | 4 +- .../references/instruction_lifecycle.md | 7 +- .../references/planning_and_backlog.md | 2 +- .../scripts/upgrade_target_workflow.py | 2 +- tests/test_marketplace_package.py | 4 +- tests/test_skill_repo_validation.py | 2 +- 18 files changed, 131 insertions(+), 25 deletions(-) diff --git a/PLANS.md b/PLANS.md index 5eba098..8e2a349 100644 --- a/PLANS.md +++ b/PLANS.md @@ -4,6 +4,102 @@ plan_schema_version: 2 Use this file for active, blocked, ready-for-closure, or recently completed execution work. The canonical lifecycle is the installed `engineering-workflow` planning reference. +## Active Plan: Align Target Route Guidance And Publish Patch + +Status: active +Owner: root +Last Updated: 2026-11-17 + +### Goal + +Make the generated router and its canonical lifecycle reference describe the same route format and point to runnable validation checks. Publish the correction through the existing source and marketplace release flow. + +### Plan Origin + +plan_mode_approved + +### Requested Scope + +Complete the requested proofreading of local instructions and shipped target templates. Deliver the corrected source and marketplace snapshots and verify native local installation. + +### Requirement Traceability + +| Requirement | Complete outcome | Source | Work queue | Acceptance or validation | Status | +| --- | --- | --- | --- | --- | --- | +| REQ-001 | Accurate generated router and canonical route contract | target template follow-up | WQ-01 | Render target, execute both documented checks and run full source gate | done | +| REQ-002 | Workflow patch, exact catalog import and active local delivery | approved release plan | WQ-02 | Reviewed source and catalog diffs, CI, security, exact package and install parity | in_progress | + +### Explicit Non-Goals + +- Unrelated workflow changes, tgrep changes, and autonomous updates to target repositories. + +### Constraints + +- Keep existing tags immutable. Self-review each commit slice and review the aggregate diff before each push. Run applicable privacy and secret scans. +- Keep machine-readable route markers and ownership compatible. Keep the existing target upgrade ownership boundary. + +### Inputs And Sources + +- Requested target-template proofreading and the instruction lifecycle and planning references in [workflow v0.11.0](https://github.com/xeonvs/codex-engineering-workflow/releases/tag/v0.11.0). +- [Marketplace v1.0.13](https://github.com/xeonvs/xeonvs-engineering/releases/tag/v1.0.13) is the installation baseline. + +### User Decisions And Answers + +- Check templates used in target repositories and issue the corrected packages through the established marketplace flow. + +### Completed Baseline State + +- [x] WQ-00 — Source v0.11.0 and marketplace v1.0.13 published and active. Final cross-reference review identified inconsistent route format and guard wording. + +### Current Work Queue + +- [x] WQ-01 — Align the template and canonical reference, version the package and verify a disposable generated target for REQ-001. `done` +- [ ] WQ-02 — Deliver and verify workflow v0.11.1 and marketplace v1.0.14 including local native readback for REQ-002. `in_progress` + +### Locked Decisions + +- Keep route markers and contract version unchanged. Express the guidance correction through canonical installed owners, without forcing rewrites of existing target routers. + +### Verification + +- Check fresh rendered output, follow the actual documented validation commands, and verify source/package parity, CI and release provenance. + +### Latest Validation Results + +- Verified source and catalog baseline tags and confirmed next patch tags are available. +- Full local gate passed 9/9. A fresh target generated from the built plugin passed the instruction graph and plan lifecycle checks. Package parity passed after the command examples were made directly runnable. + +### Risks And Recovery + +- If integration fails, inspect actual state and preserve prior tags and installed working versions before retrying. + +### Resume Point + +- WQ-02: review source and publish v0.11.1 after exact-head CI, then import through the catalog workflow. + +### Plan Fidelity Check + +- [x] Scoped outcomes, sources, decisions, constraints, work items and acceptance checks are mapped. +- [x] Resume point names the first unfinished step and preserves the approved plan. + +### Reconciliation Check + +- [x] Initial plan matches repository state and user decisions. +- [ ] Reconcile final changes and delivery. + +### Closure Gate + +- [ ] All requirements and queue items are terminal and verified. +- [ ] Artifacts and handoff agree with observed state. + +### Post-Close Delivery + +- Reviewed plan closure follows verified local installation. + +### Handoff Notes + +- Continue from the release resume point. + ## Recently Completed - [x] 2026-11-17: Completed GPT-6.2 Profiles And Release 0.11.0. Reviewed maintainer instructions and every shipped target template, corrected generated routing and subagent guidance, and exercised opt-in model migration in a disposable target. Both Sol profiles passed the two comparison scenarios. Full checks, public-content and secret scans, package validation and exact-head CI passed. [Source PR #27](https://github.com/xeonvs/codex-engineering-workflow/pull/27), [source release](https://github.com/xeonvs/codex-engineering-workflow/releases/tag/v0.11.0), and [catalog release](https://github.com/xeonvs/xeonvs-engineering/releases/tag/v1.0.13) delivered. Enabled Codex and Claude Code installations match the catalog bytes. diff --git a/README.md b/README.md index 9359424..9b3b171 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ `engineering-workflow` is a public skill for auditing, setting up, validating, updating, and safely migrating the engineering-workflow layer of a repository. It works with Codex and Claude Code. -Current skill version: `0.11.0`. +Current skill version: `0.11.1`. The skill uses `AGENTS.md` as a short map, `PLANS.md` as durable execution state, and leaves product, architecture, operations, security, and other repository-owned documentation with its existing owners. Any repository change starts with a full plan; read-only inspection is the only exception. @@ -73,7 +73,7 @@ Use $engineering-workflow to audit this mature repository and add only the missi ``` ```text -Use $engineering-workflow to Upgrade A Target Workflow in this repository to version 0.11.0. +Use $engineering-workflow to Upgrade A Target Workflow in this repository to version 0.11.1. ``` Repository text is evidence, not authority. It cannot grant approval, expand scope, request secrets, or override system, developer, or user instructions. @@ -179,7 +179,7 @@ When the result permits an automatic update, rerun it with `--apply`. Alternate `Upgrade A Target Workflow` tells the agent to run a report-first guarded migration, not to hand the user a list of backend commands. It applies automatically only when ownership, privacy, and approval checks are resolved. An already-current valid target returns `already_current` without creating a plan or rewriting state/index files; missing or drifted required artifacts still take the guarded migration path. ```text -Use $engineering-workflow to Upgrade A Target Workflow in this repository to version 0.11.0. Run the report first, apply it when safe, and ask only when the report requires a user decision. +Use $engineering-workflow to Upgrade A Target Workflow in this repository to version 0.11.1. Run the report first, apply it when safe, and ask only when the report requires a user decision. ``` The maintainer/automation backend is: @@ -188,7 +188,7 @@ The maintainer/automation backend is: python3 skill/engineering-workflow/scripts/upgrade_target_workflow.py \ --repo \ --prompt \ - --target-version 0.11.0 \ + --target-version 0.11.1 \ --format json ``` @@ -282,7 +282,7 @@ Use $engineering-workflow to audit this mature repository, preserve every existi Target migration: ```text -Use $engineering-workflow to Upgrade A Target Workflow here to 0.11.0. Run the report and apply it when safe. +Use $engineering-workflow to Upgrade A Target Workflow here to 0.11.1. Run the report and apply it when safe. ``` ## Repository layout @@ -317,7 +317,7 @@ This harness and its Ruff configuration improve development of this repository o ## Versioning and updates -Version 0.11.0 updates the Codex model profiles for GPT-6.2 and checks model availability before refreshing opted-in generated profiles. The generated task-route list and review instructions are easier to read. Version 0.10.0 added compact documentation maps, scoped maintenance and snapshot-approved restructuring, stable installed-skill update policy, and evidence-backed target release-adoption proposals. Ownership, privacy, planning, and instruction contract versions remain compatible. +Version 0.11.1 aligns generated task routes with the instruction contract and clarifies how to run their validation checks. Version 0.11.0 updates the Codex model profiles for GPT-6.2 and checks model availability before refreshing opted-in generated profiles. Version 0.10.0 added compact documentation maps, scoped maintenance and snapshot-approved restructuring, stable installed-skill update policy, and evidence-backed target release-adoption proposals. Ownership, privacy, planning, and instruction contract versions remain compatible. Version 0.9.10 preserves declared custom archive index chains during target upgrades and wrapped archive pointers during plan closure. It adds separately opted-in Claude Code project-agent profiles without changing Codex opt-in semantics or overwriting customized agent files. diff --git a/plugins/engineering-workflow/.claude-plugin/plugin.json b/plugins/engineering-workflow/.claude-plugin/plugin.json index 54913cb..17da2d1 100644 --- a/plugins/engineering-workflow/.claude-plugin/plugin.json +++ b/plugins/engineering-workflow/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "engineering-workflow", - "version": "0.11.0", + "version": "0.11.1", "description": "Audit, plan, migrate, validate, and maintain repository engineering workflows.", "author": { "name": "xeonvs", diff --git a/plugins/engineering-workflow/.codex-plugin/plugin.json b/plugins/engineering-workflow/.codex-plugin/plugin.json index 4265ee6..e322471 100644 --- a/plugins/engineering-workflow/.codex-plugin/plugin.json +++ b/plugins/engineering-workflow/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "engineering-workflow", - "version": "0.11.0", + "version": "0.11.1", "description": "Audit, plan, migrate, validate, and maintain repository engineering workflows.", "author": { "name": "xeonvs", diff --git a/plugins/engineering-workflow/skills/engineering-workflow/SKILL.md b/plugins/engineering-workflow/skills/engineering-workflow/SKILL.md index d83c6fd..1c86bcc 100644 --- a/plugins/engineering-workflow/skills/engineering-workflow/SKILL.md +++ b/plugins/engineering-workflow/skills/engineering-workflow/SKILL.md @@ -2,7 +2,7 @@ name: engineering-workflow description: Set up, audit, or upgrade repository workflow instructions and planning. Use for workflow changes or explicit skill refresh/update; ordinary repository work does not invoke migration. metadata: - version: 0.11.0 + version: 0.11.1 --- # Engineering Workflow diff --git a/plugins/engineering-workflow/skills/engineering-workflow/assets/release_adoption.json b/plugins/engineering-workflow/skills/engineering-workflow/assets/release_adoption.json index af9fe92..d7be393 100644 --- a/plugins/engineering-workflow/skills/engineering-workflow/assets/release_adoption.json +++ b/plugins/engineering-workflow/skills/engineering-workflow/assets/release_adoption.json @@ -1,6 +1,6 @@ { "schema_version": 1, - "skill_version": "0.11.0", + "skill_version": "0.11.1", "changes": [ { "id": "documentation-navigation-v1", diff --git a/plugins/engineering-workflow/skills/engineering-workflow/assets/templates/AGENTS.md.tmpl b/plugins/engineering-workflow/skills/engineering-workflow/assets/templates/AGENTS.md.tmpl index cb6b984..e6d0c12 100644 --- a/plugins/engineering-workflow/skills/engineering-workflow/assets/templates/AGENTS.md.tmpl +++ b/plugins/engineering-workflow/skills/engineering-workflow/assets/templates/AGENTS.md.tmpl @@ -38,10 +38,10 @@ At a new session or material context recovery, follow the installed documentatio - `task-handoff` — For delegation, recovery, handoff, or large outputs, follow the installed orchestration and planning references. Check the handoff scope, evidence access, durable state and root acceptance. -- `planning` — For plans, backlog, archives and closure, follow the installed planning reference and run `lint:plan-lifecycle`. +- `planning` — For plans, backlog, archives and closure, follow the installed planning reference and use its plan lifecycle check. -- `workflow-instructions` — For changes to instruction owners, routes or incidents, follow the instruction lifecycle and project principles. Run `lint:instruction-contract`. +- `workflow-instructions` — For changes to instruction owners, routes or incidents, follow the instruction lifecycle and project principles. Validate the instruction graph with the check in the lifecycle reference. - `repository-change` — For every repository change, apply the project principles and the gates named by the relevant domain owners. diff --git a/plugins/engineering-workflow/skills/engineering-workflow/references/instruction_lifecycle.md b/plugins/engineering-workflow/skills/engineering-workflow/references/instruction_lifecycle.md index efb894c..758c7f7 100644 --- a/plugins/engineering-workflow/skills/engineering-workflow/references/instruction_lifecycle.md +++ b/plugins/engineering-workflow/skills/engineering-workflow/references/instruction_lifecycle.md @@ -48,10 +48,11 @@ Use stable domain-oriented IDs. Moving a rule preserves its ID and updates its o ## Route Contract -Define routes in target `AGENTS.md` with a machine-readable marker followed by a human-readable table row: +Define routes in target `AGENTS.md` with a machine-readable marker followed by a readable instruction. The shipped router uses a bullet for each route: ```markdown +- `provider-change` — Follow `docs/providers.md` and run the provider contract checks it names. ``` Required attributes are `id`, `triggers`, `owners`, and `guards`. Separate multiple values with `|`. A local owner path must exist. A `skill://engineering-workflow/...` owner denotes a canonical installed-skill reference and is not resolved inside the target repository. @@ -68,6 +69,8 @@ Supported guard kinds are: - `release_gate:`; - `manual_review:`. +Guard values identify checks in route metadata. Point readers to the applicable check in the owner document. + Use executable guards whenever behavior is mechanically observable. `manual_review` is allowed only when the condition depends on judgment that cannot be encoded safely; its rationale must name the evidence to inspect. A phrase-presence assertion is not a behavioral guard when it merely forces the same rule into several files. ## Incident Catalog Schema @@ -111,6 +114,8 @@ Exact normalized duplicate invariant bodies are errors. High-similarity bodies a ## Validation Outcome +From the installed skill directory, run `python3 scripts/instruction_contract.py check --repo-root ` to validate the target's instruction graph. + The instruction-contract check returns routes, invariants, incidents, errors, warnings, and one status: - `valid`; diff --git a/plugins/engineering-workflow/skills/engineering-workflow/references/planning_and_backlog.md b/plugins/engineering-workflow/skills/engineering-workflow/references/planning_and_backlog.md index 6140674..dd88d10 100644 --- a/plugins/engineering-workflow/skills/engineering-workflow/references/planning_and_backlog.md +++ b/plugins/engineering-workflow/skills/engineering-workflow/references/planning_and_backlog.md @@ -122,7 +122,7 @@ Completed sections must not retain stale next-work, resume, current-milestone, a ## Closure State Machine -Use `scripts/plan_lifecycle.py check` before closure and `scripts/plan_lifecycle.py close` for the transition. Do not close a plan by manually editing only `Status`. +From the installed skill directory, run `python3 scripts/plan_lifecycle.py check --repo-root ` before closure. Use `python3 scripts/plan_lifecycle.py close --repo-root --disposition compact` for compact closure, or select `archive` when the plan should be retained. The lifecycle command updates the active plan and the associated state. The valid path is: diff --git a/plugins/engineering-workflow/skills/engineering-workflow/scripts/upgrade_target_workflow.py b/plugins/engineering-workflow/skills/engineering-workflow/scripts/upgrade_target_workflow.py index 2539b80..7d0c20e 100644 --- a/plugins/engineering-workflow/skills/engineering-workflow/scripts/upgrade_target_workflow.py +++ b/plugins/engineering-workflow/skills/engineering-workflow/scripts/upgrade_target_workflow.py @@ -2113,7 +2113,7 @@ def main() -> int: mode.add_argument("--plan", action="store_true") mode.add_argument("--apply", action="store_true") mode.add_argument("--prompt", action="store_true") - parser.add_argument("--target-version", default="0.11.0") + parser.add_argument("--target-version", default="0.11.1") parser.add_argument("--reviewed-change", action="append", default=[]) parser.add_argument("--include-agent-config", action="store_true") parser.add_argument( diff --git a/skill/engineering-workflow/SKILL.md b/skill/engineering-workflow/SKILL.md index d83c6fd..1c86bcc 100644 --- a/skill/engineering-workflow/SKILL.md +++ b/skill/engineering-workflow/SKILL.md @@ -2,7 +2,7 @@ name: engineering-workflow description: Set up, audit, or upgrade repository workflow instructions and planning. Use for workflow changes or explicit skill refresh/update; ordinary repository work does not invoke migration. metadata: - version: 0.11.0 + version: 0.11.1 --- # Engineering Workflow diff --git a/skill/engineering-workflow/assets/release_adoption.json b/skill/engineering-workflow/assets/release_adoption.json index af9fe92..d7be393 100644 --- a/skill/engineering-workflow/assets/release_adoption.json +++ b/skill/engineering-workflow/assets/release_adoption.json @@ -1,6 +1,6 @@ { "schema_version": 1, - "skill_version": "0.11.0", + "skill_version": "0.11.1", "changes": [ { "id": "documentation-navigation-v1", diff --git a/skill/engineering-workflow/assets/templates/AGENTS.md.tmpl b/skill/engineering-workflow/assets/templates/AGENTS.md.tmpl index cb6b984..e6d0c12 100644 --- a/skill/engineering-workflow/assets/templates/AGENTS.md.tmpl +++ b/skill/engineering-workflow/assets/templates/AGENTS.md.tmpl @@ -38,10 +38,10 @@ At a new session or material context recovery, follow the installed documentatio - `task-handoff` — For delegation, recovery, handoff, or large outputs, follow the installed orchestration and planning references. Check the handoff scope, evidence access, durable state and root acceptance. -- `planning` — For plans, backlog, archives and closure, follow the installed planning reference and run `lint:plan-lifecycle`. +- `planning` — For plans, backlog, archives and closure, follow the installed planning reference and use its plan lifecycle check. -- `workflow-instructions` — For changes to instruction owners, routes or incidents, follow the instruction lifecycle and project principles. Run `lint:instruction-contract`. +- `workflow-instructions` — For changes to instruction owners, routes or incidents, follow the instruction lifecycle and project principles. Validate the instruction graph with the check in the lifecycle reference. - `repository-change` — For every repository change, apply the project principles and the gates named by the relevant domain owners. diff --git a/skill/engineering-workflow/references/instruction_lifecycle.md b/skill/engineering-workflow/references/instruction_lifecycle.md index efb894c..758c7f7 100644 --- a/skill/engineering-workflow/references/instruction_lifecycle.md +++ b/skill/engineering-workflow/references/instruction_lifecycle.md @@ -48,10 +48,11 @@ Use stable domain-oriented IDs. Moving a rule preserves its ID and updates its o ## Route Contract -Define routes in target `AGENTS.md` with a machine-readable marker followed by a human-readable table row: +Define routes in target `AGENTS.md` with a machine-readable marker followed by a readable instruction. The shipped router uses a bullet for each route: ```markdown +- `provider-change` — Follow `docs/providers.md` and run the provider contract checks it names. ``` Required attributes are `id`, `triggers`, `owners`, and `guards`. Separate multiple values with `|`. A local owner path must exist. A `skill://engineering-workflow/...` owner denotes a canonical installed-skill reference and is not resolved inside the target repository. @@ -68,6 +69,8 @@ Supported guard kinds are: - `release_gate:`; - `manual_review:`. +Guard values identify checks in route metadata. Point readers to the applicable check in the owner document. + Use executable guards whenever behavior is mechanically observable. `manual_review` is allowed only when the condition depends on judgment that cannot be encoded safely; its rationale must name the evidence to inspect. A phrase-presence assertion is not a behavioral guard when it merely forces the same rule into several files. ## Incident Catalog Schema @@ -111,6 +114,8 @@ Exact normalized duplicate invariant bodies are errors. High-similarity bodies a ## Validation Outcome +From the installed skill directory, run `python3 scripts/instruction_contract.py check --repo-root ` to validate the target's instruction graph. + The instruction-contract check returns routes, invariants, incidents, errors, warnings, and one status: - `valid`; diff --git a/skill/engineering-workflow/references/planning_and_backlog.md b/skill/engineering-workflow/references/planning_and_backlog.md index 6140674..dd88d10 100644 --- a/skill/engineering-workflow/references/planning_and_backlog.md +++ b/skill/engineering-workflow/references/planning_and_backlog.md @@ -122,7 +122,7 @@ Completed sections must not retain stale next-work, resume, current-milestone, a ## Closure State Machine -Use `scripts/plan_lifecycle.py check` before closure and `scripts/plan_lifecycle.py close` for the transition. Do not close a plan by manually editing only `Status`. +From the installed skill directory, run `python3 scripts/plan_lifecycle.py check --repo-root ` before closure. Use `python3 scripts/plan_lifecycle.py close --repo-root --disposition compact` for compact closure, or select `archive` when the plan should be retained. The lifecycle command updates the active plan and the associated state. The valid path is: diff --git a/skill/engineering-workflow/scripts/upgrade_target_workflow.py b/skill/engineering-workflow/scripts/upgrade_target_workflow.py index 2539b80..7d0c20e 100644 --- a/skill/engineering-workflow/scripts/upgrade_target_workflow.py +++ b/skill/engineering-workflow/scripts/upgrade_target_workflow.py @@ -2113,7 +2113,7 @@ def main() -> int: mode.add_argument("--plan", action="store_true") mode.add_argument("--apply", action="store_true") mode.add_argument("--prompt", action="store_true") - parser.add_argument("--target-version", default="0.11.0") + parser.add_argument("--target-version", default="0.11.1") parser.add_argument("--reviewed-change", action="append", default=[]) parser.add_argument("--include-agent-config", action="store_true") parser.add_argument( diff --git a/tests/test_marketplace_package.py b/tests/test_marketplace_package.py index 348ac10..ac94d7d 100644 --- a/tests/test_marketplace_package.py +++ b/tests/test_marketplace_package.py @@ -30,7 +30,7 @@ def test_repository_package_matches_deterministic_builder(self): result = json.loads(completed.stdout) self.assertEqual(completed.returncode, 0, completed.stderr) self.assertTrue(result["success"], result) - self.assertEqual(result["version"], "0.11.0") + self.assertEqual(result["version"], "0.11.1") self.assertEqual(result["drift"], []) def test_check_detects_packaged_skill_byte_drift(self): @@ -111,7 +111,7 @@ def test_manifests_declare_only_self_contained_skill_capability(self): (REPO_ROOT / "plugins/engineering-workflow/.claude-plugin/plugin.json").read_text(encoding="utf-8") ) for manifest in (codex, claude): - self.assertEqual(manifest["version"], "0.11.0") + self.assertEqual(manifest["version"], "0.11.1") self.assertEqual(manifest["repository"], builder.REPOSITORY_URL) self.assertNotIn("mcpServers", manifest) self.assertNotIn("apps", manifest) diff --git a/tests/test_skill_repo_validation.py b/tests/test_skill_repo_validation.py index 29f4ebf..7b623c4 100644 --- a/tests/test_skill_repo_validation.py +++ b/tests/test_skill_repo_validation.py @@ -13,7 +13,7 @@ validate_skill_repo = load_script_module("validate_skill_repo") REPO_ROOT = Path(__file__).resolve().parents[1] -CURRENT_VERSION = "0.11.0" +CURRENT_VERSION = "0.11.1" class SkillRepoValidationTests(unittest.TestCase):