CoderOS Cognitive Persistence
Validate, reconcile, and promote records in the Knowledge/Episodic/Wisdom/Runtime-Inference persistence layer.
- License 许可
- MIT
- 最近更新
- 2026-10-07
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- CoderOS Cognitive Persistence
- description
- Validate, reconcile, and promote records in the Knowledge/Episodic/Wisdom/Runtime-Inference persistence layer.
03 SKILL.md 正文
CoderOS Cognitive Persistence
Provides rules for working with repo_dev_runtime.cognitive_persistence,
repo_dev_runtime.knowledge, repo_dev_runtime.memory.episodic_trajectory,
repo_dev_runtime.source_truth, and repo_dev_runtime.consolidation.claude:
the cognitive_persistence_cli's validate, reconcile, promote,
report, integration-audit, and render subcommands, plus the
Canonical Consolidation Authority Graph's validate-graph,
authority-audit, contradiction-report, and reconcile subcommands
(python -m repo_dev_runtime.consolidation.claude.cli).
Rules
- Never construct a
KnowledgeRecordwithprovenance_status="unverified"unless bothevidenceandattested_byare populated -- knowledge cannot rest on an unverified model statement alone. - Never hand-set
WisdomCandidateRecord.wisdom_promotion_status="promoted"without re-running it throughwisdom.evaluate_wisdom_promotionfirst -- promotion requires >= 3 independent(lane_id, work_order_id)pairs. - Never write code that converts a
RuntimeInferenceRecorddirectly into aKnowledgeRecordorWisdomCandidateRecord-- the only path isadapters.propose_knowledge_from_runtime_inference, which requires independent evidence and rejects a verbatim-matching statement. - Never resolve a
ContradictionRecordtoconfirmed/superseded/rejectedwithoutresolution_evidence,resolved_event_time, andresolverall populated. - Never give an
EvidenceTrustFindinga free-textadapted_from-- it must be a"file#record_id"pointer to an already-existing record, never a copy of that record's own text. - Decay is never a stored field on
EpisodicTrajectoryRecord-- always compute it at read time viamemory.decay.evaluate_decay. - Supersession is never a mutation of a
KnowledgeRecord-- always compute it viaknowledge.supersession.compute_effective_status. WisdomCandidateRecord.supporting_decision_refs(distinct fromsupporting_trajectory_ids) is the only way an acceptedImprovementDecisionRecordmay count toward independent confirmation -- never append a decision reference intosupporting_trajectory_ids, and never write toimprovement_decision_ledger.pyfrom this layer (readdecision_statusonly, viaaccepted_decision_confirmation_ref).source_truth.SourceTruthLedgerEntrynever carries fact text -- it is a pointer (knowledge_id) plusconfidence/validity_status, always produced bysource_truth.ledger.build_source_truth_ledger, never hand-constructed with a fabricated confidence score.consolidation.claude.graph.CapabilityGraphNode.module_pathmust be a file that actually exists in this repository (or a pinned external commit SHA) -- never a templated/sequential placeholder path. Before trusting anyprojects/coderos/source_mining/*.jsoncorpus as an ingestion source, spot-check several rows for exactly this pattern (seereconciliation.REJECTED_TEMPLATED_SOURCE_FILESfor a real example of four files that failed this check and were rejected as inputs).- Every
DuplicateAuthorityFindingandArtifactReconciliationRecordrequires anadapted_from"file#record_id"pointer -- never free text -- exactly likeEvidenceTrustFinding. consolidation.claude.mvp_projectionfunctions prove compatibility with another subsystem's input contract by actually constructing and.validate()-ing a real instance of that subsystem's own dataclass -- never by assertion. If a real field's value has no valid translation (e.g. areuse_modeabsent fromwork_order_factory.SOURCE_MODES), raise; never silently coerce or drop content to force a fake pass.operator_loop.pymay be imported read-only for its dataclasses in this module -- it is a forbidden-to-modify file for this mission's own allowed-paths, and no code here ever writes to it.- Episodic memory's
confidence,frequency,replay_status, anddecay_stageare always computed viamemory.episodic_projection.compute_episodic_memory_projection-- never new stored fields onEpisodicTrajectoryRecord, which stays frozen.frequencycounts cohort records sharing(lane_id, work_order_id)-- the same independence unitwisdom.evaluate_wisdom_promotionuses -- so the two never disagree about what "the same attempt context" means. consolidation.claude.context_projectionandfeedback_projectionproject real records into the pre-existingcontext_tiers.ContextNodeandsource_leverage_routing_feedback.ReuseOutcomeSignal/CandidateLaneFitdataclasses -- never a new L0/L1/L2 or feedback/lane-fit schema.candidate_lane_fit_from_wisdom_candidaterequires an explicit, pre-validatedlaneargument and raises on any value outsidesource_leverage_routing_feedback.LANES-- that enum shares zero members with reallane_idvalues, so never guess a mapping between them.consolidation.claude.authority.check_no_forbidden_authority_duplicationis the live,ast-based self-check proving this subsystem never defines aScheduler,MergeQueue,OperatorLoop,SupervisorLoop, or bareQueuename -- re-run it (viaauthority-audit) after adding any new top-level class/function to an owned package, never assume it still passes.
04 同仓库更多 Skills
coderos
Workspace-native skill for operating, extending, and safe parallel implementation on CoderOS itself. Use when selecting non-overlapping implementation slices, navigating CoderOS governance, scout, work-order, sandbox, and skill-pack seams, and executing safe changes.
coderos-workspace-operator
Skill for interacting with the local CoderOS Operator Workspace to coordinate tasks and prevent collisions.
coderos-workorder
Workspace-native skill for drafting valid typed CoderOS WorkOrder JSON payloads and exercising dry-run work-order dispatch safely without live execution or runtime mutation.
coderos-worker-adapters
Generates deterministic safe command packets for various workers
coderos-work-order-factory
Draft and validate deterministic CoderOS work-order factory artifacts without dispatch or provider activation.
coderos-source-reuse-auditor
Apply the Source Reuse Acceptance Auditor rubric before opening, and before merging, any PR that copies, adapts, mines, vendors, clean-room-reimplements, sidecar-wraps, or references a public repository -- the acceptance gate that sits above the license/security boundary, not a substitute for it.