@bugzy-ai/bugzy 1.12.3 → 1.13.0

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.
@@ -1269,7 +1269,9 @@ Extract the following from arguments:
1269
1269
  "read-knowledge-base",
1270
1270
  // Step 5: Test Execution Strategy (library)
1271
1271
  "read-test-strategy",
1272
- // Step 6: Identify Tests (inline - task-specific)
1272
+ // Step 6: Clarification Protocol (library)
1273
+ "clarification-protocol",
1274
+ // Step 7: Identify Tests (inline - task-specific)
1273
1275
  {
1274
1276
  inline: true,
1275
1277
  title: "Identify Automated Tests to Run",
@@ -1495,7 +1497,9 @@ Store the detected trigger for use in output routing:
1495
1497
  - Set variable: \`TRIGGER_SOURCE\` = [GITHUB_PR | SLACK_MESSAGE | CI_CD | MANUAL]
1496
1498
  - This determines output formatting and delivery channel`
1497
1499
  },
1498
- // Step 6: Extract Context (inline)
1500
+ // Step 6: Clarification Protocol (library)
1501
+ "clarification-protocol",
1502
+ // Step 7: Extract Context (inline)
1499
1503
  {
1500
1504
  inline: true,
1501
1505
  title: "Extract Context Based on Trigger",
@@ -1956,8 +1960,11 @@ This command orchestrates the complete test coverage workflow in a single execut
1956
1960
  2. **Phase 2**: Generate lightweight test plan
1957
1961
  3. **Phase 3**: Generate and verify test cases (create + fix until passing)
1958
1962
  4. **Phase 4**: Triage failures and fix test issues
1959
- 5. **Phase 5**: Log product bugs
1960
- 6. **Phase 6**: Final report`
1963
+ 5. **Phase 5**: Log product bugs to issue tracker
1964
+ 6. **Phase 6**: Notify team via Slack/Teams with results summary
1965
+ 7. **Phase 7**: Generate final report
1966
+
1967
+ **IMPORTANT**: All phases must be completed. Do NOT skip Phase 5 (bug logging) or Phase 6 (team notification) \u2014 these are required deliverables.`
1961
1968
  },
1962
1969
  // Step 2: Security Notice (from library)
1963
1970
  "security-notice",
@@ -6603,6 +6610,16 @@ Determine exploration depth based on requirement quality:
6603
6610
  - **Vague:** "Fix the sorting in todo list page. The items are mixed up for premium users."
6604
6611
  - **Unclear:** "Improve the dashboard performance. Users say it's slow."
6605
6612
 
6613
+ ### Maturity Adjustment
6614
+
6615
+ If the Clarification Protocol determined project maturity, adjust exploration depth:
6616
+
6617
+ - **New project**: Default one level deeper than requirement clarity suggests (Clear \u2192 Moderate, Vague \u2192 Deep)
6618
+ - **Growing project**: Use requirement clarity as-is (standard protocol)
6619
+ - **Mature project**: Trust knowledge base \u2014 can stay at suggested depth or go one level shallower if KB covers the feature
6620
+
6621
+ **Always verify features exist before testing them.** If exploration reveals that a referenced page or feature does not exist in the application, this is CRITICAL severity \u2014 escalate via the Clarification Protocol regardless of maturity level. Do NOT silently adapt or work around the missing feature.
6622
+
6606
6623
  ### Quick Exploration (1-2 min)
6607
6624
 
6608
6625
  **When:** Requirements CLEAR
@@ -6835,6 +6852,33 @@ Before starting, check if this task is resuming from a blocked clarification:
6835
6852
 
6836
6853
  3. **If no clarification in $ARGUMENTS:** Proceed normally with ambiguity detection below.
6837
6854
 
