Repository navigation
Trust anchor: content hashes in the API, risky-call lint, CODEOWNERS, security review (ADR-010 step 1) - #8
Merged
Merged
Conversation
…EOWNERS, security review
ADR-010 Amendment 1, step 1. api/modules.json and api/courses.json carry files[{path,sha256}]
and content_sha256 for everything Studio downloads. scripts/lint_cell_risk.py is a non-blocking
reviewer aid (not a sandbox). CONTRIBUTING gains a Security review section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wnloadUrl, lint aliases Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…resh via reviewed branch Lets the main ruleset require review with no bot bypass (deploy keys are disabled for the organisation; GitHub refused a GitHub Actions bypass). ADR-010 Amendment 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Two more commits (owner approved the review rule 2026-11-30): 🤖 Generated with Claude Code |
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.
ADR-010 Amendment 1, step 1 ("Anchor"): make the curated marketplace a real trust anchor for running lesson code in AI-Hydro Studio. Owner decisions 2026-11-30.
What
api/modules.json/api/courses.jsongainsfiles: [{path, sha256}](exact repo bytes, sorted by path) andcontent_sha256(sha256 of thesha256sum-format listing). Modules: theirmodule.html; the course:course.json+ every membermodule.html— exactly what the extension's installers fetch. Schema inapi/README.md, which also states the limit: the bot re-hashes whatever is onmain, so hashes attest index↔file consistency, not review.build_api.py --check(existing step) now covers the hashes; a module changed without regenerating the API fails CI (mutation-tested).build-api.yml:pull --rebase+ bounded retry before the bot push, so a concurrent merge cannot leave a stale index.downloadUrlrequired (validate_manifests.py), so what is hashed is what is fetched.scripts/lint_cell_risk.py, non-blocking inchecks.yml,::warningannotations): subprocess / os.system / os.kill / asyncio subprocess / network modules (incl. NWIS-style client packages) / shutil.rmtree / eval-exec-compile / env reads / writes outside the working directory; resolves import aliases. Not a sandbox; Python cells only (page JS is covered bycheck_csp); absolute-path reads not detected. Today: 1 finding, the documented optional NWIS cell inreal-streamflow-data..github/CODEOWNERS(* @galib9690) — takes effect once the required-review ruleset rule is enabled (pending owner decision; ruleset 28405855 already blocks force-push and deletion ofmain).trustLevelis a publisher label, not a scientific review ("Draft — AI-assisted review only"); Studio-side hash verification and re-consent are designed (step 2), not yet released.Verification
pytest tests373 passed, 3 skipped (incl. newtests/test_trust_anchor.py);node --test tests/js/*.test.js164 pass;build_modules,render_static_outputs,gen_docs,build_api--check,validate_manifests,check_cspall pass. Separate-context review PASS-WITH-FIXES, fixes in b947545. Workflow YAML changes not yet run on Actions.Nothing consumes the new fields until the extension's step 2 lands (in progress).
🤖 Generated with Claude Code