You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the deterministic-shaped, AI-backed ANALYSIS core of #1961: given the already-fetched linked-issue text and the PR diff/title, produce a bounded advisory result {status: addressed|partial|unaddressed, rationale, confidence}. Pure function + prompt composition only — NO gate wiring, NO disposition change (that stays maintainer-only). Fail-safe: no issue text or model error yields no finding, and a low confidence never emits an 'unaddressed' call.
Deliverables
New src/services/linked-issue-satisfaction.ts exporting an assessment builder that takes {issueText, prTitle, prBody, diff} and returns a public-safe {status, rationale, confidence} | null
Confidence gate constant (mirror ai-review.ts AI_DEFAULT_CONFIDENCE handling in src/services/ai-review.ts:384) so an 'unaddressed' verdict below the floor degrades to no finding
Fail-safe guards: empty/absent issue text, malformed model output, or thrown error all return null (never throw into the caller)
Public-safe rationale filtering reusing the existing public-safe helper used by composeInlineFindings
Unit tests covering every branch: each status, empty issue, low-confidence suppression, model-error path, both sides of the confidence floor (97% branch-counted)
Add the deterministic-shaped, AI-backed ANALYSIS core of #1961: given the already-fetched linked-issue text and the PR diff/title, produce a bounded advisory result {status: addressed|partial|unaddressed, rationale, confidence}. Pure function + prompt composition only — NO gate wiring, NO disposition change (that stays maintainer-only). Fail-safe: no issue text or model error yields no finding, and a low confidence never emits an 'unaddressed' call.
Deliverables
References
src/review/linked-issue-hard-rules.ts:1src/review/grounding-wire.tssrc/services/ai-review.ts:384src/services/ai-review.ts:215Part of #1961.
size: S · held for later release (gittensor:feature once activated)