Hardware interview practice
Configuration object ownership
A test puts the same mutable agent_cfg handle into config_db for agents a0 and a1. Each agent writes its own index into cfg.index during build. Later both report index=1. What is the architectural error?
Choose one
Answer choices
- A. build_phase cannot assign integral fields
- B. config_db always converts object fields to static variables
- C. Agent indices must be stored in the factory, not a configuration object
- D. Both agents share one object handle, so the second mutation is visible through both references; create or clone per-agent configurations
