2.7 KiB
Project Restore Points And Failed Attempts
Purpose
Preserve both successful project progress and useful failed attempts so future agents can restore known-good states and avoid repeating the same ineffective work.
Verified Solution Rule
When a working solution is found and verified in a project repository:
- Commit the project changes in that project repository.
- Push the commit to the appropriate project remote, usually the local Git server when available.
- For important stable states, create and push a tag.
- Update the GitHub knowledge base with:
- project repository path;
- branch;
- commit hash;
- tag name, if created;
- what was fixed or achieved;
- how it was verified;
- next safe restore command or rollback note.
Use stable tags for meaningful restore points, for example:
stable-moza-input-YYYYMMDD-HHMM
stable-ndi-mirrors-YYYYMMDD-HHMM
stable-projection-calibration-YYYYMMDD-HHMM
empty-kamaz
Do not call a commit or tag stable unless it was actually verified.
Failed Attempt Rule
When a solution is not found, but the attempt contains useful evidence, commands, code changes, or diagnostics:
- Do not merge the attempt into
mainor the project stable branch. - Preserve useful project changes on a separate branch.
- Push that branch if project repository access is available.
- Update the GitHub knowledge base with:
- symptoms;
- hypothesis;
- attempted commands and files changed;
- result;
- why it did not solve the problem;
- what should not be retried the same way;
- next hypotheses.
Recommended branch prefixes:
attempt/<short-topic>
debug/<short-topic>
failed/<short-topic>
Use attempt/ for unfinished exploratory work, debug/ for diagnostic branches, and failed/ when the approach is known not to solve the problem but should be preserved.
Throwaway Attempts
If an attempt is clearly useless, dangerous, or only temporary noise:
- Do not push it to the project repository.
- Record the lesson in
problems/orprojects/<project>/agent-log.md. - Include enough detail so another agent does not repeat the same path.
Knowledge Base Linkage
Every project restore point or failed attempt branch should be referenced from the knowledge base.
Use:
projects/<project>/status.mdfor current state and next actions;projects/<project>/agent-log.mdfor chronological handoff;projects/<project>/repositories.mdfor branch/remote maps;problems/for reusable failed approaches and solved issues;dialog-summaries/when the current chat contains important context.
GitHub agent-knowledge-base remains the required durable memory target even when the project code is pushed to a local Git server.