10 lines
1.3 KiB
Markdown
10 lines
1.3 KiB
Markdown
# 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.
|