Skip to content

feature(workspace): extend provenance banners to JSONC files (check-json exclude) #1053

Closed

Description

@c-vigo

Problem

Deviation documented in #1036 / PR #1043: the JSONC scaffold files (.devcontainer/devcontainer.json, .vscode/settings.json, .devcontainer/workspace.code-workspace.example) accept // comments in their consumers (VS Code, devcontainer CLI) but were skip-listed from the provenance banner because the repo's (and the scaffold's) check-json pre-commit hook parses them strictly — a // banner fails the suite upstream and downstream.

Fix

  • Exclude the three JSONC paths from the check-json hook in nix/hooks.nix (the SSoT; both rendered .pre-commit-config.yaml files follow, drift-gated by tests/test_flake_hooks.py) — or switch them to a JSON5-aware check if one is already available in the hook env.
  • Add a // comment style to the Banner transform and remove the three paths from _BANNER_SKIP (scripts/sync_manifest.py), so they get the managed/preserved variant like every other comment-capable file.

Acceptance criteria

  • The three JSONC files carry the correct banner variant
  • check-json (both hook configs) stays green; strict-JSON files (renovate.json etc.) remain banner-free and strictly checked
  • sync-manifest tamper-gate covers the new banners

Refs: #1036

Activity

  1. added
    feature
    priority:low
    area:workspace
    effort:small
    semver:patch
    on Jul 14, 2026
  2. c-vigo commented on Jul 14, 2026

    @c-vigo
    ContributorAuthor

    Implemented in #1064 (merged to dev): jsonc // banner style; the three JSONC files carry the managed banner; check-json excludes exactly those paths (nix/hooks.nix SSoT, both renders); integration tests made JSONC-tolerant.

  3. added a commit that references this issue on Jul 15, 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:workspaceeffort:smallfeaturepriority:lowsemver:patch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions