Skip to content

Add the reader and the writer of the PNM family - #5

Merged
beetlebugorg merged 1 commit into
mainfrom
issue-1
Dec 3, 2026
Merged

beetlebugorg merged 1 commit into
mainfrom
issue-1

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

Fixes #1

3 files changed, 473 insertions(+). The new file has 13 unit tests: a round trip, each variant, the limits, a cut at each byte, and corrupt fields.

An agent on the Ergo model wrote this change in a sandbox with no network. The coordinator read the code and ran the checks.

Ran: zig build test (pass), zig fmt --check build.zig src, and a build for wasm32-freestanding.
Did not run: macOS and Windows, which the CI of this PR runs.

Cost of the agent (model: Ergo 1.0 on Bedrock)

Item Tokens USD
input 348 0.0004
output 66421 0.2192
cache read 356624 0.0118
cache write 89427 0.1230
Total 0.3543
Model calls Wall time In model calls In tools
87 17 min 49 s 17 s 0 s

The harness counted the cache tokens only for the last part of the run, so the cache rows and the total are too low. The output row is complete.

@beetlebugorg beetlebugorg added this to the v0.1.0 milestone Dec 3, 2026
@beetlebugorg beetlebugorg added the ergo Work of an agent on the Ergo model label Dec 3, 2026
@beetlebugorg
beetlebugorg merged commit 4ebbe89 into main Dec 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ergo Work of an agent on the Ergo model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formats: read and write the PNM family (PBM, PGM, PPM)

1 participant