Skip to content

Resolve a Multi-File Compose Set's Paths Against Its First File in the Runtime-Secrets Check #3840

Closed

Description

@ptr727

Problem

The runtime-secrets check in spec/audit.py (from #3719, PR #3838) resolves each path a compose file names against that compose file's own directory. Compose itself resolves every relative path against the directory of the first file in a multi-file set, the project directory.

A devcontainer commonly lists several files, for example "dockerComposeFile": ["../docker-compose.yml", "docker-compose.extend.yml"]. Compose then resolves a path in .devcontainer/docker-compose.extend.yml against the repository root rather than against .devcontainer/.

Constructed case

.devcontainer/devcontainer.json            "dockerComposeFile": ["../docker-compose.yml", "docker-compose.extend.yml"]
.devcontainer/docker-compose.extend.yml    services: app: volumes: - ../secrets:/run/secrets

Compose mounts a secrets folder beside the repository, which is host-side and out of scope. The audit reports a bare secrets/ directory named in .devcontainer/docker-compose.extend.yml.

Suggested direction

Read a devcontainer's dockerComposeFile list, and resolve each listed file's paths against the first file's directory. A compose file no devcontainer lists keeps its own directory as the base.

Activity

  1. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim (away run 2026-11-13, round 3). Branch: burndown/audit-secrets-short-form. Issues: #3837, #3840, #3842, #3844, #4118. Tier: frontier.

    Predicted file set:

    • spec/audit.py
    • spec/checks.json
    • spec/divergences.json
    • spec/fidelity-model.md
    • spec/files.json
    • spec/validate.py
    • AUDIT.md
    • STANDUP.md
    • docs/repo-config.md
    • catalog/snippets/configs/AUDIT.md
    • tests/test_audit.py
    • tests/test_audit_helpers.py
    • tests/test_audit_size.py
    • tests/test_spec_validate.py
    • .agents/skills/standup-a-repo/SKILL.md
    • .github/skills/standup-a-repo/SKILL.md
    • .claude-plugin/fleet-skills/skills/standup-a-repo/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/standup-a-repo
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