refactor(execution): provider 전용 소유권 표현으로 정정한다
승격 이후 경계 정정으로, doc.go/types.go/main.go의 잔여 standalone Agent·terminal 소유권 문구를 provider 전용·run 단위 표현으로 바꾸고, CLI 설명을 검증하는 Node 회귀 테스트를 추가한다. 승격·복구 증거는 그대로 보존한다.
This commit is contained in:
parent
7b90b7e5af
commit
7cc9f2d142
4 changed files with 16 additions and 5 deletions
|
|
@ -26,7 +26,7 @@ func main() {
|
|||
func rootCmd() *cobra.Command {
|
||||
root := &cobra.Command{
|
||||
Use: "node",
|
||||
Short: "IOP Node Agent — runs adapter executions on this device",
|
||||
Short: "IOP Node — runs provider executions on this device",
|
||||
}
|
||||
root.PersistentFlags().StringVarP(&cfgFile, "config", "c", "configs/node.yaml", "config file path")
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,17 @@ func TestRootCmdIncludesOperationalCommands(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRootCmdUsesProviderOnlyDescription(t *testing.T) {
|
||||
short := rootCmd().Short
|
||||
lower := strings.ToLower(short)
|
||||
if !strings.Contains(lower, "provider") {
|
||||
t.Errorf("root command Short must describe provider execution; got %q", short)
|
||||
}
|
||||
if strings.Contains(lower, "agent") {
|
||||
t.Errorf("root command Short must not claim Agent ownership; got %q", short)
|
||||
}
|
||||
}
|
||||
|
||||
func TestVersionCmdPrintsVersion(t *testing.T) {
|
||||
root := rootCmd()
|
||||
var out bytes.Buffer
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Package execution contains the host-neutral execution contract shared by
|
||||
// IOP Node and standalone agent hosts. It owns provider lifecycle, streaming
|
||||
// events, typed failures, registry lifecycle, and terminal session primitives;
|
||||
// Package execution contains provider-only, host-neutral execution contracts
|
||||
// shared by Node and Edge-facing provider transports. It owns provider
|
||||
// lifecycle, streaming events, typed failures, and registry lifecycle;
|
||||
// host wire translation remains outside this package.
|
||||
package execution
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
// Providers must not use it to identify, resume, or retain a process.
|
||||
const DefaultSessionID = "default"
|
||||
|
||||
// ErrRunCancelled is returned by adapters when a run is cancelled without terminating the session.
|
||||
// ErrRunCancelled is returned by providers when a single run is cancelled.
|
||||
var ErrRunCancelled = errors.New("run cancelled")
|
||||
|
||||
// ExecutionSpec is the resolved, policy-applied specification for a single run.
|
||||
|
|
|
|||
Loading…
Reference in a new issue