feat(cli): wire --max-depth and --max-resources flags for transitive resolution - #2022
Conversation
Site previewPreview: https://317e80e2-site.fullsend-ai.workers.dev Commit: |
|
/fs-review |
2 similar comments
|
/fs-review |
|
/fs-review |
|
🤖 Review · Started 3:01 PM UTC |
ReviewFindingsInfo
Previous runReviewFindingsLow
Info
Previous run (2)ReviewFindingsLow
Info
Previous run (3)ReviewFindingsLow
Info
Previous run (4)ReviewFindingsMedium
Low
Info
Previous runReviewFindingsLow
Info
Previous run (2)ReviewFindingsLow
Info
Previous run (3)ReviewFindingsLow
Info
Previous run (4)ReviewFindingsLow
Info
Previous run (5)ReviewFindingsMedium
Low
Info
|
|
🤖 Finished Review · ✅ Success · Started 3:01 PM UTC · Completed 3:08 PM UTC |
6998b4e to
7c92e20
Compare
|
🤖 Finished Review · ✅ Success · Started 3:31 PM UTC · Completed 3:38 PM UTC |
7c92e20 to
07eead7
Compare
|
🤖 Finished Review · ✅ Success · Started 5:35 PM UTC · Completed 5:43 PM UTC |
07eead7 to
8af6205
Compare
|
🤖 Finished Review · ✅ Success · Started 5:53 PM UTC · Completed 6:00 PM UTC |
8af6205 to
b97fbd9
Compare
|
🤖 Finished Review · ✅ Success · Started 6:04 PM UTC · Completed 6:11 PM UTC |
…resolution Phase 2, PR 3 of ADR-0038. Connects the transitive dependency resolver (merged in fullsend-ai#1923) to the CLI by adding flags and passing them through ResolveOpts. Previously MaxDepth defaulted to 0 (disabled); now it defaults to 10, enabling transitive resolution for URL-referenced skills. - Add --max-depth (default 10) and --max-resources (default 50) flags - Group offline, maxDepth, maxResources into resolveFlags struct - Validate flag values: reject negative --max-depth and --max-resources < 1 - Add boundary tests: --max-depth 0 accepted, -1 rejected; --max-resources 0 and -1 rejected - Document both flags in cli-internals.md and running-agents-locally.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
b97fbd9 to
ec59225
Compare
|
🤖 Finished Review · ✅ Success · Started 6:19 PM UTC · Completed 6:27 PM UTC |
|
🤖 Retro · Started 8:37 PM UTC |
Retro: PR #2022 —
|
|
🤖 Finished Retro · ✅ Success · Started 8:37 PM UTC · Completed 8:52 PM UTC |
Summary
Phase 2, PR 3 of ADR-0038 (Universal Harness Access). Wires the transitive dependency resolver (merged in #1923) into the CLI run flow.
--max-depthflag (default 10) to control transitive dependency resolution depth;--max-depth 0disables transitive resolution entirely--max-resourcesflag (default 50) to cap total remote resources fetched per harnessResolveOptsto the resolver; previouslyMaxDepthdefaulted to Go's zero value (0), which disabled transitive resolution — now it defaults toDefaultMaxDepth(10)Depends on: #1923 (merged)
Changes
internal/cli/run.go--max-depth/--max-resourcesflags, thread throughrunAgent()signature, pass toResolveOptsinternal/cli/run_test.goTest plan
go test ./internal/cli/...— all tests pass (including new flag registration tests)go test ./internal/resolve/...— all 28 Phase 1 + Phase 2 tests pass unchangedgo vet ./...— cleanmake lint— cleanresolve.DefaultMaxDepth(10) andresolve.DefaultMaxResources(50)MaxDepth=0still disables transitive resolution (Phase 1 behavior preserved)🤖 Generated with Claude Code