feat(wesley): consume canonical requirements artifacts#344
Conversation
📝 WalkthroughWalkthroughWesley optic artifact import upgraded from v0.0.3 to v0.0.4. The adapter now imports Wesley-owned canonical requirement metadata (codec, digest, bytes) directly into warp-core without reserializing. OpticAdmissionRequirements struct extended with codec and digest fields. Import logic validates digest matching and copies Wesley metadata verbatim. Adapter-local canonicalization staging removed. ChangesWesley optic artifact import with native metadata
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
echo-wesley-gentowesley-core0.0.4OpticAdmissionRequirementsArtifactbytes, codec, and digest directly instead of adapter-local canonical JSON stagingwarp-coreopaqueOpticAdmissionRequirementswith codec and digest fields while keepingwarp-corefree of awesley-coredependencywarp-coreoptic artifact and causal fact source changes run exact integration-test targets instead of broad Cargo name-filter runsValidation
cargo test -p echo-wesley-gen imports_wesley_owned_requirements_artifact_without_reserializing_requirementsfailed before the runtime payload exposed codec/digestcargo test -p echo-wesley-gencargo test -p warp-core optic_artifactcargo test -p warp-core --test optic_invocation_admission_testscargo test -p warp-core --test causal_fact_publication_testscargo check --workspace --all-targetscargo clippy -p echo-wesley-gen -p warp-core --all-targets -- -D warningscargo clippy -p echo-wesley-gen --all-targets -- -D warningsbash tests/hooks/test_verify_local.shgit diff --checkBoundary
Wesley owns compiler truth for canonical requirements bytes. Echo imports those bytes, stores them opaquely, and still owns runtime registration handles. This PR does not add admission enforcement, grants, tickets, witnesses, or directive renaming.