Skip to content

docs: define Graphite’s product scope and universal schema goals - #231

Open
johnsonlee wants to merge 3 commits into
mainfrom
codex/universal-schema-scope
Open

johnsonlee wants to merge 3 commits into
mainfrom
codex/universal-schema-scope

Conversation

@johnsonlee

@johnsonlee johnsonlee commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Change

This draft reopens the universal schema discussion at the product level. It pairs an English draft with a Chinese draft. The earlier prototype is in #169.

Questions for this review

  • Does Graphite's positioning cover both inspecting one artifact and tracing the impact of an API change across a whole microservice system?
  • Do the goals preserve the full scope of today's inputs and public behavior while making room for formats such as IPA, ELF and Mach-O?
  • Do the non-goals draw the right boundary for static evidence, incomplete inputs and claims about runtime behavior?

Schema records, storage layout, APIs and migration are topics for a later design review.

Verification

Checked the two documents for matching sections, goals, non-goals and reference targets. Verified local links and anchors and ran git diff --cached --check. The changes are confined to documentation. Construction, loading and query performance are unaffected.

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

📊 Test Coverage

Module Line Coverage
core ✅ 100.00% (3047/3047)
cypher ✅ 100.00% (6770/6770)
explore ✅ 100.00% (5507/5507)
ir ✅ 100.00% (180/180)
query ✅ 100.00% (363/363)
sootup ✅ 100.00% (6051/6051)
webgraph ✅ 100.00% (8258/8258)

View full logs

@github-actions

Copy link
Copy Markdown

Benchmark report

Base: 70f908cf6acf4b80ce74d038cecba07f119a544b · Head: 653ef9713e0aff6825ad18903f146f74a3ab6803

Workflow and raw evidence · Full report

Benchmark correctness and OOM: PASS

Timing differences are report-only; correctness, OOM and required coverage decide this gate. GitHub runner timings do not establish performance acceptance.

Base: 70f908cf6acf4b80ce74d038cecba07f119a544b
Head: 653ef9713e0aff6825ad18903f146f74a3ab6803

frontend-build-save

  • PASS base frontend build/save correctness: fresh real64 build/save plus whole Tika/Hive/Kotlin correctness/readback complete; 7 G1 JVM receipts under 4 GiB; ExitOnOutOfMemoryError rejects even recoverable production OOM
  • PASS base frontend build/save heap: fresh real64 build/save plus whole Tika/Hive/Kotlin correctness/readback complete; 7 G1 JVM receipts under 4 GiB; ExitOnOutOfMemoryError rejects even recoverable production OOM
  • PASS base frontend build/save coverage: fresh real64 build/save plus whole Tika/Hive/Kotlin correctness/readback complete; 7 G1 JVM receipts under 4 GiB; ExitOnOutOfMemoryError rejects even recoverable production OOM
  • PASS head frontend build/save correctness: fresh real64 build/save plus whole Tika/Hive/Kotlin correctness/readback complete; 7 G1 JVM receipts under 4 GiB; ExitOnOutOfMemoryError rejects even recoverable production OOM
  • PASS head frontend build/save heap: fresh real64 build/save plus whole Tika/Hive/Kotlin correctness/readback complete; 7 G1 JVM receipts under 4 GiB; ExitOnOutOfMemoryError rejects even recoverable production OOM
  • PASS head frontend build/save coverage: fresh real64 build/save plus whole Tika/Hive/Kotlin correctness/readback complete; 7 G1 JVM receipts under 4 GiB; ExitOnOutOfMemoryError rejects even recoverable production OOM
  • PASS host OOM events: before=Some({"high": 0, "low": 0, "max": 0, "oom": 0, "oom_group_kill": 0, "oom_kill": 0, "sock_throttled": 0}); after=Some({"high": 0, "low": 0, "max": 0, "oom": 0, "oom_group_kill": 0, "oom_kill": 0, "sock_throttled": 0})
Case Stage Measurement N base/head Base ms Head ms Delta ms Delta %
real64-build-save frontend-build-save JMH SingleShotTime 1/1 461489.598 466111.569 4621.971 +1.00%

