-
Notifications
You must be signed in to change notification settings - Fork 0
Downstream consumer boundary tracking (12.1.1) #151
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3264047
Plan the downstream consumer boundary (12.1.1)
leynos b987852
Document OrthoConfig boundary states
leynos 76af117
Add OrthoConfig consumer boundary matrix
leynos bfecd96
Link OrthoConfig boundary matrix from docs
leynos 6dda698
Gate OrthoConfig boundary documentation
leynos 6e7f307
Explain OrthoConfig boundary states to users
leynos d747396
Type boundary manifest test helpers
leynos 3a3cca9
Extract boundary field constraint checks
leynos c73e831
Consolidate boundary state evidence checks
leynos 291977a
Record boundary implementation completion
leynos 48814d4
Enforce pending boundary review expiry
leynos 9371c42
Harden docs gate boundary coverage
leynos 7a89d00
Hide docs gate adapter details
leynos 221e323
Make boundary review dates explicit
leynos 6715922
Separate boundary manifest parsing
leynos da482ce
Deduplicate boundary error assertions
leynos 92b02cc
Expose boundary manifest gate diagnostics
leynos 26e9344
Add boundary manifest load observability
leynos 59484ab
Expand boundary manifest review coverage
leynos 3bf5657
Consolidate boundary manifest success recording
leynos 8e8490e
Simplify boundary evidence property oracle
leynos e5f2631
Inline boundary manifest deserialization
leynos 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,25 @@ | ||
| [package] | ||
| name = "weaver-docs-gate" | ||
| edition.workspace = true | ||
| version.workspace = true | ||
| rust-version.workspace = true | ||
| publish = false | ||
|
|
||
| [dependencies] | ||
| cap-std = { workspace = true } | ||
| camino = { workspace = true } | ||
| metrics = { workspace = true } | ||
| serde = { workspace = true } | ||
| thiserror = { workspace = true } | ||
| time = { workspace = true } | ||
| toml = { workspace = true } | ||
| tracing = { workspace = true } | ||
|
|
||
| [dev-dependencies] | ||
| insta = { workspace = true } | ||
| proptest = { workspace = true } | ||
| tempfile = { workspace = true } | ||
| trybuild = { workspace = true } | ||
|
|
||
| [lints] | ||
| workspace = true |
45 changes: 45 additions & 0 deletions
45
crates/weaver-docs-gate/examples/render_boundary_matrix.rs
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,45 @@ | ||
| //! Regenerate the `OrthoConfig` consumer boundary matrix. | ||
| //! | ||
| //! This example is the documented command-line adapter for the crate's public | ||
| //! APIs. It loads `docs/orthoconfig-consumer-boundary.toml` with | ||
| //! `load_manifest_file`, renders the Markdown matrix with `render_matrix`, and | ||
| //! writes the result to the output path supplied by the caller. | ||
|
|
||
| use std::env; | ||
|
|
||
| use camino::Utf8Path; | ||
| use cap_std::{ambient_authority, fs::Dir}; | ||
| use weaver_docs_gate::{load_manifest_file, render_matrix}; | ||
|
|
||
| /// Regenerate a boundary matrix from a manifest path and output path. | ||
| fn main() -> Result<(), String> { | ||
| let mut args = env::args().skip(1); | ||
| let manifest_path = args | ||
| .next() | ||
| .ok_or_else(|| "usage: render_boundary_matrix <manifest> <output>".to_owned())?; | ||
| let output_path = args | ||
| .next() | ||
| .ok_or_else(|| "usage: render_boundary_matrix <manifest> <output>".to_owned())?; | ||
|
|
||
| if args.next().is_some() { | ||
| return Err("usage: render_boundary_matrix <manifest> <output>".to_owned()); | ||
| } | ||
|
|
||
| let manifest = | ||
| load_manifest_file(Utf8Path::new(&manifest_path)).map_err(|error| error.to_string())?; | ||
| write_output(Utf8Path::new(&output_path), render_matrix(&manifest)) | ||
| } | ||
|
|
||
| /// Write the regenerated matrix through a capability-oriented directory handle. | ||
| fn write_output(path: &Utf8Path, content: String) -> Result<(), String> { | ||
| let parent = path | ||
| .parent() | ||
| .ok_or_else(|| format!("invalid output path: {path}"))?; | ||
| let file_name = path | ||
| .file_name() | ||
| .ok_or_else(|| format!("invalid output path: {path}"))?; | ||
| let dir = | ||
| Dir::open_ambient_dir(parent, ambient_authority()).map_err(|error| error.to_string())?; | ||
| dir.write(file_name, content) | ||
| .map_err(|error| error.to_string()) | ||
| } |
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.