github.com/l1fe-labs/forge-go/collab
Go collab package.
Go collab package.
Package contract
| Field | Value |
|---|---|
| Language | go |
| Source version | module source snapshot |
| Manifest | forge-go/go.mod |
| Source files | 5 |
| Evidence | Source reference; registry publication and runtime conformance are separate checks |
Import boundary
import "github.com/l1fe-labs/forge-go/collab"Use a source checkout or your verified private registry. Manifest coordinates identify the package; they do not establish that a public registry release exists.
Source reference
Download package reference JSON. Each original source file and generated declaration artifact has its own SHA-256 digest. Function bodies and constant values are omitted from downloads. These are source declaration inventories, not compiler-resolved rustdoc, TypeDoc, DocC, or Dokka output. Private modules can contain public declarations that are not reachable through the package boundary; consult the entry point before importing.
context.go
Read declaration text · 7 declaration entries
type SharedContextContract interface
type InMemorySharedContext struct
func NewInMemorySharedContext() *InMemorySharedContext
func (c *InMemorySharedContext) CreateSession(sessionID string)
func (c *InMemorySharedContext) ContextRead(sessionID, key string) (ContextEntry, error)
func (c *InMemorySharedContext) ContextWrite(sessionID string, entry ContextEntry) error
func (c *InMemorySharedContext) ContextKeys(sessionID string) ([]string, error)errors.go
Read declaration text · 16 declaration entries
type CollabError struct
type CollabErrorKind string
const (
// ErrKindSessionNotFound indicates the session does not exist.
ErrKindSessionNotFound CollabErrorKind;
func (e *CollabError) Error() string
func (e *CollabError) Unwrap() error
func NewSessionNotFoundError(sessionID string) *CollabError
func NewSessionAlreadyActiveError(sessionID string) *CollabError
func NewInvalidSessionTransitionError(from, to string) *CollabError
func NewNotAParticipantError(agentDID, sessionID string) *CollabError
func NewTaskNotFoundError(taskID string) *CollabError
func NewTaskAlreadyAssignedError(taskID, assignee string) *CollabError
func NewCapabilityMismatchError(taskType, agentDID, reason string) *CollabError
func NewContextKeyNotFoundError(key string) *CollabError
func NewContextPermissionDeniedError(key, agentDID string) *CollabError
func NewInterruptRejectedError(interruptID, reason string) *CollabError
func NewDelegationFailedError(reason string) *CollabError
func NewRoleViolationError(agentDID, role, action string) *CollabErrorroles.go
Read declaration text · 3 declaration entries
type CoordinatorContract interface
type WorkerContract interface
type PeerContract interfacesession.go
Read declaration text · 10 declaration entries
type SessionTransition struct
type SessionManager struct
func NewSessionManager(sessionID string, timeoutSeconds int64) *SessionManager
func (sm *SessionManager) Session() CollaborationSession
func (sm *SessionManager) State() SessionState
func (sm *SessionManager) Transition(target SessionState, reason string) error
func (sm *SessionManager) CanTransitionTo(target SessionState) bool
func (sm *SessionManager) AddParticipant(agentDID string, role CollaborationRole)
func (sm *SessionManager) History() []SessionTransition
type SessionContract interfacetypes.go
Read declaration text · 19 declaration entries
type CollaborationRole string
const (
// RoleCoordinator decomposes tasks, assigns work, and aggregates results.
RoleCoordinator CollaborationRole;
func (r CollaborationRole) String() string
type SessionState string
const (
// SessionProposed indicates the session has been proposed but not yet accepted.
SessionProposed SessionState;
func (s SessionState) String() string
func (s SessionState) IsTerminal() bool
type TaskPriority string
const (
// PriorityCritical is the highest priority.
PriorityCritical TaskPriority;
type TaskStatus string
const (
// TaskPending indicates the task has been created but not yet assigned.
TaskPending TaskStatus;
type InterruptType string
const (
// InterruptPriorityOverride overrides the current task with higher priority work.
InterruptPriorityOverride InterruptType;
type ContextVisibility string
const (
// VisibilitySession makes the entry visible to all session participants.
VisibilitySession ContextVisibility;
type SessionParticipant struct
type CollaborationSession struct
type DelegatedTask struct
type TaskConstraints struct
type TaskResult struct
type TaskProgress struct
type Interrupt struct
type InterruptResponse struct
type ContextEntry struct
type AgentCapabilityProfile struct