native-real64

  • PASS base-real64-pressure-correctness: All complete responses, repeated-request stability and semantic scope assertions passed
  • PASS head-real64-pressure-correctness: All complete responses, repeated-request stability and semantic scope assertions passed
  • PASS matched-real-source-inputs: source JAR/shard hashes match: true; exact 73 query texts match: true
  • PASS base-head-reviewed-semantics: Exact queries and complete typed responses, or compiled-in directed expectations bound to both product content identities; exact query match: true; exact response match: true; see semantic-transitions.json
  • PASS fixed-real64-pressure-protocol: 73 cases; concurrency4; first-use1/warmup2/pressure20; pressure p50<100ms selects isolated40 at concurrency1. Selection changes reporting only, never acceptance.
  • PASS native-host-oom: Linux cgroup OOM counters must remain unchanged; every native process must survive all requests. JVM heap ceilings are checked by frontend-build-save
  • PASS base-native-concurrent-error-recovery: Separate real64 server: four concurrent complete requests, outcome metrics, invalid inputs and exact recovery results passed; deterministic rejection/deadline contracts are covered by production-handler unit tests, not these paired network probes; no performance samples
  • PASS head-native-concurrent-error-recovery: Separate real64 server: four concurrent complete requests, outcome metrics, invalid inputs and exact recovery results passed; deterministic rejection/deadline contracts are covered by production-handler unit tests, not these paired network probes; no performance samples
