Repository navigation
Description
Wave 4 · 9 finding(s) in 9 fix package(s). Fix these whenever a pull request touches this module ("clean the module you touch").
Findings
-
CR-A12-081 (code, Low) — Library-API status of ingest_path contradicts itself: a source comment and the architecture doc claim a contract the tier tables deny
severity Low · reachabilitydefault· intentcontract-violation· confidence likely · independently confirmed · reproduced end to end
Failure scenario. A pipeline integrator reads the architecture doc, imports ingest_path believing it is covered by api_version, and breaks silently on the next kwarg or IngestionResult field change that ships without a MAJOR bump.
Where.forgelm/ingestion.py:2218,forgelm/ingestion.py:19-24,forgelm/__init__.py:77-119,forgelm/__init__.py:142-177
Recommended fix. Either promote ingest_path, IngestionResult and summarize_result to Experimental (add to all, _STABILITY_TIERS, _LAZY_SYMBOLS, the TYPE_CHECKING block, the reference table and tests) or state 'Internal' explicitly in the architecture doc, drop the 'contract' wording from the NOSONAR comment, and relabel 'Public surface' and '(stable)' in the module map and field table. -
CR-A12-082 (code, Low) — Several user-manual feature claims are not backed by code (paragraph, JSONL metadata, PDF tables, DOCX headings, EPUB index, front-matter thresholds)
severity Low · reachabilitydefault· intentcontract-violation· confidence likely · single reviewer · reproduced end to end
Failure scenario. A user expects heading metadata, per-paragraph rows or PDF tables and builds a dataset pipeline around them.
Where.docs/usermanuals/en/data/ingestion.md:46-48,docs/usermanuals/en/data/ingestion.md:62,docs/usermanuals/en/data/ingestion.md:64,docs/usermanuals/en/data/ingestion.md:72-75
Recommended fix. Correct the rows, delete the metadata sample, and point the front-matter row at the guide's thresholds. -
CR-A12-083 (code, Low) — Front-matter drop reports 0-based page indices while --page-range is 1-indexed, and the docs never say so
severity Low · reachabilitydefault· intentcontract-violation· confidence likely · single reviewer · not reproduced (code trace)
Failure scenario. Off-by-one when translating dropped indices into a --page-range.
Where.forgelm/ingestion.py:645-662,forgelm/ingestion.py:1004-1015,docs/guides/ingestion.md:440-446
Recommended fix. Say '0-based page indices' in the warning and docs or log 1-based numbers. -
CR-A12-084 (code, Low) — --strip-pattern-no-timeout: no runtime warning, and validator-passing alternation shapes hang the run unbounded; a timed-out default run exits 0 with no summary signal (extends M-A05-026)
severity Low · reachabilitydocumented-opt-in· intentintended-but-harmful· confidence likely · independently confirmed · reproduced end to end
Where.forgelm/cli/subcommands/_ingest.py:123-125,forgelm/cli/_parser.py:414-423,forgelm/_strip_pattern.py:411-413,forgelm/_strip_pattern.py:244-252
Recommended fix. Count skipped (timed-out) patterns and expose them in IngestionResult, structured_notes and the summary, optionally with a non-zero exit under a strict flag. Have --strip-pattern-no-timeout log a warning at run start. Extend the validator to alternation branches. -
CR-A12-085 (code, Low) — Entity references in DTD-bearing XHTML/DOCX are written literally or silently truncate text; DTD-bearing DOCX parts make the whole file soft-skip
severity Low · reachabilitydefault· intentintended-but-harmful· confidence likely (static only) · independently confirmed · reproduced end to end
Failure scenario. A scraped EPUB whose chapters declare custom entities in an internal DTD subset is ingested. Every reference appears verbatim as '&name;' in the SFT rows, and the run reports success with no warning. A DOCX with an entity reference loses the remainder of that text run.
Where.forgelm/ingestion.py:1210,forgelm/ingestion.py:1329,forgelm/ingestion.py:1344,forgelm/ingestion.py:1345
Recommended fix. Optionally strip unresolved entity-reference text, or warn when a DOCTYPE with an internal subset is present in DOCX or EPUB parts. Document that DTD-bearing documents are skipped. Low priority. -
CR-A12-086 (code, Low) — Second-pass dedup is not skipped on PDFs shorter than 3 pages: it treats intra-page paragraphs as blocks and strips a repeated paragraph-leading line
severity Low · reachabilitydefault· intentcontract-violation· confidence likely · independently confirmed · reproduced end to end
Failure scenario. A 1-page recital PDF from a generator that embeds newlines loses every 'WHEREAS,' line. The guide says the dedup is skipped below 3 pages.
Where.forgelm/ingestion.py:418-419,forgelm/ingestion.py:478,forgelm/ingestion.py:1017-1018,docs/guides/ingestion.md:302-303
Recommended fix. Return early from the second pass when fewer than _PDF_REPEAT_MIN_PAGES pages remain. Pass it the page list (not a re-split string) so blocks always equal pages, and count only non-empty blocks in the minimum guard. -
CR-A12-087 (code, Info) — Files are processed strictly serially and CPU-bound extraction is single-core
severity Info · reachabilitydefault· intentintended-and-acceptable· confidence likely · single reviewer · not reproduced (code trace)
Where.forgelm/ingestion.py:2486-2512,forgelm/ingestion.py:2148-2205,forgelm/ingestion.py:940-1023,forgelm/ingestion.py:196-240
Recommended fix. Only worth doing after measuring a real corpus; keep determinism (sorted order) and the atomic-write contract. -
CR-A12-088 (code, Info) — all-mask.md rationale for 'secrets first' (JWTs overlapping email regex) is unsupported and contradicts the code comment
severity Info · reachabilitydefault· intentcontract-violation· confidence likely · single reviewer · reproduced end to end
Where.docs/usermanuals/en/data/all-mask.md:43,docs/usermanuals/tr/data/all-mask.md,forgelm/ingestion.py:2113,docs/reference/usage.md:202
Recommended fix. Reword to the defensive-ordering rationale used in the code comment. -
CR-A12-089 (code, Info) — secrets.md quick example prints console output the tool never produces (EN and TR)
severity Info · reachabilitydefault· intentcontract-violation· confidence likely · single reviewer · reproduced end to end
Where.docs/usermanuals/en/data/secrets.md:31,docs/usermanuals/tr/data/secrets.md:24
Recommended fix. Replace the sample output with the real summary lines.
Done when
- Every finding above is fixed or closed with a reason (tick it here).
- Code fixes carry a test; doc fixes update the Turkish mirror in the same PR.
Found by the October 2026 ForgeLM code and documentation review against commit cab2947. Code links point at that commit; line numbers may have moved since. Finding IDs (CR-…, DOC-…, TECH-…) are stable references for this backlog.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity