Repository navigation
Add bounded catalog CSV proposal parser (supersedes #1013) - #1213
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
sidneyswift
marked this pull request as ready for review
November 2, 2026 10:29
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a pure decoded-text CSV parser that returns proposed catalog rows with source row/line/column pointers, raw cells, identifier states, fingerprints, malformed-row records and duplicate signals. It does not establish identity or rights, accept assertions, persist data, or expose an HTTP/MCP operation.
Supersedes the bounded 16-file parser source from #1013 (
c7b91add960bfcdd97c28a74d81b6989b0a09e13) on current mainc4ca79f570a262716d07aeb7ccab6adce1d60b92, without bringing over its parent history. The original branch and PR are preserved. This is a source-only slice toward Context #2140, not completion of the import workflow.The successor caps decoded input at 1,048,576 UTF-16 code units, keeps pending blank lines in constant-size bookkeeping, validates tighter tokenizer limits, and preserves invalid identifier whitespace and non-ASCII characters instead of repairing them. Limits and the malformed unterminated-tail exception are documented in the module README.
Validation: 61 focused tokenizer/proposal/bounds/provenance/identifier tests pass; strict scoped TypeScript, repository lint, scoped lint and TypeScript formatting pass. Independent source review passes after two identifier findings were fixed with red/green regressions. Exactly 16 files under
lib/context/imports; no dependency changes.Current API has no equivalent text proposal parser. Skills' catalog import script handles file-based CSV/XLSX and identity/interest candidates with a different contract, and remains unchanged. Fixtures are synthetic; real-export calibration, original-byte retention, storage, review/acceptance, transport registration and authenticated end-to-end behavior remain follow-up work. No build, listener, provider or live customer operation was run.
Summary by cubic
Adds a bounded pure CSV parser that turns generic catalog export text into proposed rows with source pointers, raw cells, identifier states, fingerprints, malformed-row records, and duplicate signals. It does not establish identity or rights, accept assertions, persist data, or expose an HTTP/MCP operation—every proposal is literally
status: "proposed". Supersedes the bounded 16-file parser source from #1013 on current main without its parent history; the original branch is preserved.Bounded input handling
ContextImportErrorwith a code and never return a partial result.Parser behavior
empty_row,column_count_mismatch,unterminated_quote,text_after_closing_quote) are reported with pointers beside proposals, never dropped or repaired; a cell with text after its closing quote keeps its literal source text.malformedrather than being repaired; empty cells areunknown; a missing column isuncollected.same_isrcandsame_row_contentlist rows ordered by first row; a shared UPC within one release is not flagged.lib/context/imports.Fixtures are synthetic; real-export calibration, storage, review/acceptance, transport registration, and authenticated end-to-end behavior remain follow-up work.
Written for commit 1395539. Summary will update on new commits.