Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/synapse/blob/main/evidence/f1-capability-chains/red-green/red.txt # synapse A component of the AienOS ecosystem. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `synapse / evidence / f1-capability-chains / red-green / red.txt` 156 lines ยท 9019 bytes Raw Blame History 1 # Red (2026-10-14, commit `f377f41`: F1 tests against stubs) 2 # Command: cargo test -p synapse-auth --offline --test f1_capability_chains 3 # Stubs: grant_link accepts every link unchecked, revoke_link records nothing, unallocated_quota returns None, 4 # authorize_chain admits (and audits) every request, link signature verification accepts, decoders return IoFailure. 5 # Every failure below is an assertion on the behaviour under test (no compile error, no unrelated panic). 6 7 Compiling synapse-auth v0.1.0 (/home/drakestapleton/.t3/projects/synapse/.claude/worktrees/f1/crates/synapse-auth) 8 432 | pub fn decode(bytes: &[u8]) -> SynapseResult { 9 560 | pub fn decode(bytes: &[u8]) -> SynapseResult { 10 Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s 11 Running tests/f1_capability_chains.rs (target/debug/deps/f1_capability_chains-`468298823d2ae46e`) 12 running 11 tests 13 test f1_partitioned_rate_parent_keeps_only_what_it_has_not_handed_down ... FAILED 14 test f1_property_child_quotas_never_sum_above_the_parent ... FAILED 15 test f1_link_bound_to_another_repository_is_refused ... FAILED 16 test f1_property_no_derived_grant_exceeds_its_parent ... FAILED 17 test f1_link_bound_to_another_audience_is_refused ... FAILED 18 test f1_forged_chains_are_refused ... FAILED 19 test f1_out_of_scope_path_is_refused ... FAILED 20 test f1_chain_with_an_ancestor_revoked_at_the_request_walseq_is_refused ... FAILED 21 test f1_reordered_chains_are_refused ... FAILED 22 test f1_stripped_chains_are_refused ... FAILED 23 test f1_link_and_chain_binary_encoding_is_canonical_and_malformed_bytes_are_refused ... FAILED 24 failures: 25 ---- f1_partitioned_rate_parent_keeps_only_what_it_has_not_handed_down stdout ---- 26 thread 'f1_partitioned_rate_parent_keeps_only_what_it_has_not_handed_down' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:749:5: 27 assertion `left == right` failed 28 left: Ok(LinkDigest([41, 152, 138, 161, 234, 199, 146, 57, 139, 50, 161, 152, 138, 51, 172, 24, 64, 218, 123, 128, 195, 106, 179, 183, 183, 160, 128, 42, 163, 58, 252, 14])) 29 right: Err(QuotaPartitionExceeded) 30 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 31 ---- f1_property_child_quotas_never_sum_above_the_parent stdout ---- 32 thread 'f1_property_child_quotas_never_sum_above_the_parent' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:689:21: 33 seed 0xf1f1000300255eed case 0: accepted child makes children sum Sum { ops: 31, storage: 396, footprint: 674 } above parent quotas ChainQuotas { max_ops_per_window: 73, window_duration_ms: 60000, storage_bytes: 1060, footprint_paths: 554, max_bytes_per_op: `1048576` } 34 ---- f1_link_bound_to_another_repository_is_refused stdout ---- 35 thread 'f1_link_bound_to_another_repository_is_refused' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:976:5: 36 assertion `left == right` failed 37 left: Ok(LinkDigest([163, 182, 60, 198, 56, 177, 19, 23, 162, 174, 255, 49, 240, 67, 255, 200, 10, 196, 128, 106, 54, 169, 45, 66, 221, 229, 218, 188, 236, 31, 232, 246])) 38 right: Err(AuthCrossRepoDenied) 39 ---- f1_property_no_derived_grant_exceeds_its_parent stdout ---- 40 thread 'f1_property_no_derived_grant_exceeds_its_parent' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:536:29: 41 seed 0xf1f1000300255eed case 0: accepted link exceeds ancestor 0 in change scope 42 child LinkCaveats { 43 operations: OperationSet( 44 34, 45 ), 46 paths: PathScope { 47 prefixes: [ 48 "b/tests/src/tests", 49 "docs/ab/a", 50 "docs/src/a", 51 ], 52 }, 53 references: ReferenceScope( 54 0, 55 ), 56 changes: ChangeScope { 57 only: Some( 58 [ 59 ChangeId(`02020202020202020202020202020202`), 60 ChangeId(`07070707070707070707070707070707`), 61 ChangeId(`7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f`), 62 ], 63 ), 64 }, 65 quotas: ChainQuotas { 66 max_ops_per_window: 48, 67 window_duration_ms: 60000, 68 storage_bytes: `17288663`, 69 footprint_paths: 112215, 70 max_bytes_per_op: 14908, 71 }, 72 issued_at_ms: 1255, 73 expires_at_ms: 118981, 74 } 75 ancestor LinkCaveats { 76 operations: OperationSet( 77 38, 78 ), 79 paths: PathScope { 80 prefixes: [ 81 "b/tests", 82 "docs/ab", 83 "docs/src", 84 ], 85 }, 86 references: ReferenceScope( 87 0, 88 ), 89 changes: ChangeScope { 90 only: Some( 91 [ 92 ChangeId(`02020202020202020202020202020202`), 93 ChangeId(`07070707070707070707070707070707`), 94 ChangeId(`08080808080808080808080808080808`), 95 ], 96 ), 97 }, 98 quotas: ChainQuotas { 99 max_ops_per_window: 461, 100 window_duration_ms: 60000, 101 storage_bytes: `874486835`, 102 footprint_paths: 875242, 103 max_bytes_per_op: 533753, 104 }, 105 issued_at_ms: 1091, 106 expires_at_ms: 377742, 107 } 108 ---- f1_link_bound_to_another_audience_is_refused stdout ---- 109 thread 'f1_link_bound_to_another_audience_is_refused' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:1018:5: 110 assertion `left == right` failed 111 left: Ok(()) 112 right: Err(AuthAudienceMismatch) 113 ---- f1_forged_chains_are_refused stdout ---- 114 thread 'f1_forged_chains_are_refused' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:839:5: 115 assertion `left == right` failed 116 left: Ok(()) 117 right: Err(AuthGrantSignatureInvalid) 118 ---- f1_out_of_scope_path_is_refused stdout ---- 119 thread 'f1_out_of_scope_path_is_refused' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:1092:5: 120 assertion `left == right` failed 121 left: Ok(()) 122 right: Err(AuthPathOutOfScope) 123 ---- f1_chain_with_an_ancestor_revoked_at_the_request_walseq_is_refused stdout ---- 124 thread 'f1_chain_with_an_ancestor_revoked_at_the_request_walseq_is_refused' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:1154:5: 125 assertion `left == right` failed 126 left: Ok(()) 127 right: Err(AuthGrantRevoked) 128 ---- f1_reordered_chains_are_refused stdout ---- 129 thread 'f1_reordered_chains_are_refused' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:949:9: 130 assertion `left == right` failed: order [0, 2, 1] 131 left: Ok(()) 132 right: Err(AuthChainBroken) 133 ---- f1_stripped_chains_are_refused stdout ---- 134 thread 'f1_stripped_chains_are_refused' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:919:9: 135 assertion `left == right` failed: middle link dropped 136 left: Ok(()) 137 right: Err(AuthChainBroken) 138 ---- f1_link_and_chain_binary_encoding_is_canonical_and_malformed_bytes_are_refused stdout ---- 139 thread 'f1_link_and_chain_binary_encoding_is_canonical_and_malformed_bytes_are_refused' panicked at crates/synapse-auth/tests/f1_capability_chains.rs:1212:5: 140 assertion `left == right` failed 141 left: Err(IoFailure) 142 right: Ok(CapabilityLink { version: 1, nonce: [162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162], parent: LinkDigest([126, 158, 96, 62, 88, 184, 128, 18, 134, 170, 46, 169, 243, 246, 241, 118, 185, 65, 166, 52, 57, 249, 171, 82, 83, 125, 255, 250, 5, 0, 94, 104]), repo_id: RepoId("aien-spark/synapse"), issuer_key: [237, 73, 40, 198, 40, 209, 194, 198, 234, 233, 3, 56, 144, 89, 149, 97, 41, 89, 39, 58, 92, 99, 249, 54, 54, 193, 70, 20, 172, 135, 55, 209], audience_key: [202, 147, 172, 23, 5, 24, 112, 113, 214, 123, 131, 199, 255, 14, 254, 129, 8, 232, 236, 69, 48, 87, 93, 119, 38, 135, 147, 51, 219, 218, 190, 124], caveats: LinkCaveats { operations: OperationSet(3), paths: PathScope { prefixes: ["crates/synapse-auth"] }, references: ReferenceScope(1), changes: ChangeScope { only: Some([ChangeId(`01010101010101010101010101010101`)]) }, quotas: ChainQuotas { max_ops_per_window: 250, window_duration_ms: 60000, storage_bytes: `268435456`, footprint_paths: 262144, max_bytes_per_op: `1048576` }, issued_at_ms: 1000, expires_at_ms: 100000 }, signature: [34, 71, 249, 230, 73, 32, 78, 224, 82, 220, 174, 21, 163, 197, 78, 111, 76, 77, 115, 120, 169, 144, 201, 187, 150, 251, 168, 109, 122, 195, 216, 142, 118, 142, 75, 221, 198, 131, 211, 131, 153, 175, 194, 23, 218, 213, 134, 136, 57, 22, 55, 22, 98, 21, 212, 20, 208, 155, 224, 81, 119, 51, 7, 3] }) 143 failures: 144 f1_chain_with_an_ancestor_revoked_at_the_request_walseq_is_refused 145 f1_forged_chains_are_refused 146 f1_link_and_chain_binary_encoding_is_canonical_and_malformed_bytes_are_refused 147 f1_link_bound_to_another_audience_is_refused 148 f1_link_bound_to_another_repository_is_refused 149 f1_out_of_scope_path_is_refused 150 f1_partitioned_rate_parent_keeps_only_what_it_has_not_handed_down 151 f1_property_child_quotas_never_sum_above_the_parent 152 f1_property_no_derived_grant_exceeds_its_parent 153 f1_reordered_chains_are_refused 154 f1_stripped_chains_are_refused 155 test result: FAILED. 0 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s 156 error: test failed, to rerun pass `-p synapse-auth --test f1_capability_chains`