Skip to content

session-start: the coordinator injection has no headroom left; using-ytstack is cut in every coordinator session #95

Open

Description

@lx-0

Observation

After PRs #87, #93 and #94, a coordinator session on this repository injects 9,008 characters at startup and 9,083 after a compaction, against the 9,500 guard of hooks/session-start (the 10,000-character cap). That fits only because the hook already cuts the end of the using-ytstack body in every coordinator session. It keeps a pointer to the file, but it drops the YT_BIN line from #85. A normal session on this repository sits at about 9,200 characters without a cut.

Each new line in the operating checklist, the standing list, the STALL hints or the lint output now costs using-ytstack text. The cut order is correct (the Next action is never cut and standing lines go last), but nothing is left to spare.

Proposals

  1. Split using-ytstack into the part every session needs (the rule, the priority table, the red flags) and a reference part that stays in the file and is read on demand. The coordinator session injects only the first part.
  2. In coordinate mode, the operating checklist replaces the generic skill list instead of adding to it.
  3. A test reports the injection size of a coordinator session and of a plain session on this repository, and fails when either cuts the using-ytstack body.

Related: #74, #85, #93, #94.

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