Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions PLANS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand All @@ -188,7 +188,7 @@ The maintainer/automation backend is:
python3 skill/engineering-workflow/scripts/upgrade_target_workflow.py \
--repo <target-repository> \
--prompt \
--target-version 0.11.0 \
--target-version 0.11.1 \
--format json
```

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion plugins/engineering-workflow/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/engineering-workflow/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schema_version": 1,
"skill_version": "0.11.0",
"skill_version": "0.11.1",
"changes": [
{
"id": "documentation-navigation-v1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- ew:route id="planning" triggers="PLANS.md|docs/codex/TASKS_BACKLOG.md|docs/archive/**|workflow-state plan archive|plan closure" owners="skill://engineering-workflow/references/planning_and_backlog.md" guards="lint:plan-lifecycle" -->
- `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.

<!-- ew:route id="workflow-instructions" triggers="AGENTS.md|docs/engineering/**|docs/codex/AGENT_EXECUTION_PITFALLS.md" owners="skill://engineering-workflow/references/instruction_lifecycle.md|docs/engineering/project_principles.md" guards="lint:instruction-contract" -->
- `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.

<!-- ew:route id="repository-change" triggers="**" owners="docs/engineering/project_principles.md" guards="manual_review:run repository gates mapped by the owner" -->
- `repository-change` — For every repository change, apply the project principles and the gates named by the relevant domain owners.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
<!-- ew:route id="provider-change" triggers="providers/**|integrations/**" owners="docs/providers.md" guards="test:provider-contract" -->
- `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.
Expand All @@ -68,6 +69,8 @@ Supported guard kinds are:
- `release_gate:<identifier>`;
- `manual_review:<bounded rationale>`.

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
Expand Down Expand Up @@ -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 <target>` to validate the target's instruction graph.

The instruction-contract check returns routes, invariants, incidents, errors, warnings, and one status:

- `valid`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <target>` before closure. Use `python3 scripts/plan_lifecycle.py close --repo-root <target> --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:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion skill/engineering-workflow/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion skill/engineering-workflow/assets/release_adoption.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schema_version": 1,
"skill_version": "0.11.0",
"skill_version": "0.11.1",
"changes": [
{
"id": "documentation-navigation-v1",
Expand Down
4 changes: 2 additions & 2 deletions skill/engineering-workflow/assets/templates/AGENTS.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- ew:route id="planning" triggers="PLANS.md|docs/codex/TASKS_BACKLOG.md|docs/archive/**|workflow-state plan archive|plan closure" owners="skill://engineering-workflow/references/planning_and_backlog.md" guards="lint:plan-lifecycle" -->
- `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.

<!-- ew:route id="workflow-instructions" triggers="AGENTS.md|docs/engineering/**|docs/codex/AGENT_EXECUTION_PITFALLS.md" owners="skill://engineering-workflow/references/instruction_lifecycle.md|docs/engineering/project_principles.md" guards="lint:instruction-contract" -->
- `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.

<!-- ew:route id="repository-change" triggers="**" owners="docs/engineering/project_principles.md" guards="manual_review:run repository gates mapped by the owner" -->
- `repository-change` — For every repository change, apply the project principles and the gates named by the relevant domain owners.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
<!-- ew:route id="provider-change" triggers="providers/**|integrations/**" owners="docs/providers.md" guards="test:provider-contract" -->
- `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.
Expand All @@ -68,6 +69,8 @@ Supported guard kinds are:
- `release_gate:<identifier>`;
- `manual_review:<bounded rationale>`.

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
Expand Down Expand Up @@ -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 <target>` to validate the target's instruction graph.

The instruction-contract check returns routes, invariants, incidents, errors, warnings, and one status:

- `valid`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <target>` before closure. Use `python3 scripts/plan_lifecycle.py close --repo-root <target> --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:

Expand Down
Loading
Loading