Case Stage Measurement N base/head Base ms Head ms Delta ms Delta %
real64-loading registry-ready single fresh-process boundary 1/1 46069.015 46653.634 584.619 +1.27%
real64-loading startup-through-first-use-oracle single fresh-process boundary 1/1 48456.224 48225.987 -230.237 -0.48%
zero/global-wide-four-properties pressure nearest-rank p50 20/20 1.952 1.819 -0.133 -6.82%
zero/global-wide-four-properties pressure nearest-rank p95 20/20 5.205 5.261 0.056 +1.07%
zero/global-wide-class-pair pressure nearest-rank p50 20/20 1.740 1.115 -0.625 -35.93%
zero/global-wide-class-pair pressure nearest-rank p95 20/20 6.213 2.712 -3.501 -56.35%
zero/global-wide-name-pair pressure nearest-rank p50 20/20 1.323 1.989 0.666 +50.33%
zero/global-wide-name-pair pressure nearest-rank p95 20/20 2.791 5.133 2.342 +83.92%
zero/global-wide-caller-class pressure nearest-rank p50 20/20 1.376 1.513 0.137 +9.99%
zero/global-wide-caller-class pressure nearest-rank p95 20/20 3.909 2.789 -1.120 -28.65%
zero/global-wide-callee-class pressure nearest-rank p50 20/20 1.408 1.968 0.560 +39.80%
zero/global-wide-callee-class pressure nearest-rank p95 20/20 3.468 3.791 0.323 +9.32%
zero/global-wide-provenance pressure nearest-rank p50 20/20 1.118 1.192 0.074 +6.62%
zero/global-wide-provenance pressure nearest-rank p95 20/20 2.825 3.165 0.341 +12.06%
zero/global-wide-aliased pressure nearest-rank p50 20/20 0.797 1.728 0.931 +116.76%
zero/global-wide-aliased pressure nearest-rank p95 20/20 4.801 4.498 -0.303 -6.32%
zero/global-wide-parameterized-as-literal pressure nearest-rank p50 20/20 1.097 0.935 -0.162 -14.75%
zero/global-wide-parameterized-as-literal pressure nearest-rank p95 20/20 3.542 4.588 1.046 +29.52%
zero/global-wide-wrapped-case-insensitive pressure nearest-rank p50 20/20 1.097 1.818 0.720 +65.66%
zero/global-wide-wrapped-case-insensitive pressure nearest-rank p95 20/20 2.049 3.829 1.780 +86.85%
zero/global-wide-wrapped-case-insensitive-distinct pressure nearest-rank p50 20/20 0.926 1.297 0.371 +40.04%
zero/global-wide-wrapped-case-insensitive-distinct pressure nearest-rank p95 20/20 3.793 4.513 0.720 +18.98%
targeted/global-wide-four-properties pressure nearest-rank p50 20/20 78.669 57.991 -20.678 -26.28%
targeted/global-wide-four-properties pressure nearest-rank p95 20/20 121.765 89.006 -32.759 -26.90%
targeted/global-wide-class-pair pressure nearest-rank p50 20/20 2.856 4.409 1.553 +54.40%
targeted/global-wide-class-pair pressure nearest-rank p95 20/20 19.216 38.506 19.290 +100.38%
targeted/global-wide-name-pair pressure nearest-rank p50 20/20 1.747 1.599 -0.148 -8.50%
targeted/global-wide-name-pair pressure nearest-rank p95 20/20 4.156 2.664 -1.492 -35.90%
targeted/global-wide-caller-class pressure nearest-rank p50 20/20 1.947 1.546 -0.401 -20.62%
targeted/global-wide-caller-class pressure nearest-rank p95 20/20 3.164 2.961 -0.202 -6.40%
targeted/global-wide-callee-class pressure nearest-rank p50 20/20 1.360 1.534 0.174 +12.79%
targeted/global-wide-callee-class pressure nearest-rank p95 20/20 3.335 3.734 0.398 +11.94%
targeted/global-wide-provenance pressure nearest-rank p50 20/20 1.333 1.352 0.019 +1.45%
targeted/global-wide-provenance pressure nearest-rank p95 20/20 2.248 3.329 1.082 +48.12%
targeted/global-wide-aliased pressure nearest-rank p50 20/20 1.534 1.383 -0.151 -9.85%
targeted/global-wide-aliased pressure nearest-rank p95 20/20 2.390 2.187 -0.203 -8.51%
targeted/global-wide-parameterized-as-literal pressure nearest-rank p50 20/20 1.251 1.360 0.109 +8.72%
targeted/global-wide-parameterized-as-literal pressure nearest-rank p95 20/20 2.595 2.283 -0.312 -12.04%
targeted/global-wide-wrapped-case-insensitive pressure nearest-rank p50 20/20 1.238 1.293 0.055 +4.45%
targeted/global-wide-wrapped-case-insensitive pressure nearest-rank p95 20/20 2.414 2.277 -0.137 -5.69%
targeted/global-wide-wrapped-case-insensitive-distinct pressure nearest-rank p50 20/20 1.483 1.934 0.451 +30.45%
targeted/global-wide-wrapped-case-insensitive-distinct pressure nearest-rank p95 20/20 3.910 6.671 2.761 +70.62%
dense/global-wide-four-properties pressure nearest-rank p50 20/20 4.736 5.104 0.369 +7.79%
dense/global-wide-four-properties pressure nearest-rank p95 20/20 9.830 7.538 -2.292 -23.32%
dense/global-wide-class-pair pressure nearest-rank p50 20/20 4.384 5.110 0.726 +16.55%
dense/global-wide-class-pair pressure nearest-rank p95 20/20 6.526 8.299 1.774 +27.18%
dense/global-wide-name-pair pressure nearest-rank p50 20/20 4.009 4.197 0.188 +4.69%
dense/global-wide-name-pair pressure nearest-rank p95 20/20 6.643 7.916 1.273 +19.16%
dense/global-wide-caller-class pressure nearest-rank p50 20/20 4.950 5.805 0.855 +17.28%
dense/global-wide-caller-class pressure nearest-rank p95 20/20 10.187 15.452 5.265 +51.68%
dense/global-wide-callee-class pressure nearest-rank p50 20/20 4.024 4.283 0.259 +6.44%
dense/global-wide-callee-class pressure nearest-rank p95 20/20 9.070 11.647 2.576 +28.40%
dense/global-wide-provenance pressure nearest-rank p50 20/20 4.061 4.934 0.873 +21.50%
dense/global-wide-provenance pressure nearest-rank p95 20/20 6.846 8.873 2.027 +29.61%
dense/global-wide-aliased pressure nearest-rank p50 20/20 4.572 4.006 -0.566 -12.38%
dense/global-wide-aliased pressure nearest-rank p95 20/20 6.644 10.376 3.731 +56.15%
dense/global-wide-parameterized-as-literal pressure nearest-rank p50 20/20 5.561 5.214 -0.347 -6.25%
dense/global-wide-parameterized-as-literal pressure nearest-rank p95 20/20 8.856 10.367 1.511 +17.06%
dense/global-wide-wrapped-case-insensitive pressure nearest-rank p50 20/20 4.320 4.931 0.611 +14.15%
dense/global-wide-wrapped-case-insensitive pressure nearest-rank p95 20/20 7.642 10.768 3.126 +40.91%
dense/global-wide-wrapped-case-insensitive-distinct pressure nearest-rank p50 20/20 12.838 12.887 0.049 +0.38%
dense/global-wide-wrapped-case-insensitive-distinct pressure nearest-rank p95 20/20 124.139 20.658 -103.481 -83.36%
localized-early/global-wide-four-properties pressure nearest-rank p50 20/20 1.481 2.161 0.680 +45.95%
localized-early/global-wide-four-properties pressure nearest-rank p95 20/20 3.208 4.640 1.432 +44.64%
localized-middle/global-wide-four-properties pressure nearest-rank p50 20/20 3.114 3.412 0.298 +9.56%
localized-middle/global-wide-four-properties pressure nearest-rank p95 20/20 6.969 5.380 -1.590 -22.81%
localized-late/global-wide-four-properties pressure nearest-rank p50 20/20 2.452 3.055 0.603 +24.57%
localized-late/global-wide-four-properties pressure nearest-rank p95 20/20 4.456 6.025 1.568 +35.20%
broad-all-64/global-wide-four-properties pressure nearest-rank p50 20/20 4.299 5.361 1.062 +24.70%
broad-all-64/global-wide-four-properties pressure nearest-rank p95 20/20 7.547 14.102 6.555 +86.86%
schema-label-histogram pressure nearest-rank p50 20/20 2.335 2.337 0.001 +0.05%
schema-label-histogram pressure nearest-rank p95 20/20 5.289 4.089 -1.200 -22.69%
schema-key-histogram pressure nearest-rank p50 20/20 3.086 3.626 0.539 +17.47%
schema-key-histogram pressure nearest-rank p95 20/20 11.496 13.348 1.852 +16.11%
schema-relationship-histogram pressure nearest-rank p50 20/20 145.840 150.542 4.701 +3.22%
schema-relationship-histogram pressure nearest-rank p95 20/20 299.861 290.894 -8.967 -2.99%
shape-wide-contains pressure nearest-rank p50 20/20 3.586 4.519 0.933 +26.03%
shape-wide-contains pressure nearest-rank p95 20/20 9.038 8.411 -0.628 -6.94%
shape-label-scan-callsite pressure nearest-rank p50 20/20 4.306 5.750 1.444 +33.53%
shape-label-scan-callsite pressure nearest-rank p95 20/20 8.345 10.782 2.438 +29.21%
shape-label-scan-method pressure nearest-rank p50 20/20 4.114 5.600 1.485 +36.10%
shape-label-scan-method pressure nearest-rank p95 20/20 9.579 11.740 2.161 +22.56%
shape-label-scan-constant pressure nearest-rank p50 20/20 3.206 3.127 -0.079 -2.45%
shape-label-scan-constant pressure nearest-rank p95 20/20 9.217 11.091 1.874 +20.33%
shape-label-scan-field pressure nearest-rank p50 20/20 3.520 2.727 -0.793 -22.52%
shape-label-scan-field pressure nearest-rank p95 20/20 9.514 7.801 -1.713 -18.00%
shape-all-nodes pressure nearest-rank p50 20/20 4.150 5.834 1.685 +40.60%
shape-all-nodes pressure nearest-rank p95 20/20 14.303 13.478 -0.825 -5.77%
shape-equality pressure nearest-rank p50 20/20 112.867 111.437 -1.430 -1.27%
shape-equality pressure nearest-rank p95 20/20 141.151 121.755 -19.396 -13.74%
shape-inequality pressure nearest-rank p50 20/20 3.360 3.855 0.495 +14.74%
shape-inequality pressure nearest-rank p95 20/20 7.712 11.769 4.057 +52.61%
shape-id-lookup pressure nearest-rank p50 20/20 2.267 2.989 0.722 +31.87%
shape-id-lookup pressure nearest-rank p95 20/20 5.585 6.652 1.067 +19.11%
shape-in-list pressure nearest-rank p50 20/20 2.026 3.057 1.031 +50.87%
shape-in-list pressure nearest-rank p95 20/20 5.848 6.670 0.821 +14.04%
shape-null-check pressure nearest-rank p50 20/20 1.802 3.675 1.872 +103.90%
shape-null-check pressure nearest-rank p95 20/20 7.690 8.245 0.556 +7.23%
shape-regex pressure nearest-rank p50 20/20 1.767 4.267 2.500 +141.49%
shape-regex pressure nearest-rank p95 20/20 5.923 7.630 1.707 +28.82%
shape-one-hop pressure nearest-rank p50 20/20 3.562 3.850 0.288 +8.10%
shape-one-hop pressure nearest-rank p95 20/20 7.693 6.742 -0.951 -12.36%
shape-one-hop-typed pressure nearest-rank p50 20/20 2.950 3.199 0.249 +8.46%
shape-one-hop-typed pressure nearest-rank p95 20/20 5.960 6.731 0.771 +12.94%
shape-two-hop pressure nearest-rank p50 20/20 2.723 2.999 0.276 +10.14%
shape-two-hop pressure nearest-rank p95 20/20 7.695 6.950 -0.745 -9.68%
shape-incoming pressure nearest-rank p50 20/20 2.738 3.475 0.737 +26.91%
shape-incoming pressure nearest-rank p95 20/20 8.253 5.973 -2.279 -27.62%
shape-var-length pressure nearest-rank p50 20/20 2.326 2.716 0.390 +16.77%
shape-var-length pressure nearest-rank p95 20/20 5.565 5.872 0.306 +5.50%
shape-path pressure nearest-rank p50 20/20 3.316 3.724 0.408 +12.31%
shape-path pressure nearest-rank p95 20/20 6.831 6.925 0.093 +1.36%
shape-traverse-filtered pressure nearest-rank p50 20/20 57.649 58.172 0.524 +0.91%
shape-traverse-filtered pressure nearest-rank p95 20/20 104.105 74.354 -29.751 -28.58%
shape-count-all pressure nearest-rank p50 20/20 1.662 1.981 0.319 +19.20%
shape-count-all pressure nearest-rank p95 20/20 3.526 4.291 0.765 +21.70%
shape-count-label pressure nearest-rank p50 20/20 1.593 1.747 0.155 +9.70%
shape-count-label pressure nearest-rank p95 20/20 3.994 4.030 0.036 +0.89%
shape-group-count pressure nearest-rank p50 20/20 191.112 232.205 41.092 +21.50%
shape-group-count pressure nearest-rank p95 20/20 283.482 268.050 -15.431 -5.44%
shape-distinct pressure nearest-rank p50 20/20 22.099 19.389 -2.710 -12.26%
shape-distinct pressure nearest-rank p95 20/20 34.773 40.945 6.172 +17.75%
shape-collect pressure nearest-rank p50 20/20 1.912 1.824 -0.088 -4.61%
shape-collect pressure nearest-rank p95 20/20 5.329 4.651 -0.678 -12.73%
shape-count-traversal pressure nearest-rank p50 20/20 164.166 151.606 -12.559 -7.65%
shape-count-traversal pressure nearest-rank p95 20/20 185.466 168.575 -16.891 -9.11%
shape-order-by pressure nearest-rank p50 20/20 3.923 4.938 1.015 +25.89%
shape-order-by pressure nearest-rank p95 20/20 7.681 8.731 1.050 +13.67%
shape-order-by-desc pressure nearest-rank p50 20/20 2.985 3.655 0.670 +22.44%
shape-order-by-desc pressure nearest-rank p95 20/20 8.781 8.489 -0.292 -3.33%
shape-skip pressure nearest-rank p50 20/20 5.027 6.651 1.624 +32.31%
shape-skip pressure nearest-rank p95 20/20 7.595 15.689 8.093 +106.56%
shape-function-calls pressure nearest-rank p50 20/20 6.434 6.809 0.375 +5.83%
shape-function-calls pressure nearest-rank p95 20/20 11.679 11.260 -0.419 -3.59%
shape-case-expr pressure nearest-rank p50 20/20 3.887 4.220 0.333 +8.57%
shape-case-expr pressure nearest-rank p95 20/20 6.498 8.225 1.727 +26.57%
shape-coalesce pressure nearest-rank p50 20/20 3.839 3.879 0.041 +1.06%
shape-coalesce pressure nearest-rank p95 20/20 10.714 10.624 -0.091 -0.85%
shape-labels-fn pressure nearest-rank p50 20/20 5.674 5.061 -0.613 -10.80%
shape-labels-fn pressure nearest-rank p95 20/20 8.347 8.340 -0.007 -0.08%
shape-with-filter pressure nearest-rank p50 20/20 3.188 4.196 1.007 +31.59%
shape-with-filter pressure nearest-rank p95 20/20 8.910 12.439 3.530 +39.61%
shape-with-aggregate pressure nearest-rank p50 20/20 206.997 220.383 13.386 +6.47%
shape-with-aggregate pressure nearest-rank p95 20/20 282.703 241.000 -41.702 -14.75%
shape-cartesian pressure nearest-rank p50 20/20 3.769 4.360 0.591 +15.67%
shape-cartesian pressure nearest-rank p95 20/20 9.192 8.452 -0.740 -8.05%
shape-union pressure nearest-rank p50 20/20 2.424 2.358 -0.066 -2.74%
shape-union pressure nearest-rank p95 20/20 5.564 4.797 -0.767 -13.79%

