diff --git a/core/docs/plans/A6-ethint.md b/core/docs/plans/A6-ethint.md index eff0150..b847575 100644 --- a/core/docs/plans/A6-ethint.md +++ b/core/docs/plans/A6-ethint.md @@ -1,55 +1,40 @@ -# A6 — Eth-Int (Ethical Integrity) driver +# A6 — EthInt: Ethical Integrity ## 1. Component -Driver 3: character as an **economic constraint field** — a cost-map, not a moral oracle. Produces -the E-cost of responding to reality: alignment discounts, antithetical penalties, conviction hardening. +EthInt belongs inside **E**. It reads the memory-derived **Conviction array (A7)** and both (a) signals the homunculus directly and (b) modifies literal **E tool costs**. It is character/history exerting pressure, not a moral oracle, a court, or an action permitter. ## 2. Status / certainty -Structure WIP (`driver_ethical_integrity.R`, 87 L); numbers DISOWNED (body §5). Per arch §6 it is -**not a stored stratum — a memory-derivative** (entries with memory-weighted shifting numerics). -Still missing Committed Convictions. +**Design clarified; code stale.** `driver_ethical_integrity.R` uses manually seeded principles and exponential constants from the disowned four-driver approval path. The numbers and data provenance are not validated by current design. ## 3. Language & location -R · `src/endocrine/driver_ethical_integrity.R` (+ `test_ethical_integrity.R`). Its state = the -**Conviction array** (A7). +R `core/src/endocrine/driver_ethical_integrity.R`; conviction storage/derivation A7. Interface into Ada and E A2 remains to implement. ## 4. Does / does-not -- **Does:** evaluate a trajectory's E-cost (alignment discount × antithesis penalty × compromise); - harden convictions upheld under load; treat middle-ground as its own trajectory; **surface the top X - convictions** (the **~7 most committed**, **X adaptive** — Anja) into the agent's slot — *not* the whole - array (**the conviction list can be massive**, so it must be ranked & truncated; A1 step 3 / input-slot). -- **Does-not:** Exist independent of historical choices. +- **Does:** expose ranked convictions with strengths and situational arguments; price alignment, antithesis, and compromise for the specific tool/trajectory; update lived conviction values from chosen actions and retained memories; supply evidence of **repeated isomorphic contradictions** for exceptional Graph drift qualification. +- **Does not:** accept or reject a homunculus action, override invariants, judge cognition, treat a single opposition as existential collapse, or write its changing values into GnuCOBOL self-binding stores. -## 5. Interface contract -- `evaluate_trajectory_costs(convictions, action_tags, alignment_tags, base_energy, compromise_factor) - -> total_cost` (penalty exponential in conviction; discount exponential; compromise = partial penalty). -- `enforce_conviction(convictions, chosen_alignment_tags, load_factor) -> convictions'`(hardening ∝ load, diminishing toward 1.0). -- `top_convictions(convictions, x) -> [..]` — the **top X by strength**, the only ones surfaced to the slot (Anja). X is C1 (see §10). -- Reads the **conviction array** (A7). Emits `eth_penalty` which impacts tool limitations by Energy (A2). +## 5. Interface contract (target) +- `top_convictions(array, x) -> ordered convictions` (adaptive X, approximately seven currently illustrative). +- `signal_ethint(context) -> attributed conviction posture` independent of pricing. +- `price_ethint(tool, trajectory, convictions, context) -> cost_modifier`; stronger antithesis may impose greater cost and alignment may discount cost; compromise is a real separate trajectory. **No inherited exponential k values.** +- `record_choice_and_retention(outcome, memory_refs) -> next conviction values` distinct from tool availability decision. +- `isomorphic_contradiction_evidence(sequence) -> candidate` captures recurring mismatch between convictions and lived history; whether eligible for ETR remains separately assessed. ## 6. Dependencies & stubs -A7 conviction array — *stub:* a flat list `{id, conviction, antithesis}` (today's shape). Energy (A2) -consumes its penalty — *stub:* return the scalar. Testable today against the flat array. +A7 conviction array, E A2 for pricing, memory E2/E3 for derivation, A1 for signals, extraordinary Graph event classification A8/G1. -## 7. Invariants / laws (numbers C1 until tested) -- **L1 (C4):** antithetical action → cost rises **exponentially** in conviction; multiple violations **add** - (can exceed E capacity → physically impossible). -- **L2 (C4):** alignment → exponential **discount** ("flow state"). -- **L3 (C4):** **middle-ground** is a separate trajectory with **partial** penalties to both poles, - weighed against the polar options. -- **L4 (C4):** conviction **hardens under load**; G1 stress raises the **shift-rate** (A7). -- **L5 (C1):** all k's (penalty/discount/compromise) — refit invariants-first. +## 7. Invariants / laws +- **L1:** dual path to cognition and E costs. Neither path is an independent approval gate. +- **L2:** convictions arise through history; strength can change, including via collapse remaster, while underlying memory records remain. +- **L3:** opposing commitments may be lived simultaneously; an intermediate response is its own option, not an automatically superior compromise. +- **L4:** repeated isomorphic contradiction may affect ETR. A solitary output mismatch or SAE alert does not. +- **L5:** convictions are mutable character; GnuCOBOL invariant commitments have a different authority and lifecycle. ## 8. Build steps -1. Lock L1–L4 as tests (extend `test_ethical_integrity.R`). 2. Refit the k's — drop old k_penalty=5 / -k_discount=5. 3. Migrate state to the A7 conviction array (isomorphy tags + shift-rates). 4. Wire G1. +Replace direct permanent principle lists with A7-derived entries, separate signal/pricing interfaces, remove serial approval, define recurrence evidence before ETR coupling, test updates from action plus memory. ## 9. Tests -`Rscript src/endocrine/test_ethical_integrity.R`. +Dual outputs, no approve flag, ranked X, action-dependent pricing, separate repeated contradiction evidence, invariant-store isolation. ## 10. Open items -- The k constants (C1). The middle-ground compromise scaling (C1). -- **X — how many convictions surface** to the slot (default **~7 most committed**, **adaptive** — the - adaptation signal is C1; ranked by commitment strength). -- Exact "memory-derivative" derivation (how convictions are computed from memory) — ties to A7/E2. -- The relation between conviction contradiction and sensates. +Conviction learning, effect on cost, price combination with PS+, adaptive X, recurrent-isomorphy evaluation, thresholds, and how chosen memories affect calibration.