Skip to content

feat: Automated Jira Bridge Configuration in Project Setup (fbd9-ba78)#1

Merged
JoeOakhartNava merged 7 commits intomainfrom
worktree-20260325-181052
Mar 26, 2026
Merged

feat: Automated Jira Bridge Configuration in Project Setup (fbd9-ba78)#1
JoeOakhartNava merged 7 commits intomainfrom
worktree-20260325-181052

Conversation

@JoeOakhartNava
Copy link
Copy Markdown
Collaborator

Summary

  • Auto-resolve ACLI version and SHA256 during project-setup (TOFU model)
  • Auto-detect Jira credentials from environment with guided defaults
  • Auto-configure GitHub identity and BRIDGE_ENV_ID from gh CLI
  • Add gh CLI availability check with 3-path fallback (authenticated/not-auth/not-installed)
  • Fix ticket CLI documentation in implementation-plan and preplanning skills

Changes

  • 4 new helper scripts: acli-version-resolver.sh, gh-identity-resolver.sh, jira-credential-helper.sh, gh-availability-check.sh
  • 4 corresponding behavioral test suites (TDD RED→GREEN)
  • Updated project-setup/SKILL.md Step 6.5 to use auto-resolution flow
  • Fixed ticket CLI syntax in implementation-plan/SKILL.md and preplanning/SKILL.md

Test plan

  • All 44 unit tests pass (4 original + 4 new test suites)
  • Format and lint checks pass
  • Light-tier code reviews pass for all 4 batches
  • RED markers removed from .test-index (all tests GREEN)

🤖 Generated with Claude Code

JoeOakhartNava and others added 7 commits March 25, 2026 19:51
…CLI docs (fbd9-ba78 batch 1)

Add behavioral test suites (RED phase) for 4 new helper scripts that will
automate Jira bridge configuration in project-setup:
- test-acli-version-resolver.sh: ACLI download/version/SHA256 round-trip
- test-gh-identity-resolver.sh: GitHub identity detection + BRIDGE_ENV_ID
- test-jira-credential-helper.sh: Jira env var detection + guidance
- test-gh-availability-check.sh: gh CLI availability + fallback paths

Fix incorrect ticket CLI syntax in implementation-plan and preplanning
skills (ticket create <type> <title>, not -t/-p/-d flags).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…atch 2)

GREEN phase — implement scripts that pass the RED tests from batch 1:
- gh-availability-check.sh: 3-path gh CLI detection + fallback instructions
- jira-credential-helper.sh: env var detection + guided credential prompts
- gh-identity-resolver.sh: GitHub identity derivation, email fallback chain,
  BRIDGE_ENV_ID auto-generation from org/repo
- acli-version-resolver.sh: ACLI download, version extraction, URL
  construction, SHA256 computation (TOFU model)

All RED markers removed from .test-index — tests now fully enforced.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…a78)

Insert gh-availability-check.sh call before Sub-step D to detect 3 states:
authenticated (proceed normally), not_authenticated (print manual gh
commands), not_installed (print GitHub.com UI navigation steps).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…bd9-ba78)

Integrate jira-credential-helper.sh into project-setup:
- Step 3 Q11: auto-detect JIRA_URL/USER/TOKEN from environment
- B1/B2: offer env-detected defaults for JIRA_URL and JIRA_USER
- C1: add CONFIRM_BEFORE_COPY gate for JIRA_API_TOKEN
- Sub-step D: add gh variable set JIRA_PROJECT
- Completion summary: include JIRA_PROJECT in variables list

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… and credentials (fbd9-ba78 batch 3)

Three sequential SKILL.md updates:
- Add gh-availability-check.sh before Sub-step D with 3-path routing
- Integrate jira-credential-helper.sh for env var auto-detection in
  Step 3 Q11, B1/B2 defaults, C1 confirmation gate, JIRA_PROJECT variable
- Replace manual B5-B8 prompts with gh-identity-resolver.sh: identity
  choice question, own-identity/bot paths, PROMPT_NEEDED email fallback,
  BRIDGE_ENV_ID auto-generation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…resolution (fbd9-ba78 batch 4)

Update project-setup SKILL.md B3/B4 to auto-resolve ACLI_VERSION and
ACLI_SHA256 via acli-version-resolver.sh. Manual prompts retained as
fallbacks only. CLAUDE.md and ADR unchanged (no manual flow references).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JoeOakhartNava JoeOakhartNava merged commit 37a2116 into main Mar 26, 2026
4 of 5 checks passed
JoeOakhartNava added a commit that referenced this pull request Mar 27, 2026
…ub-section

The test_anti_pattern_2_loosen_assertions_code_example_present assertion
checked for "assert" and code blocks in the entire Prohibited Fix Patterns
section. Anti-pattern #1 also contains both, so the test would pass even
if anti-pattern #2 had no code example. Now uses _extract_section() to
check only the "### 2. Loosening assertions" sub-section. Adds a regression
test and .test-index entry for SUB-AGENT-BOUNDARIES.md.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant