Skip to content

feat(unic-spec-review): shared context (existing comments + Landscape Brief)#223

Closed
orioltf wants to merge 5 commits into
developfrom
archon/task-feature-unic-spec-review-204-comments-landscape-br
Closed

feat(unic-spec-review): shared context (existing comments + Landscape Brief)#223
orioltf wants to merge 5 commits into
developfrom
archon/task-feature-unic-spec-review-204-comments-landscape-br

Conversation

@orioltf
Copy link
Copy Markdown
Member

@orioltf orioltf commented Jun 8, 2026

Summary

  • Extends atlassian-fetch.mjs with fetchConfluenceComments / mainFetchComments: reads footer and inline Confluence page comments via the v1 REST API child/comment endpoint, read-only with injected fetch.
  • Adds scripts/lib/landscape-detector.mjs: detectLandscape produces a LandscapeBrief (stack, testSetup, tooling, reachableProd, adjacentSystems) from repo manifests and root file listing; stack never hardcoded; injectable deps for tests.
  • Unit tests: 15 new tests for the comment-read path and 18 tests for detectLandscape. Total: 137 tests, 0 failures.
  • Bumps to 0.1.3; CHANGELOG updated.

Why

S3 of the unic-spec-review plugin (issue #204). Gives review agents shared context computed once per run: prior discussion on the spec page (comments) and the project detected tech landscape (Brief).

Test plan

  • pnpm --filter unic-spec-review test -- 137 pass, 0 fail
  • pnpm --filter unic-spec-review typecheck -- clean
  • No imports from deprecated v1 pr-review plugin
  • No LICENSE file created or deleted
  • verify:changelog passes (bumped to 0.1.3 with dated entry)

Closes #204

Generated with Claude Code

orioltf and others added 5 commits June 8, 2026 08:44
…e-detector

Extend atlassian-fetch with fetchConfluenceComments (footer + inline via
Confluence v1 REST API child/comment endpoint) and mainFetchComments CLI
handler. Add landscape-detector producing a LandscapeBrief from repo
manifests, root file listing, and user-declared adjacent systems -- stack
never hardcoded. Unit tests cover both with injected deps; no live services.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Root CI check (Biome) failed on PR #223 because the comment-read path and
landscape-detector were committed without running the formatter. Reflow only,
no logic changes.

Fixes #204
Rename rootEntries → _rootEntries to satisfy Biome noUnusedFunctionParameters.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…typecheck

The prior unused-param rename (rootEntries -> _rootEntries) left the JSDoc
@param referencing the old name and stripped the inferred type, breaking
tsc (TS8024 + TS7006) in CI even though tests passed. Align the JSDoc name
to the parameter so it is typed and matched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@orioltf
Copy link
Copy Markdown
Member Author

orioltf commented Jun 8, 2026

Closing in favour of a clean re-run of #204: the original workflow's review/self-fix/simplify pipeline was cascade-skipped after a transient verify-pr-base TLS timeout, so this PR never went through those quality steps. Archon can't resume a failed run, so re-triggering from scratch.

@orioltf orioltf closed this Jun 8, 2026
@orioltf orioltf deleted the archon/task-feature-unic-spec-review-204-comments-landscape-br branch June 8, 2026 09:34
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.

unic-spec-review S3: shared context — read existing comments + Landscape Brief

1 participant