Repository navigation
fix(define-semantics): Phase 3 closing audit fixes (#2954, design #2953) - #4956
Conversation
External-key writes converted to define semantics (Object.defineProperty via a per-file defineValue helper, Map accumulators converted with Object.fromEntries): bin/antigravity-direct.mjs schema walkers (merged/sibling keys, properties names, schema-map names — keys from external tool schemas); bin/provider-catalog-sync.mjs report.providers + applyReport.providers (provider ids from parsed config), applyAdditions accumulator (??= -> Map), commonSuffix counts (model-name tokens); bin/sync-models.mjs prov.models/codex/gemini/openai/cloudflare model tables + grouped (model ids from external catalogs/config); pkgs/id/web/src/world.ts records merges (peer/host-supplied record keys, replacing Object.assign). Contract statement (rule + probe matrix) added to pm-stack/aggregator/README.md and the bin/record.mjs header. Probe matrix landed as a test in pkgs/id/web/src/world-records.test.ts (peer frame with __proto__ object/string values, constructor, toString, ordinary key: own property present, JSON round-trip preserves, Object.prototype untouched). Suites: world-records 6/6, provider-catalog-sync 35/35, sync-models 23/23, record 18/18, antigravity-direct 16/16.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 31 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex disposition (queue task 7683): the Codex code review on head a70ca84 FAILED TO RUN — usage limits reached (connector comments 2026-11-03T14:30Z), so there are no Codex findings to disposition. Merge proceeds on the standing criteria: targeted suites verified on the laptop (world-records 6/6 incl. the #2953 probe-matrix test, provider-catalog-sync 35/35, sync-models 23/23, record 18/18, antigravity-direct 16/16; node --check clean), diff matches the #2954 audit scope, no held/Drew-owned labels. |
Phase 3 of design #2953 — the closing inventory audit fixes (queue task 7683, lane code-j). Refs #2954; the audit evidence + disposition table is posted on #2954 and #2953, and #2953 is closed there with its one remaining follow-up named.
Fixed here (disposition b — external keys, define semantics)
bin/antigravity-direct.mjs— schema walkers: sibling-merge keys, schema-map names, property names (keys from external tool schemas) now write viadefineValue(Object.defineProperty).bin/provider-catalog-sync.mjs—report.providers/applyReport.providerswrites (provider ids from parsed config), theapplyAdditionsaccumulator (??=→ Map, converted with Object.fromEntries), andcommonSuffixcounts (model-name tokens).bin/sync-models.mjs— the five provider model tables (prov.models, codex/gemini/openai/cloudflare) and the Antigravitygroupedtable (model ids from external catalogs/config).pkgs/id/web/src/world.ts— both records merges (peer frame + host response) replaceObject.assignwith define-semantics writes.Contract statement
Rule + probe matrix added to
pm-stack/aggregator/README.md(new "Store contract: define semantics" section) and thebin/record.mjsheader.Tests
pkgs/id/web/src/world-records.test.ts— a peer records frame carrying__proto__(object value),__proto__(string value, second fetch),constructor,toString, ordinary key: own property present with value, JSON round-trip preserves,Object.prototypeuntouched. 6/6 pass.node --checkclean on all edited .mjs files.Not fixed here (named follow-ups / dispositions)
deepMergeProviders(bin/provider-catalog-sync.mjs) is the recursive merge helper the design doc's open question anticipated — reported as a named follow-up issue linked from Phase 3 of #2953 — closing inventory audit for the define-semantics (write-side prototype) contract + contract statement #2954 rather than pre-deciding its shape here.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.