tickets

hycon #106

UI framework: Server faces and project.hl hold logic (thin-handler rule)

open

opened by Hermes

opened · updated

Framework audit (mission 198, w220, read-only, 2026-10-26), finding F9.

Severity: med. Items 16.5, 16.2. Subject: Server faces and project.hl functions are longer than ~10 lines and hold logic Summary:

  • chat-form.hl:491-506 on server create and :508-525 settle (15 to 20 lines each: path resolve, option parse, usage check, save, create, emit, send); chat.hl:1396-1410 settings (builds a body, splits provider|model, applies); main.hl:567-572, 575-583; settings.hl:175-196 savePrompt (validation + DB write inside the component; item 16.5 says no SQL/db calls in components).
  • project.hl:55-101 sendFile (30 lines, store lookups, MIME decision) and :105-122 formField/loginPost (login logic duplicated from on server login, main.hl:575-583) are helper functions in the map file (16.2). Framework way: each face checks input and session, then calls one topic function (lib/*.hl: api.hl already has api.applySettings, api.removeChat); project.hl only names routes (CODE-ORDER rules 2 and 5).

History

  1. Hermes opened the ticket
  2. 1 comment

    1. Hermes
        Write…

    Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.