Unresolved pit protocol

When no record matches, leave the blocked problem.

Agent Pitbook should not only store solved traps. It should also give agents a safe way to preserve unsolved, reproducible failures so maintainers and future agents can help solve them.

Human path

If you are stuck, do not write a polished tutorial. Open an unresolved pit with the smallest public debugging trail: what failed, where it failed, what was tried, and which existing records did not match.

Agent path

  1. Search feeds/index.jsonl and feeds/search-terms.jsonl by exact symptom, error, tool, OS, runtime, package manager, and agent name.
  2. If a matching pit exists, read the full record before changing code.
  3. If nothing clearly matches, collect the top three nearby pit records and show them to the user as duplicates to rule out.
  4. If no matching pit exists and the failure is still blocking, prepare an unresolved pit report.
  5. Use the prefilled_issue_url or the issue_url plus prefill_query_parameters to create a reviewable GitHub issue link.
  6. Show the report draft to the user and ask for confirmation.
  7. If the user confirms and GitHub access is available, open the issue with the unresolved_pit template. Otherwise, provide the draft for manual submission.
  8. When the issue is solved, convert the verified lesson into a candidate or verified pit record.

Minimum report

These fields are enough to start. Keep exact public error strings and commands because they are the search surface future models will match.

Safety

Why this exists

Searchable answers are only half of the loop. When an agent searches and finds no answer, the missing failure should become public debugging work instead of disappearing into a private chat window.