Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
f6c089b
feat(core): refuse Chrome downloads as Agent download
cursoragent Aug 16, 2026
52e4237
docs(traceability): keep Chrome permission guard active-PR only
seonghobae Aug 16, 2026
a295616
test(core): isolate Chrome permission imports for main convergence
seonghobae Aug 16, 2026
6818982
docs(adr): preserve current-main extension authority decision
seonghobae Aug 16, 2026
1cff725
chore(core): preserve current-main authority docs while converging Ch…
seonghobae Aug 16, 2026
1cc58cf
test(core): reconcile Chrome permission guard onto current main
seonghobae Aug 17, 2026
a144c30
feat(core): refuse Chrome permission as Agent authority
seonghobae Aug 17, 2026
db724d4
docs(changelog): record Chrome permission authority separation
seonghobae Aug 17, 2026
4b36b53
test(core): classify commands and windows as compatibility only
seonghobae Aug 17, 2026
6b7cfd7
fix(core): classify commands and windows as compatibility only
seonghobae Aug 17, 2026
e697b31
test(core): require standard Chrome permission authority errors
seonghobae Aug 17, 2026
87a49dc
fix(core): expose standard Chrome permission authority errors
seonghobae Aug 17, 2026
1dc2222
test(core): classify nativeMessaging as compatibility-only
seonghobae Aug 17, 2026
cabe4df
fix(core): keep nativeMessaging compatibility non-authoritative
seonghobae Aug 17, 2026
7fc96f8
docs(changelog): record native messaging authority separation
seonghobae Aug 17, 2026
765c88f
Merge remote-tracking branch 'origin/main' into pr-175
seonghobae Aug 26, 2026
1a2094c
fix(core): register mcp routing module in crate root after main recon…
seonghobae Aug 26, 2026
7e5fcf5
Merge remote-tracking branch 'origin/main' into pr175
seonghobae Aug 27, 2026
0ecfa76
Merge commit '542ca1e9c0a863595b8b6697790005d2471f5413' into HEAD
seonghobae Aug 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to OriginWeave are documented in this file. The format follo
- Refreshed the product-gap queue to 126 open pull requests (54 ready, 72 draft) after #190, #188, #185, #192, #182, #184, #115, #181, #116, #117, #118, #183, #114, #127, #112, #109, #186, #110, #108, #111, #174, and #113 were merged into their immediate stacked prerequisites. PRs #147, #146, #145, #144, #143, #142, #141, #139, #136, #132, #129, and #128 moved to ready after exact-head checks and thread review; these are queue-consolidation results, not protected-main shipment.

### Added
- Added a fail-closed Chrome-permission separation boundary so reviewed Manifest V3 compatibility permissions, including `downloads` and `nativeMessaging`, can never mint any OriginWeave Agent action authority.
- Corrected the 2026-08-26 product-gap snapshot with current #229 presentation-identity evidence, stacked-only #205 integration evidence, current base/head pairs, the 126-PR queue count, explicit root-versus-child merge ordering, and the active GitHub counted-approval gate.
- Refreshed the product and technical gap baseline onto the 2026-08-26 live inventory: 126 open pull requests (54 ready, 72 draft), protected-main promotion of #168/#194/#196/#216/#151, a verified maintenance-loop record (supersession closure of #153, conflict reconciliations on #37/#149/#152/#173/#175, issue #212 option-(b) authorization on #43, Strix vuln-0001 homoglyph remediation on #124), provider-rerun outcome evidence, an organization review-pipeline congestion record, and refreshed merge-order queue guidance. Documentation evidence contracts were aligned to the same snapshot so the baseline, its dated markers, and the pinned exact-head rows cannot silently diverge.

Expand Down
2 changes: 1 addition & 1 deletion crates/originweave-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ homepage.workspace = true
publish = false

[lib]
path = "src/root.rs"
path = "src/crate_root.rs"

[dependencies]
unicode-normalization = "=0.1.25"
Expand Down
73 changes: 73 additions & 0 deletions crates/originweave-core/src/chrome_permission_authority.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
//! Separation between Chrome extension compatibility permissions and Agent authority.

use crate::ActionKind;
use std::fmt;

/// Why a Chrome extension permission cannot authorize an OriginWeave Agent action.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ChromePermissionAuthorityError {
/// The permission names a reviewed Chrome compatibility surface, not Agent authority.
CompatibilitySurfaceOnly,
/// The permission is not a reviewed Chrome surface and still grants no Agent capability.
UnrecognizedPermission,
}

impl fmt::Display for ChromePermissionAuthorityError {
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
let message = match self {
Self::CompatibilitySurfaceOnly => {
"Chrome compatibility permission cannot authorize an OriginWeave Agent action"
}
Self::UnrecognizedPermission => {
"Chrome permission is not a reviewed compatibility surface and cannot authorize an OriginWeave Agent action"
}
};
formatter.write_str(message)
}
}

