Skip to content
Merged
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ git.agentic/
│ │ ├── roadmap.md 12-week build narrative; repo went public 2026-05-22
│ │ └── demo-scenario.md the canonical demo
│ ├── adr/
│ │ └── 0001 … 0017 — accepted architectural decision records
│ │ └── 0001 … 0018 — accepted architectural decision records
│ └── architecture/
│ ├── overview.md system diagram and component boundaries
│ └── snapshot-model.md the technical heart
Expand Down
686 changes: 575 additions & 111 deletions crates/agentic-core/src/gcs_store.rs

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion crates/agentic-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub use gcs_store::{GcsObjectStore, DEFAULT_GCS_ENDPOINT};
pub use hash::Hash;
pub use object::{Attestation, Blob, Commit, Object, ObjectKind, Tree, TypedRef};
pub use refs::{HeadRef, Refs, RefsSnapshot};
pub use store::{FsObjectStore, ObjectStore};
pub use store::{check_blob_unambiguous, FsObjectStore, ObjectStore};

/// Crate-level error type. Individual modules contribute their own variants.
#[derive(Debug, thiserror::Error)]
Expand All @@ -52,6 +52,18 @@ pub enum Error {
#[error("blob rejected by secret scanner: {hits:?}")]
SecretDetected { hits: Vec<scanner::Hit> },

#[error(
"blob rejected: its bytes are the canonical encoding of a tree or commit \
and would share address {hash} with that object"
)]
AmbiguousBlob { hash: Hash },

#[error(
"address {hash} is already occupied by a different valid object; \
refusing to replace it"
)]
AddressOccupied { hash: Hash },

#[error("invalid branch name {name:?}: {reason}")]
InvalidBranchName { name: String, reason: String },

Expand Down
Loading
Loading