feat(library): separate official and private legal sources#1
Merged
Conversation
Eysn0130
marked this pull request as ready for review
July 15, 2026 17:24
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f39f418b39
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
What changed
private_*Agent operations.uncertain_evidence.Why
DeepLaw needed a complete lifecycle for official team updates and user-owned legal references without mixing authority, rankings, storage, or case-project data. The previous package could build a release but did not let a fresh Agent installation acquire the maintained catalog or safely manage a separate private reference scope.
During final cold-start validation, a transient official-site HTTP 502 also exposed an overly short retry window. The downloader now uses bounded exponential backoff, preserves only hash-verified cache entries, and still refuses non-official mirror fallback.
User and developer impact
uv tool install .anddeeplaw official installto fetch all 28 declared sources from official URLs and build the same immutable release locally.deeplaw official update; users can disable or uninstall official data without touching private references.Validation
uv run pytest— 155 passeduv run ruff check .uv lock --checkgit diff --checkuncertain_evidence; 109/109 receipts verified0700/0600/0400permissions and zero retained sources/releases after deletionHonest limits
This remains a
0.3.0alpha candidate, not a production legal opinion system or a cross-system leaderboard result. The catalog is protected by HTTPS, monotonic sequence, and hashes but is not yet cryptographically signed. Claude Code and OpenCode CLIs were not present on this host, so their manifests are statically validated rather than claimed as host-runtime tests.