This is a corrective follow-up to the peoplesoft-log-analyzer project already built in this directory. An independent code review (not the automated self-review) found concrete bugs and gaps against the original spec. Fix these precisely; do not restructure unrelated working code. ## 1. Critical bug: asp_system.log is silently dropped from every scan `peoplesoft_log_analyzer/discovery.py` classifies known filenames in `_KNOWN_FILENAMES` using the key `"ASP_SYSTEM.log"`, but the real production file is lowercase: `asp_system.log`. Classification is case-sensitive by design, so the real file does not match that dict entry. It then falls through to the generic `_DOMAIN_LOG` regex, which incorrectly classifies it as `LogFileType.DOMAIN`. Because real `asp_system.log` files live inside a domain subdirectory (not directly under the scan root), the `path.parent != root_path` guard then discards it entirely as an "unrecognized filename" -- meaning every real asp_system.log is silently skipped and none of its PeopleCode/component-processor errors are ever surfaced. This is confirmed by the test fixtures themselves using the wrong uppercase name `ASP_SYSTEM.log`, which is why the test suite didn't catch it. Fix: change the known-filename entry to the exact real casing `"asp_system.log"`. Rename the test fixture files (in `tests/fixtures/domain_alpha/` and `tests/fixtures/domain_beta/`) from `ASP_SYSTEM.log` to `asp_system.log` and update any reference to that filename so the regression suite actually exercises the real production name. Add a regression test that specifically asserts a file named exactly `asp_system.log` (lowercase) inside a domain subdirectory is discovered and parsed, not skipped, and that a differently-cased variant is intentionally NOT matched (case sensitivity is deliberate). ## 2. `LogFileType` invents unrequested classifications and conflates the real formats The current enum (`APPLICATION_SERVER`, `BATCH_SERVER`, `TUXEDO`, `DOMAIN`) and its filename table add generic PeopleSoft appserver/Tuxedo filenames (`APPSRV.LOG`, `PSAPPSRV.LOG`, `PSMONITORSRV.LOG`, `PSSAMSRV.LOG`, `PSQCKSRV.LOG`, `PSQRYSRV.LOG`, `PSPRCSRV.LOG`, `TUXLOG.LOG`) that were never in scope, are not present in the real corpus, and have no dedicated parser (they'd silently fall back to the generic best-effort domain-log scanner). Remove that unrequested surface area. Additionally, `PIA_weblogic.log`, `PIA_stdout.log`, and `PIA_stderr.log` are all mapped to the same `APPLICATION_SERVER` value, which makes it impossible to report "entry counts by log file type" distinctly for those three very different formats (WebLogic structured records vs. raw stdout warnings vs. raw stderr Java exceptions). Fix: replace the enum with exactly the five real categories from the original spec: `WEBLOGIC` (PIA_weblogic.log), `STDOUT` (PIA_stdout.log), `STDERR` (PIA_stderr.log), `ASP_SYSTEM` (asp_system.log), `DOMAIN` (the root `.log` PSADMIN file). Update `_KNOWN_FILENAMES`, `parse_file` dispatch, and any signature/report logic that relied on the old enum values. ## 3. `list-domains` must not parse log content The original spec: "`list-domains ROOT_DIR` -- walk ROOT_DIR, print discovered domains, which known files exist per domain, and their sizes, without parsing content. A quick sanity check before a full scan." The current implementation calls `discover_logs()`, which opens and reads every line of every file (via `_entries_for`) just to list domain names -- this is exactly the expensive full-content parse the command was supposed to avoid, and it doesn't print per-domain file/size detail at all. Fix: add a lightweight, content-free directory walk (stat-only: file existence and `Path.stat().st_size`, no `open()`/read of file contents) and wire the `list-domains` command to it. For each discovered domain, print the domain name, each recognized log file found in it, and that file's size (human-readable, e.g. via a small byte-formatting helper). Keep discovery classification (`classify_filename`) for deciding which files are "known"/recognized, but do not read their contents in this command. ## 4. `scan` text report is missing required breakdowns The original spec required the overview section to include "entry counts by severity, entry counts by domain, entry counts by log file type, skipped-file list" in addition to totals. The current `_text_report` only prints total files/entries/domains/issues and a bare skipped-file *count*, not counts by domain, not counts by log file type, and not the skipped files' names/reasons. Fix: extend the aggregation/statistics to track counts by domain and by log file type (using the corrected enum from item 2), and print them in the text report, plus the actual list of skipped file paths and reasons (not just a count). Keep the existing top-N issues section. Also include the equivalent breakdowns in the JSON output (CSV can remain issue-row-oriented as specified). ## 5. `--top` default should be 25, matching the original spec The `scan` command's `--top` option currently defaults to 10. Change the default to 25 as originally specified, and update the help text/tests accordingly. ## Constraints - Do not change the already-correct per-format streaming parsers in `parsers.py` (WebLogic header parsing, stdout/stderr Java-exception grouping, ASP continuation-line handling) except where the enum rename in item 2 requires updating their `LogFileType` references. - Keep everything read-only and streaming (no `.read()`/`.readlines()` on whole log files); the new `list-domains` stat-only walk must not open file contents at all. - Update README.md examples if the `--top` default or `list-domains` output shape changed. - Add/adjust unit tests for every fix above; all existing passing tests must keep passing unless they were asserting the incorrect behavior being fixed (in which case update them to assert the corrected behavior).