Skip to content

inference: rename read-spec field site to point - #244

Merged
hijohnnylin merged 1 commit into
mainfrom
wire-point
Sep 18, 2026
Merged

hijohnnylin merged 1 commit into
mainfrom
wire-point

Conversation

@hijohnnylin

Copy link
Copy Markdown
Owner
  • Rename NPReadSpec.site to point and NPCaptureSite to NPCapturePoint in the inference server, with the internal CaptureSite/CaptureKey.site/ReadSpec.site following.
  • Regenerate apps/inference/openapi.json and apps/webapp/lib/api/inference.d.ts.
  • Webapp: personaAxisToVectorRead sends read.point; test and schema comment updated.
  • Add tests/unit/test_capture_point_contract.py: every NPCapturePoint member is a layer-scoped d_model interp-engine point, spelled the engine's way.

Stored Vector.projectionParams.read.site rows get read.point via a direct SQL update; the old key can stay until removed.

`NPReadSpec.site` becomes `point` and `NPCaptureSite` becomes `NPCapturePoint`. The value has always
been an interp-engine point name that goes straight into an `Address`, and the engine calls that a
point; `site` was a second word for the same thing. Renamed now while the field is two weeks old
and the SDK publish is off, so nothing outside the repo reads it.

A contract test pins every member to the engine's layer-scoped d_model points, spelled the engine's
way, so the webapp -- which gets the enum only through the generated `inference.d.ts` -- cannot
drift from the engine without failing here.

The stored `projectionParams.read.site` key on existing `Vector` rows needs a data migration to
`read.point`; the seven rows in production all carry it.

Co-authored-by: Cursor <cursoragent@cursor.com>
@hijohnnylin
hijohnnylin merged commit edb0abd into main Sep 18, 2026
18 of 19 checks passed
@hijohnnylin
hijohnnylin deleted the wire-point branch September 18, 2026 04:22
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