Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/defaults/hallucination-hal-local/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Local-first implementation of the `IHallucination` slot. Bundles the determinist

## Why private

The HAL signal-extraction formula and weighting are part of HDP's patent portfolio (P-003 — Pythagorean Comma Dissonance Detection). Per CLAUDE.md hard-stop:
The HAL signal-extraction formula and weighting are proprietary internals (P-003 — Pythagorean Comma Dissonance Detection). Per CLAUDE.md hard-stop:

> RepID scoring formula T=floor(2000×log₁₀…) — never appear in public docs
> ANFIS parameters — never in public docs

This package contains the canonical 5-signal extraction formula AND the canonical combiner (Pythagorean Comma at 531441/524288). It is **safe for trinity-internal consumers** (the agents and services already inside the patent-aware codebase). It is **not** safe for public npm publication.
This package contains the canonical 5-signal extraction formula AND the canonical combiner (Pythagorean Comma at 531441/524288). It is **safe for trinity-internal consumers** (the agents and services already inside the proprietary codebase). It is **not** safe for public npm publication.

The PUBLIC slot remains `@hyperdag/hallucination-hal`, which ships as an HTTP client + stub fallback. External consumers of `createHDP({})` continue to see that public package.

Expand Down
2 changes: 1 addition & 1 deletion packages/defaults/hallucination-hal-local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@hyperdag/hallucination-hal-local",
"version": "0.1.0-internal",
"private": true,
"description": "Local HAL provider — deterministic 5-signal extraction + canonical combiner. Internal-only. Public npm publish requires Sean's explicit approval per CLAUDE.md hard-stop on HAL signal-extraction formula + weighting (HAEE / ANFIS / P-003 patent portfolio).",
"description": "Local HAL provider — deterministic 5-signal extraction + canonical combiner. Internal-only. Public npm publish requires Sean's explicit approval per CLAUDE.md hard-stop on HAL signal-extraction formula + weighting (HAEE / ANFIS / P-003 proprietary internals).",
"license": "SEE LICENSE IN LICENSE",
"type": "module",
"main": "dist/index.js",
Expand Down
10 changes: 5 additions & 5 deletions packages/defaults/hallucination-hal-local/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
*
* SACRED CONSTANTS — DO NOT MUTATE.
*
* Patent-load-bearing — this file is the reason the entire package is marked
* `private: true` in package.json. The HAL_PYTHAGOREAN_COMMA ratio, the
* formula weights, and the canonical signal field names are all part of
* HDP's patent portfolio (P-003). Public npm publish requires Sean's
* explicit approval per CLAUDE.md hard-stop.
* Proprietary and load-bearing — this file is the reason the entire package is
* marked `private: true` in package.json. The HAL_PYTHAGOREAN_COMMA ratio, the
* formula weights, and the canonical signal field names are all proprietary
* internals (P-003). Public npm publish requires Sean's explicit approval per
* CLAUDE.md hard-stop.
*
* To preserve byte-equivalence with the production HAL, every constant here
* is a verbatim copy of the repid-engine source. Future drift between
Expand Down
4 changes: 2 additions & 2 deletions packages/defaults/hallucination-hal-local/src/score.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* HAL score computation — the canonical Path A formula. Pure function,
* dependency-free.
*
* Ported verbatim from repid-engine/src/hal/lib/score.ts. Patent-load-bearing
* per HAL_LIBRARY_API.md.
* Ported verbatim from repid-engine/src/hal/lib/score.ts. Proprietary and
* load-bearing per HAL_LIBRARY_API.md.
*
* hal_score = (
* 0.4 * harm_probability
Expand Down
4 changes: 2 additions & 2 deletions packages/defaults/hallucination-hal-local/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Local HAL native types — the canonical 5-signal shape ported from
* repid-engine/src/hal/lib/types.ts.
*
* Field names patent-load-bearing per HAL_LIBRARY_API.md. The repid-engine
* names are preserved here for byte-equivalence with production HAL.
* Field names are load-bearing per HAL_LIBRARY_API.md — never rename. The
* repid-engine names are preserved here for byte-equivalence with production HAL.
*
* Note: this is DIFFERENT from the 6-DOF `HALSignals` shape in
* `@hyperdag/interfaces` (faithfulness, contradiction, calibration, …).
Expand Down
Loading