Repository navigation
Table Query and Diff Engine
Andrew Paolucci edited this page Dec 2, 2026
·
3 revisions
guap-table (#![forbid(unsafe_code)]) standardizes how every GUAP suite represents, queries, sorts, paginates, and compares forensic and system telemetry records.
-
TableSchema&ColumnDef(ColumnType): Declares typed columns (String, numeric, boolean, timestamp, bytes) with display widths, visibility defaults, and alignment. -
CellValue&Row: Preserves structured typed cell values alongside optionaldetail_jsonmetadata and raw-byte slices for inspector/hex panes without lossy stringification. -
TableProviderTrait: Downstream crates implement a single trait exposing schema metadata, row generation, andis_read_only()declaration.
GuapQuery provides uniform CLI --filter, --sort, --columns, --limit, and --offset behavior across every suite:
-
Comparison Operators:
==,!=,<,<=,>,>=, case-insensitivecontains, and regex~. -
Boolean Logic & Safety Bounds: Combines clauses with
AND,OR,NOTand parenthesized grouping while enforcing recursion/nesting caps against adversarial expressions and preserving exact integer precision above$2^{53}$ (u64/i64comparisons do not truncate tof64). -
Sorting & Projection: Supports multi-column sort specifications (e.g.,
"timestamp:desc,event_id:asc"or"-pid") and explicit column subsets (--columns).
Used by suite diff / data diff commands (for example comparing two offline registry snapshots, process captures, or CSV/TSV/JSONL exports):
- Compares baseline vs. target row sets keyed by primary columns.
- Rejects duplicate keys deterministically before diffing so silent collisions cannot mask tampered records.
- Classifies rows cleanly into
Added,Removed,Modified(with per-column deltas), andUnchanged.
guap_table::shell provides the headless 5-zone cockpit state machine (GuapShellState) and plug-in trait (SuiteWorkbenchHost) consumed by guap-gui-win32, guap-gui-iced, and flagship GuapFlagshipHost:
-
Policy & Forensic Posture:
UiPolicyPosture(ReadOnlyOnly,DryRunOnly,AllowMutating),TargetEnvironment(LiveHost,OfflineArtifact,UsbForensics,ConnectedDevice), andForensicCaseLock(effective_policy()forcesReadOnlyOnlywhen locked or inUsbForensicsmode). -
Approval Card Lifecycle Hooks:
SuiteWorkbenchHost::stage_mutating_action(),approve_mutating_card(&self, card_id, actor), andundo_executed_card(&self, card_id, actor)driveGuapShellAction::ApproveCardandGuapShellAction::UndoExecutedCardacross both Win32 and Iced cockpits.
guap-kit (v0.1.0) • GUAP Ecosystem (guap.ca) • 5 Crates • Rust 2024 Edition (1.89+) • Apache-2.0 License • Repository • Security Policy