Docs/Find and triage issues
#

Find and triage issues

Use these commands to find, read, and prioritize issues Cofactor has detected.

Feedback. Tell Cofactor the moment a step in this guide is wrong, unclear or missing; a command fails in a way the guide did not predict; you took a detour or had to guess; or a tool you needed does not exist. Send it when it happens, not only at the end: one sentence on what happened and what would have helped. Run cofactor feedback "<what happened; what would have helped>" --topic instructions --command "cofactor issues guide <section>", or call the cofactor_feedback_submit MCP tool with the same text, topic and command. Never include secrets, customer data, real names or URLs; use neutral examples (Acme, example.com).

List and filter

bash
cofactor issues list
cofactor issues list --status open --severity high --format markdown
cofactor issues list --search "timeout" --application-id <uuid>
cofactor issues list --tag checkout,regression --status open,closed
cofactor issues list --page 2 --page-size 50

Filters: --search, --severity (low|medium|high|unknown), --status (open|closed|not_a_bug, comma-separated), --tag (any of these tag names), --application-id (alias --property-id). Add --json for compact JSON, or --json --full for the unmodified response.

Read one issue

bash
cofactor issues get <issueId>
cofactor issues get <issueId> --format markdown
cofactor issues get <issueId> --json --include console,network,repro,diagnostic-full
cofactor issues get <issueId> --json --download ./evidence

The detail view carries the diagnosis, the latest occurrence (URL, console and network failures, repro steps), occurrence count, first and last seen times, assignee, and the workflow run that surfaced it. Note the timestamps, URLs, error text, and HTTP status codes; you need them to confirm a root cause.

It also lists the evidence items of each of the 10 newest occurrences, grouped by occurrence. Evidence stays on the occurrence that produced it, so a later sighting often has none while an earlier, diagnosed one does. Each item has a number, kind, description, optional detail, and a signed link (valid about an hour; do not paste it publicly) for each screenshot or clip. --download <dir> saves those files as <occurrenceId>-evidence-<n>-frame.jpg, -clip.mp4 and so on, so you can open the screenshots and look at them.

Triage order

  1. Start with open issues, severity high first, then by occurrence count and most recent last-seen time. A recurring issue outranks a one-off.
  2. Open each candidate and read the diagnosis before judging it.
  3. Decide one of: real and new (keep open, tag it); duplicate (merge it); intended behavior or noise (close as not-a-bug with a reason); fixed (close).
  4. See dedupe-and-close for the commands, logs to find root cause, and handoff to pass a confirmed bug to someone who will fix it.

File a new issue

Search first so you do not create a duplicate:

bash
cofactor issues create --check --title "<title>" --application-id <uuid>

Then:

bash
cofactor issues create --title "<title>" --application-id <uuid> \
  --url <page-url> --severity medium --body "<markdown>"

Link evidence with --from-run <runId>, --code-ref <path[:line]>, --sentry <id|url>, or --log-query <query>. Add your own evidence items with --evidence <kind>:<description>, each followed by an optional --detail <text> and --screenshot <file> (uploaded and shown with the item):

bash
cofactor issues bump <id> --url <page-url> \
  --evidence "visual:The Pay button stays disabled" --screenshot ./pay.png

Edit an issue

bash
cofactor issues update <id> --summary "<markdown>" --repro-steps "<steps>"
cofactor issues update <id> --occurrence <occurrenceId> \
  --replace-evidence "1:visual:<corrected description>" --screenshot ./shot.png \
  --remove-evidence 2 --evidence "timeline_event:<what happened>"

Edits apply to the latest occurrence unless --occurrence names another; issues get lists evidence by occurrence with the numbers these flags use. A replaced item is replaced whole, so pass --screenshot again to keep one. Evidence cannot be edited while the occurrence's diagnosis is running or after it failed, and re-running a diagnosis replaces hand-edited evidence. Every edit is recorded in the issue's audit history.

bash
cofactor issues link <id> --capability CAP-FLW-003
cofactor issues link <id> --capability CAP-FLW-003 --rule prule_<id>
cofactor issues unlink <id> --capability CAP-FLW-003 [--rule prule_<id>]
cofactor issues create ... --capability CAP-FLW-003 [--rule prule_<id>]

A link says which capability (and, with --rule, which of its rules) the bug breaks. Codes resolve within the issue's application; rule ids come from cofactor product-map show <code>. issues get lists the links, and product-map show lists the open issues on the capability and under each rule. Link only behaviour the bug actually breaks: an open linked issue is what product-map coverage reads to show a capability as failing on a known issue (its flows red) or blocked by the issue (no flow yet), and a linked issue that closes flags the capability's flows for a rerun.