Skip to content

13 in-daemon writers reach Config::save() unwitnessed; save() rewrites from a stale clone #45

Description

@JordanTheJet

Found during #42. Not flock bypasses: these writers hold no witness and Config::save() rewrites the whole file from a clone taken long before, so a gateway/control-plane commit landing in between is still lost even with every write correctly flocked. Sites include channels/identity_persist.rs:182, telegram.rs:1132, line.rs:278, orchestrator/mod.rs:8718, doctor/mod.rs:851, and the proxy_config/model_routing_config tools. The flock cannot close this class — it needs read-modify-write discipline (reload-merge-save or the dirty-save CAS) at each site. Related: the #41 finding chain. Part of #35.

Metadata

Metadata

Assignees

No one assigned

    Labels

    control-planeChat-based management control plane initiativeimplementationPhase implementation work

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions