Skip to content

context: worker prompt — de-duplicate the deliverable-file law #243

Closed

Description

@santoshkumarradha

worker prompt: de-duplicate the deliverable-file law

Parent: none — independent of #228 family (prompt hygiene)

Problem

Task workers inherit both system.md (chat law: "name full absolute paths in your reply") and task.md (worker law: "your report is all they get; name full absolute paths"). The layering is defensible — but the deliverable-file rule is stated twice in the worker's composite prompt because task.md repeats it verbatim for workers who also read system.md.

Slimming is constrained by the manual law (every slash command, alias, and tool must stay mentioned), so this is a careful surgical edit, not a deletion.

Acceptance

  • For InTask configs, renderSystemAt does not include the duplicate deliverable-path paragraph from system.md when task.md already carries it (or task.md drops the repeat because system.md has it — pick one owner).
  • All manual gates pass; the law remains stated once, in the page the worker actually reads.
  • Low priority; pure token hygiene.
Where it lives

internal/session/prompt.go — renderSystemAt's page selection; prompts/task.md, prompts/system.md. Decide owner, cut the other.


Drafted with CodeAF · reviewed and owned by the author

Activity

  1. santoshkumarradha commented on Sep 1, 2026

    @santoshkumarradha
    MemberAuthor

    Data point from today's dev (32fd51c, after #254's trim closed #238): the fixed prefix sits at 47,745 of 48,000 — 255 bytes (~0.5%) of headroom, and #254's commit-message arithmetic (47,168 / 832 under) no longer matches the merged tree (~577 bytes of prompt came back between the sub-commit and the merge). The next prompt or tool landing re-opens #238 almost immediately; this issue's de-duplication is the cheapest headroom available.

  2. added
    bug
    on Oct 3, 2026
  3. added
    area:session
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:sessionbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions