Skip to content

Benchmark domain workloads and record the physical partition decision #10

Open

Description

@CompleteDotTech

Goal

Use representative evidence and query workloads to decide whether logical domain views remain in one authority, an isolation boundary needs dedicated storage, or measured scale warrants physical sharding.

Work

  • Instrument query mix, p50/p95/p99 latency, cross-domain traversal and write rates, high-degree hubs/skew, index/working-set size, ACL cost, and cache churn. Compare unscoped and domain-scoped quality, including missed contradictions and source revocation behavior.
  • Run a reproducible benchmark on a representative labeled corpus and deployment-like concurrency; clearly label synthetic fixtures separately. State SLOs and data/isolation requirements before choosing a storage shape. Avoid an arbitrary node or edge threshold.
  • Write an architecture decision record comparing shared logical graph, dedicated database per hard trust/residency boundary, and workload-driven physical sharding. Specify stable ID, provenance, cross-partition link, consistency, and transaction implications for any split.
  • If physical sharding is justified, open a separately scoped implementation issue from the measured design; do not silently map research domains to databases.

Acceptance

  • Benchmark inputs, scripts, metrics, and limitations are reproducible and linked.
  • ADR records the chosen option, rejected options, decision owner, and revisit trigger.
  • Documentation distinguishes a logical graph from a physical database and does not claim distributed performance from the single-host reference backend.

Relevant code/docs: trace_gc/retrieval/benchmark.py, trace_gc/retrieval/evaluation.py, docs/21_graphrag_research_roadmap.md.

Verified-integration candidate workload receipt — 2026-09-27

Open; unmerged and not representative-workload acceptance. This receipt identifies the separate verified-integration-20260927 candidate, not the other execution checkpoint currently recorded on epic #4. Its ordered raw patch series is based on d5ca636a48e963619f4c89e2958d0bb1a3e72f80; series.json SHA-256 is d7eeeada5c80372d01b3f15c410189badbd58c55c1e53f3723ee6a21c0ef67db. Issue #10 patch 10-workload.patch is 31,076 bytes, SHA-256 6fe98c5cf0ac24bd4db5f7f806ed9c23a831176b5e793676a9239bcb5039980d. The source, raw measurements, earlier negative/instrumented runs, and proposed ADR are retained in the execution's downloadable evidence bundle, not committed repository files.

Implemented an application-injected workload runner with frozen corpus/case/protocol hashes, bounded concurrency, observed journal-verified reviewed writes, separate scoped/unscoped latency and quality, ACL scan timing, cache churn, cross-domain closure, source revocation, graph degree/skew and index measurements. Eleven protocol/measurement unit tests passed, including when this patch was applied independently after its dependencies.

Actual latest diagnostic: four synthetic source snapshots, ten assertions, twelve nodes; 36 queries across three independent read connections; two reviewed reclassification writes, plus six historical-revocation queries. Protocol hash dfe2af135646012643e6b7ba0c6c52180b4b2269f118a069f48d7ec9232160e1.

Metric Unscoped Scoped
Query count 18 18
p50 latency (ms) 2489.10 2157.80
p95 / p99 latency (ms) 3656.51 / 3656.51 3376.71 / 3376.71
Missed required contradictions, allowing bound evidence 0 0
Missing structured conflict-edge outputs 6 0
Expected-edge precision / recall 0.875 / 0.778 0.533 / 0.889
Source-revocation leaks 0 0

The quality trade-off is explicit: scoped closure returns additional authorized context, reducing this fixture's expected-edge precision. Evidence-level contradiction coverage is not the same as returning both structured edges. The initial run conflated those outputs and enabled tracing; that run and its method remain retained separately, not used to claim improvement. This tiny single-host diagnostic is not representative, not a high-degree stress test, and does not establish distributed performance or production tail SLOs. Measured latencies are not accepted operational targets.

The recorded synthetic run contains 66 immutable records, ten journal events and public fixture keys only. Its SHA-256 is 555b87c9a40d4033245c569d11d6ddd9521713ca514def234333baaf9c14dc75; separate read-only verification reconstructed all eleven states and passed. No private key, live provider call or production graph write was exported/performed.

ADR status: PROPOSED / production placement NOT DECIDED. Retain shared logical storage for reference development; reject database-per-research-domain as a default. Dedicated storage remains conditional on hard isolation/residency requirements; physical sharding is deferred pending representative workload evidence. An actual decision owner, approved isolation/retention requirements, representative independently reviewed corpus/query/write distribution, deployment-like concurrency and predeclared SLOs are unavailable to this runtime. The ADR states stable-ID, provenance, consistency, revocation and transaction requirements for any future split. No physical split is justified or created, so no speculative split-implementation issue was opened. Those missing requirements, full release/package validation, signed delivery and review must be completed before closing this issue or epic #4. Acceptance checkboxes, milestone, labels and native dependencies are unchanged.

Activity

  1. added
    documentation
    enhancement
    initiative:domain-graph
    area:quality
    decision
    on Sep 27, 2026
  2. CompleteDotTech commented on Nov 18, 2026

    @CompleteDotTech
    CollaboratorAuthor

    The reference workload runner, opt-in telemetry and proposed ADR 0001 are on main through #135. The exact authored run produced 66 measurements, including 55 completed queries, one expected tenant denial, five committed publications, four idempotent replays and one stale-version rejection. The authored withdrawal checks returned zero forbidden sources. The PR records the latency, paired evidence measurements and exact protocol hash. Reference delivery and evidence

    The data owner must supply an approved representative corpus and taxonomy assignments, independently attributed evidence and contradiction labels, and a frozen query/write and revocation profile including graph degree skew and deployment concurrency. The platform owner must approve the backend and environment, hard isolation or residency requirements, retention, recovery and predeclared tail-latency and reliability SLOs. A named placement decision owner must use those results to accept or replace the proposed ADR and record the rejected options and revisit trigger.

    Reproduce the authored reference measurement with python -m trace_gc domain-workload --output domain-workload.json --repetitions 3 --workers 2. For the placement study, the authorized operator runs python "$APPROVED_REPRESENTATIVE_DRIVER" after the owners supply and approve that driver and its frozen inputs. The driver uses run_query_workload and measure_publication with existing application authority on an approved disposable target. Record the resulting aggregate against the chosen SLOs before approving any physical partition. Measurement protocol · Proposed ADR

  3. added
    status:blocked
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:qualitydecisiondocumentationenhancementinitiative:domain-graphstatus:blocked

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions