CASE STUDY / 02 Active

moral-ontology.

Local-first personal moral ontology and alignment system.

Elicits and refines one person's moral framework while keeping the evidence, uncertainty and disagreements that shaped it. Changes to the accepted model apply only after explicit confirmation.

  • Python
  • Agent skill
CASE STUDY

The problem

A person's moral framework is spread across conversations, intuitions, exceptions, contradictions and changing judgments.

Chat history does not preserve that framework in a form you can inspect.

A present reaction differs from a principle someone endorses after reflection.

The system must keep those two apart and show the evidence behind each belief.

It must also explain where new material agrees, conflicts or leaves a gap.

CASE STUDY

Domain model

The model separates the view a person holds now from the view they aspire to follow.

A Current Belief describes the present judgment.

An Endorsed Belief is one the person deliberately accepts as a principle.

Evidence records the answer, explanation, observed choice or source passage behind an inference.

An Evidence Link ties that evidence to a belief and records relevance, direction, source span and interpretation.

A Moral Proposition carries conditions and exceptions.

Applicability Clauses state when it applies, using dimensions such as consent, intent, consequence, reversibility and scale.

Commitment, Representation Confidence and Coverage measure different things.

Priority appears as a conditional override, not a single ranking of values.

  • Source Record: the full local context behind a piece of evidence.
  • Belief Proposal: a suggested addition, revision or removal with no authority yet.
  • Contradiction: an unresolved conflict between beliefs that apply in the same conditions.
  • Belief Lineage: the stable identity shared by every revision of one claim.
CASE STUDY

Guarded changes

Every change follows one path.

Evidence supports a Belief Proposal, proposals gather into an atomic Change Set, and only explicit acceptance makes a belief authoritative.

A rejection records the decision but infers no opposite belief.

An edit replaces the proposal, and a revision adds a version to the same lineage.

The helper does not reason about morality. It validates structure and applies a confirmed change.

It rejects unknown fields, duplicate identifiers, relations outside their belief and changes with no effect.

It stores each accepted change with its before and after state.

propose returns a normalized change and an identifier derived from its contents.

apply requires that exact identifier, so a modified change needs a new proposal and confirmation.

Writes are atomic: the helper writes a temporary file and replaces the state file.

  • show prints the accepted model.
  • propose normalizes a change and returns its identifier.
  • apply --confirm <proposal_id> applies exactly that change.
CASE STUDY

Local-first

All product data stays on one machine.

The accepted model is a JSON file in the per-user application data directory, and an environment variable can point elsewhere.

The helper uses only the Python standard library and opens no network connection.

Semantic inference stays caller-owned.

The helper validates and stores decisions; the agent does the reasoning.

An earlier design described a larger local application with a relational core and a local workbench.

The current skill keeps the governance rules and a small store.

CASE STUDY

How an agent uses it

The skill starts with show and treats the result as accepted state.

Anything said in conversation stays non-authoritative until an accepted change is applied.

For inspection, the agent explains the relevant rules and their qualifications.

It distinguishes a missing rule from disagreement with an existing one.

For alignment, it extracts the normative claims in a piece of content and finds the rules that bear on each claim.

It reports agreement, conflict, uncertainty and uncovered areas.

For grilling, it picks the narrowest unresolved belief, condition, exception, gap or tension.

It asks one focused question at a time and uses concrete scenarios to expose a boundary.

After a change, it drafts one candidate and shows the owner the proposed effect.

It applies only after the owner sends the exact identifier, then runs show to verify the result.

CASE STUDY

Synthetic example

Synthetic example: this walk-through is invented for this page and is not the owner's belief.

A made-up person holds a starting rule: return a found wallet when the owner can be identified.

The agent grills the boundary with concrete variants.

What changes when the wallet holds no identification, or when returning it costs the finder time and money?

Each answer remains a response, not an accepted change.

The agent drafts one revision that adds a condition for an identifiable owner and a limit on cost to the finder.

propose returns a normalized change and an identifier.

The person sends back that exact identifier.

apply --confirm records the revision and appends a history entry.

A final show confirms that the other beliefs are untouched.

Source: private repository at 0cb0a80