Skip to content

refactor: clarify Vertex synthesis policy values - #124

Merged
yvonnedevlinrh merged 2 commits into
unbound-force:mainfrom
yvonnedevlinrh:opsx/extract-vertex-synthesis-constants
Sep 17, 2026
Merged

yvonnedevlinrh merged 2 commits into
unbound-force:mainfrom
yvonnedevlinrh:opsx/extract-vertex-synthesis-constants

Conversation

@yvonnedevlinrh

Copy link
Copy Markdown
Contributor

Summary

Extract the fixed Vertex synthesis HTTP timeout and maximum output token limit into named constants, making provider policy easier to audit without changing runtime behaviour.

Closes #82.

How to Test

go test -race -count=1 ./...
gaze crap --format=json --coverprofile=coverage.out --max-crapload=48 --max-gaze-crapload=18 ./...

The build, vet, race-enabled test suite, and both CI and stricter GazeCRAPload gates pass locally. Unrelated repository-wide lint findings are tracked in #123.

How to Demo

No runtime demo is required. Inspect llm/vertex.go and confirm the HTTP client uses vertexSynthTimeout and requests use vertexSynthMaxTokens, preserving values of 300 seconds and 16,000 tokens.

Key Files Changed

  • llm/vertex.go: Name the existing Vertex synthesis timeout and token-limit policy values.
  • openspec/changes/extract-vertex-synthesis-constants/: Record the proposal, design, requirements, completed tasks, and review gates.

This PR was generated by /uf.finale (AI-assisted).

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:43 PM UTC · Completed 3:54 PM UTC

Commit: a025533 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.40

@yvonnedevlinrh yvonnedevlinrh changed the title Opsx/extract vertex synthesis constants refactor: clarify Vertex synthesis policy values Sep 15, 2026
@yvonnedevlinrh
yvonnedevlinrh requested a review from a team September 15, 2026 15:48
@yvonnedevlinrh yvonnedevlinrh self-assigned this Sep 15, 2026
@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Sep 15, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: low (1/5)

Details

Pure refactor extracting two inline literals to named constants in a single file (llm/vertex.go, +6/-2 code lines). No protected paths, no security-sensitive changes, no CI or dependency modifications. Low churn, well-scoped issue, and benign labels.

@fullsend-ai-review

Copy link
Copy Markdown

Looks good to me

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Sep 15, 2026

@gxmiranda gxmiranda left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, well-scoped refactor. Extracts two inline literals (300 * time.Second and 16000) into named constants (vertexSynthTimeout, vertexSynthMaxTokens), aligning them with the existing vertexSynth* policy constant pattern. Values are preserved exactly. CI passes. Constitution alignment verified. OpenSpec artifacts are thorough and proportionate.

Closes #82.

This review was generated by /review-pr (AI-assisted).

@yvonnedevlinrh
yvonnedevlinrh merged commit c7b3b26 into unbound-force:main Sep 17, 2026
52 checks passed
@yvonnedevlinrh
yvonnedevlinrh deleted the opsx/extract-vertex-synthesis-constants branch September 17, 2026 09:06
@fullsend-ai-retro

fullsend-ai-retro Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 9:07 AM UTC · Completed 9:20 AM UTC

Commit: a025533 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $6.08

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #124 — refactor: clarify Vertex synthesis policy values

The review agent workflow on PR #124 reached the correct outcome. The agent correctly identified this as a low-risk mechanical refactor (extracting two inline literals into named constants in llm/vertex.go, +6/−2 code lines), approved with zero actionable findings, and applied the risk/low and ready-for-merge labels. The human reviewer (gxmiranda) subsequently approved with an AI-assisted review that reached the same conclusion — no additional findings were raised.

Workflow timeline

  1. 2026-09-15 15:41 — PR opened by yvonnedevlinrh, closing issue chore: extract Vertex AI timeout and max tokens to named constants #82
  2. 2026-09-15 15:42 — Review agent dispatched (run 34990166887), model: opus (claude-opus-4-6), effort: high
  3. 2026-09-15 ~15:43–15:47 — MegaLinter and CI pass
  4. 2026-09-15 15:54 — Review agent approves (9m14s agent execution, $3.40 cost). risk/low and ready-for-merge labels applied
  5. 2026-09-17 08:46 — Human reviewer approves (AI-assisted via /review-pr)
  6. 2026-09-17 09:06 — PR merged

Inefficiency: sonnet model unavailability on Vertex

During sub-agent dispatch, 4 of 5 review sub-agents (style-conventions, intent-coherence, docs-currency, risk-assessment) failed because claude-sonnet-4-6 was not available on Vertex. The agent recovered by retrying those sub-agents with opus (the parent model), adding ~2–3 minutes and extra token cost. The correctness sub-agent, dispatched with opus from the start, succeeded on the first attempt.

This is already tracked by two existing issues:

Inefficiency: challenger pass on zero findings

The review agent ran a challenger sub-agent (opus) even though the initial review produced zero actionable findings above threshold. This is already tracked by fullsend-ai/agents#1144 — pr-review: skip challenger dispatch when a review produces no findings.

Autonomy readiness

The agent and human reviews were fully aligned — both approved with no findings. The human review was itself AI-assisted and added no incremental signal beyond confirming repo-specific constitution alignment. For this class of change (mechanical refactor, single-file code change, spec-backed, no protected paths), the review agent's autonomy level appears appropriate. This data point is relevant to the ongoing autonomy consolidation tracked in fullsend-ai/fullsend#7339.

No new proposals

All identified improvement opportunities are already covered by existing open issues. No new proposals are warranted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge risk/low PR risk: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: extract Vertex AI timeout and max tokens to named constants

2 participants