Full methods, comparability reasons, isolated observations, raw request bodies and logs are retained in the downloadable report/evidence artifacts. UNAVAILABLE never means zero; a zero baseline has no defined percentage change.

@johnsonlee

Copy link
Copy Markdown
Owner Author

Review of 653ef971

The direction is sound, and the cited facts, links and anchors all check out (the 10,027 enum figure, the IntConstant(0) class-literal history, both anchors). I would not merge it as the review baseline yet, for three reasons.

Main issues

1. Goal 1 is too absolute and contradicts what main just did.
It says to preserve 100% of existing Cypher results. #226 changed query results on purpose: a class literal used to be stored as integer zero and is now a ClassConstant. Under this wording #226 itself breaks the goal, yet the document uses it as a motivating example. Suggested wording: results stay the same unless a change is reviewed and explicitly declared (the semantic-transition mechanism in docs/benchmark-regression-gate.md).

2. Compatibility is only stated in one direction.
The document says old graphs must stay readable by new versions. It does not say what happens when an old version reads a new graph. Today an old reader fails outright (Unknown node tag: 16, see docs/webgraph-storage.md). Goal 2 ("adding a format should not force every component to release together") depends on exactly that case and needs a rule that can be tested. For example: an old reader either answers correctly for the parts it knows, or refuses; it never silently misreads.

