Repository navigation
feat: add native Devin agent harness - #691
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
[Medium impact] The reviewed changes appear safe to merge, with no actionable issues found.
|
There was a problem hiding this comment.
All reported issues were addressed across 21 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 5 files (changes from recent commits).
Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
View guided diff | Turn on auto-fix | Re-trigger cubic
maintainability lens — PASSBased on the diff, here is my maintainability review of PR #691: FindingsConcerns
Notes
No blockers found — cleanup paths, error propagation, and credential isolation all look wired consistently. REVIEW_PASSED |
history lens — PASSBlockers: None. PR #691 at Notes:
Concerns: Devin spend remains unmeasurable through print mode. The diff exposes that limitation through unconditional warnings ( REVIEW_PASSED |
structure lens — MISSING |
|
🎯 review-swarm: FAILED (M:pass H:pass S:missing) Lens transcripts posted as sibling comments above. |
There was a problem hiding this comment.
2 issues found across 9 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="evidence/devin-harness/probe-linux.py">
<violation number="1" location="evidence/devin-harness/probe-linux.py:17">
P3: `urlretrieve` has no timeout, so a stalled download hangs this reproducer indefinitely. Use `urlopen` with a timeout and write the bytes, matching the bounded calls in `probe-cli.py`.</violation>
</file>
<file name="evidence/devin-harness/verification.md">
<violation number="1" location="evidence/devin-harness/verification.md:403">
P3: The captured output includes an `exit=1` line that the shown command cannot produce, since `probe-cli.py` never prints it. Either drop the line or show the command that prints the exit status, so the evidence stays literal as AGENTS.md requires.</violation>
</file>
There was a problem hiding this comment.
All reported issues were addressed across 8 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
Independent Codex review at exact head This is not a green-CI signoff. The full model-pin test now fails on the pre-existing |
There was a problem hiding this comment.
All reported issues were addressed across 7 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
Independent Codex review at exact head Literal commands and captured focused test/typecheck output. CI is pending. The separate land source-model gate issue is still unresolved; this review is not a green-CI signoff. |
401fda4 to
f210041
Compare
|
Rebased onto main Independent Codex exact-head review: no new integration findings. Native implementation matches the previously reviewed code. Local validation from set -o pipefail; { TMPDIR=/Users/khaliqgant/.cache/devin-harness node node_modules/vitest/vitest.mjs run tests/devin.test.ts tests/cli-probe.test.ts tests/preflight.test.ts tests/agent-transcript.test.ts tests/shipped-source-models.test.ts && npm run typecheck && npm run typecheck:tests; } 2>&1 | tee /Users/khaliqgant/.cache/devin-harness/rebased-verification.logThe Linux artifact CI job is still running. This comment does not claim green CI. |
|
Ready for human merge at Independent Codex exact-head review found no new integration issues. Land, issue-swarm, and gate files are absent from the PR diff. Local commands and captured test/typecheck output. Readiness commands and captured output: gh pr view 691 --json headRefOid,state,statusCheckRollup{"headRefOid":"f210041752c7229f0220344f22d3207b6035f871","state":"OPEN","statusCheckRollup":[{"__typename":"CheckRun","completedAt":"2026-11-02T22:33:37Z","conclusion":"SUCCESS","detailsUrl":"https://github.com/AgentWorkforce/flows/actions/runs/41538222024/job/125595418733","name":"validate","startedAt":"2026-11-02T22:33:11Z","status":"COMPLETED","workflowName":"Publish schema"},{"__typename":"CheckRun","completedAt":"2026-11-02T23:01:33Z","conclusion":"SUCCESS","detailsUrl":"https://github.com/AgentWorkforce/flows/actions/runs/41538222107/job/125595418737","name":"linux-x64-artifact","startedAt":"2026-11-02T22:33:11Z","status":"COMPLETED","workflowName":"Relayflow v2 Cloud runtime artifact"},{"__typename":"CheckRun","completedAt":"2026-11-02T22:34:09Z","conclusion":"SUCCESS","detailsUrl":"https://github.com/AgentWorkforce/flows/actions/runs/41538222077/job/125595419068","name":"packed-consumer","startedAt":"2026-11-02T22:33:11Z","status":"COMPLETED","workflowName":"Relayflow v2 surface package"},{"__typename":"CheckRun","completedAt":"2026-11-02T22:33:27Z","conclusion":"SUCCESS","detailsUrl":"https://github.com/AgentWorkforce/flows/actions/runs/41538222432/job/125595423149","name":"guard","startedAt":"2026-11-02T22:33:22Z","status":"COMPLETED","workflowName":"Review swarm wrapper guard"},{"__typename":"CheckRun","completedAt":"2026-11-02T22:33:37Z","conclusion":"SKIPPED","detailsUrl":"https://github.com/AgentWorkforce/flows/actions/runs/41538222024/job/125595641905","name":"npm","startedAt":"2026-11-02T22:33:37Z","status":"COMPLETED","workflowName":"Publish schema"},{"__typename":"CheckRun","completedAt":"2026-11-02T22:33:37Z","conclusion":"SKIPPED","detailsUrl":"https://github.com/AgentWorkforce/flows/actions/runs/41538222024/job/125595642898","name":"pages","startedAt":"2026-11-02T22:33:37Z","status":"COMPLETED","workflowName":"Publish schema"},{"__typename":"CheckRun","completedAt":"2026-11-02T22:33:14Z","conclusion":"SKIPPED","detailsUrl":"https://coderabbit.ai?utm_source=cr_app&utm_medium=github","name":"CodeRabbit","startedAt":"2026-11-02T22:33:14Z","status":"COMPLETED","workflowName":""},{"__typename":"CheckRun","completedAt":"2026-11-02T22:37:14Z","conclusion":"SUCCESS","detailsUrl":"https://app.greptile.com/-/switch-tenant?tenant=agent-relay&next=%2FAgentWorkforce%2Fflows%2Fpull%2F691","name":"Greptile Review","startedAt":"2026-11-02T22:33:11Z","status":"COMPLETED","workflowName":""},{"__typename":"CheckRun","completedAt":"2026-11-02T22:33:37Z","conclusion":"SUCCESS","detailsUrl":"https://www.cubic.dev/pr/AgentWorkforce/flows/pull/691","name":"cubic · AI code reviewer","startedAt":"2026-11-02T22:33:24Z","status":"COMPLETED","workflowName":""}]}gh api graphql -f 'query=query { repository(owner:"AgentWorkforce", name:"flows") { pullRequest(number:691) { headRefOid reviewThreads(first:100) { nodes { id isResolved } pageInfo { hasNextPage } } } } }'{"data":{"repository":{"pullRequest":{"headRefOid":"f210041752c7229f0220344f22d3207b6035f871","reviewThreads":{"nodes":[{"id":"PRRT_kwDOUF0ysM6y1p7n","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y1vUl","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y1vUr","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y1vUx","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y1vU1","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y1vU6","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y1vVI","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y1vVO","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y13fB","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y2BtE","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y2BtT","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y2UdZ","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y2Udh","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y2Udn","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y2Udp","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y3Mu1","isResolved":true},{"id":"PRRT_kwDOUF0ysM6y4Rrd","isResolved":true}],"pageInfo":{"hasNextPage":false}}}}}}```
A relayflows release is needed after merge so relay-desktop and hosted consumers can pin the native Devin adapter. |
Devin agent steps currently fall through to the custom-wrapper protocol. Add a native print-mode adapter using a private prompt file, optional
--model, noninteractive workspace trust, and isolated XDG credentials. Return the printed response without a JSON flag. Preflight checks provider authentication/model access, rejects Devinllmuse, and warns that print mode cannot measure token or dollar spend. Broker login isolation and skill installation include Devin.Hosted operators supply a Devin CLI-login token in
FLOW_DEVIN_API_KEY; a compatible launcher maps it to the runtimeDEVIN_API_KEY. Local runs useDEVIN_API_KEYdirectly or an existing CLI login. A Devin REST API key is a different credential. TheFLOW_aliases landed in Cloud #5930. Hosted replacement-token authentication remains unverified; the existing ordinary REST secret is preserved for other flows.The pinned CLI is 3000.11.234. Authenticated headless/compiled-worker success was exercised on macOS. Linux x64 evidence covers env-only rejection, credential-file pickup, and non-root execution of the companion image install block; it does not claim an authenticated Linux worker or full hosted-flow run. Cloud image installation landed in Cloud #5927.
Probe diagnostics preserve shared redaction first, then mask overlapping supplemental shapes and short credentials together using bounded byte coverage, without per-match span lists. A 900,000-character fixture exercises both probe drivers. The prerequisite land and issue-swarm model-pin fixes landed in #692. This PR is rebased onto main; land, issue-swarm, and gate files are absent from its diff.
Literal commands and captured results: runtime, auth, mutation and Linux evidence, credential regressions, latest overlap regressions, typechecks, example tests and remaining failure. Historical pre-rebase model-pin failures are captured in that report. Independent Codex review at exact head
f210041752c7229f0220344f22d3207b6035f871found no new integration findings. Fresh local validation with literal commands and captured output includes the full shipped-source model-pin test and both typechecks. All checks are successful or skipped atf210041752c7229f0220344f22d3207b6035f871, including the Linux artifact job, with zero unresolved review threads: readiness receipt.Portable live reproduction: set
RELAYFLOWS_REAL_DEVIN_CLIto the absolute path of Devin 3000.11.234 and supply a CLI-login token through secureDEVIN_API_KEYenvironment setup. Frompackages/sdk, runnode node_modules/vitest/vitest.mjs run tests/real-devin-adapter.test.ts.TMPDIRis optional and must exist when set.Human merge is required. A relayflows release is then needed for relay-desktop/hosted consumers to pin; no npm publish or Cloud deployment is included.
Agent Relay sessions
codexsession01a19dbc· opened viagh pr create· last active 2026-11-02