All notable changes to openopc-shadow-adapter will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Compatible Core OpenOPC Version:
openopc >= 0.1.0(latestmainarchitecture) - Supported Execution Modes:
Company Mode&Task Mode - Supported State Machine Phases:
Phase.AWAITING_HUMAN,Phase.APPROVED,Phase.READY_FOR_REWORK
start_process()Interception Mechanism: OverrodeExternalAgentAdapter.start_process()so that when OpenOPC'sExternalAgentBrokerdispatches tasks in Company or Task Mode, the adapter intercepts task execution, parks the record inshadow_tasks.db, and returns a completed mock subprocess without thread starvation orIndexErrorcrashes.- Company Mode Isolation Home: Implemented
agent_isolation_home_slug() → "shadow",agent_home_env_vars(), andpost_install_agent_home()to satisfyExternalAgentBrokerisolation requirements. OPCStorePhase Transition Hook Integration: Replaced raw SQL resume logic inOpcResumeRepositorywithstore.update_delegation_work_item(). This validates phase transitions (validate_transition()) and triggers native OpenOPCon_phase_transition()hooks (task.statussync, dispatcher wake signals).- Design Token Alignment: Realigned React SPA Contractor Portal CSS tokens (
--accent: #6366f1Indigo,--accent-soft,--accent-glow,--radius: 12px) to match OpenOPC Office UI (.app-shell) design system. - Non-Blocking Task Parking: Sub-50ms intercept returning
TaskStatus.AWAITING_HUMANto immediately release execution threads for parallel DAG branches. shadow-serve&shadow-workerCLI Tools: Embedded FastAPI REST server (shadow-serve) and remote Silicon BYOC daemon (shadow-worker).- Corporate Artifacts Knowledge Graph: Automatic file hashing (SHA-256), payload limit enforcement (5 files / 50MB cap), and upstream subagent context inheritance.
build_invocation(): Updated to return["shadow", "--mode", "park"]for OpenOPC audit trace logs instead of an empty list.get_status(): Aligned return type withAgentStatus.IDLEenum fromopc.core.models.- Documentation: Overhauled
README.md,docs/architecture.md,docs/execution_flow.md, anddocs/implementation_guide.mdto reflectstart_processbroker interception andOPCStorephase transition hooks.
- Fixed
IndexErrorcrash whenExternalAgentBrokerexecutedadapter.start_process()with empty command lists. - Fixed
RuntimeErrorcrash in Company Mode caused byagent_isolation_home_slug()returningNone. - Fixed desynchronization of
task.statusand dispatcher wake signals by running phase changes through OpenOPC's transition hooks. - Fixed UI accent color mismatch (Teal
#14b8a6→ Indigo#6366f1).
openopc-shadow-adapter Version |
OpenOPC Core Version | Python | React / SPA | Status |
|---|---|---|---|---|
| 0.1.0 | >= 0.1.0 (Latest main) |
>= 3.10 |
React 19 / Vite | 🟢 Current Production Release |