3. The definition of "system" conflicts with an existing document.
§1 says artifact, graph and service counts are three different things. docs/topology-graph.md currently treats each --graph as one service. "Version" and "environment" are also not recorded in any graph today. The document should say this is a deliberate change from the current model, and say whether the existing topology, C4 and /api/endpoints features are inside the "must preserve" baseline.

Smaller issues

  • The baseline list is incomplete. It claims 100% but leaves out Objective-C, nested jars in Spring Boot/WAR inputs, graphite import, .graphite archives and graph directories as inputs, the Kotlin library API, the legacy Kotlin engine, REST and MCP. Either complete it, or say the README is the authority.
  • The existing architecture proposal is not mentioned. docs/architecture-frontend-backend.md §1 already has its own goals and non-goals, and they overlap. Say which document governs.
  • The status of Add universal schema contract and indexed mmap reader #169 is not stated. The document calls it the "earlier prototype", but it is still open. Say whether it is superseded or parked.
  • "Environment" is used inconsistently. §1 and Goal 4 make it part of the system boundary; the last non-goal puts deployed instances out of scope. Say what "environment" means for static analysis.
  • The English JS example in §2.3 is weaker than the Chinese one. The English only restates what a default parameter is. The Chinese makes the actual point: the value the caller supplied and the value that reaches the parameter can come from different sources. The English also drops the closing clause about a cross-format query silently changing meaning.
  • Nits. The Chinese §3 and §4 headings are still "Goals" and "Non-goals". The README does not link the new document.

