载入中...
搜索中...
未找到
AgentDevelopmentSession.cpp
浏览该文件的文档.
43 if (criteria.empty()) return rejected("invalid-criteria", "at least one acceptance criterion is required");
61 if (sessionId != sessionId_) return rejected("session-not-found", "development session was not found");
71 if (sessionId != sessionId_) return rejected("session-not-found", "development session was not found");
100 if (sessionId != sessionId_) return rejected("session-not-found", "development session was not found");
105 return rejected("acceptance-incomplete", "required acceptance criteria do not all have passing evidence");
106 if (summary.empty()) return rejected("invalid-summary", "completion summary must not be empty");
114 if (sessionId != sessionId_) return rejected("session-not-found", "development session was not found");
Process-owned state machine and evidence ledger for Agent game development.
Definition AgentDevelopmentSession.hpp:50
AgentDevelopmentResult complete(std::string_view sessionId, std::string summary)
Complete only from Verify when every required criterion has passing evidence.
Definition AgentDevelopmentSession.cpp:98
const std::string & summary() const
Terminal summary or abort reason.
Definition AgentDevelopmentSession.hpp:78
const std::string & objective() const
User-supplied objective.
Definition AgentDevelopmentSession.hpp:76
bool active() const
Whether a non-terminal session currently owns the workflow.
Definition AgentDevelopmentSession.cpp:132
const std::vector< AgentAcceptanceCriterion > & criteria() const
Immutable acceptance snapshot owned by this session.
Definition AgentDevelopmentSession.hpp:80
AgentDevelopmentResult abort(std::string_view sessionId, std::string reason)
Abort an active session with an explicit reason.
Definition AgentDevelopmentSession.cpp:112
bool readyToComplete() const
Whether all required criteria have passing evidence.
Definition AgentDevelopmentSession.cpp:137
const std::string & sessionId() const
Stable process-local session identity, invalidated by reset.
Definition AgentDevelopmentSession.hpp:72
AgentDevelopmentResult start(std::string objective, std::vector< AgentAcceptanceCriterion > criteria)
Start one session; rejects empty objectives, duplicate criteria, or an active session.
Definition AgentDevelopmentSession.cpp:39
AgentDevelopmentResult record(std::string_view sessionId, AgentDevelopmentEvidence evidence)
Append evidence; only pass evidence updates criterion satisfaction.
Definition AgentDevelopmentSession.cpp:69
const std::vector< AgentDevelopmentEvidence > & evidence() const
Immutable evidence snapshot owned by this session.
Definition AgentDevelopmentSession.hpp:82
AgentDevelopmentResult advance(std::string_view sessionId, AgentDevelopmentPhase phase)
Advance through the declared workflow graph without mutating game state.
Definition AgentDevelopmentSession.cpp:59
void reset()
Clear all process-owned session metadata. Intended for host teardown and tests.
Definition AgentDevelopmentSession.cpp:122
static AgentDevelopmentSession & instance()
Return the process-lifetime session authority.
Definition AgentDevelopmentSession.cpp:34
Definition AgentDevelopmentMcp.cpp:12
AgentDevelopmentResult parseAgentDevelopmentPhase(std::string_view name, AgentDevelopmentPhase *phase)
Parse a stable JSON protocol phase name.
Definition AgentDevelopmentSession.cpp:164
AgentDevelopmentPhase
Ordered stage of an Agent-driven game-development session.
Definition AgentDevelopmentSession.hpp:13
std::string_view agentDevelopmentPhaseName(AgentDevelopmentPhase phase)
Stable JSON protocol name for a development phase.
Definition AgentDevelopmentSession.cpp:150
Result< T > rejected(RuleId rule, std::string message, eve::DiagnosticCode code=eve::DiagnosticCode::PreconditionViolation)
Construct a Rejected result for invalid editing input or preconditions.
Definition EditingResult.h:108
Result< T > applied(T value, std::vector< Diagnostic > diagnostics={})
Construct an Applied result with an owning payload and optional diagnostics.
Definition EditingResult.h:43
Immutable evidence recorded against an acceptance condition.
Definition AgentDevelopmentSession.hpp:24
Structured result for development-session state transitions.
Definition AgentDevelopmentSession.hpp:34