Skip to content
Closed
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
20 changes: 14 additions & 6 deletions .claude/commands/upgrade-assess.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ discovery, authorized routine commands, scoped metadata updates and specialist d
Retain effective host permissions and all non-production, scope and sensitive-action gates.

This command is **assessment only**. It never edits application code, `composer.json` or
`composer.lock`, never runs Composer install/update, database, cache, deploy or git
commands, and never reads or writes secrets or `env.php`. It writes only the assessment
`composer.lock`, never runs Composer install/update in the project, database, cache, deploy or git
commands (the one exception is the throwaway target tree below), and never reads or writes secrets or `env.php`. It writes only the assessment
data file and report documents inside the approved metadata scope. It is separate from
`/upgrade-hop` (which plans and analyses hop by hop) and can run before or after it.

Expand All @@ -39,7 +39,10 @@ Usage: `/upgrade-assess <targetVersion>` — the target must match
(the `next-steps` status helper, PHPCompatibility/PHPStan (the baseline run at the current PHP and the target-PHP run, plus the isolated latest-stable `composer require --dev phpstan/phpstan:^2.1.32` inside `.ccua/tools/phpstan/` only), one UCT scan with `--ignore-current-version-compatibility-issues`
or, when unsupported, baseline and target scans, read-only `composer_probe.py` metadata
lookups for third-party packages, normalization, controlled URL helper, read-only source
helper) and the metadata files this command will write. The user attests the instance is
helper), **the target-tree build for patch dry-runs** (the exact two `composer` commands printed
by `node .github/scripts/assess_tools.mjs tree-plan . --target <targetVersion>`, run only inside
`var/ccua/target-tree-<targetVersion>`, never in the project; uses the ambient Composer keys
implicitly, never read) and the metadata files this command will write. The user attests the instance is
local/dev non-production with no production credentials. List the ambient developer mounts
the environment reports (e.g. Warden's `~/.composer` and SSH volume) in that same approval;
they are expected, are never read, and never block or pause execution (`write-scope`,
Expand Down Expand Up @@ -74,7 +77,8 @@ the report; empty differential rows are not proof that no incompatibilities exis

Ask the user (one form) for: customer/project name, audience (names/roles), objective,
whether the extension use/business-owner comments can be provided, and the location of a
pristine target-version tree for patch dry runs if one exists. Anything not provided is
pristine target-version tree for patch dry runs if one exists. If none exists, the tree build
listed in the Step 0 approval is used; do not ask a second time. Anything not provided is
recorded as `not provided` and appears under open items.

## Step 2: Collect evidence (read-only)
Expand All @@ -95,8 +99,12 @@ in-memory assessment data model (Section 5):
Never consume an old scan to disguise a missing or failed prerequisite.
4. 3.5 Third-party modules, including the modified-vendor diff and client input list
5. 3.6 Custom modules, including removal candidates
6. 3.7 Patches (dry runs only when a pristine target tree was supplied; otherwise
`NOT ASSESSED` plus human-run commands)
6. 3.7 Patches, with an automatic dry-run: use an operator-supplied tree if given; otherwise, if the
Step 0 approval included the tree build, run `tree-plan`, execute its two commands one at a time,
then run its `thenRun` `patches` command (`--tree-kind vanilla`) and delete
`var/ccua/target-tree-<targetVersion>` afterwards. If the build was not approved or fails, mark
`UNABLE_TO_VALIDATE`, record the reason in `gaps` and give the human-run commands. The report
states the validation environment (vanilla vs upgraded project).
7. 3.8 Composer and dev-dependency proposal
8. 3.4 Core upgrade and 3.9 delivery outline and risks

Expand Down
2 changes: 1 addition & 1 deletion .claude/context/upgrade-assessment-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h2>4. Custom Modules Compatibility</h2>
<div class="tab-content">
<h2>5. Patches Compatibility</h2>
<div class="filters" data-table="patch-table">{{PATCH_FILTERS}}</div>
<table id="patch-table"><thead><tr><th>#</th><th>Patch</th><th>Type</th><th>Target</th><th>Purpose</th><th>Fixed in target</th><th>Applies to target</th><th>Action</th><th>Effort</th><th>Comments</th></tr></thead><tbody>{{PATCH_ROWS}}</tbody></table>
<table id="patch-table"><thead><tr><th>#</th><th>Patch</th><th>Type</th><th>Target</th><th>Purpose</th><th>Fixed in target</th><th>Applies to target (dry-run, environment)</th><th>Action (recommendation)</th><th>Effort</th><th>Comments</th></tr></thead><tbody>{{PATCH_ROWS}}</tbody></table>
{{PATCH_NOTES}}
</div>

Expand Down
Loading