Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
298 changes: 52 additions & 246 deletions incan.lock

Large diffs are not rendered by default.

230 changes: 230 additions & 0 deletions rfcs/013-governed-continuity-goal-schedule-session-admission.md

Large diffs are not rendered by default.

217 changes: 217 additions & 0 deletions rfcs/014-governed-memory-lifecycle-operations.md

Large diffs are not rendered by default.

226 changes: 226 additions & 0 deletions rfcs/015-generic-governed-profile-evaluation.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions rfcs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ RFC documents use three-digit numbers and the filename form `NNN-short-title.md`
- [RFC 010: hees.ai console](010-hees-console.md) — Draft
- [RFC 011: Canonical Structural Identity for Incan Models](011-canonical-structural-identity.md) — Planned
- [RFC 012: Governed Effect Capabilities and Execution Receipts](012-governed-effect-capabilities-and-execution-receipts.md) — Draft
- [RFC 013: Governed Continuity — Goal, Schedule, and Session Admission](013-governed-continuity-goal-schedule-session-admission.md) — Draft
- [RFC 014: Governed Memory Lifecycle Operations](014-governed-memory-lifecycle-operations.md) — Draft
- [RFC 015: Generic Governed Profile Evaluation](015-generic-governed-profile-evaluation.md) — Draft
4 changes: 2 additions & 2 deletions src/content_dna.incn
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ def serialize_json_value(value: JsonValue) -> Result[str, str]:
return value.to_json().map_err((_error) => f"json_serialization_failed")


def digest_text_bytes(value: str) -> DigestIdType:
pub def digest_text_bytes(value: str) -> DigestIdType:
"""Return the lowercase SHA-256 identity of exact UTF-8 text."""

return digest_id_type(f"sha256:{hexlify(sha256.digest(RustString.from(value).into_bytes()))}")


def digest_canonical_json(source: str) -> Result[DigestIdType, str]:
pub def digest_canonical_json(source: str) -> Result[DigestIdType, str]:
"""Normalize arbitrary JSON with the current Incan serializer and hash the rendered bytes."""

return JsonValue
Expand Down
Loading