mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-29 23:37:41 +00:00
* fix(group): match a manifest link's consumer only in the repo it names A group.yaml link adds a consumer contract to the exact and wildcard passes, and those passes matched it on the contract id alone. Declaring `gen-question → learning POST /import` in a group where user-service also serves `POST /import` produced a second, undeclared cross-link from gen-question to user-service. The consumer contract a link creates now carries the repo the link names (`meta.providerRepo`), and both passes skip providers outside it. In the wildcard pass the filter runs before the thrift ambiguity check, so a same-named service elsewhere in the group no longer blocks the declared one. Consumers found in source still match across the whole group. The field only steers matching. Sync drops it before writing the registry, so contracts.json keeps its shape and a consumer whose provider could not be read does not name that repo. * fix(group): address review feedback on declared-repo matching (#3881) - Track matched consumers as records in the exact and wildcard passes. Two consumers can share `repo::contractId` and still end differently now that a link consumer only matches the repo its link names, so the shared key hid the one that matched nothing from `unmatched`. - Tests: the bookkeeping in both passes, a service-wildcard link through syncGroup, the strip on `unmatched`, the contracts handed to the bridge write, the exact pass on topic, lib, thrift and method-agnostic http contracts, and a declared repo that prefixes another repo's name. - PIPELINE.md: say that the rule covers every link type and what still matches across the whole group. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * test(group): gate manifest-link matching on identity and linear scaling (#1188) Build-free bench for the matching stage of syncGroup (provider index, exact pass, wildcard pass, strip of the matching-only providerRepo) over a synthetic group shaped like #1188: each link's route is served by four repos, half the links have a source-extracted twin consumer, and every fifth link names a repo that contributes nothing. - fingerprint over every cross-link and unmatched contract at 8,000 links. The matcher from before #1188 and the repo::contractId bookkeeping both move it; a missing strip fails a separate count. - scaling ratio between 2,000 and 8,000 links, budget 1.8. Measured 1.04-1.19; a sweep from 1,000 to 32,000 links has a log-log slope of 1.13. An extra provider-index walk per consumer measures 2.0-2.3. Wired into the benchmarks job. baselines.json also records two costs that predate #1188 and are not gated: service-wildcard links and method-agnostic http links each walk the provider index once per link. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Gergő Magyar <gergomagyar@icloud.com> Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com> Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
8 lines
2.4 KiB
JSON
8 lines
2.4 KiB
JSON
{
|
|
"_comment": "Baselines for bench/group-link-matching/measure.mjs --check (#1188). `fingerprint` is a sha256 over every cross-link (matchType, both endpoints, contractId) and every unmatched contract the matching stage produces for the 8000-link corpus. It is a CORRECTNESS gate: it moves when a link consumer matches a repo its link does not name, or when a consumer the passes could not place drops out of `unmatched`. Drift must be explained, never re-baselined to make CI green. Controls measured when this was added: the matcher from before #1188 gives e88a510a… (55,232 cross-links instead of 31,216, the spread); `repo::contractId` bookkeeping gives f2f7e0c5… (800 consumers missing from unmatched); removing the strip leaves the fingerprint unchanged and fails the separate `leakedProviderRepo` count (9,616 instead of 0).",
|
|
"fingerprint": "3736a70b9fcaf26c1f91ccb757d9dc00b575c1f9253beba95cd4a80ae1221162",
|
|
"scaling_budget": 1.8,
|
|
"_scaling_note": "(t_large/t_small)/(8000/2000). About 1.0 is linear in the number of links. OBSERVED BAND: 1.04-1.19 over nine runs on a 24-core dev box at load average 5. A six-point sweep from 1,000 to 32,000 links (6,632 to 211,232 contracts) gave 10.6, 23.9, 53.2, 116, 256 and 537 ms, a log-log slope of 1.13; the part above 1.0 is the provider index outgrowing the cache, and the pre-#1188 matcher measures 1.15 on the same corpus. Floor check: one extra walk of the provider index per consumer in the exact pass measures 2.0-2.3 with an unchanged fingerprint. TRIAGE: a scaling failure is a timing signal, so re-run it on an idle machine before investigating; the fingerprint is deterministic and a re-run never changes it. NOT GATED, measured on purpose: the wildcard pass walks the whole provider index once per service-wildcard consumer, and the exact pass does the same for a method-agnostic http link (`/path` without `METHOD::`) and for a bare-name thrift method. Those costs are (such links x provider keys) and predate #1188: with the wildcard links growing with the corpus the ratio is 2.1-2.3 at 1000/4000 links, with every link method-agnostic it is 3.3-3.5 (2.0 s at 4,000 links), the same before and after #1188. The corpus therefore holds a fixed 16 wildcard links and only explicit-method http links.",
|
|
"absolute_ms_budget": 600,
|
|
"_absolute_ms_note": "Matching stage for 8,000 links (52,832 contracts). Measured 112-131 ms; the ceiling leaves about 4.5x for shared CI runners."
|
|
}
|