Skip to main content

Module agent_changesets

Module agent_changesets 

Source
Expand description

Staging, publishing and reverting AI agent changes to course content.

Every agent write is staged into the user’s open changeset for the course (see stage_call); reads of the staged state overlay the changeset on the live content (see course_state::load_view); publish writes the changeset through the web UI’s save paths.

Re-exports§

pub use conflicts::PublishConflict;
pub use course_state::PublishBlocker;
pub use course_state::ReviewConfigKind;
pub use course_state::StagedEntity;
pub use field_changes::EntityField;
pub use field_changes::ExerciseFieldOwner;
pub use field_changes::FieldChange;
pub use field_changes::FieldValue;
pub use locking::ChangedSinceReview;
pub use locking::DiscardOutcome;
pub use locking::DiscardRejection;
pub use locking::discard;
pub use locking::discard_entities;
pub use preview::PagePreview;
pub use preview::PreviewClaim;
pub use preview::PreviewExercise;
pub use preview::PreviewPage;
pub use preview::PreviewReference;
pub use preview::PreviewToken;
pub use preview::mint_preview_token;
pub use preview::preview_path;
pub use preview::resolve_changeset_preview;
pub use preview::resolve_preview;
pub use preview::resolve_published_course_preview;
pub use preview::resolve_published_preview;
pub use preview::validate_preview_token;
pub use publishing::PublishOptions;
pub use publishing::PublishOutcome;
pub use publishing::PublishRejection;
pub use publishing::publish;
pub use reverting::RevertPlan;
pub use reverting::plan_revert;
pub use review::ChangesetReview;
pub use review::CourseDefaultReviewConfigChange;
pub use review::EntityChange;
pub use review::ExerciseChangeWarning;
pub use review::PageChange;
pub use review::ReviewEntity;
pub use review::get_review;
pub use risk::RiskBaseline;
pub use staging::StageCall;
pub use staging::StageCallOutcome;
pub use staging::StageCallResult;
pub use staging::StagedStateRead;
pub use staging::stage_call;
pub use staging::stage_call_dry_run;
pub use summary::ChangesetSummary;
pub use summary::get_summaries;
pub use summary::get_summaries_for_user;

Modules§

conflicts
Staged entities whose live state changed after they were staged.
course_state
A course’s editable content held in memory: as published, or as the user sees it with their open changeset laid over it.
field_changes
What a change does to an entity, field by field, in the shape the review page and agents read.
locking
Locking an open changeset for a publish or discard, and discarding it.
preview
Preview links that show a page as staged without logging in.
publishing
Publishing a changeset to the live course.
reverting
Planning the revert of an agent write call.
review
What the review page shows of a changeset.
risk
Risk rules: which staged changes only the user may publish, on the review page.
staging
Staging agent write calls into the open changeset.
summary
Changesets listed with the entities they change.