DL-024.5+6: boundsExceeded and runDir in dld-core - #48
Merged
Conversation
jimutt
force-pushed
the
feat/dld-core-bounds-paths
branch
from
August 27, 2026 12:41
5fc08bf to
401aef7
Compare
jimutt
marked this pull request as ready for review
August 27, 2026 13:20
DL-024 items 5+6. boundsExceeded(state, events) as a pure function in run-state.ts — both harnesses call it instead of inline checks. runDir in paths.ts replaces six join(root, '.dld', 'runs', slug) copies. OpenCode's server.ts now enforces maxMinutes alongside maxItems — the gap the direction doc promised Move 1 would close. Pi's loop.ts withinBounds delegates to boundsExceeded. All suites green. Co-Authored-By: Kimi K3 <noreply@pi.dev> Generated-By: pi 0.84.2 Co-Authored-By: Kimi K3 <noreply@pi.dev> Generated-By: pi 0.84.2
jimutt
force-pushed
the
feat/dld-core-bounds-paths
branch
from
August 27, 2026 13:21
401aef7 to
3d067e7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
DL-024 items 5+6:
boundsExceededpure function in run-state.ts andrunDirhelper in paths.ts.Why
boundsExceededcloses OpenCode's maxMinutes gap — the direction doc promised Move 1 would unlock it.runDirreplaces six inlinejoin(root, ".dld", "runs", slug)copies.What changed
boundsExceeded(state, events)returns{ reason: "maxItems" | "maxMinutes" } | null— pure, no exec.runDir(root, slug)in paths.ts.withinBoundsdelegates. OpenCode's bounds check now enforces both maxItems and maxMinutes.Stacks on #46.
Test coverage
124 bun tests, 305 bats, tsc, tessl lint — all green.