• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fogfish / iq / 20696400416
31%

Build:
DEFAULT BRANCH: main
Ran 04 Jan 2026 05:16PM UTC
Jobs 1
Files 41
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Jan 2026 05:15PM UTC coverage: 39.293% (-1.7%) from 41.026%
20696400416

push

github

web-flow
feat: Implement skip-if-exists flag for incremental processing (ADR-0… (#86)

* feat: Implement skip-if-exists flag for incremental processing (ADR-0006 Phase 3)

This commit implements the --skip-if-exists CLI flag to enable incremental
processing and recovery from failures. The flag checks if anchor output
exists before processing each document, allowing expensive LLM operations
to be skipped when results already exist.

Implementation Details:

1. CLI Flag Integration (cmd/opts.go):
   - Added skipIfExists field to optsAgent struct
   - Registered --skip-if-exists flag with description
   - Integrated skip logic into agent build pipeline
   - Validates that --output-dir is specified when using skip-if-exists

2. Anchor Key Computation (internal/blueprint/compiler/anchor.go):
   - Created AnchorKeyComputer to calculate expected output keys
   - Supports all step types: AgentStep, RouterStep, ForeachStep, RunStep
   - Handles emit attribute to compute prefixed output paths
   - For foreach steps, anchor is the array file (not individual elements)
   - Defaults to input key when no emit is specified

3. Skip Checking Logic (internal/blueprint/compiler/skip.go):
   - Created SkipChecker using Storage interface to check file existence
   - Uses AnchorKeyComputer to determine expected output location
   - Reports skipped documents via progress reporter
   - Returns early if anchor file already exists

4. Pipeline Integration (internal/service/worker/worker.go):
   - Added workflow field to Builder to store compiled workflow
   - Created SkipIfExists() builder method
   - Integrates storage, anchor computer, and progress reporter
   - Adds skip processor to pipeline before agent execution

5. Processor Implementation (internal/iosystem/processor/skipifexists.go):
   - Created SkipIfExists processor implementing Processor interface
   - Filters documents based on anchor existence check
   - Passes through EOF markers and empty document sets
   - Implements... (continued)

15 of 216 new or added lines in 7 files covered. (6.94%)

1 existing line in 1 file now uncovered.

1578 of 4016 relevant lines covered (39.29%)

0.43 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
0.0
0.0% internal/blueprint/blueprint.go
6
11.21
-0.67% internal/iosystem/processor/agent.go
7
85.12
-3.34% cmd/opts.go
12
28.61
-1.01% internal/progress/progress.go
18
34.25
-1.82% internal/service/worker/worker.go
59
38.93
-25.52% internal/blueprint/compiler/context.go
96
15.95
-3.7% internal/blueprint/compiler/workflow.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
15.95
-3.7% internal/blueprint/compiler/workflow.go
Jobs
ID Job ID Ran Files Coverage
1 20696400416.1 04 Jan 2026 05:16PM UTC 41
39.29
GitHub Action Run
Source Files on build 20696400416
  • Tree
  • List 41
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3472bd62 on github
  • Prev Build on main (#20695948222)
  • Next Build on main (#20697941198)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc