Repository navigation
feat(world-library): OSS-347 cumulative World Library (OSS-359-OSS-364) - #507
Merged
Merged
Conversation
…nding and config (OSS-359..364 backend)
… and knowledge re-verification
…ty and config wizard (OSS-360/361/363)
…rvation and concurrency tests (OSS-362)
…dium/low findings
# Conflicts: # knowledge/decisions/adrs.md
…onfidence so compatible verdict enables binding
# Conflicts: # knowledge/decisions/adrs.md
# Conflicts: # knowledge/decisions/adrs.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cumulative draft PR for OSS-347 World Library (OSS-359–OSS-364). One PR only. Do not merge until orchestrator review/CI/release audit.
Head:
f079ef16ea9137bd51b1e570252e09108846f059(S17 verdict-gate fix). Commits:a4fe3320backend ·cf89949dproto-lint/authz/knowledge ·07ba6f18UI ·51dabef1recovery/concurrency ·c1e2ce89review-fix batch ·8385a49bempty CI trigger ·720f4edcmain merge ·f079ef16S17 verdict-gate fix.S17 browser-QA defect fix
web/carbon-panel/src/lib/features/world-library/presentation.tsnow classifies compatibility verdicts separately from field confidence:verdictGatesBinding()returns false only forcompatible, true forblocked/incompatible/requires_decision/unknown/missing;bindingGateReason()supplies a verdict-specific warning.compatibilityVerdictPresentation()handles the real backendblockedverdict and keepsincompatibleas an alias. The detail route uses these seams instead ofisUnknownConfidence(report.overall), so a realcompatibleverdict enables Bind revision while unknown findings, blocked, requires-decision and missing verdicts still fail closed. Added unit tests for every verdict string plus a route contract assertion that the confidence helper is no longer applied to the overall verdict. Verified in Chromium: 4/4 focused scenarios pass with no console/page errors (evidence below).Review batch — per-finding resolution
WorldService.nodeGenerationForServernow readsNode.EndpointGenerationfrom SQLite (legacy local nodes fall back to 1).Binder.resolveGenerationre-checks against the same DB row, refuses a mismatched request generation, and is the only source of the value.TestBindWorldUsesRealNodeGenerationexercises the real RPC seam with a Node row generation of 7 and asserts the stored binding carries 7;TestBindWorldReportsUnknownOutcomeInsteadOfRetryableErrorcovers the RPC unknown path.Store.SwapWorldBinding(previous, next)with optimistic generation/revision checks, unique-violation mapping and an in-place row update.Binder.publishnow swaps the binding after family promotion and restores the previous binding on rollback; the old(server_id, level_name)collision is gone.TestBindSwapReplacesBindingAtomicallyasserts the row id is preserved and exactly one binding remains.operation.RunJournaledOutcome, which keeps the active server lock and writes anUncertainOutcomeMarkernote instead of advancing to failed;operation.DescribeAtnow returnsOutcomeUnknown/ActionResolveimmediately.Binder.Bindreturns aBindResultwithOutcome="unknown"and the operation id, andWorldService.BindWorldreports it as a normal response (no blind-retry error).TestBindReportsUnknownOutcomeAndKeepsLock,TestRunJournaledOutcomeKeepsLockOnUncertainEffectand the RPC test cover it.keepsWorldLocknow includesworld-bindwith an explicit "confirm the live level family" next action. A stopped container observation no longer releases the lock;TestRecoverInterruptedWorldBindKeepsLockWhenStoppedpins it.docs/adr/0016-world-library-identity-and-binding.md(0014 is W15 admission, 0015 is PR505 world viewing).knowledge/decisions/adrs.mdand every concept link were updated; knowledge-lint regenerates cleanly.since).golangci-lintunder Go 1.26.11 reports zero findings in files this PR touches; remaining findings are pre-existing in untouched files.Medium / low also addressed
save-off/save-all flush/resume while the JVM is live), then the server is stopped.Engine.CheckandDryRunand a fail-closed disk-budget check (archive + clone + undo + 256 MiB headroom); remote nodes require an injected free-bytes probe. Only genuinely blocked transforms stop a bind; informational unsupported capabilities do not.BuildSchemagates controls on the full(edition, MC version, loader, data version)tuple; unknown dimensions produce partial schemas with reasons.ErrWorldRevisionBound,ErrWorldBindingStaleandErrWorldRevisionImmutablemap to typed Connect codes;ErrDiskBudgetmaps to FailedPrecondition.border-yellow→border-warning; import UI no longer claims manifest verification.Verification
go build ./...,go vettouched packages,go teston worldlib, providers, db, operation, rpc, rbac, nodestorage, snapshot — all pass.bun run check0/0,bun run test301 pass / 0 fail (30 new across the epic),bun run lintclean.buf lintclean;bun scripts/proto-generate.mjs --checkgenerated outputs match.knowledge-lint -fixthen verify →OK: 60 concept(s), indexes current, queries 38/38.pull_requestworkflow runs were registered for the new head after two pushes (the only push-triggered run is an unrelated pre-existingeditor-dialog.ymlfailure at 0s). At the previous head all checks were green except Backend Lint & Vet (the B6 issues now fixed); Go Race Detector was green there. Local race testing is impossible (CGO_ENABLED=0, no gcc).mergeable_stateis currentlydirtybecause main has advanced (PR503/504/505); orchestrator must resolve shared-file conflicts at integration.f079ef16):browser-qa-2026-11-18/world-library-final/run-s17-fix.mjs,evidence-s17-fix.json,S17-fix-compatible-verdict-enabled.png,S15-guard-unknown-still-gated.png,S27-fix-bind-confirmation-real-verdict.png— 4 PASS / 0 FAIL, zero console/page errors. S17 renders COMPATIBLE, shows no false unknown gate and enables Bind revision; S15 unknown findings still gate; S16 incompatible still disables; S27 downstream bind works with the real compatible verdict (no syntheticdetectedoverride).