Skip to content

fix(define-semantics): Phase 3 closing audit fixes (#2954, design #2953) - #4956

Merged
dezren39 merged 1 commit into
mainfrom
queue/7683-2954-define-semantics-audit
Nov 3, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/7683-2954-define-semantics-audit

Conversation

@dezren39

@dezren39 dezren39 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

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 via defineValue (Object.defineProperty).
  • bin/provider-catalog-sync.mjs — report.providers / applyReport.providers writes (provider ids from parsed config), the applyAdditions accumulator (??= → Map, converted with Object.fromEntries), and commonSuffix counts (model-name tokens).
  • bin/sync-models.mjs — the five provider model tables (prov.models, codex/gemini/openai/cloudflare) and the Antigravity grouped table (model ids from external catalogs/config).
  • pkgs/id/web/src/world.ts — both records merges (peer frame + host response) replace Object.assign with define-semantics writes.

Contract statement

Rule + probe matrix added to pm-stack/aggregator/README.md (new "Store contract: define semantics" section) and the bin/record.mjs header.

Tests

  • Probe matrix as a real test: 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.prototype untouched. 6/6 pass.
  • Suites on the laptop: provider-catalog-sync 35/35, sync-models 23/23, record 18/18, antigravity-direct 16/16, node --check clean on all edited .mjs files.

Not fixed here (named follow-ups / dispositions)


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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.
@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 14:30
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-03T14:30:24.883625Z
We couldn’t complete this review. Comment @codex review to try again.
a70ca84 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b169607b-ceda-4825-83e3-b9f99e907731
Commits

Reviewing files that changed from the base of the PR and between 659a72e and a70ca84.

Files selected for processing: 7
  • bin/antigravity-direct.mjs
  • bin/provider-catalog-sync.mjs
  • bin/record.mjs
  • bin/sync-models.mjs
  • pkgs/id/web/src/world-records.test.ts
  • pkgs/id/web/src/world.ts
  • pm-stack/aggregator/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39

dezren39 commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

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.

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