-
Notifications
You must be signed in to change notification settings - Fork 0
fix(strix): fail closed on incomplete provider evidence #965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
1d7ed8a
fix(strix): fail closed on incomplete provider evidence
seonghobae 5215dc9
test(strix): align contracts with fail-closed wrapper
seonghobae 849cee5
fix(strix): fail closed when the gate log contradicts exit 0
seonghobae f66cc22
fix(ci): require trustworthy Strix evidence
seonghobae f13b6d5
fix(ci): bind scan reports and kill captured groups
seonghobae c7ca26d
fix(ci): reject conflicting scan metadata
seonghobae 520f639
test(security): pin Strix dependency advisories
seonghobae c7d8d23
fix(strix): preserve provider marker smoke contract
seonghobae 5489c51
fix(strix): match hyphenated fail-closed log markers
seonghobae 1fa2c5f
Fail closed on unbound Strix workflow evidence
seonghobae 88ef436
fix(strix): bind scan-start SHA to evidence head
seonghobae 8da91d0
fix(review): require structured Strix status for supersession
seonghobae b8695c5
fix(strix): refuse run.json without head metadata
seonghobae 4d7267b
docs(strix): record base-workflow false-green evidence
seonghobae e1cfbed
fix(strix): fail closed on neutral skip markers
seonghobae 30cbb58
docs(strix): record runner cancellation evidence
seonghobae c3b65ac
fix(strix): reject dotted requirement includes from materialize
seonghobae b27bdaa
fix(strix): fallback on unsupported agent tool contract
seonghobae 4116fef
docs: record Strix tool contract failure
seonghobae 3a2be84
docs: track stale dependency alerts
seonghobae 49c3da5
docs: record current scoped strix evidence
seonghobae e76b24a
fix: harden strix review evidence boundaries
seonghobae b09e8b8
test: exercise structured strix status binding
seonghobae 0baf2b4
refactor(strix): remove unrelated lock-materializer changes
seonghobae 0bdf042
docs(strix): keep release note scoped to evidence gate
seonghobae 33a6094
fix(strix): preserve materializer executable mode
seonghobae 87c14eb
fix: gate merge automation on aggregate review approval
seonghobae 88aa747
fix: validate structured Strix artifacts before release
seonghobae c192ad2
fix(strix): bind evidence to unique outer run artifact
seonghobae a42e1e6
fix(strix): clean up malformed artifact metadata
seonghobae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| # Architecture — ContextualWisdomLab `.github` | ||
|
|
||
| This repository is the organization control plane. It is not naruon and it | ||
| does not own product data. Sibling products remain standalone modules; this | ||
| repo publishes org profile assets, reusable required workflows, and the | ||
| review/merge schedulers those products consume. | ||
|
|
||
| ## System context | ||
|
|
||
| ```mermaid | ||
| flowchart LR | ||
| Buyer["Commercial buyer / reviewer"] | ||
| Agents["Agents on AGENTS.md"] | ||
| Project["GitHub Project #1"] | ||
| Hub["This repo: org .github"] | ||
| Products["Owned products<br/>naruon · orchestrator · engines"] | ||
| Runner["Required workflows in each repo context"] | ||
|
|
||
| Buyer --> Hub | ||
| Agents --> Project | ||
| Agents --> Hub | ||
| Project --> Hub | ||
| Hub --> Runner | ||
| Runner --> Products | ||
| Products -->|"standalone or as module"| Buyer | ||
| ``` | ||
|
|
||
| ## Strix incomplete-evidence gate | ||
|
|
||
| ```mermaid | ||
| flowchart TD | ||
| Gate["Trusted strix_quick_gate.sh"] | ||
| Rc{"exit 0 and no run-scoped gate marker?"} | ||
| Pass["Required check succeeds"] | ||
| Fail["Fail closed: incomplete evidence"] | ||
|
|
||
| Gate --> Rc | ||
| Rc -->|"yes"| Pass | ||
| Rc -->|"no"| Fail | ||
| ``` | ||
|
|
||
| CWE-754: a zero exit plus a run-scoped `CWL_STRIX_GATE_MARKER_<run-id>:` | ||
| line containing `failing closed`, incomplete evidence, or neutral skip is | ||
| unusual and must not become a green security check. The wrapper ignores the | ||
| same words in untrusted scanner/model/source text. | ||
|
|
||
| `pull_request_target` evaluates required workflow YAML from the trusted | ||
| base/default branch. A PR-head workflow may be materialized for data-only | ||
| self-test, but it is not the active wrapper. Workflow-changing PRs therefore | ||
| need a post-merge default-branch `repository_dispatch` Strix run with an | ||
| `evidence-binding.json` binding the exact PR-head SHA, scan-start SHA, | ||
| metadata-bearing `run.json`, workflow run ID, artifact, report path, and report | ||
| SHA-256. A metadata-less `run.json` is excluded rather than substituted with | ||
| the scan-start SHA; the generic `strix` success context is insufficient. | ||
|
|
||
| ## Control-plane data flow | ||
|
|
||
| ```mermaid | ||
| sequenceDiagram | ||
| participant PR as Pull request | ||
| participant RW as Required workflows | ||
| participant OC as OpenCode reviewer | ||
| participant SV as sandboxed_verify / web E2E | ||
| participant MS as Merge scheduler | ||
|
|
||
| PR->>RW: pull_request_target on trusted base | ||
| RW->>OC: bounded evidence + NVIDIA NIM / OpenCode | ||
| OC->>SV: PoC command in isolated copy | ||
| SV-->>OC: redacted stdout/stderr + command metadata | ||
| OC-->>PR: APPROVE or request changes | ||
| MS->>PR: dispatch default-branch Strix for exact PR head | ||
| PR-->>MS: structured same-head evidence binding | ||
| MS->>PR: merge only on protected review + current checks + clean binding + resolved threads | ||
| ``` | ||
|
|
||
| ## Trust boundaries | ||
|
|
||
| - Required review workflows execute **base-branch** scripts. | ||
| - Reviewer agents stay `edit: deny`. | ||
| - Evidence artifacts apply the allowlisted minimum-disclosure scrubber to | ||
| credentials, email addresses, phone numbers, IPv4 addresses, and absolute | ||
| runner paths before upload. Repository-relative source locations remain so | ||
| findings stay actionable; private reasons are not propagated to reviewer | ||
| context. Artifact access is limited to the repository's existing Actions | ||
| artifact readers, for the security-review purpose, with the existing | ||
| five-day retention and GitHub audit trail. | ||
| - LLM and scheduled agents bind `NVIDIA_NIM_API_KEY`. They never use | ||
| `COPILOT_GITHUB_TOKEN`. | ||
| - Rust remains the psychometric arithmetic owner. | ||
|
|
||
| ## Quality gates | ||
|
|
||
| `scripts/ci/` ships with 100% statement/branch coverage and 100% | ||
| docstrings. | ||
|
|
||
| ## Related durable documents | ||
|
|
||
| - [`docs/CWL-MASTER-CONTEXT.md`](docs/CWL-MASTER-CONTEXT.md) | ||
| - [`docs/doctoring/strix-provider-evidence-fail-closed.md`](docs/doctoring/strix-provider-evidence-fail-closed.md) | ||
| - [`docs/agent-github-project-protocol.md`](docs/agent-github-project-protocol.md) | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.