The three review questions

  • Does the positioning cover both a single artifact and a whole microservice system? Yes for a single artifact. For a system, only after issue 3 is resolved.
  • Do the goals preserve today's scope? Not yet: see issues 1 and 2 and the baseline list. The room left for IPA, ELF and Mach-O is fine.
  • Do the non-goals draw the right boundary? Mostly yes; the one gap is "environment".

🤖 Generated with Claude Code

@johnsonlee
johnsonlee marked this pull request as ready for review November 28, 2026 09:04
@johnsonlee

Copy link
Copy Markdown
Owner Author

Addressed the scope review in d5ed521. Both editions now cover reviewed semantic transitions, legacy readers encountering newer graphs, and how the proposed service boundary extends the existing topology catalog while preserving C4, topology and endpoint behavior. The drafts define the static environment, identify the README as the compatibility baseline, and explain how the architecture proposal and parked #169 relate to this review. Both READMEs link to the corresponding edition.

Validated the document links and anchors locally. CI is running against the revised commit.

@johnsonlee

Copy link
Copy Markdown
Owner Author

Follow-up review of d5ed5219

Every issue from the first round is addressed, and the new links, anchors and facts check out. One kind of problem remains: the English and Chinese editions were edited separately and no longer say the same thing.

First-round issues

Issue Now
Goal 1 too absolute, contradicted #226 Resolved: reviewed and declared semantic changes are allowed
Compatibility stated in one direction only Resolved: an old reader on a new graph answers correctly or explicitly refuses
"System" conflicted with the topology document Resolved: stated as a deliberate extension; topology, C4 and /api/endpoints are in the baseline
Baseline list incomplete Resolved: the README is the authority, with examples added
Architecture proposal not mentioned, #169 status unclear Resolved
"Environment" used inconsistently Resolved: defined as a named set of static configuration
English JS example weaker Resolved, and it matches docs/typescript-frontend.md
Chinese headings, README link Resolved

