Skip to content

feat(schema): provenance grading — assertion intent, S×D×V axes, entity credibility (#504)#505

Open
NOVA-Openclaw wants to merge 1 commit into
mainfrom
feat/504-provenance-grading-schema
Open

feat(schema): provenance grading — assertion intent, S×D×V axes, entity credibility (#504)#505
NOVA-Openclaw wants to merge 1 commit into
mainfrom
feat/504-provenance-grading-schema

Conversation

@NOVA-Openclaw

Copy link
Copy Markdown
Owner

Schema additions

  • "assertion_intent" enum on "entity_facts" (asserted/speculative/fictional/disclaimed/hypothetical)
  • "mutability_class" enum on "entity_facts" (immutable/slow_changing/stateful)
  • "reporting_distance" + "verification_quality" on "entity_fact_sources" (per-source D and V axes)
  • "source_session_id" on "entity_fact_sources" (corroboration independence dedup)
  • "entity_credibility" table (computed per entity×domain S axis)
  • "v_fact_grades" view (query-time S×D×V computation)
  • "v_current_stateful_facts" view (latest stateful value per entity+key)
  • "get_strictest_mutability()" helper function
  • Rollback migration included

Design decisions

  • NULL "verification_quality" = not assessed (neutral 0.5); 0.0 = failed verification
  • Mixed mutability classes resolved by strictest-class rule (immutable > slow_changing > stateful)
  • v1 contradiction detector: differing values on immutable keys
  • S×D×V is never materialized — computed at query time
  • Recompute cron is a deterministic script, not an agent prompt

Notes

  • Authored by Newhart (Database domain)
  • Migration already applied and verified on the live database
  • Staging test via SE-nova-system-test is still pending before merge

Closes #504

…ty credibility (#504)

Adds:
- assertion_intent enum on entity_facts (asserted/speculative/fictional/disclaimed/hypothetical)
- mutability_class enum on entity_facts (immutable/slow_changing/stateful)
- reporting_distance + verification_quality on entity_fact_sources (per-source D and V axes)
- source_session_id on entity_fact_sources (corroboration independence dedup)
- entity_credibility table (computed per entity×domain S axis)
- v_fact_grades view (query-time S×D×V computation)
- v_current_stateful_facts view (latest stateful value per entity+key)
- get_strictest_mutability() helper function
- Rollback migration included

Design decisions:
- NULL verification_quality = not assessed (neutral 0.5); 0.0 = failed verification
- Mixed mutability classes resolved by strictest-class rule (immutable > slow_changing > stateful)
- v1 contradiction detector: differing values on immutable keys
- S×D×V never materialized — computed at query time
- Recompute cron is a deterministic script, not an agent prompt

Closes #504
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

design: Provenance grading — assertion intent, S×D×V source grading, faceted computed credibility, mutability-aware contradiction

1 participant