featureparity 0.0.30 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,8 +40,8 @@ module Fp
40
40
  help_flag :base_dir, 'Where relative test-file paths in the report resolve from'
41
41
  help_flag :attach_media, 'With --junit: upload the videos/screenshots the run recorded ([[ATTACHMENT|…]]) as visual evidence'
42
42
  help_flag :stamp_all, 'With --junit: put --pr/--work-item on every receipt, not only on tests in files this branch changed'
43
- help_example 'fp report print_container_qr --project stowzilla --surface api --file spec/qr_spec.rb --repo stowzilla/app'
44
- help_example 'fp report --junit junit.xml --project stowzilla --surface api --repo stowzilla/app',
43
+ help_example 'fp report print_container_qr --project acme --surface api --file spec/qr_spec.rb --repo acme/app'
44
+ help_example 'fp report --junit junit.xml --project acme --surface api --repo acme/app',
45
45
  'Batch-upload from a JUnit report (slugs come from fp:<slug> markers)'
46
46
  help_note "Agents report 'present' or 'stub' only. CI writes 'passing'/'failing' via fp ci-report.\n" \
47
47
  "Always pass --test-type when a surface has more than one suite, or they overwrite each other.\n" \
@@ -8,7 +8,7 @@ module Fp
8
8
  # ~/.config/fp/config.yml under `repos`, scoped by project slug. This is a
9
9
  # per-installation convenience (not stored in the FP web app): when an agent
10
10
  # picks up a requirement affecting, say, the `customer_android` surface, it can
11
- # run `fp repos get customer_android --project stowzilla` to learn which local
11
+ # run `fp repos get customer_android --project acme` to learn which local
12
12
  # directory to work in. Analogous to how `brainiac projects` maps repos to names.
13
13
  #
14
14
  # fp repos set <surface> <path> --project <slug> [--repo org/repo]
@@ -23,8 +23,8 @@ module Fp
23
23
  'fp repos unset <surface> --project <slug>'
24
24
  help_flag :project, 'Project slug (falls back to .featureparity.yml)'
25
25
  help_flag :repo, 'Optional org/repo to record alongside the local path (set only)'
26
- help_example 'fp repos set customer_android ~/code/customer-android --project stowzilla --repo stowzilla/customer-android'
27
- help_example 'cd "$(fp repos get customer_android --project stowzilla)"'
26
+ help_example 'fp repos set customer_android ~/code/customer-android --project acme --repo acme/customer-android'
27
+ help_example 'cd "$(fp repos get customer_android --project acme)"'
28
28
  help_note 'Stored per-installation in ~/.config/fp/config.yml, not in the web app.'
29
29
 
30
30
  KNOWN_FLAGS = {
@@ -170,9 +170,9 @@ module Fp
170
170
  puts
171
171
  puts 'Examples:'
172
172
  puts ' fp repos set customer_android ~/code/customer-android \\'
173
- puts ' --project stowzilla --repo stowzilla/customer-android'
174
- puts ' fp repos get customer_android --project stowzilla'
175
- puts ' cd "$(fp repos get customer_android --project stowzilla)"'
173
+ puts ' --project acme --repo acme/customer-android'
174
+ puts ' fp repos get customer_android --project acme'
175
+ puts ' cd "$(fp repos get customer_android --project acme)"'
176
176
  exit 1
177
177
  end
178
178
  end
@@ -34,7 +34,8 @@ module Fp
34
34
 
35
35
  api_key = resolve_api_key(opts)
36
36
  profile_name = resolve_profile_name(opts)
37
- api_url = resolve_api_url(opts)
37
+ # Without a trailing /api: the key check and every later call add it themselves.
38
+ api_url = Config.normalize_api_url(resolve_api_url(opts))
38
39
  environment = opts[:environment] || Config.environment_for(api_url || Config::DEFAULT_API_URL)
39
40
 
40
41
  puts "Validating API key..."
@@ -8,7 +8,7 @@ module Fp
8
8
  help_summary 'Show a requirement, its acceptance criteria, and evidence receipts'
9
9
  help_usage 'fp show <slug> --project <slug>'
10
10
  help_flag :project, 'Project slug (falls back to .featureparity.yml)'
11
- help_example 'fp show print_container_qr --project stowzilla'
11
+ help_example 'fp show print_container_qr --project acme'
12
12
 
13
13
  def run(args)
14
14
  opts, positional = parse_flags(args)
@@ -163,7 +163,12 @@ module Fp
163
163
  # change to this requirement, oldest first. Derived from events so the history is
164
164
  # additive — older sources aren't lost when a new one is recorded.
165
165
  puts 'Source Trail:'
166
- if source_history.empty?
166
+ own_type = req['source_type']
167
+ own_context = req['source_context']
168
+ if source_history.empty? && (own_type || own_context)
169
+ puts " - #{own_type}" if own_type
170
+ puts " #{own_context}" if own_context
171
+ elsif source_history.empty?
167
172
  puts ' (no sources recorded)'
168
173
  else
169
174
  source_history.each do |src|
@@ -31,12 +31,12 @@ module Fp
31
31
  help_flag :caption, 'media add/edit: text shown under the image or video (edit: empty clears)'
32
32
  help_flag :position, 'media add/edit: slot within its card or the gallery, 1 is first; others shift (edit: empty moves it last)'
33
33
  help_flag :yes, 'media remove: skip the typed-filename confirmation'
34
- help_example 'fp showroom --project stowzilla'
35
- help_example 'fp showroom media add e2e/checkout.webm --project stowzilla --surface web --caption "Checking out"'
36
- help_example 'fp showroom media add overview.png --project stowzilla --position 1'
37
- help_example 'fp showroom media add app-icon.png --project stowzilla --surface ios --icon'
38
- help_example 'fp showroom media edit <id> --project stowzilla --caption ""'
39
- help_example 'fp showroom media remove <id> --project stowzilla --yes'
34
+ help_example 'fp showroom --project acme'
35
+ help_example 'fp showroom media add e2e/checkout.webm --project acme --surface web --caption "Checking out"'
36
+ help_example 'fp showroom media add overview.png --project acme --position 1'
37
+ help_example 'fp showroom media add app-icon.png --project acme --surface ios --icon'
38
+ help_example 'fp showroom media edit <id> --project acme --caption ""'
39
+ help_example 'fp showroom media remove <id> --project acme --yes'
40
40
  help_note "Prints the welcome note, the gallery, and each surface's card, then the surfaces that are NOT shown and why.\n" \
41
41
  "Write the content with `fp projects edit --showroom-welcome` and `fp surfaces edit --showroom-*`.\n" \
42
42
  "Media: png, jpg, gif, webp, mp4, webm, mov; max 100 MB. SVG and PDF are refused.\n" \
@@ -71,11 +71,11 @@ module Fp
71
71
  help_flag :showroom_instructions_file, 'Read --showroom-instructions from a file (multi-line)'
72
72
  help_flag :showroom_position, 'Client showroom order: 1 is first; empty clears (unplaced surfaces follow, A-Z) (edit)'
73
73
  help_flag :yes, 'Skip the typed-key confirmation on delete'
74
- help_example 'fp surfaces --project stowzilla'
75
- help_example 'fp surfaces add customer_android --project stowzilla --kind android --repo stowzilla/customer-android'
76
- help_example 'fp surfaces delete web --project stowzilla --yes'
77
- help_example 'fp surfaces edit web --project stowzilla --showroom-url https://dev.example.com --showroom-instructions-file docs/showroom/web.txt'
78
- help_example 'fp surfaces edit web --project stowzilla --showroom-position 1'
74
+ help_example 'fp surfaces --project acme'
75
+ help_example 'fp surfaces add customer_android --project acme --kind android --repo acme/customer-android'
76
+ help_example 'fp surfaces delete web --project acme --yes'
77
+ help_example 'fp surfaces edit web --project acme --showroom-url https://dev.example.com --showroom-instructions-file docs/showroom/web.txt'
78
+ help_example 'fp surfaces edit web --project acme --showroom-position 1'
79
79
 
80
80
  def run(args)
81
81
  # Subcommand dispatch. Bare `fp surfaces --project X` stays a list, so existing
data/lib/fp/config.rb CHANGED
@@ -116,6 +116,16 @@ module Fp
116
116
  end
117
117
 
118
118
  class << self
119
+ # The base URL has no path: Client adds "/api/..." itself. People are handed
120
+ # "https://api.featureparity.dev/api" though, so strip trailing slashes and then
121
+ # one trailing "/api" path segment, and nothing else. Only a path segment that is
122
+ # exactly "api" goes ("https://x/v2/api" -> "https://x/v2", an "api" host is untouched).
123
+ def normalize_api_url(url)
124
+ return url unless url.is_a?(String)
125
+
126
+ url.strip.sub(%r{/+\z}, '').sub(%r{/api\z}i, '').sub(%r{/+\z}, '')
127
+ end
128
+
119
129
  def load_config
120
130
  return {} unless File.exist?(CONFIG_FILE)
121
131
 
@@ -241,10 +251,10 @@ module Fp
241
251
  # Stored under a top-level `repos` key in config.yml, scoped by project slug:
242
252
  #
243
253
  # repos:
244
- # stowzilla:
254
+ # acme:
245
255
  # customer_android:
246
256
  # path: /home/dev/code/customer-android
247
- # repo: stowzilla/customer-android
257
+ # repo: acme/customer-android
248
258
  #
249
259
  # This is intentionally local (per fp installation) — it maps FeatureParity
250
260
  # surfaces to wherever the code lives on THIS machine, so an agent working a
@@ -371,13 +381,13 @@ module Fp
371
381
  # 1. Explicit --api-url flag
372
382
  if @explicit_api_url && !@explicit_api_url.empty?
373
383
  @api_url_source = 'flag'
374
- return @explicit_api_url
384
+ return self.class.normalize_api_url(@explicit_api_url)
375
385
  end
376
386
 
377
387
  # 2. FP_API_URL env var
378
388
  if ENV['FP_API_URL'] && !ENV['FP_API_URL'].empty?
379
389
  @api_url_source = 'env (FP_API_URL)'
380
- return ENV['FP_API_URL']
390
+ return self.class.normalize_api_url(ENV['FP_API_URL'])
381
391
  end
382
392
 
383
393
  # 3. Profile-specific URL
@@ -386,7 +396,7 @@ module Fp
386
396
  profile = profiles[@profile_name]
387
397
  if profile && profile['api_url']
388
398
  @api_url_source = "profile (#{@profile_name})"
389
- return profile['api_url']
399
+ return self.class.normalize_api_url(profile['api_url'])
390
400
  end
391
401
  end
392
402
 
@@ -394,7 +404,7 @@ module Fp
394
404
  global_url = self.class.get_setting('api_url')
395
405
  if global_url && !global_url.empty?
396
406
  @api_url_source = 'global setting'
397
- return global_url
407
+ return self.class.normalize_api_url(global_url)
398
408
  end
399
409
 
400
410
  # 5. Default
data/lib/fp/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fp
4
- VERSION = '0.0.30'
4
+ VERSION = '0.0.32'
5
5
  end
data/skills/fp/SKILL.md CHANGED
@@ -54,17 +54,17 @@ every project the user belongs to; never ask for a per-project key.
54
54
  ### 1. Inventory and model the complete requirement scope
55
55
 
56
56
  ```bash
57
- fp list --project stowzilla # All active requirements
58
- fp list --project stowzilla --status draft # Proposed work; avoid duplicates
59
- fp list --project stowzilla --gaps # Requirements with a required surface lacking evidence
60
- fp list --project stowzilla --status draft --gaps # Drafts with a required surface lacking evidence
61
- fp coverage --project stowzilla # Drafts × surfaces, then the drafts with no evidence
62
- fp show <slug> --project stowzilla # Requirement details and evidence
63
- fp history <slug> --project stowzilla # Origins and pending changes
57
+ fp list --project acme # All active requirements
58
+ fp list --project acme --status draft # Proposed work; avoid duplicates
59
+ fp list --project acme --gaps # Requirements with a required surface lacking evidence
60
+ fp list --project acme --status draft --gaps # Drafts with a required surface lacking evidence
61
+ fp coverage --project acme # Drafts × surfaces, then the drafts with no evidence
62
+ fp show <slug> --project acme # Requirement details and evidence
63
+ fp history <slug> --project acme # Origins and pending changes
64
64
  fp changes --source-url <work-item-url> # Activity prompted by one card, issue, or thread
65
- fp matrix --project stowzilla # ASCII parity matrix
66
- fp matrix --project stowzilla --csv # Export as CSV
67
- fp check --project stowzilla # Enforce parity (exits 1 on violations)
65
+ fp matrix --project acme # ASCII parity matrix
66
+ fp matrix --project acme --csv # Export as CSV
67
+ fp check --project acme # Enforce parity (exits 1 on violations)
68
68
  ```
69
69
 
70
70
  <!-- fp-shared:begin modeling -->
@@ -150,10 +150,10 @@ end
150
150
 
151
151
  ```bash
152
152
  fp report <slug> \
153
- --project stowzilla \
153
+ --project acme \
154
154
  --surface api \
155
155
  --file spec/qr_spec.rb \
156
- --repo stowzilla/marketplace \
156
+ --repo acme/marketplace \
157
157
  --work-item https://app.fizzy.do/123/cards/456
158
158
  ```
159
159
 
@@ -179,7 +179,7 @@ report formatter to rspec, pytest, vitest or playwright itself, so the project n
179
179
  new dependency, then reports exactly as `fp report --junit` would:
180
180
 
181
181
  ```bash
182
- fp run --surface api --repo stowzilla/marketplace \
182
+ fp run --surface api --repo acme/marketplace \
183
183
  --work-item https://app.fizzy.do/123/cards/456 -- bundle exec rspec
184
184
  ```
185
185
 
@@ -192,9 +192,9 @@ bundle exec rspec --format progress --format json --out rspec.json
192
192
 
193
193
  # 2. Upload — one call covers every marked test
194
194
  fp report --junit rspec.json \
195
- --project stowzilla \
195
+ --project acme \
196
196
  --surface api \
197
- --repo stowzilla/marketplace \
197
+ --repo acme/marketplace \
198
198
  --work-item https://app.fizzy.do/123/cards/456
199
199
  ```
200
200
 
@@ -297,7 +297,7 @@ this review, revise it or ask before writing the record.
297
297
  Then create the proposal as a draft:
298
298
 
299
299
  ```bash
300
- fp propose --project stowzilla \
300
+ fp propose --project acme \
301
301
  --slug current_shipment_status \
302
302
  --name "Dispatchers see current shipment status" \
303
303
  --why "Dispatchers need to spot delayed shipments before they miss a delivery window" \
@@ -347,7 +347,7 @@ change and say what prompted it. The requirement drops back to **draft** and a h
347
347
  reviews the old-vs-new diff before it counts again.
348
348
 
349
349
  ```bash
350
- fp propose-change print_container_qr --project stowzilla \
350
+ fp propose-change print_container_qr --project acme \
351
351
  --why "Labels must survive a freezer" \
352
352
  --acceptance "QR scans after 24h at -20C" \
353
353
  --reason "Cold-chain rollout changed the requirement" \
@@ -358,7 +358,7 @@ fp propose-change print_container_qr --project stowzilla \
358
358
  To propose deleting one instead (nothing is destroyed — a human decides):
359
359
 
360
360
  ```bash
361
- fp propose-change print_container_qr --project stowzilla \
361
+ fp propose-change print_container_qr --project acme \
362
362
  --removal --reason "Superseded by print_container_label"
363
363
  ```
364
364
 
@@ -375,8 +375,8 @@ Rules:
375
375
  ### 7. See what changed and why
376
376
 
377
377
  ```bash
378
- fp history print_container_qr --project stowzilla
379
- fp history print_container_qr --project stowzilla --pending # just what's awaiting review
378
+ fp history print_container_qr --project acme
379
+ fp history print_container_qr --project acme --pending # just what's awaiting review
380
380
  ```
381
381
 
382
382
  Shows the timeline (who changed what, when, and what prompted it), the field-by-field
@@ -585,11 +585,11 @@ and marks its evidence `suspect`, and a requirement holds one open proposal at a
585
585
  proposing on every flag could put dozens of requirements in review at once.
586
586
 
587
587
  ```bash
588
- fp analyze --project stowzilla # sweep active + draft requirements
589
- fp analyze print_container_qr --project stowzilla # one requirement, with suggestions
590
- fp analyze --project stowzilla --conflicts # also check for contradictions (slower)
591
- fp analyze --project stowzilla --cached # read saved results only, no model calls
592
- fp analyze --project stowzilla --json
588
+ fp analyze --project acme # sweep active + draft requirements
589
+ fp analyze print_container_qr --project acme # one requirement, with suggestions
590
+ fp analyze --project acme --conflicts # also check for contradictions (slower)
591
+ fp analyze --project acme --cached # read saved results only, no model calls
592
+ fp analyze --project acme --json
593
593
  ```
594
594
 
595
595
  It goes one requirement at a time. Results are cached until the wording changes, so a
@@ -57,13 +57,13 @@ owner — or a key minted by one — may delete; a member's key gets 403.
57
57
  List, view, create, edit and delete a project's surfaces.
58
58
 
59
59
  ```bash
60
- fp surfaces --project stowzilla
61
- fp surfaces --project stowzilla --json
62
- fp surfaces show <key> --project stowzilla
63
- fp surfaces add <key> --project stowzilla [--name "..."] [--kind api|web|android|ios|other] [--audience ...] [--repo org/repo] [--default-branch main]
64
- fp surfaces edit <key> --project stowzilla [--name "..."] [--kind ...] [--audience ...] [--repo ...] [--default-branch ...] [--key new_key]
65
- fp surfaces edit <key> --project stowzilla [--showroom-url URL] [--showroom-label "..."] [--showroom-instructions "..." | --showroom-instructions-file PATH] [--showroom-position N]
66
- fp surfaces delete <key> --project stowzilla [--yes]
60
+ fp surfaces --project acme
61
+ fp surfaces --project acme --json
62
+ fp surfaces show <key> --project acme
63
+ fp surfaces add <key> --project acme [--name "..."] [--kind api|web|android|ios|other] [--audience ...] [--repo org/repo] [--default-branch main]
64
+ fp surfaces edit <key> --project acme [--name "..."] [--kind ...] [--audience ...] [--repo ...] [--default-branch ...] [--key new_key]
65
+ fp surfaces edit <key> --project acme [--showroom-url URL] [--showroom-label "..."] [--showroom-instructions "..." | --showroom-instructions-file PATH] [--showroom-position N]
66
+ fp surfaces delete <key> --project acme [--yes]
67
67
  ```
68
68
 
69
69
  A key is unique within a project. `add` on a key that already exists fails and points
@@ -84,36 +84,36 @@ media. The team's agents keep that content; this command
84
84
  shows the result.
85
85
 
86
86
  ```bash
87
- fp showroom --project stowzilla # what a client sees, plus which surfaces are hidden and why
88
- fp showroom --project stowzilla --json # { showroom, hidden, share_link }; showroom.gallery and each surface's media
87
+ fp showroom --project acme # what a client sees, plus which surfaces are hidden and why
88
+ fp showroom --project acme --json # { showroom, hidden, share_link }; showroom.gallery and each surface's media
89
89
  ```
90
90
 
91
91
  Writing the content:
92
92
 
93
93
  ```bash
94
- fp projects edit stowzilla --showroom-welcome "Hi Sam, here's what we built."
95
- fp projects edit stowzilla --showroom-welcome-file docs/showroom/welcome.txt
96
- fp surfaces edit web --project stowzilla \
94
+ fp projects edit acme --showroom-welcome "Hi Sam, here's what we built."
95
+ fp projects edit acme --showroom-welcome-file docs/showroom/welcome.txt
96
+ fp surfaces edit web --project acme \
97
97
  --showroom-url https://dev.example.com \
98
98
  --showroom-label "Open the web app" \
99
99
  --showroom-instructions-file docs/showroom/web.txt
100
- fp surfaces edit ios --project stowzilla --showroom-url "" --showroom-instructions "" # take the card down
101
- fp surfaces edit web --project stowzilla --showroom-position 1 # clients see web first
102
- fp surfaces edit web --project stowzilla --showroom-position "" # back to alphabetical
100
+ fp surfaces edit ios --project acme --showroom-url "" --showroom-instructions "" # take the card down
101
+ fp surfaces edit web --project acme --showroom-position 1 # clients see web first
102
+ fp surfaces edit web --project acme --showroom-position "" # back to alphabetical
103
103
  ```
104
104
 
105
105
  Media — screenshots and videos on a surface's card, or in the project gallery under the
106
106
  welcome note when `--surface` is omitted:
107
107
 
108
108
  ```bash
109
- fp showroom media --project stowzilla # gallery, then each surface in showroom order: id, kind, file, caption, position
110
- fp showroom media --project stowzilla --json # { media: [...each with surface_key (null = gallery)], project }
111
- fp showroom media add e2e/results/checkout.webm --project stowzilla --surface web \
109
+ fp showroom media --project acme # gallery, then each surface in showroom order: id, kind, file, caption, position
110
+ fp showroom media --project acme --json # { media: [...each with surface_key (null = gallery)], project }
111
+ fp showroom media add e2e/results/checkout.webm --project acme --surface web \
112
112
  --caption "Checking out with a saved card" --position 1
113
- fp showroom media add docs/showroom/overview.png --project stowzilla # the gallery
114
- fp showroom media edit <id> --project stowzilla --caption "New words" --position 2
115
- fp showroom media edit <id> --project stowzilla --caption "" --position "" # clear the caption, move it last
116
- fp showroom media remove <id> --project stowzilla --yes
113
+ fp showroom media add docs/showroom/overview.png --project acme # the gallery
114
+ fp showroom media edit <id> --project acme --caption "New words" --position 2
115
+ fp showroom media edit <id> --project acme --caption "" --position "" # clear the caption, move it last
116
+ fp showroom media remove <id> --project acme --yes
117
117
  ```
118
118
 
119
119
  Accepted: png, jpg/jpeg, gif, webp, mp4, webm, mov, up to 100 MB. Anything else — SVG
@@ -142,10 +142,10 @@ that reason; a human checks it under Project Settings → Showroom in the web ap
142
142
  List requirements.
143
143
 
144
144
  ```bash
145
- fp list --project stowzilla # All active requirements
146
- fp list --project stowzilla --gaps # Requirements with a required surface lacking evidence
147
- fp list --project stowzilla --status draft
148
- fp list --project stowzilla --json
145
+ fp list --project acme # All active requirements
146
+ fp list --project acme --gaps # Requirements with a required surface lacking evidence
147
+ fp list --project acme --status draft
148
+ fp list --project acme --json
149
149
  ```
150
150
 
151
151
  | Flag | Description |
@@ -165,8 +165,8 @@ state.
165
165
  Show requirement details.
166
166
 
167
167
  ```bash
168
- fp show print_container_qr --project stowzilla
169
- fp show print_container_qr --project stowzilla --json
168
+ fp show print_container_qr --project acme
169
+ fp show print_container_qr --project acme --json
170
170
  ```
171
171
 
172
172
  ### fp report
@@ -177,10 +177,10 @@ Report evidence linking a test to a requirement.
177
177
 
178
178
  ```bash
179
179
  fp report <slug> \
180
- --project stowzilla \
180
+ --project acme \
181
181
  --surface api \
182
182
  --file spec/qr_spec.rb \
183
- --repo stowzilla/marketplace \
183
+ --repo acme/marketplace \
184
184
  [--pr URL] [--sha COMMIT] [--work-item URL] [--ci-url URL] [--title "..."] [--state present|stub]
185
185
  ```
186
186
 
@@ -202,9 +202,9 @@ fp report <slug> \
202
202
 
203
203
  ```bash
204
204
  fp report --junit junit.xml \
205
- --project stowzilla \
205
+ --project acme \
206
206
  --surface api \
207
- --repo stowzilla/marketplace \
207
+ --repo acme/marketplace \
208
208
  [--base-dir DIR] [--pr URL] [--sha COMMIT] [--work-item URL] [--ci-url URL]
209
209
  ```
210
210
 
@@ -232,10 +232,10 @@ Run a test command with a report formatter fp adds itself, then report the resul
232
232
  as `fp report --junit` would. Nothing is added to the project under test.
233
233
 
234
234
  ```bash
235
- fp run --surface api --repo stowzilla/marketplace -- bundle exec rspec
236
- fp run --surface api --repo stowzilla/marketplace -- pytest tests/
237
- (cd frontend && fp run --surface web --repo stowzilla/marketplace -- npx vitest run)
238
- fp run --surface web --repo stowzilla/marketplace -- npx playwright test
235
+ fp run --surface api --repo acme/marketplace -- bundle exec rspec
236
+ fp run --surface api --repo acme/marketplace -- pytest tests/
237
+ (cd frontend && fp run --surface web --repo acme/marketplace -- npx vitest run)
238
+ fp run --surface web --repo acme/marketplace -- npx playwright test
239
239
  ```
240
240
 
241
241
  | Runner | What fp adds |
@@ -260,11 +260,11 @@ client showroom. This is optional and stores the file in FeatureParity, so an ag
260
260
  only with permission from the person it works for, and never captures someone's own screen.
261
261
 
262
262
  ```bash
263
- fp attach checkout_flow e2e/results/checkout.webm --project stowzilla --surface web \
263
+ fp attach checkout_flow e2e/results/checkout.webm --project acme --surface web \
264
264
  --example-title "pays by card" --sha $(git rev-parse HEAD)
265
- fp attachments checkout_flow --project stowzilla # list
266
- fp attachments checkout_flow <id> --project stowzilla # download URL
267
- fp attach rm checkout_flow <id> --project stowzilla # delete
265
+ fp attachments checkout_flow --project acme # list
266
+ fp attachments checkout_flow <id> --project acme # download URL
267
+ fp attach rm checkout_flow <id> --project acme # delete
268
268
  ```
269
269
 
270
270
  | Flag | Required | Description |
@@ -304,7 +304,7 @@ failing test merely because the requirement was drafted or activated. Surface th
304
304
  do not change or adopt the old test as proof without explicit human approval.
305
305
 
306
306
  ```bash
307
- fp propose --project stowzilla \
307
+ fp propose --project acme \
308
308
  --slug current_shipment_status \
309
309
  --name "Dispatchers see current shipment status" \
310
310
  --why "Dispatchers need to spot delayed shipments before they miss a delivery window" \
@@ -418,6 +418,12 @@ prefix for an extension fp doesn't know, and `--dry-run` shows the line without
418
418
  This is purely local and needs no API key. Never mark a failing test to make a requirement
419
419
  look covered.
420
420
 
421
+ Each insert shifts every line below it down by one. When you mark several tests in one file
422
+ from a single read of it, mark from the bottom of the file upward, or re-read the line numbers
423
+ between marks. The `It binds to:` line is the check: if it names a different test than you
424
+ meant, or fp warns that no test declaration was recognised, the marker landed on the wrong
425
+ line (it is still written, and the exit code is 0, so fix it by hand).
426
+
421
427
  ### fp propose-change
422
428
 
423
429
  Propose a change to a requirement that already exists — or propose deleting it.
@@ -425,7 +431,7 @@ Recorded with what the requirement *was*, a field-by-field diff, and what prompt
425
431
  change. The requirement drops back to **draft** until a human approves or rejects.
426
432
 
427
433
  ```bash
428
- fp propose-change print_container_qr --project stowzilla \
434
+ fp propose-change print_container_qr --project acme \
429
435
  --why "Labels must survive a freezer" \
430
436
  --acceptance "QR scans after 24h at -20C" \
431
437
  --reason "Cold-chain rollout" \
@@ -433,7 +439,7 @@ fp propose-change print_container_qr --project stowzilla \
433
439
  --source-url https://app.fizzy.do/6098707/cards/1377
434
440
 
435
441
  # Propose deletion instead
436
- fp propose-change print_container_qr --project stowzilla \
442
+ fp propose-change print_container_qr --project acme \
437
443
  --removal --reason "Superseded by print_container_label"
438
444
  ```
439
445
 
@@ -447,6 +453,7 @@ fp propose-change print_container_qr --project stowzilla \
447
453
  | `--acceptance` | No | Proposed acceptance criteria |
448
454
  | `--required` | No | Proposed surfaces (comma-separated; agents cannot remove existing ones) |
449
455
  | `--category` | No | Proposed category |
456
+ | `--tags` | No | Proposed tags, in order (comma-separated). Replaces the whole list; `--tags ""` clears it. A reject restores the old list in its old order |
450
457
  | `--parent` | No | Proposed parent requirement, by slug |
451
458
  | `--slug` | No | Proposed new key; evidence follows it, but existing `fp:<slug>` markers must be updated |
452
459
  | `--reason` | No | Why the change is needed |
@@ -476,10 +483,10 @@ Show a requirement's change history: what changed, who changed it, what prompted
476
483
  how the test evidence moved.
477
484
 
478
485
  ```bash
479
- fp history print_container_qr --project stowzilla
480
- fp history print_container_qr --project stowzilla --pending # only what awaits review
481
- fp history print_container_qr --project stowzilla --limit 5 # most recent 5 entries
482
- fp history print_container_qr --project stowzilla --json
486
+ fp history print_container_qr --project acme
487
+ fp history print_container_qr --project acme --pending # only what awaits review
488
+ fp history print_container_qr --project acme --limit 5 # most recent 5 entries
489
+ fp history print_container_qr --project acme --json
483
490
  ```
484
491
 
485
492
  Entries are printed oldest first. Each shows the event (created, edited, approved,
@@ -496,7 +503,7 @@ Use it for the decisions a draft can't settle by itself, instead of leaving them
496
503
 
497
504
  ```bash
498
505
  fp question upload_limits "Is the 5 MB cap per file or per upload?"
499
- fp question upload_limits --body "Does the cap apply to admins?" --project stowzilla
506
+ fp question upload_limits --body "Does the cap apply to admins?" --project acme
500
507
  fp questions upload_limits # every question, open and resolved, with answers
501
508
  fp questions upload_limits --open --json # only the open ones
502
509
  ```
@@ -521,7 +528,7 @@ proposed change. Refusals, printed verbatim:
521
528
  Read or join the team's conversation on a requirement, and tag people or agents in it.
522
529
 
523
530
  ```bash
524
- fp comments print_container_qr --project stowzilla # comments + who can be tagged
531
+ fp comments print_container_qr --project acme # comments + who can be tagged
525
532
  fp comments print_container_qr --body "The label redesign dropped this — retire it?" \
526
533
  --tag andy@example.com
527
534
  fp comments print_container_qr --body "Can you re-check this against the new label?" --tag claude
@@ -544,13 +551,13 @@ possible conflicts. **Read-only — it never files a proposal.** Report first; a
544
551
  picks which proposals to file (each moves its requirement to draft).
545
552
 
546
553
  ```bash
547
- fp analyze --project stowzilla # active + draft requirements
548
- fp analyze print_container_qr --project stowzilla # one requirement, with suggestions
549
- fp analyze --project stowzilla --status active # narrow the sweep
550
- fp analyze --project stowzilla --conflicts # also check contradictions (slower)
551
- fp analyze --project stowzilla --force # re-run even if the result is current
552
- fp analyze --project stowzilla --cached # saved results only, no model calls
553
- fp analyze --project stowzilla --json
554
+ fp analyze --project acme # active + draft requirements
555
+ fp analyze print_container_qr --project acme # one requirement, with suggestions
556
+ fp analyze --project acme --status active # narrow the sweep
557
+ fp analyze --project acme --conflicts # also check contradictions (slower)
558
+ fp analyze --project acme --force # re-run even if the result is current
559
+ fp analyze --project acme --cached # saved results only, no model calls
560
+ fp analyze --project acme --json
554
561
  ```
555
562
 
556
563
  Analysis costs one model call per requirement, so the sweep runs one request at a time
@@ -575,7 +582,7 @@ history separately.
575
582
 
576
583
  ```bash
577
584
  fp changes --source-url https://app.fizzy.do/6098707/cards/1434
578
- fp changes --project stowzilla --source-url https://github.com/acme/app/issues/42
585
+ fp changes --project acme --source-url https://github.com/acme/app/issues/42
579
586
  fp changes --github-pr --github-summary
580
587
  ```
581
588
 
@@ -601,7 +608,7 @@ and from `suspect` evidence caused by changed requirement wording.
601
608
 
602
609
  ```bash
603
610
  fp changed-tests # project from .featureparity.yml
604
- fp changed-tests --project stowzilla --surface api
611
+ fp changed-tests --project acme --surface api
605
612
  fp changed-tests --json # complete machine-readable queue
606
613
  ```
607
614
 
@@ -699,10 +706,10 @@ Display the parity matrix. Cells show the state of the evidence filed for each
699
706
  (requirement, surface) pair.
700
707
 
701
708
  ```bash
702
- fp matrix --project stowzilla # ASCII table
703
- fp matrix --project stowzilla --csv # CSV export (state names, not glyphs)
704
- fp matrix --project stowzilla --json # JSON
705
- fp matrix --project stowzilla --surface api
709
+ fp matrix --project acme # ASCII table
710
+ fp matrix --project acme --csv # CSV export (state names, not glyphs)
711
+ fp matrix --project acme --json # JSON
712
+ fp matrix --project acme --surface api
706
713
  ```
707
714
 
708
715
  | Glyph | State | Meaning |
@@ -765,7 +772,7 @@ can be a required status check on a pull request.
765
772
 
766
773
  ```bash
767
774
  fp check # project from .featureparity.yml
768
- fp check --project stowzilla --surface api
775
+ fp check --project acme --surface api
769
776
  fp check --level covered # override the project's level for this run
770
777
  fp check --warn-only # print violations, still exit 0
771
778
  fp check --json
@@ -871,11 +878,11 @@ before a key is configured).
871
878
  ```bash
872
879
  fp init --detect # suggest slug, surfaces, test commands; writes nothing
873
880
  fp init --detect --json
874
- fp init --project stowzilla --surface api
875
- fp init --project stowzilla --no-workflow # skip the CI workflow
876
- fp init --project stowzilla --no-agents # skip the AGENTS.md section
877
- fp init --project stowzilla --force # refresh files written previously
878
- fp init --project stowzilla --dir path/to/repo
881
+ fp init --project acme --surface api
882
+ fp init --project acme --no-workflow # skip the CI workflow
883
+ fp init --project acme --no-agents # skip the AGENTS.md section
884
+ fp init --project acme --force # refresh files written previously
885
+ fp init --project acme --dir path/to/repo
879
886
  ```
880
887
 
881
888
  | File | Purpose |
@@ -991,10 +998,10 @@ fp --api-url http://localhost:9292 whoami
991
998
  Map surfaces to local repo paths (stored locally, not in the web app).
992
999
 
993
1000
  ```bash
994
- fp repos list --project stowzilla
995
- fp repos set customer_android ~/code/customer-android --project stowzilla --repo org/repo
996
- fp repos get customer_android --project stowzilla
997
- fp repos unset customer_android --project stowzilla
1001
+ fp repos list --project acme
1002
+ fp repos set customer_android ~/code/customer-android --project acme --repo org/repo
1003
+ fp repos get customer_android --project acme
1004
+ fp repos unset customer_android --project acme
998
1005
  ```
999
1006
 
1000
1007
  ## Exit codes
@@ -1024,7 +1031,7 @@ request failure (`ok: false`).
1024
1031
  ### .featureparity.yml
1025
1032
 
1026
1033
  ```yaml
1027
- project: stowzilla # required — the project slug
1034
+ project: acme # required — the project slug
1028
1035
  enforcement: regression # optional — usually omit; the level lives on the project
1029
1036
  surface: api # optional — default surface for a single-surface repo
1030
1037
  ```