This is a planning record, not a list of shipped features. Completed work is marked separately; planned entries describe proposals and may need fresh validation before implementation. In particular, the Chart Panel and persistent Filters Panel are not shipped. Existing search, filter favorites, and highlighting must not be confused with those proposed dock panels. See the documentation hub for current user and architecture guides.
| ID | Task | Priority | Status | Related |
|---|---|---|---|---|
| TASK-001 | Search generation ID refactoring | Low | Done | PR #11 |
| TASK-002 | Chart Panel — regex match → time series | Medium | Planned | SPEC |
| TASK-003 | Filters Panel — persistent dock with groups & pinning | Medium | Planned | SPEC |
| TASK-004 | macOS code signing and notarization hardening | Medium | Planned | CI Release |
| TASK-005 | Continuous and Release tag Changes automation | Medium | Planned | Releases |
| TASK-006 | Vectorscan 5.4.12 upgrade and search-backend hardening | High | Planned | Vectorscan 5.4.12 |
Scenario:
CrawlerWidget::replaceCurrentSearch() needs to discard stale searchProgressed
signals from an interrupted search before starting a new one. The current approach
historically disconnected and reconnected the
LogFilteredData::searchProgressed consumer (now split into result publication and status handling).
Problem:
With Qt::QueuedConnection, disconnect() does not remove already-posted
QMetaCallEvents from the receiver's event queue. The former disconnect/reconnect
workaround could therefore deliver a superseded search after a replacement had
already become active.
Implemented design:
LogFilteredData::searchResultsChanged(LinesCount, LineNumber, bool, quint64)publishes result presentation independently fromsearchProgressed(LinesCount, int, LineNumber, quint64)status updates.- A complete logical search advances the worker generation; incremental
updateSearch()operations retain that generation. CrawlerWidget::updateFilteredResults()andupdateSearchStatus()first reject publications from any non-currentLogFilteredData, then require an exact generation match.replaceCurrentSearch()advances the generation before interruption instead of disconnecting and reconnecting signal consumers.
Trade-offs: The cross-cutting signal contract requires every result and status consumer to retain both source-identity and generation checks.
Resolution:
Implemented in branch docs/backlog-generation-id. The wire type for the
generation argument is plain quint64 rather than the
LogFilteredDataWorker::OperationGeneration typedef, because moc treats
typedefs of non-builtin types as unregistered metatypes and QSignalSpy
decodes the QVariant back to 0; the typedef alias is kept for
code-readability but does not appear in any Q_SIGNAL signature. Two
new SCENARIOs in tests/ui/logfiltereddata_test.cpp cover generation
increment and signal payload. Receiver-side staleness gate is factored
into klogg::isStaleSearchGeneration (src/logdata/include/searchgeneration.h)
with its own unit test. Cache-hit path bumps the generation via
LogFilteredDataWorker::bumpGeneration() so prior-search progress
signals are correctly dropped.
Scenario: Render a time-series chart of regex-matched events inside klogg so that post-mortem analysis goes beyond "search & scroll" into "see when things happen and how often".
Spec: SPEC_CHART_AND_FILTERS_PANEL.md
covers goals / non-goals, UX, data model, three phased iterations
(Phase 1: filter-frequency on a line-number axis; Phase 2: capture-group
numeric aggregation; Phase 3: optional timestamp axis), files affected,
testing strategy, and effort estimate (~5 weeks for Phase 1 + 2).
Recommended order: ship after TASK-003.
Scenario: Surface the existing Predefined Filters feature as a persistent left-side dock with grouping and pinning, so users can toggle filter sets in one click instead of opening a multi-step dialog.
Spec: SPEC_CHART_AND_FILTERS_PANEL.md
covers goals / non-goals, UX (tree view + drag-drop + per-group pin),
data-model migration (legacy flat list → grouped collection), three
phased iterations, testing strategy, and effort estimate (~1.5 weeks
to feature-complete).
Recommended order: ship before TASK-002.
Scenario: Release macOS artifacts should be signed and notarized consistently so users can open downloaded DMGs without Gatekeeper warnings or manual override steps.
Problem: The packaging action contains signing and notarization hooks, but the backlog needs a dedicated plan to verify identity setup, entitlement requirements, secret handling, and artifact validation for both Intel and Apple Silicon packages.
Proposed plan:
- Document required Apple Developer certificates, installer identities, App Store Connect issuer/key material, and GitHub secret names.
- Add CI preflight checks that fail early when signing secrets are missing on a release run.
- Sign the
.appbundle before DMG creation, sign the DMG, submit for notarization, staple the result, and verify withcodesign,spctl, andstapler. - Keep unsigned local/PR builds possible while making release signing behavior explicit in logs and artifact metadata.
Scenario:
The continuous prerelease and versioned release tags should publish useful
Changes text so users can understand what changed without digging through CI
runs or commit history.
Problem:
Release assets are uploaded automatically, but the release notes need a clear
plan covering the moving continuous tag and immutable version tags.
Proposed plan:
- Generate Continuous Changes from commits merged since the previous
successful Continuous build, grouped by change type using
scripts/gen_changelog.py. - Generate Release Changes from the previous version tag to the new version tag, including highlights, fixed issues, and artifact notes.
- Update the release workflow to write the generated text into the GitHub Release body after assets are uploaded.
- Add a dry-run mode that prints the planned release notes in CI logs for PR validation before changing any GitHub Release.
Scenario: Klogg uses Vectorscan as the high-throughput regular-expression backend for line filtering, folder search, and highlighter candidate selection. The pinned 5.4.11 dependency predates the current stable 5.4.12 release and the search stack needs stronger ISA, semantic, and measurement guarantees before further performance work is safe.
Evidence and scope:
- Klogg pins Vectorscan in both the normal and prefetch CPM projects:
3rdparty/CMakeLists.txtandcmake/prefetch_cpm/CMakeLists.txt. - Vectorscan 5.4.12 fixes an AVX512VBMI Teddy page-end out-of-bounds read (upstream #333). The issue has no assigned CVE/GHSA; treat it as a stability and memory-safety maintenance update, not as a documented RCE.
- Klogg currently uses block-mode databases. The live-log transport is a byte
stream, but
CaptureStorerebuilds complete lines before filtering; adopting Vectorscan streaming mode is not a substitute for line assembly. - Vectorscan is configured with UTF-8/UCP flags. Raw block scanning depends on
valid UTF-8 and on scanned byte offsets remaining aligned with
endOfLines.
Target:
Upgrade from Vectorscan 5.4.11 commit
d29730e1cb9daaa66bda63426cdce83505d2c809 to the exact 5.4.12 tag commit
b585ad466658624bb31fb1d194cdb168df34833c. Do not pin a moving master or
develop revision.
Phase P0 — Release-blocking correctness and portability:
- Define explicit generic, AVX2, and experimental AVX512/VBMI build profiles. Keep AVX512/VBMI disabled for normal artifacts until target-hardware tests demonstrate compatibility and benefit. Align artifact labels, linked ISA, runtime checks, and the documented minimum CPU.
- Use target-architecture detection that covers both
arm64andaarch64, and align the Vectorscan enable gate with the actual ISA required by the linked library. - Update both CPM pins, rebase and validate the MSVC warning and aligned-free patches, and run the upstream Vectorscan unit suite once in the upgrade PR. Verify recursive submodules, CPM prefetch, cache size, and offline builds.
- Check every
hs_scan()return value. A scan failure must not silently be reported as an empty match set; recover through a documented fallback or make the failure visible to tests and diagnostics. - Make raw block-scan input validity explicit. When a complete valid UTF-8 byte-coordinate contract cannot be proven, use the decoded per-line path.
- Add differential tests comparing Qt per-line, Vectorscan per-line, and Vectorscan block matched-line sets. Cover zero-width patterns, CRLF, unterminated lines, UTF-8/UCP, malformed input, case folding, and chunk boundaries. Any accepted cross-line block-scan difference must be a small, documented whitelist.
Phase P1 — Measurement and regression visibility:
- Split benchmark timing into compile, single/block database creation, scratch allocation, matcher cloning, steady-state scan, and end-to-end search.
- Correct the full, incremental, and live benchmark runner, aggregation keys, denominators, and emitted environment metadata (CPU model/features, compiler, Qt, Vectorscan commit, ISA flags, and exact/prefilter/fallback classification).
- Add fixed-rate live-input benchmarks that report append-to-visible-match and model-update p50/p95/p99 latency, backlog age, event-loop stalls, and catch-up time.
- Run a same-environment
KLOGG_USE_VECTORSCAN=ON/OFFCI matrix and extend the encoding × ANSI × backend × search-path integration corpus.
Phase P2 — Measurement-gated performance work:
- If compile latency is a measured hotspot, lazily create the block database and scratch only when a whole-buffer path needs them.
- If repeated patterns are common and memory is bounded, add an observable, evictable compiled-expression cache that shares immutable databases but keeps scratch private to each matcher.
- Profile block callback, line-offset mapping, and
seenLinescosts before reusing/epoching buffers or choosing block versus per-line scanning by workload characteristics. - Tune live batching, worker start frequency, merge thresholds, and matcher pool limits only against fixed-rate p95/p99 and backlog measurements.
- Use folder-search benchmarks to distinguish I/O, enumeration, encoding, decoding, regex, and context-assembly bottlenecks before optimizing any one layer. Track prefilter candidate rate and Qt confirmation time separately.
Phase P3 — Deliberate long-term experiments:
- Review post-5.4.12 upstream correctness fixes individually; backport only small, sourced fixes with dedicated regression tests until a new stable release is available.
- Add deterministic property/fuzz testing with a fixed seed, failure minimization, and sanitizer coverage.
- Evaluate
FAT_RUNTIME, AVX512/VBMI, and ARM SVE/SVE2 only as separately labelled distribution experiments with target-hardware smoke tests. - Design
HS_MODE_STREAMonly for an explicit future product feature that supports continuous multi-line regex spans, stream ownership, reset/close semantics, and span-aware results. - Treat GPU regex as a separate, restricted offline batch-processing research path. It is not a direct Vectorscan backend upgrade and is not the default solution for interactive ADB/iOS live filtering.
Acceptance criteria:
- The 5.4.12 pin, patched builds, and upstream/Klogg test suites pass on the supported x64 and ARM build matrix.
- Generic and AVX2 artifacts run on their documented minimum hardware without an illegal instruction fault.
- Exact-mode matched-line sets agree with the Qt oracle outside documented block-scan exceptions.
- Benchmark artifacts make compile cost, steady-state throughput, and live end-to-end latency independently comparable before P2 optimizations land.
- Every
hs_scan()return value is checked; a scan failure either triggers the documented fallback or is made visible to tests and diagnostics. - Raw block scanning only runs on input validated against the UTF-8 byte-coordinate contract; anything else takes the decoded per-line path.
- Differential tests cover the P0 corpus, and every accepted block-scan exception is documented.
- Both CPM pins, the patched builds, CPM prefetch, offline builds, and the normal-artifact ISA restrictions are verified in the upgrade PR.