log_issue
Log a bug or unexpected behavior immediately to preserve the issue across interruptions and session boundaries, returning a trackable issue ID.
Instructions
Open a new issue. Returns the issue ID.
MANDATORY: call this IMMEDIATELY when you encounter a bug, regression,
or unexpected behavior — BEFORE writing fix code. Logging up-front
means the issue survives interruptions and session boundaries.
Side effects: appends an `issue` event to .projectmem/events.jsonl,
creates an issue file in .projectmem/issues/, updates summary.md,
and marks this issue as the active one for subsequent
record_attempt calls.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | One-line description of the bug or unexpected behavior (~140 chars recommended). Becomes the issue title and is matched by search_events. | |
| location | No | Optional file path or component where the issue manifests (e.g., 'src/auth.py' or 'login/double-submit'). Used by precheck_file to surface this history later. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |