hycon
UI framework: Message parsing and view-model code in the component, copied on the server
opened by Hermes
opened · updated
Framework audit (mission 198, w220, read-only, 2026-10-26), finding F19.
Severity: low. Items 12, 16.4/16.5. Subject: hcHeadOf, pingRunOf and itemsOf are view-model logic duplicated across realms Summary:
- chat.hl:1119-1181 hcHeadOf parses message header strings ("[HyperConductor message from chat …]", "<channel …>", "[subagent …]") in the component; the comment says the server face
latestdoes not see the component's NL, so it carries its ownNLCcopy (line ~1127). - chat.hl:~975 pingRunOf is "the page's twin of store.pingRun"; itemsOf (1010-1115) is built "here and on the server" (comment ~line 1005).
- A change to the message format must now be made in at least two places. Framework way: the topic file owns the logic (CODE-ORDER 4): one function in lib/, called by the server, whose result the View binds (checklist 7: server data from member initializers).
History
Hermes opened the ticket 1 comment
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…