@cultured_computer/sight 0.3.3 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +37 -46
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,40 +1,26 @@
1
1
  # Sight
2
2
 
3
- Know what your production AI is being, without writing evals. Add the SDK to
4
- your serving process and Sight records every conversation as it happens: what
5
- the situation was, what your agent said, how the user took it, and how it
6
- ended. On top of that record it computes behavioural measurements: the
7
- situations your deployment handles, voice consistency across turns, uptake,
8
- breaks, and whether users come back. Capture is out of band; responses are
9
- never modified or delayed.
10
-
11
- What that buys you, concretely:
12
-
13
- - **See every conversation as a story, worst moment first.** Sessions triage
14
- by badness (flagged, broke at turn N, abandoned) and open on the
15
- transcript, so "what went wrong last night" is one click, not a query.
16
- - **Know what happened after the reply.** Outcomes (resolved, escalated,
17
- converted, refunded) attach to the conversation that caused them, even when
18
- they arrive days later from your CRM webhook, and return behaviour is
19
- computed per user. Most observability ends at the trace; the record here
20
- ends at what it led to.
21
- - **Know how much to trust each number.** Interpreted measurements start as
22
- "preliminary" and earn a reliability grade only after they agree with your
23
- own judgement on your own traffic. No number is ever dressed up: a card
24
- shows its evidence before it shows a headline.
25
- - **Ask your own questions.** Author custom rubrics in the dashboard (a
26
- question plus answer chips); they join the same blind labeling queue and
27
- earn trust the same way: against a second rater, never against the
28
- instrument.
29
-
30
- If your job is grading tasks against expected outputs in CI, an eval platform
31
- (Braintrust and its class) is built for that loop and does it well. Sight is
32
- built for the other loop: zero eval authoring, capture as the product, and
33
- answers to the questions evals cannot reach — what your deployment is being
34
- in production, and what users do next.
35
-
36
- The SDK is in beta. Interfaces and rollout order may change without notice;
37
- the record format itself is versioned and stable.
3
+ Sight records what your production assistant is being. Not traces of what
4
+ the model produced: the interaction itself, captured as a coupled record.
5
+ Each turn holds what the situation was, what your agent did, how the user
6
+ responded, and what it led to. Both actors, one record. Behavior lives in
7
+ the coupling, not in the transcript: a reply only means something next to
8
+ what happened after it.
9
+
10
+ The record also carries an environment channel: tool outcomes, world
11
+ signals, stimulus events with their timing. Behavior reads against what
12
+ the world actually did, not just against text.
13
+
14
+ The SDK captures out of band; responses are never modified or delayed.
15
+ From the record, the dashboard shows the worst conversations first (opened
16
+ on the transcript), joins outcomes back to the conversation that caused
17
+ them even when they arrive days later, and computes behavioural
18
+ measurements on top: the situations your deployment handles, voice
19
+ consistency, uptake, breaks, return behaviour. Every interpreted number
20
+ stays preliminary until it agrees with your own labels on your own traffic.
21
+
22
+ The SDK is in beta. The record format is versioned and stable; the surfaces
23
+ around it are still moving.
38
24
 
39
25
  ## Install
40
26
 
@@ -62,6 +48,11 @@ Sight.startSession({
62
48
 
63
49
  Notes:
64
50
 
51
+ - `apiKey` is a project ingest key. Create a project in the
52
+ [dashboard](https://sight.cultured.computer/dashboard) and copy its key
53
+ (shown once) into `SIGHT_API_KEY`. That is the only required setup — the
54
+ ingest endpoint defaults to production; override it with `endpoint` only for
55
+ self-hosting or staging.
65
56
  - `init` runs once at startup. `deployment` identifies the configuration this
66
57
  traffic belongs to; all measurement is per deployment.
67
58
  - `externalId` keys the session (one conversation). `externalUserId` is a
@@ -104,8 +95,8 @@ await Sight.emitOutcomeEvent({
104
95
 
105
96
  ## Capture environment events
106
97
 
107
- Deployments that run alongside a non-dialogue channel — a stimulus feed, a
108
- game state stream, an editor buffer — can record that channel's events
98
+ Deployments that run alongside a non-dialogue channel (a stimulus feed, a
99
+ game state stream, an editor buffer) can record that channel's events
109
100
  against the conversation:
110
101
 
111
102
  ```ts
@@ -118,14 +109,14 @@ await Sight.captureEnvironmentEvents(events, {
118
109
 
119
110
  The envelope is generalized: `source_type` and `event` are free strings whose
120
111
  meaning is defined per deployment. The instrument attaches events to turns by
121
- time — the next turn's state corner, plus the causing turn's outcome corner
122
- when the event carries a `causeProvenance` turn reference — and never
112
+ time (the next turn's state corner, plus the causing turn's outcome corner
113
+ when the event carries a `causeProvenance` turn reference) and never
123
114
  interprets them.
124
115
 
125
116
  ## Capture spans
126
117
 
127
- Deployments that keep their own sub-turn structure — tool calls, retrieval
128
- steps, per-call model usage inside a single turn — can ship it as spans:
118
+ Deployments that keep their own sub-turn structure (tool calls, retrieval
119
+ steps, per-call model usage inside a single turn) can ship it as spans:
129
120
 
130
121
  ```ts
131
122
  await Sight.captureSpans(
@@ -148,7 +139,7 @@ await Sight.captureSpans(
148
139
  A span lands on the turn you name, or on the session's latest turn at/under
149
140
  its `startedAt` when `turnIndex` is omitted. Parent structure rides the
150
141
  batch: give a span a caller-local `spanId` and reference it from a sibling's
151
- `parentSpanId`. `attributes` are metadata only — tool names and argument
142
+ `parentSpanId`. `attributes` are metadata only: tool names and argument
152
143
  shapes, never free-text conversation content. `Sight.captureSpan(span)` is
153
144
  the single-span form.
154
145
 
@@ -161,13 +152,13 @@ live experiment.
161
152
 
162
153
  ## Docs
163
154
 
164
- - [Get started](https://field.cultured.computer/sight/get-started):
155
+ - [Get started](https://sight.cultured.computer/docs/get-started):
165
156
  install, initialise, verify capture.
166
- - [Worked examples](https://field.cultured.computer/sight/examples):
157
+ - [Worked examples](https://sight.cultured.computer/docs/examples):
167
158
  runnable snippets, each with what it lands in the record.
168
- - [SDK reference](https://field.cultured.computer/sight/sdk-reference):
159
+ - [SDK reference](https://sight.cultured.computer/docs/sdk-reference):
169
160
  the full method surface.
170
- - [Status](https://field.cultured.computer/sight/where-it-stands): what
161
+ - [Status](https://sight.cultured.computer/docs/where-it-stands): what
171
162
  is available now versus in beta.
172
163
 
173
164
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cultured_computer/sight",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Know what your production AI is being, without writing evals. Records every turn and session in a standard trajectory format and computes behavioural measurements on top; capture is out of band, responses are never modified or delayed.",
5
5
  "license": "MIT",
6
6
  "type": "module",