WIP: Stream native byte and integer formatting #22

Draft
erikinkinen wants to merge 6 commits from feature/native-printf-formatting into feature/native-byte-comparison
Owner

Format counted byte strings and integers with one allocation-free preflight and output cursor. The native adapter retains the original cursor, staged channel and accepted-byte counts through output and diagnostics.

Depends on #21. The underlying native stream-authority demonstration remains tracked by #20; issue #12 also requires an independent binary-output guest oracle. See the supported formatting contract.

  • Cover byte escapes, repeated formats, integer recovery and channel ordering.

  • Check field dimensions and complete byte counts without result-sized allocation or padding-sized preflight work.

  • Retain staged output and original packet custody through returned failures and callback unwinds.

  • Qualify buffered/native adapters, strict checks and both freestanding executable builds.

  • Demonstrate NUL-separated build records, exact binary bytes/statuses and subsequent ordinary output with an independent guest oracle.

Format counted byte strings and integers with one allocation-free preflight and output cursor. The native adapter retains the original cursor, staged channel and accepted-byte counts through output and diagnostics. Depends on #21. The underlying native stream-authority demonstration remains tracked by #20; [issue #12](https://git.erikinkinen.fi/erix/coreutils/issues/12) also requires an independent binary-output guest oracle. See [the supported formatting contract](https://git.erikinkinen.fi/erix/coreutils/src/branch/feature/native-printf-formatting/PRINTF.md). - [x] Cover byte escapes, repeated formats, integer recovery and channel ordering. - [x] Check field dimensions and complete byte counts without result-sized allocation or padding-sized preflight work. - [x] Retain staged output and original packet custody through returned failures and callback unwinds. - [x] Qualify buffered/native adapters, strict checks and both freestanding executable builds. - [ ] Demonstrate NUL-separated build records, exact binary bytes/statuses and subsequent ordinary output with an independent guest oracle.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 12:05:07 +01:00
feat: Stream native printf output
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 6s
CI / rust (push) Failing after 52s
38bd4baf80
Share the checked format grammar between buffered and native execution, including integer conversions and binary strings. Preserve diagnostics and stream ownership across output fragments.
docs: Repair Markdown paragraph wrapping
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 8s
CI / rust (push) Failing after 1m11s
efbd355105
Keep the original feature prose and all source inputs while correcting
Markdown spacing and line wrapping.
ci: Use shared development dependency profiles
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 11s
CI / rust (push) Failing after 36s
5a0e1e8003
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
ci: Declare policy helper and output boundaries
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 8s
CI / rust (push) Failing after 1m45s
0fed8cbe4e
Select a disjoint operation parent for policy evidence and explicitly identify the helper checkout excluded from original component input. Keep the complete dependency policy and existing acceptance commands.
fix: Integrate counted stream ownership into native printf
All checks were successful
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / rust (push) Successful in 1m49s
ff8e59d54c
Preserve the completed ordinary-stream startup and packet-custody prerequisites while keeping the printf parser and streaming adapter in their own feature. Use the same explicit native provider selection and independent current manual inventory.
erikinkinen changed title from WIP: Stream native printf output to feat: Stream native byte and integer formatting 2026-11-13 04:04:48 +01:00
Author
Owner

The formatter is ready for review. All 318 unit tests and the original component workflow pass at the current head. The supported language and immutable-input contract are documented alongside the implementation; the native stream-authority acceptance remains with the prerequisite.

The formatter is ready for review. All 318 unit tests and the original component workflow pass at the current head. The supported language and immutable-input contract are documented alongside the implementation; the native stream-authority acceptance remains with the prerequisite.
erikinkinen changed title from feat: Stream native byte and integer formatting to WIP: Stream native byte and integer formatting 2026-11-13 04:06:52 +01:00
Author
Owner

Correction to readiness: issue #12 explicitly requires an independent guest binary-output test. The 318 unit tests and original component gates pass, but that demonstration is still open, so this PR remains WIP.

Correction to readiness: issue #12 explicitly requires an independent guest binary-output test. The 318 unit tests and original component gates pass, but that demonstration is still open, so this PR remains WIP.
fix: Preserve original stream backing throughout formatting failures
All checks were successful
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / rust (push) Successful in 1m45s
304ec24f8e
Integrate the common pending-callback guard without command-name exceptions. Preserve comparison priority, printf cursor state and the corrected physical-buffer and completed-cleanup-prefix controls.
All checks were successful
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / rust (push) Successful in 1m45s
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/native-printf-formatting:feature/native-printf-formatting'
git switch 'feature/native-printf-formatting'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/native-byte-comparison'
git merge --no-ff 'feature/native-printf-formatting'
git switch 'feature/native-printf-formatting'
git rebase 'feature/native-byte-comparison'
git switch 'feature/native-byte-comparison'
git merge --ff-only 'feature/native-printf-formatting'
git switch 'feature/native-printf-formatting'
git rebase 'feature/native-byte-comparison'
git switch 'feature/native-byte-comparison'
git merge --no-ff 'feature/native-printf-formatting'
git switch 'feature/native-byte-comparison'
git merge --squash 'feature/native-printf-formatting'
git switch 'feature/native-byte-comparison'
git merge --ff-only 'feature/native-printf-formatting'
git switch 'feature/native-byte-comparison'
git merge 'feature/native-printf-formatting'
git push origin 'feature/native-byte-comparison'
Sign in to join this conversation.
No description provided.