FORGE-F013 Resolve testtask by task ID or branch

This commit is contained in:
rob
2026-11-18 16:43:25 +00:00
parent 30f6a69df5
commit 0d6761972d
8 changed files with 154 additions and 13 deletions
@@ -4,6 +4,6 @@ Inspect repository scripts and `AGENTS.md` before use. Preserve a working local
`scripts/create-chatgpt-snapshot.sh` creates a portable ZIP from the **intended source worktree**, including staged, unstaged, and permitted untracked changes. It excludes Git metadata, test worktrees, old snapshots, dependencies, caches, builds, local databases, `.env*`, keys, and credentials. Audit archive contents before sharing. Report path, source branch, and uncommitted state.
`scripts/testtask.sh <repository-task-id>` prepares or invokes a disposable manual-test candidate for the given task. Determine supported arguments from the repository's script or `--help`. Its candidate must match the source branch's tracked changes and permitted untracked files without forcing a commit or checking the same branch out twice. A stale candidate must be refreshed after edits. Runtime startup, readiness, ports, and cleanup are project-specific. Missing engine or runtime means **provisioned but blocked**, not operational. Never delete unfinished work or unrelated containers.
`scripts/testtask.sh <repository-task-id|branch-name>` prepares or invokes a disposable manual-test candidate for the given task when the repository supports both forms. Determine supported arguments from the repository's script or `--help`; historical task IDs remain valid. Resolve the identifier to one task, branch, and existing worktree; report unknown, ambiguous, or missing-worktree cases without guessing. Its candidate must match the source branch's tracked changes and permitted untracked files without forcing a commit or checking the same branch out twice. A stale candidate must be refreshed after edits. Runtime startup, readiness, ports, and cleanup are project-specific. Missing engine or runtime means **provisioned but blocked**, not operational. Never delete unfinished work or unrelated containers.
For new projects, provision both entry points and adapt testtask to the actual stack. For retrofits, inspect and retain working scripts. Keep test artifacts out of Git. Record actual validation and remaining dependencies in handoff.