Skip to content

After: the same event, distilled

Testing-plan row T8, captured after the change, with the same script and the same payload as baseline.md.

Command

console
uv run python docs/specs/issue-243/evidence/measure_prompt.py

Output

text
the-loop version          : the_loop.webhook.dispatcher @ tree under test
raw webhook payload       :   6335 chars
payload excerpt delivered :    203 chars
  parses as JSON          : yes
  truncated               : False
whole rendered prompt     :   2865 chars
  the instruction itself  :     61 chars
  the-loop constant text  :   2290 chars
  graph context           :    372 chars

---- the excerpt as delivered ----
{
  "comment": {
    "body": "the-loop execute\n\nPlease keep the anchor for inline comments.",
    "html_url": "https://github.com/o/r/issues/243#issuecomment-9876543210",
    "author": "reviewer"
  }
}

The delta

BeforeAfterChange
Payload excerpt4,014 chars203 chars−94.9%
Whole rendered prompt6,676 chars2,865 chars−57.1%
Excerpt parses as JSONno — cut mid-string at char 4,000yes
The instruction's share of the prompt0.9%2.1%×2.3

The instruction is still a small share of the prompt, and that is now the-loop's own constant text (2,290 chars) rather than GitHub's metadata — which is exactly the ticket's second question. It is answered in design.md § The constant text with four options and a recommendation, and left for the owner to decide.

Released under the MIT License.