Skip to content

fix(land): restore supported Claude and Codex model pins - #693

Merged
khaliqgant merged 5 commits into
mainfrom
fix/land-pinned-harnesses
Nov 3, 2026
Merged

khaliqgant merged 5 commits into
mainfrom
fix/land-pinned-harnesses

Conversation

@kjgbot

@kjgbot kjgbot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Land accepted arbitrary fix-loop models through a merged test waiver. Remove that waiver and restore the normal shipped-source model check with literal supported pairs: Claude/claude-sonnet-5, Codex/gpt-5.6-sol. Reject configured fixLoop.model values as "not supported yet" and assert the exact FLOW_OPENAI_API_KEY recovery hint.

Codex stays the default. Land supports only Claude and Codex; Grok and Devin remain reserved config names and refuse before review/fix work. This PR adds no runtime capability API and has no new SDK/Surface release dependency. It does not redeploy the land deployment.

Fix-forward for the three merged #692 findings, all replied to and resolved: model-check bypass, unvalidated model waiver, specific credential hint. Khaliq directly authorized removing the waiver and restoring literal pins.

Literal commands and captured output: verification.md. Land types/tests and the full shipped-source model-pin gate are included. Human merge required.


Agent Relay sessions

  • codex session 01a19dbc · opened via gh pr create · last active 2026-11-03

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a359ac1-9a72-4bfa-b0a1-d14d58ef276d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Restores literal supported model pins for Land and removes its shipped-source test waiver.

  • Land fix rounds now use supported model pins.

Reviews (4) · Last reviewed commit: "test(land): pin the complete credential ..." · Reviewed by Greptile

@kjgbot

kjgbot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Independent Codex review signed off at exact head a057adc74ea154e770d9c8ca10fb2729903b30eb with no remaining findings. The three #692 fix-forward threads are replied to and resolved.

Literal local verification commands and captured outputs are committed here, including the normal shipped-source model-pin gate and compiled CLI → embedded Node capability test. CI remains in progress; this is not a deployment or provider-authentication signoff.

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 12 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread examples/land/README.md Resolved

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 2 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

@kjgbot kjgbot changed the title fix(land): restore model pins and gate Devin on runtime adapters fix(land): restore supported Claude and Codex model pins Nov 3, 2026
@kjgbot

kjgbot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Scope is now Claude/Codex-only at 23a1bb2a242cd732ee982b098e005b0c69e97e0b; the additive SDK/Surface metadata API and Devin land enablement are removed. Codex remains default. Independent Codex review signed off on this exact head with no findings. All three merged #692 findings and all current #693 threads are resolved.

Literal commands and captured output include land typecheck/tests and the full shipped-source model gate. Current-head CI is running. Human merge required; no land redeploy.

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 10 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread examples/land/README.md Resolved
@kjgbot

kjgbot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

maintainability lens — FAIL

I'll review this diff for maintainability — can a stranger pick it up safely in six months?

Blockers

1. examples/land/land.flow.ts:965 — the error message is a trap for future 3.x releases.

const version = /^2\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.exec(child.stdout.trim());
if (!child.ok || !version || !(Number(version[1]) > 0 || Number(version[2]) >= 57)) {
  throw new NeedsHuman('Devin review fleets require flowsBin to be a stable relayflows 2.x release >=2.0.57...');
}

A 3.0.0 flowsBin fails the regex and the user sees "need >=2.0.57" — which is false. The guard will outlive the 2.x line. Either match any >=2.0.57 across majors, or make the message name the policy ("stable 2.0.57 ≤ flowsBin < 3.0.0") so the next bump obviously requires revisiting this check.

Concerns

2. packages/sdk/src/authored-flow-executor.ts:647 — unexplained magic exclusion.

Object.keys(registeredAdapters()).filter(kind => kind !== 'relayflows-wrapper-v1'),

No comment on why relayflows-wrapper-v1 is filtered out, and no test asserts the filter's intent. A reader will wonder whether other wrapper-ish adapters should also be excluded. Add a one-liner naming the rule (e.g., "exclude broker-wrapper adapters; these are not native direct-agent clis").

3. examples/land/land.flow.ts:928-932 vs :963-971 — the two Devin guards sit far apart with no cross-reference. The capability guard precedes stage one; the flowsBin --version guard sits after setup. The relationship (SDK capability vs child-executor binary) is noted only in the second comment. Add a back-pointer so readers don't assume one supersedes the other.

4. examples/land/land.flow.ts:636 — comment regression. The old "Cloud model-pin gate reads each f.agent call statically… cli and model must be literal keys on the options object, never a spread" explained why the branching exists. The replacement "Literal supported pairs stay subject to the shipped-source model gate" doesn't convey the "literal-only" constraint. The next person refactoring this to a map/table will break the gate without warning.

5. examples/land/land.flow.ts:669-676 — default branch unreachable yet throws NeedsHuman. WORKER_HARNESSES filters grok at stage one, so the switch default is dead. Either delete it (prefer an exhaustive check against the already-validated set) or add a comment that it is defensive against adding to HARNESSES without WORKER_HARNESSES.

Notes

6. land.config.schema.json:51 — "not": {} is cryptic. Correct but opaque; the description does carry its weight. Keep.

7. land.flow.ts:75 — model?: never effectively bans the key. Idiomatic but unusual. Fine with the parser-level guard also present.

8. Missing happy-path coverage for >=2.0.58 and 2.1.0. flow.test.ts only exercises the default '2.0.57' and rejection cases; a future-release pass is uncovered.

9. evidence/land-pinned-harnesses/verification.md — 277 lines of absolute-path command output. The intro says these aren't prerequisites, but there's no stated policy on refresh/rot. Not blocking.

REVIEW_FAILED

@kjgbot

kjgbot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

history lens — PASS

Blockers: None. I found no recurrence of a recorded mistake, new contradiction with a settled RFC decision, or false commit-message claim.

The change follows the DRIVE-LOG’s lesson about silently losing model selections: configured overrides now produce an explicit refusal, and each supported fix harness receives a literal model (examples/land/land.flow.ts:123–124, 634–639). It removes the land waiver introduced by #692 rather than restoring a previously removed bypass. The supported-pair table adds one explicit Devin model (packages/sdk/tests/shipped-source-models.test.ts:10–34).

The adapter metadata remains SDK-side, consistent with settled decisions #5 and #13. Missing Devin metadata and unsupported child-runtime versions refuse before review or fix execution (examples/land/land.flow.ts:929–934, 963–971).

Concerns: Devin activation depends on a subsequent SDK/Surface release. The README explicitly documents that published 2.0.57 lacks this metadata (examples/land/README.md:203–209). That is a disclosed release dependency, not a blocker under this lens.

Notes: The three commit subjects accurately describe their respective implementation, test/evidence, and documentation changes. The evidence expressly limits the embedded regression to immutable adapter metadata, disclaims installation/authentication coverage, and records the unsuccessful bare-Surface probe (evidence/land-pinned-harnesses/verification.md:270–277). I did not rerun the recorded tests. The older gate referenced by ops/NEXT.md is a follow-up concern, as specified in the lens brief.

REVIEW_PASSED
hook: Stop
hook: Stop Completed

@kjgbot

kjgbot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

structure lens — MISSING

@kjgbot

kjgbot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

🎯 review-swarm: FAILED (M:fail H:pass S:missing)

Lens transcripts posted as sibling comments above.

@khaliqgant
khaliqgant merged commit 14f8a61 into main Nov 3, 2026
6 checks passed
@khaliqgant
khaliqgant deleted the fix/land-pinned-harnesses branch November 3, 2026 01:41
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.

2 participants