Skip to content

docs/adr: 0004 — glue-review v2 fix-pack architecture (closes #103)#104

Merged
erain merged 1 commit intomainfrom
issue/103-adr-fixpack-v2
May 7, 2026
Merged

docs/adr: 0004 — glue-review v2 fix-pack architecture (closes #103)#104
erain merged 1 commit intomainfrom
issue/103-adr-fixpack-v2

Conversation

@erain
Copy link
Copy Markdown
Owner

@erain erain commented May 7, 2026

Summary

Lock in the v2 architecture for agents/glue-review before any code moves. The pivot:

  • Output: a single .glue-review-fixes.json artifact. No inline comments, no sticky markdown, no PR Reviews API.
  • Orchestration: parallel fan-out across 3 free OpenRouter models (DeepSeek-R1 + Qwen3 Coder + Kimi K2), one attempt each, drop-on-failure. Synthesizer pass (DeepSeek-R1) deduplicates, normalizes severity, rewrites prompts to be self-contained, and drops singletons (issues flagged by only one model). The schema retains models_flagged + dropped_singletons so downstream consumers can re-tune later.
  • GitHub Action: uploads the JSON as an artifact + writes a one-line job summary. No PR comments.
  • Versioning: hard v2.0.0. @v1 floating tag stays pinned to v1.1.0 for existing users; new repos opt into @v2.

The ADR includes the concrete schema, the synthesizer prompt skeleton, the file-by-file deletion list (parse.go, validate.go, pathspec_test.go, failover.go, v1/v2 markdown prompts, sticky-markdown step), and the migration plan.

Implementation is intentionally not in this PR. It will land as a single big-bang PR; rationale for not splitting is documented at the end of the ADR.

Closes #103

Test plan

  • Doc-only — no code changes; just verifying the file exists and renders.

🤖 Generated with Claude Code

Lock in the v2 architecture for agents/glue-review before any code
moves: emit a single .glue-review-fixes.json artifact synthesized from
multiple free models (DeepSeek-R1 + Qwen3 Coder + Kimi K2;
synthesizer = DeepSeek-R1), drop the inline-comment / sticky-markdown
/ PR Reviews API surface entirely, and ship as a hard v2.0.0 with @v1
pinning for existing users.

The ADR documents:

- Fix-pack JSON schema (version 1) with concrete example and per-field
  semantics. Single source of truth — downstream tooling integrates
  against this contract.
- Multi-model orchestration: parallel fan-out, drop-on-failure
  (HTTP 429 / 5xx), one-attempt-each, synthesizer waits for all
  primaries.
- Synthesizer policy: drop fixes flagged by only one model. Schema
  retains models_flagged + dropped_singletons so downstream consumers
  can re-tune.
- Synthesizer prompt skeleton (reproducible).
- Surface deletions: parse.go, validate.go, pathspec_test.go,
  failover.go, v1+v2 markdown prompts, sticky-markdown step,
  PR Reviews API call.
- Surface kept: tools.go, blocklist.go, fixture_test.go (adapted).
- GitHub Action shape: artifact + job summary, no PR comments.
- Migration plan: @v1 stays pinned, @v2 floats forward, MIGRATION.md
  in agent dir.

Implementation is filed separately as a big-bang PR. Rationale for
not splitting documented at the bottom of the ADR.

Closes #103

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@erain erain merged commit fa822e3 into main May 7, 2026
5 checks passed
@erain erain deleted the issue/103-adr-fixpack-v2 branch May 7, 2026 14:17
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.

ADR 0004: glue-review v2 — fix-pack output for coding agents

1 participant