impl std::error::Error for ChromePermissionAuthorityError {}

const REVIEWED_CHROME_COMPATIBILITY_PERMISSIONS: &[&str] = &[
"bookmarks",
"commands",
"declarativeNetRequest",
"declarativeNetRequestWithHostAccess",
"downloads",
"history",
"nativeMessaging",
"scripting",
"sidePanel",
"storage",
"tabs",
"windows",
];

/// Refuse to treat a Chrome extension permission as OriginWeave Agent authority.
///
/// A successful Chrome compatibility proof never becomes an OriginWeave Agent
/// capability. Adapters must keep browser compatibility evidence and explicit
/// OriginWeave grants separate and call this boundary before exposing a typed
/// action to policy. The action is accepted only to make that separation
/// explicit at the adapter boundary; no action kind can make this function
/// return success.
pub fn chrome_permission_authorizes_agent_action(
permission: &str,
_action: ActionKind,
) -> Result<(), ChromePermissionAuthorityError> {
if !is_exact_chrome_permission_token(permission) {
return Err(ChromePermissionAuthorityError::UnrecognizedPermission);
}
if REVIEWED_CHROME_COMPATIBILITY_PERMISSIONS.contains(&permission) {
return Err(ChromePermissionAuthorityError::CompatibilitySurfaceOnly);
}
Err(ChromePermissionAuthorityError::UnrecognizedPermission)
Comment thread
seonghobae marked this conversation as resolved.
}

fn is_exact_chrome_permission_token(permission: &str) -> bool {
let mut characters = permission.chars();
let Some(first) = characters.next() else {
return false;
};
first.is_ascii_lowercase() && characters.all(|character| character.is_ascii_alphabetic())
}
Comment thread
seonghobae marked this conversation as resolved.
Comment thread
seonghobae marked this conversation as resolved.
22 changes: 22 additions & 0 deletions crates/originweave-core/src/crate_root.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//! OriginWeave core contracts plus narrowly scoped adapter authority boundaries.
//!
//! The existing deterministic core remains implemented in `lib.rs`; this crate
//! root re-exports that protected-main API and adds the independently reviewed
//! Chrome-permission separation boundary without weakening existing authority.

#![forbid(unsafe_code)]
#![deny(missing_docs)]

#[path = "lib.rs"]
mod base;
pub use base::*;
Comment thread
seonghobae marked this conversation as resolved.

mod chrome_permission_authority;
pub use chrome_permission_authority::{
ChromePermissionAuthorityError, chrome_permission_authorizes_agent_action,
};

/// Stateless MCP routing validation that maps only explicit tools to typed actions.
pub mod mcp;
/// Deterministic fail-closed release benchmark acceptance aggregation.
pub mod release_acceptance;
17 changes: 0 additions & 17 deletions crates/originweave-core/src/root.rs

This file was deleted.

61 changes: 61 additions & 0 deletions crates/originweave-core/tests/chrome_permission_authority.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
use originweave_core::{
ActionKind, ChromePermissionAuthorityError, chrome_permission_authorizes_agent_action,
};

#[test]
fn chrome_compatibility_permissions_never_mint_agent_authority() {
for permission in [
"downloads",
"bookmarks",
"history",
"storage",
"tabs",
"windows",
"scripting",
"commands",
"sidePanel",
"declarativeNetRequest",
"declarativeNetRequestWithHostAccess",
"nativeMessaging",
] {
assert_eq!(
chrome_permission_authorizes_agent_action(permission, ActionKind::Download),
Err(ChromePermissionAuthorityError::CompatibilitySurfaceOnly)
);
}
}

#[test]
fn malformed_or_unreviewed_chrome_permissions_remain_unrecognized() {
for permission in [
"",
"DOWNLOADS",
"downloads\nhttps://example.invalid",
"cookies",
"downloads ",
] {
assert_eq!(
chrome_permission_authorizes_agent_action(permission, ActionKind::Download),
Err(ChromePermissionAuthorityError::UnrecognizedPermission)
);
}
}

#[test]
fn chrome_permission_authority_errors_are_standard_credential_safe_errors() {
let cases = [
(
ChromePermissionAuthorityError::CompatibilitySurfaceOnly,
"Chrome compatibility permission cannot authorize an OriginWeave Agent action",
),
(
ChromePermissionAuthorityError::UnrecognizedPermission,
"Chrome permission is not a reviewed compatibility surface and cannot authorize an OriginWeave Agent action",
),
];

for (error, expected_message) in cases {
assert_eq!(error.to_string(), expected_message);
assert!(std::error::Error::source(&error).is_none());
}
}
Loading