address-findings: fix branch-selector gap and auth message · Entire

address-findings: fix branch-selector gap and auth message

1009bab→main·

computermode·2w ago·1 file·+18 added/-16 removed

Address Cursor Bugbot review findings on PR #32:

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

Changes

1

53 unmodified lines

54
55
56
57
57
58
59
60
61
60
61
62
63
64
64
65
66
67
68
69
70
69
71
72
73
74
73
75
76
77
78
79
80
81
80
82
83
84
85
2 unmodified lines

88
89
90
89
91
92
93
92
94
95
96
95
96
97
98
99
100
101
100
102
103
104
105
2 unmodified lines

108
109
110
109
111
112
113
114
115
116
115
117
118
119
120
2 unmodified lines

123
124
125
124
126
127
128
129
14 unmodified lines

144
145
146
145
147
148
149
150

53 unmodified lines

"The Entire CLI is required but not installed. Install it from
https://entire.io/docs/cli and try again."

### 2. Resolve the trail
### 2. Resolve the trail selector

- If the argument is a trail URL, take the number from the `/trails/<number>/`
  path segment.
- If it is a bare number or branch name, use it as-is.
  path segment and use that number.
- If it is a bare trail number, id, or branch name, use it as-is.
- If you cannot determine a trail, stop and ask the user for the trail URL or number.

Use the trail **number** for every command below.
Use this value as the `<trail>` selector for every command below. `entire trail`
accepts a trail number, id, or branch name interchangeably, so no number lookup
is needed — a branch name works directly.

### 3. Fetch open findings

```bash
entire trail finding list <number> --json --status open
entire trail finding list <trail> --json --status open

4. Branch guard (you must be on the trail's branch)

2 unmodified lines

git rev-parse --abbrev-ref HEAD                # current branch
entire trail list --json --status any -n 200   # locate the trail's branch by number
entire trail list --json --status any -n 200   # locate the trail's branch

Find the trail whose number matches and read its branch. Find the trail whose number or branch matches your selector and read its branch.

5. Address each finding

2 unmodified lines

  1. If it has a suggested unified-diff change, dry-run it first:
   entire trail finding apply <number> <finding-id> --check
   entire trail finding apply <trail> <finding-id> --check

If it applies cleanly, apply and resolve in one step:

   entire trail finding apply <number> <finding-id> --resolve
   entire trail finding apply <trail> <finding-id> --resolve
  1. Otherwise (no patch, the patch conflicts, or the fix needs reasoning): 2 unmodified lines

touched code (a build or a focused test), run it. Then resolve:

   entire trail finding resolve <number> <finding-id> -m "<one line: what you changed>"
   entire trail finding resolve <trail> <finding-id> -m "<one line: what you changed>"
  1. If you cannot confidently address it (ambiguous, needs a product/design 14 unmodified lines

Failure modes