Skip to content

fix: bound file reads and report continuation (#248) - #260

Merged
AetherAI3 merged 10 commits into
mainfrom
fix/issue-248-bounded-file-reads
Oct 5, 2026
Merged

AetherAI3 merged 10 commits into
mainfrom
fix/issue-248-bounded-file-reads

Conversation

@AetherAI3

@AetherAI3 AetherAI3 commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Fixes #248.

File-read fix

  • Read a bounded byte range from an open file descriptor. Existing callers receive the first 4,096 bytes; callers can set validated offset and max_bytes arguments to continue.
  • Return the path, actual byte range, total byte size, complete, truncated, next_offset, and line-boundary flags. Reading a tail range never claims to have returned the whole file.
  • Reject control-byte binary content, malformed UTF-8, and offsets inside a multibyte character. Decode only complete UTF-8 characters and identify that content validation covers the returned range.
  • Expose the optional arguments through the canonical tool registry, local model schema, bridge contract, and hosted dev-session handshake. AETHER-CLOUD #1919 is merged; older hosts retain the path-only schema.

Verification

  • Focused Windows tests after merging the latest main: 79 passed, 0 failed (file reads, registry, new approval binding, envelope, bridge, stream). The TypeScript build passed. Earlier focused host tests: 81 passed; request/range tests: 21 passed.
  • Prior full suite before hosted opt-in: 2,912 passed, 39 skipped. After opt-in: 2,911 passed, 39 skipped, 2 Edge startup failures before fixture requests; the affected browser file passed 9/9 when rerun alone.
  • Typecheck, generated docs, production package verification, release-truth checks, package dry run, and smoke tests passed on the read-file source. The Cloud companion passed 71 agent-dev and 45 API route tests before merge.
  • Self-hosted CI on the preceding head: PyPI launcher and supply-chain passed. The Linux test job passed npm test and four independent Python contract checks; it then failed to check out the separate private ATSv2 repository because the Agent workflow has no cross-repository credential. The hosted Windows job never started because of the billing lock. CodeQL on that head passed.
  • On the final integrated head, the exact pinned ATSv2 execution-wire parity script passed locally against AetherAI3/ATSv2@58236878d1ac7978362b25350d78e44ca34e35c0, including six Agent Node test files and four ATSv2 Python test files. The generated report states passed: true for Agent 365594f16921d352605a75685b23329508069052.
  • On the final merged PR head, CodeQL passed. In CI, supply-chain and PyPI launcher passed; the Linux npm test and four Python contract steps passed. The Linux job failed at the private ATSv2 checkout, which was covered by the passing exact-head manual parity run above. The hosted Windows job failed before startup due to the billing lock; the focused Windows tests above passed.

CI infrastructure

The GitHub-hosted Windows job fails before startup because this account is locked for Actions billing. During PR verification, a repository variable, AETHER_CI_SELF_HOSTED=1, routed trusted same-repository PR Linux jobs to the dedicated Agent runner. The full GitHub artifact quota made uploads fail; only while that fallback was active for a trusted PR, artifact upload steps could fail without suppressing test failures. Exact source revisions and test results remain in job logs. Pushes to main and release runs retain strict artifact uploads. The fallback variable was removed after merge.

@AetherAI3
AetherAI3 merged commit b52bdd9 into main Oct 5, 2026
5 of 7 checks passed
@AetherAI3
AetherAI3 deleted the fix/issue-248-bounded-file-reads branch October 5, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] File reads load entire files before truncating and report partial data as complete

1 participant