Skip to content

agent-guards fast path: umask-proof bytecode tests and real code filenames (#1119 follow-up) #1143

Done

Description

@scuttletoby

Follow-up minors from the round-2 code lens of #1119 (#1119 (comment)):

  1. The agent-guards bytecode tests pass only under umask 022. Under umask 002 four subtests fail, because the .pyc the test writes is group-writable and the guard (rightly) refuses it. Fix: chmod 0644 in the test helper.
  2. The installer's .pyc names its code after the temporary install folder, so a guard traceback shows a folder that no longer exists. Answers are unaffected. Fix: _imp._fix_co_filename or the dfile argument when compiling.
  3. (Theoretical) If the 3 s stdin alarm fires right after a read, that chunk of the event is lost. Only matters for an event still arriving after 3 s.

🤖 Generated with Claude Code

Activity

  1. scuttletoby commented on Nov 28, 2026

    @scuttletoby
    OwnerAuthor

    Claimed by the agent-guards follow-up sweep (#1143 + #1131 in one PR, branch fix/agent-guards-1143-1131).

  2. added
    area:guards
    size:small
    type:tech-debt
    on Nov 29, 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:guardssize:smalltype:tech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions