Skip to content

ci-fix: two nightly tests guard a seat no shipped widget still has #147

Closed

Description

@leaf-agent

Failure

ci on main, nightly suite. Two browser tests have failed on every run since 292de9c "Make reader-added answers real options", first seen in run 33337626485:

  • tests/test_render_controls.py::test_a_seat_conversation_leaves_the_pick_it_is_about_live — Asks (0) expected, Asks (1) actual.
  • tests/test_render_navigation.py::test_the_ring_holds_on_a_seat_the_agent_has_still_to_answer — Asks (1) expected, Asks (2) actual.

The other seventeen failures that commit introduced are fixed in the PR that links here.

Diagnosis

Both tests guard the same layer-generic split: a conversation standing in a widget's declared x-conversation seat takes that widget off the reader's list without answering it, so the banner's count drops while the widget stays an open decision the reader is still standing in. seat_with_agent in decisions.py is the Python half, and standingIn in runtime/decisions/view.js reads unansweredDecisions rather than openDecisions for exactly this reason. Both still carry the behaviour and both still describe it in the present tense.

292de9c removed x-conversation and x-work from lf-options, which was the only widget in the shipped layer that both awaits and seats. So the split is still implemented and can no longer be produced:

  • lf-options awaits (x-awaits.when) but no longer seats.
  • lf-task seats (x-conversation.when: {talk: [true]}) but is x-awaits: {rollup: true}, and a rollup record never enters the visible list — _answered, and therefore seat_with_agent, is not consulted for one.
  • No other entry in either shipped package declares both.

Why no fix was produced

Every substitution that keeps the tests' subject fails on the same premise:

  • An honored chosen pick also takes the group off the reader's list, but it answers it, so actionAvailable's awaiting prerequisite legitimately refuses the press. Tried against the eligibility test: it fails at assert [] == ['choose'], which is the opposite of what the test asserts.
  • Retargeting to a lf-task talk seat loses the ask. Adding a local x-awaits to lf-task in a project overlay is refused at the registry door: <lf-task> x-awaits local decision declares no answer verbs, and answers must name an x-state verb the entry declares.
  • Putting x-conversation back on lf-options in a test overlay builds a layer the product itself rejects — the render gate's missingConversations probe reports declares x-conversation but rendered 0 matching hosts; its module must place exactly one conversationBox, because conversationBox placement is the module's and lf-options.js no longer calls it.

That leaves three ways out, all of them decisions about what the seat is for rather than test edits:

  1. Re-seat lf-options — keep the add-option form as the reader's answer, and place a conversationBox for agent threads beside it, restoring x-conversation/x-work. This also gives an options group its inline thread view back, which 292de9c dropped as collateral: a comment anchored to a group now appears only in the panel and margin.
  2. Fabricate the pair in the test layer — a render_cases_* widget declaring x-state, x-awaits.answers, and x-conversation, with a module that places the seat. The layer-generic feature would then be tested layer-generically, which is what CLAUDE.md's "Keep the layer open" asks for. It costs a new module and entry, and test_a_seat_conversation_leaves_the_pick_it_is_about_live would stop being about lf-options painting the pick before either guard runs — which is half of what it says.
  3. Retire the split — drop seat_with_agent, the x-work conversation seat, the two tests, and the paragraphs in AGENTS.md, skills/leaf/CLAUDE.md, and decisions.py that describe them. Cheapest, and it takes a real capability out of the layer on the grounds that the default package stopped using it.

Until one is chosen, ci on main stays red on these two.

Activity

  1. leaf-agent commented on Aug 31, 2026

    @leaf-agent
    CollaboratorAuthor

    Reproduced on main at 92b54ae and again at aa41f7a: both fail deterministically at the counts this issue names, so ci is still red on them.

    #151 takes option 2, on the grounds that it is the only one of the three that decides nothing. It declares the ask-and-seat pair in the test layer — a project-package entry and module handed to serve through layer_registry/layer_widgets, the way lf-feed and lf-tally already are — and changes no shipped registry entry, module, theme rule or runtime file. Options 1 and 3 are both still open after it: whether lf-options should seat a conversation again, and whether the split should be retired, are product questions the tests no longer force an answer to.

    The cost this issue named for option 2 is real and paid: test_a_seat_conversation_leaves_the_pick_it_is_about_live is no longer about lf-options painting the pick before either guard runs. What it is about instead is the door, which is what the test's own docstring says it is for — so the fabricated module paints its answer before it sends, and the assertion still bites in the same shape. Flipping answeredContext to read the reader's list fails it at assert [] == ['settle'] where the old fixture gave assert [] == ['choose']; flipping standingIn to openDecisions() fails the navigation test at the ring.

    Notes
  2. added a commit that references this issue on Aug 31, 2026
    35b9a26
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions