From db7858d4008357aba36762294593499cf8f7d988 Mon Sep 17 00:00:00 2001 From: Mihaela Mihaljevic Date: Sat, 21 Nov 2026 18:40:42 +0100 Subject: [PATCH] docs(issues): sync the issue mirror with the host --- ...wasihttpclient-dependencies-to-codeberg.md | 26 +++++++++++++ ...d-the-wasm-benchmark-site-link-are-dead.md | 24 ++++++++++++ ...scanner-onto-pureyaml-streaming-scanner.md | 37 +++++++++++++++++++ issues/README.md | 5 +++ 4 files changed, 92 insertions(+) create mode 100644 issues/1-repoint-pureyaml-and-swiftwasihttpclient-dependencies-to-codeberg.md create mode 100644 issues/2-readme-badges-and-the-wasm-benchmark-site-link-are-dead.md create mode 100644 issues/3-rewire-resumabledocumentscanner-onto-pureyaml-streaming-scanner.md create mode 100644 issues/README.md diff --git a/issues/1-repoint-pureyaml-and-swiftwasihttpclient-dependencies-to-codeberg.md b/issues/1-repoint-pureyaml-and-swiftwasihttpclient-dependencies-to-codeberg.md new file mode 100644 index 0000000..0790b58 --- /dev/null +++ b/issues/1-repoint-pureyaml-and-swiftwasihttpclient-dependencies-to-codeberg.md @@ -0,0 +1,26 @@ +--- +number: 1 +title: "Repoint PureYAML and SwiftWASIHTTPClient dependencies to Codeberg" +state: closed +labels: [] +assignees: [] +created: 2026-11-04T19:25:26Z +updated: 2026-11-04T19:25:26Z +host: https://git.aleahim.com/NodetteHQ/PureYAMLStreaming/issues/1 +synced: 2026-11-04T19:25:26Z 74d480e9a918 +neutralized: 1 +--- + +_Copied from https://codeberg.org/NodetteHQ/PureYAMLStreaming/issues/1. Opened by Mihaela on 2026-07-04._ + +## Status (2026-07-04) +Open. Fresh dependency resolution is broken for both dependencies. + +`Package.swift` depends on: + +- `https://github.com/mihaelamj/PureYAML.git` (branch `main`) +- `https://github.com/mihaelamj/SwiftWASIHTTPClient.git` (branch `main`) + +Both GitHub repos have been deleted. Both packages exist on Codeberg: `https://codeberg.org/Mihaela/PureYAML` and `https://codeberg.org/Mihaela/SwiftWASIHTTPClient`. + +Fix: repoint both URLs, refresh `Package.resolved`, and confirm the WASM smoke executable still builds. diff --git a/issues/2-readme-badges-and-the-wasm-benchmark-site-link-are-dead.md b/issues/2-readme-badges-and-the-wasm-benchmark-site-link-are-dead.md new file mode 100644 index 0000000..2a30a06 --- /dev/null +++ b/issues/2-readme-badges-and-the-wasm-benchmark-site-link-are-dead.md @@ -0,0 +1,24 @@ +--- +number: 2 +title: "README badges and the WASM benchmark site link are dead" +state: closed +labels: [] +assignees: [] +created: 2026-11-04T19:25:26Z +updated: 2026-11-04T19:25:27Z +host: https://git.aleahim.com/NodetteHQ/PureYAMLStreaming/issues/2 +synced: 2026-11-04T19:25:27Z 6d5fdca93686 +neutralized: 1 +--- + +_Copied from https://codeberg.org/NodetteHQ/PureYAMLStreaming/issues/2. Opened by Mihaela on 2026-07-04._ + +## Status (2026-07-04) +Open. The public-facing links went down with the GitHub repo. + +- The badges in `README.md` are shields.io GitHub-workflow badges for `mihaelamj/PureYAMLStreaming`, which no longer exists. +- `README.md` advertises the live WASM benchmark site at `mihaelamj.github.io/PureYAMLStreaming`. GitHub Pages sites are deleted with their repo, so that URL is gone even though the site sources in `WasmSite/` and the build scripts in `scripts/` are intact. + +Fix: +- Replace or drop the badges (Forgejo Actions badge endpoints are available). +- Rehost the WASM site (Codeberg Pages is the natural home) and update the README link, or remove the live-site claim until it is rehosted. Note the site needs COOP/COEP headers for the SharedArrayBuffer benchmark, so verify Codeberg Pages can serve those before committing to it. diff --git a/issues/3-rewire-resumabledocumentscanner-onto-pureyaml-streaming-scanner.md b/issues/3-rewire-resumabledocumentscanner-onto-pureyaml-streaming-scanner.md new file mode 100644 index 0000000..733b846 --- /dev/null +++ b/issues/3-rewire-resumabledocumentscanner-onto-pureyaml-streaming-scanner.md @@ -0,0 +1,37 @@ +--- +number: 3 +title: "Rewire ResumableDocumentScanner onto PureYAML.Streaming.Scanner" +state: open +labels: [] +assignees: [] +created: 2026-11-04T19:25:27Z +updated: 2026-11-04T19:25:57Z +host: https://git.aleahim.com/NodetteHQ/PureYAMLStreaming/issues/3 +synced: 2026-11-04T19:25:57Z 2eb2c1ba8003 +neutralized: 1 +--- + +_Copied from https://codeberg.org/NodetteHQ/PureYAMLStreaming/issues/3. Opened by Mihaela on 2026-07-10._ + +## Status (2026-07-10) + +Open. `ResumableDocumentScanner` (`Sources/PureYAMLStreaming/ResumableDocumentScanner.swift`) is a naive line-based heuristic: it looks for `---` at the start of a line to split documents, with no understanding of YAML grammar (block scalars, flow context, or quoting can all contain a line starting with `---` that is not a real document boundary, and it would misfire). + +PureYAML now ships a real, proven, resumable token-level scanner as public API: `PureYAML.Streaming.Scanner` (`init()`, `feed(_:)`, `finish()`, `next() throws -> Outcome`), added in NodetteHQ/PureYAML commit `41ca600`. It is a thin wrapper around the internal libyaml-ported scanner's `scanStep()`, which is proven byte-for-byte identical to batch scanning across the whole yaml-test-suite corpus at multiple chunk sizes, and the public wrapper has its own separate differential proof (`PublicStreamingScannerTests.swift`) covering the translation layer itself. + +This is the "resumable token scanner" NodetteHQ/PureYAML#4 named as this package's actual intended consumer. + +## Work + +- Bump the `PureYAML` dependency pin to the commit (or next tagged release) that includes `PureYAML.Streaming.Scanner`. +- Replace `ResumableDocumentScanner`'s line-based `consume(_:)`/`consumeLine(_:documents:)` with a real token-driven document-boundary detector built on `PureYAML.Streaming.Scanner.next()`: watch for `.documentStart`/`.documentEnd`/`.streamEnd` token kinds instead of scanning raw lines for `---`. +- Decide what `Parser.swift`/`StreamingToken.swift` should look like once real tokens are available: keep the current `documentSource(String)`-only `StreamingToken` (feeding whole document text to `PureYAML.parse()` per document, just with a correct boundary detector), or start exposing token-level events directly per the "feed event-level consumers directly" goal in NodetteHQ/PureYAML#4. +- Re-run this package's own correctness suite (and, if practical, a differential check against the current line-based scanner's output on the existing multi-document fixtures) to confirm no regression in document splitting. +- Update `README.md`'s "Status" section, which currently states "It is not yet a token-level YAML scanner," once this lands. + +## Not in scope here + +- Any change to `PureYAML` itself; the public API this depends on already exists and is proven. +- The WASM benchmark site or its build scripts, unless the rewiring changes what `PureYAMLStreamingWasmSmoke` needs to link against. + +Related: NodetteHQ/PureYAML#4. diff --git a/issues/README.md b/issues/README.md new file mode 100644 index 0000000..20db657 --- /dev/null +++ b/issues/README.md @@ -0,0 +1,5 @@ +# Issues + +One Markdown file per issue of this repository, kept equal to the issues on the host by `issuesync` (`--check` prints nothing when they agree). +Files are named `-.md`; a file written before the host assigned a number is `new-.md`. Folders named `recovered-*` are +archives and are left alone.