fix(miner): honor iterate loop execution mode#5108
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | c1fcdce | Commit Preview URL Branch Preview URL |
Jul 11 2026, 03:11 PM |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-11 17:27:16 UTC
⏸️ Suggested Action - Manual Review
Review summary Blockers
Nits — 5 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Motivation
CodingAgentExecutionModebut called the driver directly, which could execute expensive or prompt-injectable agent sessions inpausedordry_runmodes.Description
invokeCodingAgentDriverinstead of callingdriver.run()directly. (packages/gittensory-engine/src/miner/iterate-loop.ts)runDriverSafelyto accept the loopinputanddepsand to callinvokeCodingAgentDriverwhencodingAgentModeExecutes(input.mode)is false, preserving logging behavior viasafeAppendAttemptLogEvent.inputanddepsintorunDriverSafelyso the mode gate is enforced before any driver run.pauseddoes not call the underlying driver anddry_runrecords a shadow invocation without spawning the agent. (packages/gittensory-engine/test/iterate-loop.test.ts)Testing
npm --workspace @jsonbored/gittensory-engine run buildand ran the iterare-loop unit tests vianode --test packages/gittensory-engine/test/iterate-loop.test.ts, and the new regression tests passed.npm run test --workspace @jsonbored/gittensory-engine(package test suite) and observed all engine tests passing locally.npm run test:ci, but the run was impacted by unrelated environment issues: thecf-typegen:checkreported staleworker-configuration.d.tsandnpm audit --audit-level=moderatereturned403 Forbiddenagainst the registry in this environment, so the end-to-end CI gate could not be fully completed here.Codex Task