Skip to content

fix(openspec): agent config spec names absent Claude settings #4478

Description

@dan-petty

Problem Description

The requirement "The devcontainer scaffold writes Claude Code settings and Antigravity customizations" in openspec/specs/devcontainer-agent-config/spec.md says that devops devcontainer init writes .claude/settings.json with "secret-file read/edit denies" and the opt-out variable PYDANTIC_AI_NO_BANNER. The template src/devops_cli/templates/claude_settings.json.j2 has neither. #4275 added the requirement and the template in the same commit (28356ed), and the two did not agree from the start. The env of the template also has UV_MALWARE_CHECK, which the requirement does not name.

The owner keeps agent permissions permissive and wants no new deny lists in .claude/settings.json. So the requirement text is wrong, not the file.

Reproduction Steps

  1. git grep -n -E 'PYDANTIC_AI_NO_BANNER|Read\(' -- src/devops_cli/templates/claude_settings.json.j2 .claude/settings.json finds nothing.
  2. Read openspec/specs/devcontainer-agent-config/spec.md line 29.

Expected vs Actual Behavior

Expected: the requirement states what the scaffold writes: the command allowlist, the deny rules for --no-verify and bare gh, and the environment DO_NOT_TRACK, OPENSPEC_TELEMETRY, OPENSPEC_NO_UPDATE_CHECK and UV_MALWARE_CHECK.

Actual: the requirement names secret-file read and edit denies and PYDANTIC_AI_NO_BANNER, which the scaffold does not write.

Environment Diagnostics

origin/main at 3b1f6bd (2026-11-11). No runtime is necessary: the drift is between two files of the repository.

Logs, Traces, or Terminal Output

Found during #4461, which changes enabledPlugins in the same two files and does not change this requirement.

Pre-Submission Checklist

  • I searched open issues for a duplicate.

Alternatives check of 2026-11-11: none.
Tool: none found.

Activity

  1. added
    source/agent
    type/bug
    scope/openspec
    status/new
    value/low
    effort/low
    on Nov 11, 2026
  2. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/openspec. The (openspec) scope of the title gives the scope.
    • Priority: P3-Low. Spec text correction with no runtime impact.
    • Value: Low. Corrects documentation accuracy only; no user-facing behaviour changes.
    • Effort: Low. Edit one spec file's requirement text to match the existing template.
    • Related: chore(agent): turn off unused Claude Code plugins #4461, which asks for a different change. Both touch the spec and template files, but #4461 changes enabledPlugins while this corrects the spec permission and env-var text.
  3. added
    priority/p3-low
    on Nov 11, 2026
  4. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Alternatives check: none

    Reason: The issue is an internal documentation correction: the requirement text in openspec/specs/devcontainer-agent-config/spec.md must be rewritten to describe what src/devops_cli/templates/claude_settings.json.j2 actually writes (allowlist, --no-verify/bare gh denies, and the four env vars). Searches for a tool that detects or reconciles drift between spec prose and template files found nothing relevant — no library checks a Jinja template against a written requirement, and the issue asks for no tool or library at all.

    Tool: none found

    Lacks:

    • No searched tool compares OpenSpec requirement prose with the contents of a Jinja template
    • The fix is a hand edit of one spec file's requirement text, which no external tool performs

    Searches run:

    • openspec validate spec requirements sync check, results: 5
    • tool to detect drift between spec documentation text and template files, results: 5

    Sources:

    Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.

  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 14, 2026
  6. removed
    status/in-review
    on Nov 14, 2026
  7. added a commit that references this issue on Nov 14, 2026
  8. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor
  9. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 15:02 UTC

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

    effort/lowpriority/p3-lowscope/openspecsource/agenttype/bugvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions