featureparity 0.0.31 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f0f78517e010302b866caf565d5327e7c98929a82230ecf98da1bac55d51d9f
4
- data.tar.gz: 956d1c46e86711b37653f387044709d76e0a4e83161ca3f49f12d555ce1309e2
3
+ metadata.gz: dc148bcfad876dfa40128241e661004d4469788e2c943263446513fa2023c61a
4
+ data.tar.gz: 1dc7dd025ad5e7d228cdefa76d2c40ccdbbd7a74ab1ff8a64e642f05625cdaf3
5
5
  SHA512:
6
- metadata.gz: 8c6252c44e1a635cb54b9044dd9b3f9037e405811913f100dedbcac598dfebb57432842856481b1dc943989b44c84350a9559433c110d9ab31d19b266389b967
7
- data.tar.gz: c28eb89f74bc8e205e855df172621aac1f79dca7c2f30a3232c8072fd1a6acf4a9cf1898efb581699732b885f9ac872fa7ccf7aa83471d80fd2c47eebaaaa306
6
+ metadata.gz: 1e66acc239526910b5a67ea8436f056b4437ce2292cc825e367671e15b936e11cbb43a83bf2417e894901bd2203ecf0caefb9763adc4f25e1e1fb58c55587c5d
7
+ data.tar.gz: a63607ba0033c147e8ed262eee5d484b0026c56e46c17d097d6a349b06cec43aae472347d0e744fa04486110ffb7e842907f78d8c211fe4a66fb64f9e72da915
data/lib/fp/cli.rb CHANGED
@@ -60,6 +60,9 @@ module Fp
60
60
  # reported "Unknown command: --version".
61
61
  command_name = 'version' if %w[--version -v].include?(command_name)
62
62
 
63
+ # `fp --help` / `fp -h` are aliases for `fp help`, for the same reason.
64
+ command_name = 'help' if %w[--help -h].include?(command_name)
65
+
63
66
  command_class = COMMANDS[command_name]
64
67
 
65
68
  unless command_class
@@ -80,7 +83,7 @@ module Fp
80
83
 
81
84
  # Profile/config commands don't need auth. `init` is here too: it only writes
82
85
  # files into the repo, and onboarding a repo must work before anyone has a key.
83
- needs_auth = !%w[init doctor profile config repos setup whoami version help mark].include?(command_name)
86
+ needs_auth = !%w[init doctor profile config repos setup whoami version help mark tutorial].include?(command_name)
84
87
 
85
88
  if needs_auth
86
89
  config = Config.new(profile: global_opts[:profile], api_url: global_opts[:api_url])
@@ -22,8 +22,8 @@ module Fp
22
22
  help_flag :conflicts, 'Include cross-requirement conflict findings'
23
23
  help_flag :force, 'Re-analyze even cached (unchanged) requirements'
24
24
  help_flag :cached, 'Read cached analyses only; do not spend model calls'
25
- help_example 'fp analyze --project stowzilla'
26
- help_example 'fp analyze print_container_qr --project stowzilla --conflicts'
25
+ help_example 'fp analyze --project acme'
26
+ help_example 'fp analyze print_container_qr --project acme --conflicts'
27
27
 
28
28
  KNOWN_FLAGS = {
29
29
  project: :string,
@@ -18,8 +18,8 @@ module Fp
18
18
  help_flag :sha, 'Commit SHA the capture observed'
19
19
  help_flag :example_title, 'Name of the individual test this media proves'
20
20
  help_flag :evidence_key, 'Composite receipt key (surface:repo:test_type) to bind to'
21
- help_example 'fp attach print_qr e2e-run.webm --project stowzilla --surface customer_web --example-title "prints a QR code onto the container label"'
22
- help_example 'fp attach rm print_qr <attachment-id> --project stowzilla'
21
+ help_example 'fp attach print_qr e2e-run.webm --project acme --surface customer_web --example-title "prints a QR code onto the container label"'
22
+ help_example 'fp attach rm print_qr <attachment-id> --project acme'
23
23
  help_note 'Visual: png, jpg, gif, webp, mp4, webm, mov. Text/docs: txt, md, json, svg, pdf. Max 100 MB.'
24
24
 
25
25
  CONTENT_TYPES = {
@@ -10,7 +10,7 @@ module Fp
10
10
  help_usage 'fp attachments <slug> --project <slug>',
11
11
  'fp attachments <slug> <attachment-id> --project <slug>'
12
12
  help_flag :project, 'Project slug (falls back to .featureparity.yml)'
13
- help_example 'fp attachments print_container_qr --project stowzilla'
13
+ help_example 'fp attachments print_container_qr --project acme'
14
14
 
15
15
  KNOWN_FLAGS = { project: :string }.freeze
16
16
 
@@ -69,7 +69,7 @@ module Fp
69
69
  help_flag :sha, 'Checkout commit SHA'
70
70
  help_flag :allow_empty, 'Do not error when a report resolves no fp:<slug> markers'
71
71
  help_flag :local, 'No CI available: report a suite a person ran locally at a clean, committed HEAD (--ci-url optional)'
72
- help_example 'fp ci-report --junit junit.xml --project stowzilla --surface api --ci-url "$CI_RUN_URL"'
72
+ help_example 'fp ci-report --junit junit.xml --project acme --surface api --ci-url "$CI_RUN_URL"'
73
73
  help_example 'fp ci-report --junit web.xml --surface web --base-dir frontend --pr "$PR_URL"'
74
74
  help_example 'fp ci-report --local --junit junit.xml --surface api'
75
75
  help_note "This is CI's command, not an agent's: only it writes passing/failing. Run it on both\n" \
@@ -27,7 +27,7 @@ module Fp
27
27
  help_flag :source_type, "Origin type: #{VALID_SOURCE_TYPES.join(', ')}"
28
28
  help_flag :source_url, 'Origin URL'
29
29
  help_flag :source_context, 'Free-form origin note'
30
- help_example 'fp comment print_qr --body "This conflicts with the freezer label requirement" --project stowzilla'
30
+ help_example 'fp comment print_qr --body "This conflicts with the freezer label requirement" --project acme'
31
31
 
32
32
  def run(args)
33
33
  opts, positional = parse_flags(args, KNOWN_FLAGS)
@@ -19,7 +19,7 @@ module Fp
19
19
  help_flag :project, 'Project slug (falls back to .featureparity.yml)'
20
20
  help_flag :body, 'Post this comment (omit to list the comments)'
21
21
  help_flag :tag, 'Comma-separated people (email or name) or agents (name or key name) to tag'
22
- help_example 'fp comments print_qr --project stowzilla'
22
+ help_example 'fp comments print_qr --project acme'
23
23
  help_example 'fp comments print_qr --body "The redesign dropped this screen — retire it?" --tag andy@example.com'
24
24
 
25
25
  def run(args)
@@ -18,8 +18,8 @@ module Fp
18
18
  help_flag :category, 'Only requirements in this category'
19
19
  help_flag :surface, 'Only requirements that name this surface'
20
20
  help_flag :output, 'Write to this file instead of stdout'
21
- help_example 'fp export --project stowzilla > requirements.md'
22
- help_example 'fp export --project stowzilla --status active --surface customer_android --output reqs.md'
21
+ help_example 'fp export --project acme > requirements.md'
22
+ help_example 'fp export --project acme --status active --surface customer_android --output reqs.md'
23
23
 
24
24
  KNOWN_FLAGS = {
25
25
  project: :string,
@@ -9,6 +9,8 @@ module Fp
9
9
  class Help < Base
10
10
  def run(args)
11
11
  topic = args.first
12
+ return print_index if output&.json? && (topic.nil? || topic.start_with?('-'))
13
+
12
14
  if topic && Fp::CLI::COMMANDS.key?(topic)
13
15
  puts Fp::CLI::COMMANDS[topic].help_text(topic)
14
16
  return
@@ -26,6 +28,17 @@ module Fp
26
28
 
27
29
  private
28
30
 
31
+ # `fp help --json`: every command with its summary and usage, from the same
32
+ # metadata `fp <cmd> --help --json` reads. A command with no declared summary
33
+ # still appears by name (summary nil, usage the generic line).
34
+ def print_index
35
+ commands = Fp::CLI::COMMANDS.map do |name, klass|
36
+ schema = klass.help_schema(name)
37
+ { 'name' => name, 'summary' => schema['summary'], 'usage' => schema['usage'] }
38
+ end
39
+ output.success({ 'version' => Fp::VERSION, 'commands' => commands })
40
+ end
41
+
29
42
  def print_overview
30
43
  puts <<~HELP
31
44
  fp - FeatureParity CLI for agents
@@ -222,13 +235,13 @@ module Fp
222
235
  # Onboard a repo onto FeatureParity: writes .featureparity.yml, a CI gate
223
236
  # workflow, and a FeatureParity section in AGENTS.md telling agents to mark
224
237
  # and report their tests. Needs no API key.
225
- fp init --project stowzilla --surface api
226
- fp init --project stowzilla --no-workflow # skip the CI workflow
227
- fp init --project stowzilla --force # refresh previously written files
238
+ fp init --project acme --surface api
239
+ fp init --project acme --no-workflow # skip the CI workflow
240
+ fp init --project acme --force # refresh previously written files
228
241
 
229
242
  # Enforce parity. Exits 1 on violations, so CI blocks the merge.
230
243
  fp check # project from .featureparity.yml
231
- fp check --project stowzilla --surface api # gate one surface only
244
+ fp check --project acme --surface api # gate one surface only
232
245
  fp check --level covered # demand coverage, not just no regressions
233
246
  fp check --warn-only # report violations but exit 0
234
247
  fp check --json # machine-readable violations
@@ -260,38 +273,38 @@ module Fp
260
273
  fp projects delete calib-rate --yes
261
274
 
262
275
  # List the surfaces a project tracks (requirements may only name these)
263
- fp surfaces --project stowzilla
276
+ fp surfaces --project acme
264
277
 
265
278
  # View a single surface's details (owner, repo, kind, test globs)
266
- fp surfaces show customer_android --project stowzilla
279
+ fp surfaces show customer_android --project acme
267
280
 
268
281
  # Create a surface (agents can do this — no need to wait on the web app)
269
- fp surfaces add customer_android --project stowzilla \\
282
+ fp surfaces add customer_android --project acme \\
270
283
  --name "Customer Android App" \\
271
284
  --kind android \\
272
- --repo stowzilla/customer-android
285
+ --repo acme/customer-android
273
286
 
274
287
  # Fix up an existing surface (add refuses a key that already exists)
275
- fp surfaces edit web --project stowzilla --kind web --repo stowzilla/web
288
+ fp surfaces edit web --project acme --kind web --repo acme/web
276
289
 
277
290
  # Delete a surface (type the key back, or --yes non-interactively)
278
- fp surfaces delete web --project stowzilla --yes
291
+ fp surfaces delete web --project acme --yes
279
292
 
280
293
  # List requirements for a project
281
- fp list --project stowzilla
294
+ fp list --project acme
282
295
 
283
296
  # List requirements filtered by category
284
- fp list --project stowzilla --category security
297
+ fp list --project acme --category security
285
298
 
286
299
  # List requirements filtered by tag (free-form label)
287
- fp list --project stowzilla --tag mobile
300
+ fp list --project acme --tag mobile
288
301
 
289
302
  # Show gaps: requirements with a required surface that has no real evidence
290
303
  # (missing, stubbed, or failing). Unlike `fp list`, this reads evidence.
291
- fp list --project stowzilla --gaps --surface customer_android
304
+ fp list --project acme --gaps --surface customer_android
292
305
 
293
306
  # Show a specific requirement
294
- fp show print_container_qr --project stowzilla
307
+ fp show print_container_qr --project acme
295
308
 
296
309
  # Propose a new requirement (creates as draft).
297
310
  # A requirement records the current shared understanding, not a decree handed from
@@ -352,7 +365,7 @@ module Fp
352
365
  # vague, revise or ask. Then read it as a manager deciding scope: is the value clear,
353
366
  # is the result observable, are decisions separated from guesses, and does every
354
367
  # sentence earn its place? Do not save until the draft passes this review.
355
- fp propose --project stowzilla \\
368
+ fp propose --project acme \\
356
369
  --slug print_container_qr \\
357
370
  --name "Print QR code on container label" \\
358
371
  --why "Staff scan the label to find a container; without a QR they key the ID by hand and mis-type it" \\
@@ -363,7 +376,7 @@ module Fp
363
376
 
364
377
  # Nest a requirement under a parent (--parent takes the parent's SLUG).
365
378
  # A child's --required surfaces must be a subset of its parent's.
366
- fp propose --project stowzilla \\
379
+ fp propose --project acme \\
367
380
  --slug print_container_qr_ios \\
368
381
  --name "Print QR on iOS" \\
369
382
  --parent print_container_qr \\
@@ -372,7 +385,7 @@ module Fp
372
385
  # Propose a change to a requirement that already exists. Say what prompted it
373
386
  # — the card, the thread, the issue. The requirement drops back to DRAFT and a
374
387
  # human reviews the old-vs-new diff before it counts again.
375
- fp propose-change print_container_qr --project stowzilla \\
388
+ fp propose-change print_container_qr --project acme \\
376
389
  --name "Print a scannable container QR" \\
377
390
  --slug print_scannable_container_qr \\
378
391
  --why "Labels must survive a freezer" \\
@@ -382,27 +395,27 @@ module Fp
382
395
  --source-url https://app.fizzy.do/6098707/cards/1377
383
396
 
384
397
  # Propose deleting a requirement (nothing is destroyed — a human decides)
385
- fp propose-change print_container_qr --project stowzilla \\
398
+ fp propose-change print_container_qr --project acme \\
386
399
  --removal \\
387
400
  --reason "Superseded by print_container_label"
388
401
 
389
402
  # Un-nest a child back to the top level (clears its parent)
390
- fp propose-change print_container_qr_ios --project stowzilla --no-parent \\
403
+ fp propose-change print_container_qr_ios --project acme --no-parent \\
391
404
  --reason "Promoted to a top-level promise"
392
405
 
393
406
  # Amend a proposal you already opened: the single-open-proposal rule won't let
394
407
  # you open a second, so withdraw yours (restoring the requirement) and propose
395
408
  # again. Only the author can withdraw; someone else's proposal goes to review.
396
- fp propose-change print_container_qr --project stowzilla --withdraw
409
+ fp propose-change print_container_qr --project acme --withdraw
397
410
 
398
411
  # See what changed, why, and who asked for it
399
- fp history print_container_qr --project stowzilla
400
- fp history print_container_qr --project stowzilla --pending
412
+ fp history print_container_qr --project acme
413
+ fp history print_container_qr --project acme --pending
401
414
 
402
415
  # Triage the catalog's quality: duplicates, fragments, vague wording, conflicts.
403
416
  # One model call per uncached requirement; unchanged ones are read back free.
404
- fp analyze --project stowzilla
405
- fp analyze print_container_qr --project stowzilla --conflicts
417
+ fp analyze --project acme
418
+ fp analyze print_container_qr --project acme --conflicts
406
419
 
407
420
  # Upload visual test evidence to a requirement. Images and videos require
408
421
  # --surface; deployment fields let reviewers verify exactly what build the
@@ -416,28 +429,28 @@ module Fp
416
429
  # Text formats: txt, md, json (render inline as code blocks for API evidence)
417
430
  # Documents: svg, pdf (downloadable)
418
431
  # Max 100 MB.
419
- fp attach print_container_qr e2e-run.webm --project stowzilla \\
432
+ fp attach print_container_qr e2e-run.webm --project acme \\
420
433
  --surface customer_web \\
421
434
  --example-title "prints a QR code onto the container label" \\
422
435
  --captured-at 2026-10-15T01:42:00Z \\
423
436
  --deployed-at 2026-10-15T01:30:00Z \\
424
437
  --sha abc1234 \\
425
438
  --deployment-url https://preview.example.test \\
426
- --test-run-url https://github.com/stowzilla/app/actions/runs/123
439
+ --test-run-url https://github.com/acme/app/actions/runs/123
427
440
 
428
441
  # For API tests, attach the JSON response as inline evidence
429
- fp attach api_returns_order_details response.json --project stowzilla \\
442
+ fp attach api_returns_order_details response.json --project acme \\
430
443
  --surface api \\
431
- --evidence-key "api:stowzilla/api:e2e"
444
+ --evidence-key "api:acme/api:e2e"
432
445
 
433
446
  # List attachments and their capture/deployment context
434
- fp attachments print_container_qr --project stowzilla
447
+ fp attachments print_container_qr --project acme
435
448
 
436
449
  # Get a download URL for a specific attachment
437
- fp attachments print_container_qr <attachment-id> --project stowzilla
450
+ fp attachments print_container_qr <attachment-id> --project acme
438
451
 
439
452
  # Delete an attachment
440
- fp attach rm print_container_qr <attachment-id> --project stowzilla
453
+ fp attach rm print_container_qr <attachment-id> --project acme
441
454
 
442
455
  # Read a Pari conversation so an agent can review AI suggestions.
443
456
  # A conversation is just a record identified by its id — no --project
@@ -446,12 +459,12 @@ module Fp
446
459
  fp conversation 03h0abc123xyz
447
460
 
448
461
  # Report evidence for a requirement
449
- fp report print_container_qr --project stowzilla \\
462
+ fp report print_container_qr --project acme \\
450
463
  --surface customer_android \\
451
464
  --file app/src/test/java/PrintQrTest.kt \\
452
465
  --line 42 \\
453
- --repo stowzilla/customer-android \\
454
- --pr https://github.com/stowzilla/customer-android/pull/123 \\
466
+ --repo acme/customer-android \\
467
+ --pr https://github.com/acme/customer-android/pull/123 \\
455
468
  --work-item https://app.fizzy.do/123/cards/456 \\
456
469
  --title "prints a QR code onto the container label"
457
470
 
@@ -461,10 +474,10 @@ module Fp
461
474
  # rspec --format RspecJunitFormatter --out junit.xml # (or your runner's equivalent)
462
475
  # RSpec's own `--format json --out rspec.json` works as --junit too, with no extra gem.
463
476
  # Or let fp add the formatter and report in one step (rspec, pytest, vitest, playwright):
464
- # fp run --surface api --repo stowzilla/marketplace -- bundle exec rspec
465
- fp report --junit junit.xml --project stowzilla \\
477
+ # fp run --surface api --repo acme/marketplace -- bundle exec rspec
478
+ fp report --junit junit.xml --project acme \\
466
479
  --surface api \\
467
- --repo stowzilla/marketplace \\
480
+ --repo acme/marketplace \\
468
481
  --work-item https://app.fizzy.do/123/cards/456
469
482
  # --base-dir sets where relative test file paths in the report resolve from
470
483
  # Skipped tests are reported as 'stub'; everything else as 'present'.
@@ -478,15 +491,15 @@ module Fp
478
491
  # runner's testDir is searched for under base-dir, and --attach-media uploads
479
492
  # the videos/screenshots the run recorded ([[ATTACHMENT|…]]) as visual
480
493
  # evidence, each nested under the test it proves.
481
- fp report --junit junit.xml --project stowzilla \\
482
- --surface web --repo stowzilla/app --base-dir frontend --attach-media
494
+ fp report --junit junit.xml --project acme \\
495
+ --surface web --repo acme/app --base-dir frontend --attach-media
483
496
 
484
497
  # CI ONLY: ingest real pass/fail results. Run in your CI pipeline after
485
498
  # the suite (on green AND red builds). Unlike `fp report`, this writes
486
499
  # passing/failing evidence and marks vanished-but-previously-passing
487
500
  # slugs as failing. This is the half of the loop that turns the matrix
488
501
  # circles into ✓ / ✗.
489
- fp ci-report --junit junit.xml --project stowzilla \\
502
+ fp ci-report --junit junit.xml --project acme \\
490
503
  --surface api \\
491
504
  --ci-url "$CI_RUN_URL"
492
505
  # Pass --junit more than once to ingest several reports for one surface.
@@ -497,25 +510,25 @@ module Fp
497
510
  # --allow-empty when a suite genuinely has none.
498
511
 
499
512
  # Show the parity matrix
500
- fp matrix --project stowzilla
513
+ fp matrix --project acme
501
514
 
502
515
  # Export matrix as CSV
503
- fp matrix --project stowzilla --csv > matrix.csv
516
+ fp matrix --project acme --csv > matrix.csv
504
517
 
505
518
  # Export the full requirements document as Markdown
506
- fp export --project stowzilla > requirements.md
519
+ fp export --project acme > requirements.md
507
520
 
508
521
  # Export only active requirements for one surface, written to a file
509
- fp export --project stowzilla --status active \\
522
+ fp export --project acme --status active \\
510
523
  --surface customer_android --output requirements.md
511
524
 
512
525
  # Map a surface to a local repo on this machine
513
526
  fp repos set customer_android ~/code/customer-android \\
514
- --project stowzilla --repo stowzilla/customer-android
527
+ --project acme --repo acme/customer-android
515
528
 
516
529
  # Find where a surface's code lives locally (for agents)
517
- fp repos get customer_android --project stowzilla
518
- cd "$(fp repos get customer_android --project stowzilla)"
530
+ fp repos get customer_android --project acme
531
+ cd "$(fp repos get customer_android --project acme)"
519
532
 
520
533
  MARKER CONVENTION
521
534
  Tests are bound to requirements using the fp:<slug> marker in the test file.
@@ -14,8 +14,8 @@ module Fp
14
14
  help_flag :project, 'Project slug (falls back to .featureparity.yml)'
15
15
  help_flag :pending, 'Show only the open proposal, if any'
16
16
  help_flag :limit, 'Cap the number of events shown'
17
- help_example 'fp history print_container_qr --project stowzilla'
18
- help_example 'fp history print_container_qr --project stowzilla --pending'
17
+ help_example 'fp history print_container_qr --project acme'
18
+ help_example 'fp history print_container_qr --project acme --pending'
19
19
 
20
20
  KNOWN_FLAGS = { project: :string, pending: :boolean, limit: :string }.freeze
21
21
 
@@ -34,8 +34,8 @@ module Fp
34
34
  help_flag :force, 'Refresh files fp previously wrote'
35
35
  help_flag :no_workflow, 'Skip writing the CI workflow'
36
36
  help_flag :no_agents, 'Skip appending the AGENTS.md section'
37
- help_example 'fp init --project stowzilla --surface api'
38
- help_example 'fp init --project stowzilla --no-workflow'
37
+ help_example 'fp init --project acme --surface api'
38
+ help_example 'fp init --project acme --no-workflow'
39
39
  help_example 'fp init --detect', 'See what fp makes of this repo before choosing a slug and surfaces'
40
40
  help_note "Makes no API calls, so a repo can be onboarded before anyone has a key.\n" \
41
41
  'Committing the workflow before the FP_API_KEY secret exists is fine: the gate skips with an explanation.'
@@ -183,10 +183,11 @@ module Fp
183
183
  next
184
184
  end
185
185
 
186
- content = strip_existing_section(content) if content.include?(AGENTS_MARKER)
186
+ refreshed = content.include?(AGENTS_MARKER)
187
+ content = strip_existing_section(content) if refreshed
187
188
  separator = content.end_with?("\n") ? "\n" : "\n\n"
188
189
  File.write(path, "#{content}#{separator}#{section}")
189
- written << [relative(root, path), 'appended FeatureParity section']
190
+ written << [relative(root, path), refreshed ? 'refreshed FeatureParity section' : 'appended FeatureParity section']
190
191
  else
191
192
  File.write(path, section)
192
193
  written << [relative(root, path), 'created']
@@ -514,6 +515,24 @@ module Fp
514
515
  # The agent-facing brief. Written as instructions rather than description, because
515
516
  # this text is read by something that is about to write a test and needs to know
516
517
  # exactly what to do.
518
+ # The first marker example in the section, in the language of the repo's first
519
+ # detected test runner (nothing detected, or a runner we have no example for, keeps
520
+ # the Ruby/RSpec one). A pytest repo reading `it '...' do` first was misled.
521
+ def marker_example
522
+ name = ((@detection || {})['test_runners'] || []).first&.fetch('name', nil)
523
+ case name
524
+ when 'pytest'
525
+ { lang: 'python', comment: '#',
526
+ code: "# fp:print_container_qr\ndef test_prints_a_qr_code_onto_the_container_label():" }
527
+ when 'jest', 'vitest', 'playwright'
528
+ { lang: 'javascript', comment: '//',
529
+ code: "// fp:print_container_qr\nit('prints a QR code onto the container label', () => {" }
530
+ else
531
+ { lang: 'ruby', comment: '#',
532
+ code: "# fp:print_container_qr\nit 'prints a QR code onto the container label' do" }
533
+ end
534
+ end
535
+
517
536
  def agents_section(project_slug)
518
537
  <<~MARKDOWN
519
538
  #{AGENTS_MARKER}
@@ -602,13 +621,12 @@ module Fp
602
621
  Add an `fp:<slug>` comment directly above the test. Keep the test's own name
603
622
  readable — the marker is the join, not the name.
604
623
 
605
- ```ruby
606
- # fp:print_container_qr
607
- it 'prints a QR code onto the container label' do
624
+ ```#{marker_example[:lang]}
625
+ #{marker_example[:code]}
608
626
  ```
609
627
 
610
628
  Pin surfaces in the marker when one test satisfies more than one:
611
- `# fp:print_container_qr@api,web`.
629
+ `#{marker_example[:comment]} fp:print_container_qr@api,web`.
612
630
 
613
631
  Every feature needs one. A requirement with no marked test is a gap, and gaps are
614
632
  what the gate is eventually going to fail on.
@@ -13,9 +13,9 @@ module Fp
13
13
  help_flag :tag, 'Filter by a free-form tag'
14
14
  help_flag :status, 'Filter by status: active (default), draft, archived'
15
15
  help_flag :gaps, 'Show only requirements with an uncovered required surface (reads evidence)'
16
- help_example 'fp list --project stowzilla'
17
- help_example 'fp list --project stowzilla --status draft', 'Drafts are hidden by default'
18
- help_example 'fp list --project stowzilla --gaps --surface customer_android'
16
+ help_example 'fp list --project acme'
17
+ help_example 'fp list --project acme --status draft', 'Drafts are hidden by default'
18
+ help_example 'fp list --project acme --gaps --surface customer_android'
19
19
  help_example 'fp list --status draft --gaps', 'Drafts lacking evidence on a required surface'
20
20
 
21
21
  KNOWN_FLAGS = {
@@ -19,6 +19,9 @@ module Fp
19
19
  help_example 'fp mark academic_experience_required_fields spec/models/academic_experience_spec.rb:52'
20
20
  help_example 'fp mark checkout_flow e2e/checkout.spec.ts:10 --surface web --type e2e'
21
21
  help_note "<line> is the test's own line (the `it`/`test`/`def test_` line); the marker goes directly above it.\n" \
22
+ "Each insert shifts every line below it down by one. Marking several tests in one file from a single read of it?\n" \
23
+ "Mark from the bottom of the file upward, or re-read the line numbers between marks. The \"It binds to:\" line is the check:\n" \
24
+ "if it names the wrong test, or fp warns that no test declaration was recognised, the marker landed on the wrong line.\n" \
22
25
  'Marking a test binds it to a requirement: never mark a test that is currently failing to make it count.'
23
26
 
24
27
  KNOWN_FLAGS = {
@@ -19,8 +19,8 @@ module Fp
19
19
  help_flag :surface, 'Limit to one surface'
20
20
  help_flag :level, 'Evaluate against this enforcement level (off/regression/covered/strict)'
21
21
  help_flag :csv, 'Emit CSV instead of the ASCII table'
22
- help_example 'fp matrix --project stowzilla'
23
- help_example 'fp matrix --project stowzilla --csv > matrix.csv'
22
+ help_example 'fp matrix --project acme'
23
+ help_example 'fp matrix --project acme --csv > matrix.csv'
24
24
 
25
25
  KNOWN_FLAGS = {
26
26
  project: :string,
@@ -54,7 +54,8 @@ module Fp
54
54
 
55
55
  # The global CLI parser consumes --api-url before the command runs, so
56
56
  # honor it via the config object when the local flag wasn't captured.
57
- api_url = opts[:api_url] || config&.explicit_api_url
57
+ # Saved without a trailing /api: the website used to hand that form out (Fizzy #1980).
58
+ api_url = Config.normalize_api_url(opts[:api_url] || config&.explicit_api_url)
58
59
  Config.save_profile(name, api_key: opts[:api_key], api_url: api_url, environment: opts[:environment])
59
60
 
60
61
  effective_url = api_url || Config.get_setting('api_url') || Config::DEFAULT_API_URL
@@ -33,7 +33,7 @@ module Fp
33
33
  help_flag :source_ref, 'A place in the repo it was read from, e.g. app/models/order.rb:42 (repeatable)'
34
34
  help_flag :file, 'YAML or JSON file of requirements to propose in one batch (validated all-or-nothing)'
35
35
  help_flag :dry_run, 'Validate and lint the wording; write nothing'
36
- help_example 'fp propose --project stowzilla --slug print_qr --name "Print QR on container label" --why "Staff mis-type the ID without a scannable code" --required api,customer_ios --acceptance "QR scans to the container detail page"'
36
+ help_example 'fp propose --project acme --slug print_qr --name "Print QR on container label" --why "Staff mis-type the ID without a scannable code" --required api,customer_ios --acceptance "QR scans to the container detail page"'
37
37
  help_example 'fp propose --file requirements.yml --dry-run', 'Lint a batch and show what would be created'
38
38
  help_example 'fp propose --file requirements.yml --source-type repo_scan', 'Create the batch; flags are defaults for every entry'
39
39
  help_note "Agents can only create drafts. A human activates it in the web app.\n" \
@@ -31,7 +31,7 @@ module Fp
31
31
  help_flag :source_url, 'URL of the card/issue/thread that prompted this proposal'
32
32
  help_flag :source_context, 'Free-form note about what prompted this proposal'
33
33
  help_flag :source_ref, 'A place in the repo that prompted it, e.g. app/models/order.rb:42 (repeatable)'
34
- help_example 'fp propose-change print_qr --project stowzilla --acceptance "QR scans after 24h at -20C" --reason "Cold-chain rollout"'
34
+ help_example 'fp propose-change print_qr --project acme --acceptance "QR scans after 24h at -20C" --reason "Cold-chain rollout"'
35
35
  help_example 'fp propose-change summon_can_be_undone --tags rules,units --reason "Rulebook check reads the first tag"'
36
36
  help_example 'fp propose-change print_qr --removal --reason "Superseded by print_container_label"'
37
37
  help_note "Applies the change and drops the requirement to draft for a human to review. --reason and\n" \
@@ -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.31'
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
 
@@ -477,10 +483,10 @@ Show a requirement's change history: what changed, who changed it, what prompted
477
483
  how the test evidence moved.
478
484
 
479
485
  ```bash
480
- fp history print_container_qr --project stowzilla
481
- fp history print_container_qr --project stowzilla --pending # only what awaits review
482
- fp history print_container_qr --project stowzilla --limit 5 # most recent 5 entries
483
- 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
484
490
  ```
485
491
 
486
492
  Entries are printed oldest first. Each shows the event (created, edited, approved,
@@ -497,7 +503,7 @@ Use it for the decisions a draft can't settle by itself, instead of leaving them
497
503
 
498
504
  ```bash
499
505
  fp question upload_limits "Is the 5 MB cap per file or per upload?"
500
- 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
501
507
  fp questions upload_limits # every question, open and resolved, with answers
502
508
  fp questions upload_limits --open --json # only the open ones
503
509
  ```
@@ -522,7 +528,7 @@ proposed change. Refusals, printed verbatim:
522
528
  Read or join the team's conversation on a requirement, and tag people or agents in it.
523
529
 
524
530
  ```bash
525
- 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
526
532
  fp comments print_container_qr --body "The label redesign dropped this — retire it?" \
527
533
  --tag andy@example.com
528
534
  fp comments print_container_qr --body "Can you re-check this against the new label?" --tag claude
@@ -545,13 +551,13 @@ possible conflicts. **Read-only — it never files a proposal.** Report first; a
545
551
  picks which proposals to file (each moves its requirement to draft).
546
552
 
547
553
  ```bash
548
- fp analyze --project stowzilla # active + draft requirements
549
- fp analyze print_container_qr --project stowzilla # one requirement, with suggestions
550
- fp analyze --project stowzilla --status active # narrow the sweep
551
- fp analyze --project stowzilla --conflicts # also check contradictions (slower)
552
- fp analyze --project stowzilla --force # re-run even if the result is current
553
- fp analyze --project stowzilla --cached # saved results only, no model calls
554
- 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
555
561
  ```
556
562
 
557
563
  Analysis costs one model call per requirement, so the sweep runs one request at a time
@@ -576,7 +582,7 @@ history separately.
576
582
 
577
583
  ```bash
578
584
  fp changes --source-url https://app.fizzy.do/6098707/cards/1434
579
- 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
580
586
  fp changes --github-pr --github-summary
581
587
  ```
582
588
 
@@ -602,7 +608,7 @@ and from `suspect` evidence caused by changed requirement wording.
602
608
 
603
609
  ```bash
604
610
  fp changed-tests # project from .featureparity.yml
605
- fp changed-tests --project stowzilla --surface api
611
+ fp changed-tests --project acme --surface api
606
612
  fp changed-tests --json # complete machine-readable queue
607
613
  ```
608
614
 
@@ -700,10 +706,10 @@ Display the parity matrix. Cells show the state of the evidence filed for each
700
706
  (requirement, surface) pair.
701
707
 
702
708
  ```bash
703
- fp matrix --project stowzilla # ASCII table
704
- fp matrix --project stowzilla --csv # CSV export (state names, not glyphs)
705
- fp matrix --project stowzilla --json # JSON
706
- 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
707
713
  ```
708
714
 
709
715
  | Glyph | State | Meaning |
@@ -766,7 +772,7 @@ can be a required status check on a pull request.
766
772
 
767
773
  ```bash
768
774
  fp check # project from .featureparity.yml
769
- fp check --project stowzilla --surface api
775
+ fp check --project acme --surface api
770
776
  fp check --level covered # override the project's level for this run
771
777
  fp check --warn-only # print violations, still exit 0
772
778
  fp check --json
@@ -872,11 +878,11 @@ before a key is configured).
872
878
  ```bash
873
879
  fp init --detect # suggest slug, surfaces, test commands; writes nothing
874
880
  fp init --detect --json
875
- fp init --project stowzilla --surface api
876
- fp init --project stowzilla --no-workflow # skip the CI workflow
877
- fp init --project stowzilla --no-agents # skip the AGENTS.md section
878
- fp init --project stowzilla --force # refresh files written previously
879
- 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
880
886
  ```
881
887
 
882
888
  | File | Purpose |
@@ -992,10 +998,10 @@ fp --api-url http://localhost:9292 whoami
992
998
  Map surfaces to local repo paths (stored locally, not in the web app).
993
999
 
994
1000
  ```bash
995
- fp repos list --project stowzilla
996
- fp repos set customer_android ~/code/customer-android --project stowzilla --repo org/repo
997
- fp repos get customer_android --project stowzilla
998
- 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
999
1005
  ```
1000
1006
 
1001
1007
  ## Exit codes
@@ -1025,7 +1031,7 @@ request failure (`ok: false`).
1025
1031
  ### .featureparity.yml
1026
1032
 
1027
1033
  ```yaml
1028
- project: stowzilla # required — the project slug
1034
+ project: acme # required — the project slug
1029
1035
  enforcement: regression # optional — usually omit; the level lives on the project
1030
1036
  surface: api # optional — default surface for a single-surface repo
1031
1037
  ```
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: featureparity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stowzilla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-11 00:00:00.000000000 Z
11
+ date: 2026-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http