New: the two editions disagree

  1. §5, first review question: only the Chinese edition changed. It gained a sentence: check intentionally changed results one by one against the reviewed expectations, and open a graph carrying new facts with an old reader. The English bullet is unchanged. This is the review criterion itself, so the two must match.

  2. Goal 2 says different things in each edition.

    • English has a rule the Chinese lacks: skipping an unknown fact is safe only when it cannot affect the answer.
    • Chinese has a verification requirement and a counter-example the English lacks: verification must include queries that meet the new tag, and skipping the record and returning zero matches is a wrong answer.

    Each edition is missing half. Merge them into one paragraph.

  3. Goal 1 has a different scope in each edition.

    • English says "public query results" stay the same; Chinese says only "Cypher results". Whether REST and MCP results are covered has two different answers.
    • The English list includes the CLI; the Chinese list does not.
  4. The governing statement differs in strength. English says the architecture proposal "must satisfy" this scope and that this document governs "compatibility". Chinese says only that the architecture proposal is "for evaluation in the design stage" and does not mention compatibility.

  5. The last non-goal: only the Chinese edition changed. It gained "the selected environment's configuration" and a sentence on which conditions a route applies to. The English bullet is unchanged.

Two smaller points

  • "Spring Boot" does not appear in the README. Goal 1 makes the README the authority and then gives nested JARs in Spring Boot inputs as an example. The README only says "fat JAR (nested JARs)". Use the README's wording, or add Spring Boot to the README.
  • "The README on main" moves. A later README edit silently changes the baseline. Say that a proposal is reviewed against the README at a named commit or release.

Verdict

The content is right. Once the two editions are aligned this can merge. CI was still running when I checked: six checks had passed; unit tests, the Rust build and the benchmark had not finished.

🤖 Generated with Claude Code

@johnsonlee

Copy link
Copy Markdown
Owner Author

Aligned the English and Chinese criteria in 8be540a. Both now cover the same public interfaces, the safe-skip rule and tag-16 counterexample, exact checks for intentional semantic changes, the architecture proposal's obligations, and the role of static environment configuration. The baseline links to the README at 70f908c and uses its fat JAR terminology. I also checked the two editions side by side and verified the linked files and anchors.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant