This repository has been archived on 2026-07-09. You can view files and clone it, but cannot push or open issues or pull requests.
agent-knowledge-base-archived/skills/project-restore-points-and-failed-attempts.md

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:

  1. Commit the project changes in that project repository.
  2. Push the commit to the appropriate project remote, usually the local Git server when available.
  3. For important stable states, create and push a tag.
  4. 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:

  1. Do not merge the attempt into main or the project stable branch.
  2. Preserve useful project changes on a separate branch.
  3. Push that branch if project repository access is available.
  4. 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:

  1. Do not push it to the project repository.
  2. Record the lesson in problems/ or projects/<project>/agent-log.md.
  3. 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.md for current state and next actions;
  • projects/<project>/agent-log.md for chronological handoff;
  • projects/<project>/repositories.md for 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.