载入中...
搜索中...
未找到
eve::dev::AgentDevelopmentSession类 参考final

Process-owned state machine and evidence ledger for Agent game development. 更多...

#include <AgentDevelopmentSession.hpp>

Public 成员函数

AgentDevelopmentResult start (std::string objective, std::vector< AgentAcceptanceCriterion > criteria, std::string taskKind={}, std::string profile={})
 Start one session; rejects empty objectives, duplicate criteria, or an active session.
 
AgentDevelopmentResult advance (std::string_view sessionId, AgentDevelopmentPhase phase)
 Advance through the declared workflow graph without mutating game state.
 
AgentDevelopmentResult escalate (std::string_view sessionId, std::string_view toProfile)
 Narrow or widen the MCP tool surface along a declared escalate edge.
 
AgentDevelopmentResult record (std::string_view sessionId, AgentDevelopmentEvidence evidence)
 Append evidence; only pass evidence updates criterion satisfaction.
 
AgentDevelopmentResult complete (std::string_view sessionId, std::string summary)
 Complete only from Verify when every required criterion has passing evidence.
 
AgentDevelopmentResult abort (std::string_view sessionId, std::string reason)
 Abort an active session with an explicit reason.
 
void reset ()
 Clear all process-owned session metadata. Intended for host teardown and tests.
 
bool active () const
 Whether a non-terminal session currently owns the workflow.
 
const std::string & sessionId () const
 Stable process-local session identity, invalidated by reset.
 
AgentDevelopmentPhase phase () const
 Current workflow phase.
 
const std::string & objective () const
 User-supplied objective.
 
const std::string & taskKind () const
 Resolved task kind for this session (verify when omitted at start).
 
const std::string & profile () const
 Resolved MCP task profile id (verify.play when omitted at start).
 
std::uint64_t escalateCount () const
 How many successful profile escalations occurred in this session.
 
const std::string & summary () const
 Terminal summary or abort reason.
 
const std::vector< AgentAcceptanceCriterion > & criteria () const
 Immutable acceptance snapshot owned by this session.
 
const std::vector< AgentDevelopmentEvidence > & evidence () const
 Immutable evidence snapshot owned by this session.
 
bool readyToComplete () const
 Whether all required criteria have passing evidence.
 

静态 Public 成员函数

static AgentDevelopmentSession & instance ()
 Return the process-lifetime session authority.
 

详细描述

Process-owned state machine and evidence ledger for Agent game development.

All methods have main-thread affinity and never invoke callbacks. The singleton owns all strings and snapshots until reset or process shutdown. It does not own game, Editor, renderer, filesystem, or test-runner state; evidence is an immutable receipt that refers to those authoritative systems.

在文件 AgentDevelopmentSession.hpp 第 50 行定义.

成员函数说明

◆ abort()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::abort ( std::string_view  sessionId,
std::string  reason 
)

Abort an active session with an explicit reason.

在文件 AgentDevelopmentSession.cpp 第 150 行定义.

引用了 eve::dev::Aborted, active(), applied , 以及 sessionId().

◆ active()

bool eve::dev::AgentDevelopmentSession::active ( ) const

Whether a non-terminal session currently owns the workflow.

在文件 AgentDevelopmentSession.cpp 第 173 行定义.

引用了 eve::dev::Aborted , 以及 eve::dev::Complete.

被这些函数引用 abort(), advance(), complete(), escalate(), record() , 以及 start().

◆ advance()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::advance ( std::string_view  sessionId,
AgentDevelopmentPhase  phase 
)

Advance through the declared workflow graph without mutating game state.

在文件 AgentDevelopmentSession.cpp 第 102 行定义.

引用了 active(), applied, phase() , 以及 sessionId().

◆ complete()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::complete ( std::string_view  sessionId,
std::string  summary 
)

Complete only from Verify when every required criterion has passing evidence.

在文件 AgentDevelopmentSession.cpp 第 137 行定义.

引用了 active(), applied, eve::dev::Complete, readyToComplete(), sessionId(), summary() , 以及 eve::dev::Verify.

◆ criteria()

const std::vector< AgentAcceptanceCriterion > & eve::dev::AgentDevelopmentSession::criteria ( ) const
inline

Immutable acceptance snapshot owned by this session.

在文件 AgentDevelopmentSession.hpp 第 95 行定义.

被这些函数引用 start().

◆ escalate()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::escalate ( std::string_view  sessionId,
std::string_view  toProfile 
)

Narrow or widen the MCP tool surface along a declared escalate edge.

备注
Does not change workflow phase. Rejects unknown profiles and illegal edges.

在文件 AgentDevelopmentSession.cpp 第 84 行定义.

引用了 active(), applied, eve::dev::mcpResolveTaskProfile(), eve::dev::mcpSetSessionProfile() , 以及 sessionId().

◆ escalateCount()

std::uint64_t eve::dev::AgentDevelopmentSession::escalateCount ( ) const
inline

How many successful profile escalations occurred in this session.

在文件 AgentDevelopmentSession.hpp 第 91 行定义.

◆ evidence()

const std::vector< AgentDevelopmentEvidence > & eve::dev::AgentDevelopmentSession::evidence ( ) const
inline

Immutable evidence snapshot owned by this session.

在文件 AgentDevelopmentSession.hpp 第 97 行定义.

被这些函数引用 record().

◆ instance()

AgentDevelopmentSession & eve::dev::AgentDevelopmentSession::instance ( )
static

Return the process-lifetime session authority.

在文件 AgentDevelopmentSession.cpp 第 49 行定义.

引用了 session.

被这些函数引用 eve::dev::callAgentDevelopmentTool().

◆ objective()

const std::string & eve::dev::AgentDevelopmentSession::objective ( ) const
inline

User-supplied objective.

在文件 AgentDevelopmentSession.hpp 第 85 行定义.

被这些函数引用 start().

◆ phase()

AgentDevelopmentPhase eve::dev::AgentDevelopmentSession::phase ( ) const
inline

Current workflow phase.

在文件 AgentDevelopmentSession.hpp 第 83 行定义.

被这些函数引用 advance().

◆ profile()

const std::string & eve::dev::AgentDevelopmentSession::profile ( ) const
inline

Resolved MCP task profile id (verify.play when omitted at start).

在文件 AgentDevelopmentSession.hpp 第 89 行定义.

被这些函数引用 start().

◆ readyToComplete()

bool eve::dev::AgentDevelopmentSession::readyToComplete ( ) const

Whether all required criteria have passing evidence.

在文件 AgentDevelopmentSession.cpp 第 177 行定义.

被这些函数引用 complete().

◆ record()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::record ( std::string_view  sessionId,
AgentDevelopmentEvidence  evidence 
)

Append evidence; only pass evidence updates criterion satisfaction.

在文件 AgentDevelopmentSession.cpp 第 111 行定义.

引用了 active(), applied, evidence(), sessionId() , 以及 value.

◆ reset()

void eve::dev::AgentDevelopmentSession::reset ( )

Clear all process-owned session metadata. Intended for host teardown and tests.

在文件 AgentDevelopmentSession.cpp 第 159 行定义.

引用了 eve::dev::Aborted , 以及 eve::dev::mcpSetSessionProfile().

被这些函数引用 start().

◆ sessionId()

const std::string & eve::dev::AgentDevelopmentSession::sessionId ( ) const
inline

Stable process-local session identity, invalidated by reset.

在文件 AgentDevelopmentSession.hpp 第 81 行定义.

被这些函数引用 abort(), advance(), complete(), escalate() , 以及 record().

◆ start()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::start ( std::string  objective,
std::vector< AgentAcceptanceCriterion >  criteria,
std::string  taskKind = {},
std::string  profile = {} 
)

Start one session; rejects empty objectives, duplicate criteria, or an active session.

参数
taskKindOptional kind (content|script|verify|fix|workshop); empty defaults to verify.
profileOptional profile id; empty selects the taskKind default (verify → verify.play).

在文件 AgentDevelopmentSession.cpp 第 54 行定义.

引用了 active(), applied, criteria(), eve::dev::Discover, ids, eve::dev::mcpResolveTaskProfile(), eve::dev::mcpSetSessionProfile(), objective(), profile(), reset() , 以及 taskKind().

◆ summary()

const std::string & eve::dev::AgentDevelopmentSession::summary ( ) const
inline

Terminal summary or abort reason.

在文件 AgentDevelopmentSession.hpp 第 93 行定义.

被这些函数引用 complete().

◆ taskKind()

const std::string & eve::dev::AgentDevelopmentSession::taskKind ( ) const
inline

Resolved task kind for this session (verify when omitted at start).

在文件 AgentDevelopmentSession.hpp 第 87 行定义.

被这些函数引用 start().


该类的文档由以下文件生成: