Skip to content

tower: tell the hub architect when the owner submits a ruling from the Decisions tab #1828

Closed

Description

@waleedkadous

Problem

After the owner submits a word or comment from the Decisions tab (PR #1820), nothing tells the hub architect (main). Detection relies on the hub's own file watch or the owner typing ddu in the hub's terminal. Owner ruling 2026-10-18 (codev main-4): "notify clearly better; get rid of the watch method."

Fix

On every successful ruling write, Tower sends the workspace's main architect (else the first registered architect) one mailbox message through the normal afx send path:

RULED <id>: <word> followed by the comment on the next lines when there is one; for a comment-only submit, QUESTION <id>: followed by the text.

The send happens after the atomic rename succeeds and is best-effort: a failed send is logged and the ruling response is unchanged (the file is still the source of truth). No new store, no polling, no change to the file format. The hub still scans the file on ddu for hand-typed rulings.

Protocol

AIR. Baked: route through the mailbox-first writer (Spec 1313), never a direct PTY write; held delivery is fine; one message per submit; a unit test on the message text and an integration test that a submit produces exactly one mailbox row for the hub.

Origin: owner decision main-4, 2026-10-18.

Activity

  1. added
    area/tower
    on Oct 18, 2026
  2. added 4 commits that reference this issue on Oct 18, 2026
  3. waleedkadous commented on Oct 18, 2026

    @waleedkadous
    ContributorAuthor

    Live check passed on the installed Tower (main at c7ebc83): a ruling submitted through the real rule route on the codev workspace's own decisions file produced one mailbox row for main, held while the line was busy, then delivered into the hub's terminal as

    ### [USER via Decisions tab → main | 2026-10-18T15:20:29.365Z] ###
    RULED main-7: yes
    Live check from main via the real rule route.
    

    Tower log: Decisions notice held (busy) → main @ codev (mailbox 068bcbc7...). Ships in v3.3.5.

  4. added a commit that references this issue on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tower

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions