|
1 | 1 | /** |
2 | | - * measure-agent-absolutes — the absolutes-category base measurer (V48 Gate 3). |
3 | | - * |
4 | | - * Bases the generic measure-agent (factoryMeasureAgent) with the ABSOLUTES |
5 | | - * framing. Absolutes are INTRINSIC measures: properties of the artifact itself — |
6 | | - * its sizes, its correctness, the amount of knowledge it encodes — that depend |
7 | | - * ONLY on the artifact, never on any reader, demand, market, or buyer. (Reader- |
8 | | - * relative measures are the needinesses category — measure-agent-needinesses, |
9 | | - * Gate 4.) |
10 | | - * |
11 | | - * The asset-pack concrete measurer agent-measure-absolutes bases this factory |
12 | | - * with its absolutes catalog (sizes / correctness / semantic-volume), lens-aware. |
| 2 | + * @deprecated Import from `@bitcode/generic-measurements-absolutes`. |
| 3 | + * Compatibility re-export of AbsolutesMeasureAgent. |
13 | 4 | */ |
14 | 5 |
|
15 | | -import { |
16 | | - factoryMeasureAgent, |
17 | | - type MeasureAgent, |
18 | | - type MeasurementSpec, |
19 | | -} from './measure-agent'; |
20 | | - |
21 | | -const ABSOLUTES_FRAMING = |
22 | | - 'You measure ABSOLUTES — INTRINSIC properties of digital material. Data is digital ' + |
23 | | - 'material; material has properties. QUANTITY properties include size, symbolic ' + |
24 | | - 'richness, modularity (often tool-measured counts). QUALITY properties include ' + |
25 | | - 'objectives fidelity, correctness, computational-usage requirements (judgment ' + |
26 | | - 'readings you ground in the tool-measured quantities + the source-safe descriptor). ' + |
27 | | - 'Absolutes depend ONLY on the artifact, never on any reader, demand, market, or buyer. ' + |
28 | | - 'Measure what IS present, not what anyone wants or would pay for. Prefer tool-measured ' + |
29 | | - 'magnitudes for quantity; do not invent sizes that contradict static-analysis counts.'; |
30 | | - |
31 | | -export interface MeasureAgentAbsolutesConfig { |
32 | | - name: string; |
33 | | - description?: string; |
34 | | - /** What is being measured, e.g. "a synthesized source-safe AssetPack patch". */ |
35 | | - subject: string; |
36 | | - /** The absolutes catalog to read (sizes / correctness / volume / …). */ |
37 | | - measurements: MeasurementSpec[]; |
38 | | - plan?: { chunkThreshold?: number }; |
39 | | - try?: { chunkThreshold?: number }; |
40 | | - refine?: { maxAttempts?: number }; |
41 | | - retry?: { maxAttempts?: number }; |
42 | | -} |
43 | | - |
44 | | -/** |
45 | | - * factoryMeasureAgentAbsolutes — bases factoryMeasureAgent with the absolutes |
46 | | - * category + framing. The Gate-3 absolutes measurer; the sibling |
47 | | - * factoryMeasureAgentNeedinesses lands in Gate 4. |
48 | | - */ |
49 | | -export function factoryMeasureAgentAbsolutes( |
50 | | - config: MeasureAgentAbsolutesConfig, |
51 | | -): MeasureAgent { |
52 | | - return factoryMeasureAgent({ |
53 | | - name: config.name, |
54 | | - description: config.description, |
55 | | - subject: config.subject, |
56 | | - category: 'absolute', |
57 | | - categoryFraming: ABSOLUTES_FRAMING, |
58 | | - measurements: config.measurements, |
59 | | - plan: config.plan, |
60 | | - try: config.try, |
61 | | - refine: config.refine, |
62 | | - retry: config.retry, |
63 | | - }); |
64 | | -} |
| 6 | +export { |
| 7 | + factoryAbsolutesMeasureAgent, |
| 8 | + factoryMeasureAgentAbsolutes, |
| 9 | + type AbsolutesMeasureAgent, |
| 10 | + type AbsolutesMeasureAgentConfig, |
| 11 | + type MeasureAgentAbsolutesConfig, |
| 12 | +} from '@bitcode/generic-measurements-absolutes'; |
0 commit comments