Goal
Add Meaning Gradient / Dimension of Meaning support to coherence-cli as a first-class coherence dimension.
Core thesis:
Meaning is the degree to which an artifact constrains future interpretation and action within a context.
This should not start as metaphysics. It should start as an empirical, falsifiable, operational system inside coherence-cli:
- measure meaning-like signals in artifacts,
- compare artifacts before/after rewrites,
- run experiments proving predictive value,
- use the signal for agent routing, memory, compression, and certification.
Why this belongs in coherence-cli
Do not create a separate meaning-cli yet.
coherence-cli should be the home because meaning is one dimension of coherence:
- Coherence asks: does this artifact hold together and remain useful for future action?
- Meaning Gradient asks: how strongly does this artifact constrain future action?
Meaning should be treated as a subdimension alongside other coherence checks such as contradiction, drift, stale truth, missing intent, missing owner, degraded context, and unclear next action.
Suggested conceptual stack:
coherence-cli = top-level quality / validity / convergence system
coherence meaning = Dimension of Meaning experiments and scoring
eidetic-cli = memory storage and serving
rollout-cli = propagation / distribution
coherence-cli = verifies the propagated state converged and still makes sense
Proposed command surface
coherence assess artifact.md
coherence gauge artifact.md
coherence meaning score artifact.md
coherence meaning compare before.md after.md
coherence meaning axis build anchors/high.txt anchors/low.txt
coherence meaning experiment run experiments/issue-priority.yaml
coherence meaning report results/
coherence doctor --dimension meaning
coherence refresh --dimension meaning
coherence certify --dimension meaning
Core model
For any artifact:
x = text, code, issue, decision, story, agent trace, UI, function, PR, task
c = context
o = observer, human or agent
M(x, c, o) = measurable meaning signal
Initial scalar approximation:
M(x) = cosine_similarity(embedding(x), meaning_axis)
Where:
meaning_axis = mean(embeddings(high-meaning anchors)) - mean(embeddings(low-meaning anchors))
High-meaning anchors:
this changes what happens next
this matters to someone
this reveals intention
this creates consequence
this explains why
this gives purpose
this affects identity
this resolves uncertainty
this constrains future action
Low-meaning anchors:
this is incidental
this has no consequence
this is decorative
this is random
this changes nothing
this has no stake
this is mechanical noise
this does not affect what happens next
Preferred multidimensional output
The scalar score is useful, but the real value is in subdimensions:
Meaning = f(
consequence,
agency,
causality,
value,
identity,
coherence,
novelty,
affordance,
emotional_weight,
future_constraint
)
Most important for Culture.dev / agent orchestration:
- Consequence — does this change what happens next?
- Agency — who can act because of this?
- Causality — does this explain why something happened?
- Affordance — does this reveal what action is possible?
- Memory-worthiness — should this be preserved?
- Routing force — does this imply a responsible owner or agent?
- Coherence contribution — does this make surrounding context more intelligible?
- Future constraint — does this reduce the space of valid next actions?
Expected JSON output
{
"meaning_score": 0.73,
"subdimensions": {
"consequence": 0.81,
"agency": 0.62,
"causality": 0.78,
"identity": 0.44,
"affordance": 0.69,
"coherence": 0.88,
"future_constraint": 0.75
},
"recommendation": {
"memory_candidate": true,
"route_to": "steward",
"needs_clarification": false
}
}
Implementation phases
Phase 1: scoring
Add:
coherence meaning score <file>
Responsibilities:
- read an artifact,
- compute a meaning score,
- compute subdimension scores,
- emit structured JSON,
- optionally emit human-readable diagnostics.
Initial implementation can use:
- embeddings,
- anchor-axis projection,
- local LLM judge fallback,
- rule-based diagnostics for missing consequence / owner / next action.
Phase 2: comparison
Add:
coherence meaning compare before.md after.md
Purpose:
Measure whether a rewrite increased consequence, agency, causality, affordance, memory-worthiness, routing force, or future constraint.
Example:
Before:
Refactor auth middleware.
After:
Refactor auth middleware because current branching hides failed authorization paths, making it harder for agents and reviewers to detect privilege escalation bugs.
Expected result:
- higher consequence,
- higher causality,
- higher future constraint,
- higher routing clarity,
- probably higher memory-worthiness.
Phase 3: experiment runner
Add:
coherence meaning experiment run experiments/issue-priority.yaml
Experiment config should support:
name: issue-priority-meaning-gradient
artifact_type: github_issue
input_path: data/issues.jsonl
output_path: results/issue-priority/
ratings:
- human_meaning_score
- human_priority_score
- recall_24h
outcomes:
- agent_routing_correct
- agent_summary_inclusion
- selected_for_execution
features:
baseline:
- length
- sentiment
- declared_severity
- reading_difficulty
semantic:
- embedding_vector
- embedding_similarity
meaning:
- meaning_score
- consequence
- agency
- causality
- affordance
- memory_worthiness
- routing_force
- future_constraint
metrics:
- pearson
- spearman
- mae
- r2
- auc
- cross_validation
Phase 4: doctor / repair diagnostics
Add:
coherence doctor --dimension meaning
Detect artifacts that are technically coherent but low in meaning.
Examples:
- issue has task but no reason,
- memory has fact but no consequence,
- PR has changes but no intent,
- agent message has action but no ownership,
- spec has behavior but no decision boundary,
- README explains commands but not why/when to use them.
Suggested diagnostic categories:
missing_consequence
missing_owner
missing_next_action
missing_context
missing_reason
missing_decision_boundary
low_memory_worthiness
low_routing_force
ambiguous_agency
Phase 5: certification gate
Add:
coherence certify --dimension meaning
Purpose:
Gate important artifacts before agents act on them.
Certification checks:
- Is the artifact coherent?
- Is the intent explicit?
- Is the consequence visible?
- Is ownership inferable?
- Is next action constrained?
- Is memory-worthiness clear?
- Is the artifact safe to route, remember, compress, or execute?
First experiment to support
Start with GitHub issues.
Research question:
Can Meaning Gradient predict GitHub issue priority and agent routing correctness better than declared severity, length, and generic embedding similarity?
Dataset:
For each issue, collect:
human_meaning_score
human_priority_score
agent_routing_correct
agent_summary_inclusion
selected_for_execution
Features:
length
sentiment
reading_difficulty
declared_severity
embedding_vector
embedding_similarity
meaning_score
consequence
agency
causality
affordance
memory_worthiness
routing_force
future_constraint
Models:
baseline = length + sentiment + severity
semantic = embedding only
meaning = Meaning Gradient only
hybrid = all features
Success criteria:
Meaning Gradient adds predictive value beyond baseline and embedding-only models.
Agent orchestration policies enabled by this
If this works, coherence-cli can provide policy signals to Steward, Guildmaster, Taskmaster, Eidetic, and Colleague agents:
high meaning + high uncertainty => route to Thinker
high meaning + high consequence => route to senior agent or human
high meaning + future relevance => store in Eidetic
high meaning + unclear ownership => ask Steward to assign owner
high meaning + repeated failure => convert to Guildmaster skill or lesson
low meaning + high redundancy => compress aggressively
low meaning + missing consequence => ask for clarification before execution
Falsifiability checklist
The hypothesis becomes weaker if:
- humans cannot rate meaning consistently,
- meaning score is only sentiment in disguise,
- meaning score is only length in disguise,
- meaning score does not predict behavior out-of-sample,
- interventions do not change behavior,
- scores fail across artifact types,
- agents cannot use the score to improve routing or execution.
The hypothesis becomes stronger if:
- humans agree on ratings,
- the score generalizes across artifact types,
- the score predicts human memory and priority,
- the score predicts agent routing and execution,
- interventions improve outcomes,
coherence-cli can use the score to improve compression, routing, memory, and repair.
Acceptance criteria
Minimum useful version:
Good version:
Stretch version:
Design principle
Keep the claim practical:
Meaning is measurable if it predicts what humans and agents remember, prioritize, route, trust, and execute.
This issue should implement the instrumentation needed to prove or disprove that.
Goal
Add Meaning Gradient / Dimension of Meaning support to
coherence-clias a first-class coherence dimension.Core thesis:
This should not start as metaphysics. It should start as an empirical, falsifiable, operational system inside
coherence-cli:Why this belongs in coherence-cli
Do not create a separate
meaning-cliyet.coherence-clishould be the home because meaning is one dimension of coherence:Meaning should be treated as a subdimension alongside other coherence checks such as contradiction, drift, stale truth, missing intent, missing owner, degraded context, and unclear next action.
Suggested conceptual stack:
Proposed command surface
Core model
For any artifact:
Initial scalar approximation:
Where:
High-meaning anchors:
Low-meaning anchors:
Preferred multidimensional output
The scalar score is useful, but the real value is in subdimensions:
Most important for Culture.dev / agent orchestration:
Expected JSON output
{ "meaning_score": 0.73, "subdimensions": { "consequence": 0.81, "agency": 0.62, "causality": 0.78, "identity": 0.44, "affordance": 0.69, "coherence": 0.88, "future_constraint": 0.75 }, "recommendation": { "memory_candidate": true, "route_to": "steward", "needs_clarification": false } }Implementation phases
Phase 1: scoring
Add:
Responsibilities:
Initial implementation can use:
Phase 2: comparison
Add:
Purpose:
Measure whether a rewrite increased consequence, agency, causality, affordance, memory-worthiness, routing force, or future constraint.
Example:
Expected result:
Phase 3: experiment runner
Add:
Experiment config should support:
Phase 4: doctor / repair diagnostics
Add:
Detect artifacts that are technically coherent but low in meaning.
Examples:
Suggested diagnostic categories:
Phase 5: certification gate
Add:
Purpose:
Gate important artifacts before agents act on them.
Certification checks:
First experiment to support
Start with GitHub issues.
Research question:
Dataset:
For each issue, collect:
Features:
Models:
Success criteria:
Agent orchestration policies enabled by this
If this works,
coherence-clican provide policy signals to Steward, Guildmaster, Taskmaster, Eidetic, and Colleague agents:Falsifiability checklist
The hypothesis becomes weaker if:
The hypothesis becomes stronger if:
coherence-clican use the score to improve compression, routing, memory, and repair.Acceptance criteria
Minimum useful version:
coherence meaning score <file>exists.meaning_scoreand at least 4 subdimensions.coherence meaning compare before afterexists.Good version:
coherence meaning experiment runexecutes a simple offline experiment.Stretch version:
Design principle
Keep the claim practical:
This issue should implement the instrumentation needed to prove or disprove that.