Implement FORGE-F002 context skill and snapshot commands

This commit is contained in:
rob
2026-11-17 14:19:59 +00:00
parent d01b4c0f06
commit 6217b9e8fd
12 changed files with 198 additions and 4 deletions
@@ -0,0 +1,9 @@
# Snapshot command contract
Inspect repository scripts and `AGENTS.md` before use. Preserve a working local implementation.
`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.
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.