6855
+ ### Assess Project Maturity
6856
+
6857
+ Before detecting ambiguity, assess how well you know this project. Maturity determines how aggressively you should ask questions \u2014 new projects require more questions, mature projects can rely on accumulated knowledge.
6858
+
6859
+ **Measure maturity from runtime artifacts:**
6860
+
6861
+ | Signal | New | Growing | Mature |
6862
+ |--------|-----|---------|--------|
6863
+ | \`knowledge-base.md\` | < 80 lines (template) | 80-300 lines | 300+ lines |
6864
+ | \`memory/\` files | 0 files | 1-3 files | 4+ files, >5KB each |
6865
+ | Test cases in \`test-cases/\` | 0 | 1-6 | 7+ |
6866
+ | Exploration reports | 0 | 1 | 2+ |
6867
+
6868
+ **Steps:**
6869
+ 1. Read \`.bugzy/runtime/knowledge-base.md\` and count lines
6870
+ 2. List \`.bugzy/runtime/memory/\` directory and count files
6871
+ 3. List \`test-cases/\` directory and count \`.md\` files (exclude README)
6872
+ 4. Count exploration reports in \`exploration-reports/\`
6873
+ 5. Classify: If majority of signals = New \u2192 **New**; majority Mature \u2192 **Mature**; otherwise \u2192 **Growing**
6874
+
6875
+ **Maturity adjusts your question threshold:**
6876
+ - **New**: Ask for CRITICAL + HIGH + MEDIUM severity (gather information aggressively)
6877
+ - **Growing**: Ask for CRITICAL + HIGH severity (standard protocol)
6878
+ - **Mature**: Ask for CRITICAL only (handle HIGH with documented assumptions)
6879
+
6880
+ **CRITICAL severity ALWAYS triggers a question, regardless of maturity level.**
6881
+
6838
6882
  ### Detect Ambiguity
6839
6883
 
6840
6884
  Scan for ambiguity signals:
@@ -6861,8 +6905,8 @@ If ambiguity is detected, assess its severity:
6861
6905
 
6862
6906
  | Severity | Characteristics | Examples | Action |
6863
6907
  |----------|----------------|----------|--------|
6864
- | **CRITICAL** | Expected behavior undefined/contradictory; test outcome unpredictable; core functionality unclear; success criteria missing; multiple interpretations = different strategies | "Fix the issue" (what issue?), "Improve performance" (which metrics?), "Fix sorting in todo list" (by date? priority? completion status?) | **STOP** - Seek clarification before proceeding |
6865
- | **HIGH** | Core underspecified but direction clear; affects majority of scenarios; vague success criteria; assumptions risky | "Fix ordering" (sequence OR visibility?), "Add validation" (what? messages?), "Update dashboard" (which widgets?) | **STOP** - Seek clarification before proceeding |
6908
+ | **CRITICAL** | Expected behavior undefined/contradictory; test outcome unpredictable; core functionality unclear; success criteria missing; multiple interpretations = different strategies; **referenced page/feature does not exist in the application** | "Fix the issue" (what issue?), "Improve performance" (which metrics?), "Fix sorting in todo list" (by date? priority? completion status?), "Test the Settings page" (no Settings page exists), "Verify the checkout flow" (no checkout page found) | **STOP** - You MUST ask via team-communicator before proceeding |
6909
+ | **HIGH** | Core underspecified but direction clear; affects majority of scenarios; vague success criteria; assumptions risky | "Fix ordering" (sequence OR visibility?), "Add validation" (what? messages?), "Update dashboard" (which widgets?) | **STOP** - You MUST ask via team-communicator before proceeding |
6866
6910
  | **MEDIUM** | Specific details missing; general requirements clear; affects subset of cases; reasonable low-risk assumptions possible; wrong assumption = test updates not strategy overhaul | Missing field labels, unclear error message text, undefined timeouts, button placement not specified, date formats unclear | **PROCEED** - (1) Moderate exploration, (2) Document assumptions: "Assuming X because Y", (3) Proceed with creation/execution, (4) Async clarification (team-communicator), (5) Mark [ASSUMED: description] |
6867
6911
  | **LOW** | Minor edge cases; documentation gaps don't affect execution; optional/cosmetic elements; minimal impact | Tooltip text, optional field validation, icon choice, placeholder text, tab order | **PROCEED** - (1) Mark [TO BE CLARIFIED: description], (2) Proceed, (3) Mention in report "Minor Details", (4) No blocking/async clarification |
6868
6912
 
@@ -6963,18 +7007,26 @@ Tasks waiting for clarification responses.
6963
7007
 
6964
7008
  ### Wait or Proceed Based on Severity
6965
7009
 
6966
- **CRITICAL/HIGH \u2192 STOP and Wait:**
6967
- - Do NOT create tests, run tests, or make assumptions
6968
- - Wait for clarification, resume after answer
7010
+ **Use your maturity assessment to adjust thresholds:**
7011
+ - **New project**: STOP for CRITICAL + HIGH + MEDIUM
7012
+ - **Growing project**: STOP for CRITICAL + HIGH (default)
7013
+ - **Mature project**: STOP for CRITICAL only; handle HIGH with documented assumptions
7014
+
7015
+ **When severity meets your STOP threshold:**
7016
+ - You MUST call team-communicator (Slack) to ask the question \u2014 do NOT just mention it in your text output
7017
+ - Do NOT create tests, run tests, or make assumptions about the unclear aspect
7018
+ - Do NOT silently adapt by working around the issue (e.g., running other tests instead)
7019
+ - Do NOT invent your own success criteria when none are provided
7020
+ - Register the blocked task and wait for clarification
6969
7021
  - *Rationale: Wrong assumptions = incorrect tests, false results, wasted time*
6970
7022
 
6971
- **MEDIUM \u2192 Proceed with Documented Assumptions:**
7023
+ **When severity is below your STOP threshold \u2192 Proceed with Documented Assumptions:**
6972
7024
  - Perform moderate exploration, document assumptions, proceed with creation/execution
6973
7025
  - Ask clarification async (team-communicator), mark results "based on assumptions"
6974
7026
  - Update tests after clarification received
6975
7027
  - *Rationale: Waiting blocks progress; documented assumptions allow forward movement with later corrections*
6976
7028
 
6977
- **LOW \u2192 Proceed and Mark:**
7029
+ **LOW \u2192 Always Proceed and Mark:**
6978
7030
  - Proceed with creation/execution, mark gaps [TO BE CLARIFIED] or [ASSUMED]
6979
7031
  - Mention in report but don't prioritize, no blocking
6980
7032
  - *Rationale: Details don't affect strategy/results significantly*
@@ -7002,11 +7054,12 @@ When reporting test results, always include an "Ambiguities" section if clarific
7002
7054
 
7003
7055
  ## Remember
7004
7056
 
7005
- - **Block for CRITICAL/HIGH** - Never proceed with assumptions on unclear core requirements
7057
+ - **STOP means STOP** - When you hit a STOP threshold, you MUST call team-communicator to ask via Slack. Do NOT silently adapt, skip, or work around the issue
7058
+ - **Non-existent features = CRITICAL** - If a page, component, or feature referenced in the task does not exist, this is always CRITICAL severity \u2014 ask what was meant
7006
7059
  - **Ask correctly > guess poorly** - Specific questions lead to specific answers
7007
- - **Document MEDIUM assumptions** - Track what you assumed and why
7060
+ - **Never invent success criteria** - If the task says "improve" or "fix" without metrics, ask what "done" looks like
7008
7061
  - **Check memory first** - Avoid re-asking previously answered questions
7009
- - **Specific questions \u2192 specific answers** - Vague questions get vague answers`,
7062
+ - **Maturity adjusts threshold, not judgment** - Even in mature projects, CRITICAL always triggers a question`,
7010
7063
  tags: ["clarification", "protocol", "ambiguity"]
7011
7064
  };
7012
7065