pub struct ImportedProjectInstruction {
pub path: String,
pub file: String,
pub content_hash: String,
pub owner: String,
pub content: String,
}Expand description
One components.projectInstructions entry, read back out of the bundle.
Phase 3 of SPEC_INSTRUCTION_AND_MEMORY_PORTABILITY_2026_09_09.md. This is
a record of what the SOURCE agent was reading, not content to install:
no import path writes these files, and owner is the field that says why
(a foreign entry belongs to the source repository, and writing it into
the importing one is exactly what
SPEC_CLAUDE_MD_OWNERSHIP_PROTECTION_2026_08_22.md exists to prevent).
Carried through the parser rather than being reduced to a warning because
“surfaced” has to mean readable to be worth anything: agent. project_instructions scans the IMPORTING agent’s working directory, so it
is structurally unable to show what the source machine had (Codex P1,
PR #3163). Without this the import flow could tell you the component
existed and nothing more.
Fields§
§path: StringWorking-directory-relative path on the SOURCE machine, e.g. CLAUDE.md.
file: StringWhere the snapshot lives inside the bundle (instructions/project/...).
content_hash: StringSHA-256 the exporter recorded for the source bytes. Kept verbatim and
never recomputed here — a mismatch against content is itself
information about the bundle, not something to paper over.
owner: String"agentmux" or "foreign", verbatim from the manifest. Not parsed
into an enum: an unrecognized value from a future/hand-written bundle
must survive to the UI as-is rather than being silently coerced to
foreign, which would understate AgentMux’s own authorship.
content: StringThe snapshot’s content, resolved from the bundle’s files.
Trait Implementations§
Source§impl Clone for ImportedProjectInstruction
impl Clone for ImportedProjectInstruction
Source§fn clone(&self) -> ImportedProjectInstruction
fn clone(&self) -> ImportedProjectInstruction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ImportedProjectInstruction
impl Debug for ImportedProjectInstruction
impl Eq for ImportedProjectInstruction
impl StructuralPartialEq for ImportedProjectInstruction
Auto Trait Implementations§
impl Freeze for ImportedProjectInstruction
impl RefUnwindSafe for ImportedProjectInstruction
impl Send for ImportedProjectInstruction
impl Sync for ImportedProjectInstruction
impl Unpin for ImportedProjectInstruction
impl UnsafeUnpin for ImportedProjectInstruction
impl UnwindSafe for ImportedProjectInstruction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more