feat: add observe-only control contract validator#17
Open
andrei-hasna wants to merge 9 commits into
Open
Conversation
added 9 commits
July 23, 2026 04:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hasna.control/v1validator and deterministic lifecycle evaluator over existing generic metadataenforced: false; this PR adds no schema, ingress, API/store/CLI/MCP/SDK/hook integration, live controls, or enforcementSecurity properties
indeterminateand never synthesize a global holdFREEZE,UNFREEZE, andBLOCKEDcontent is inert; genericblocking=1remains an ordinary blockercontrol_idowns one lifecycle within tenant + authority domain; reuse is rejected and makes evaluation indeterminate rather than definitive allowFixtures
project-freeze-unfreezesha256:41a6e7b5480d20fd587b3170ee6615bd509e6fc4411f5ce15f612b0bc4328547sha256:0b5500cd5f2c29b65badf330b612100baa44052cf8c607fb39ee6414c19eb6f3sha256:0cffbec5ba8980dd9b2fd27e0c52b472f285dd7da8efc910a28351141c1d0b31efbb35f3d438c50f26bc6110dc4f7c4e72016e0f57e65ca43174984232731f79legacy-blocker-text-is-inert56a7397337cfd6f9b2982823f7d505baee8b4771f4abeb3a2fb0b3ee2ee8d0c6Verification
bun test src/lib/control-contract.test.ts src/lib/control-evaluator.test.ts src/lib/control-conformance.test.ts— 37 pass, 0 failbun run typecheck— passbun run build— passbun test— 1046 pass, 2 unrelated failures in unchanged base surfaces:src/contract.test.ts: installed@hasna/contracts@0.5.2now requiresserviceSurfaces; this range does not change the manifest, dependency files, or testsrc/lib/storage-sync.test.ts: station-local storage config returns a local Postgres URL; the isolated test passes withHASNA_CONVERSATIONS_STORAGE_MODE=local70047e5c11c7f2d96aaf5499e75700fc5b920763— PASS, 0 P0/P1/P2/P3 in both lanesgit diff --check, prohibited-path audit, and Co-Authored-By audit — cleanRequired integration follow-ups
available/unavailablesnapshots, preserve activation eligibility, and enforce the row cap without adding schema.PreToolUsemust map exact operation/resource/tenant/domain/scope and emit redacted telemetry only while observe-only; enforcement requires a separate reviewed activation.src/index.tslane/PR feat(storage): replicate messages + read receipts across the fleet (uuid-keyed incremental sync, interim shared storage) #11 lands.No merge, publish, install, deploy, rollout, or live-control activation is included.