Repository navigation
fix: apply workspace-scoped override properties - #311
Merged
Alexander Zaslonov (azaslonov) merged 3 commits intoOct 10, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
Closes #118 Co-authored-by: azaslonov <2320302+azaslonov@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix workspace-scoped override properties not applied
fix: apply workspace-scoped override properties
Oct 2, 2026
Contributor
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
Review effort: Lite
Findings: 2
Open (4)
WORKSPACE_CHILD_SECTIONSneeds to stay in sync with the config loader’s accepted workspace child… · NewresolveOverrideScopeallocates a newscopedobject and loopsWORKSPACE_CHILD_SECTIONSon… · New This sentence mixes “workspace child sections” (e.g.,workspaces.<ws>.children.apis) with “API… · NewapplyOverridesis tested for case-insensitive workspace matching, buthasNamedValueOverride… · New
Member
|
Copilot resolve the merge conflicts in this pull request |
…-scoped-overrides # Conflicts: # docs/guides/environment-overrides.md # src/services/override-merger.ts # tests/unit/services/override-merger.test.ts Co-authored-by: azaslonov <2320302+azaslonov@users.noreply.github.com>
Contributor
Author
Resolved the merge conflicts, committed, and pushed the merge as |
Alexander Zaslonov (azaslonov)
marked this pull request as ready for review
October 10, 2026 00:04
Tuan Nguyen (atuannguyen1101)
approved these changes
Oct 10, 2026
Alexander Zaslonov (azaslonov)
approved these changes
Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


The CLI already parsed child sections nested under a
workspacesentry in environment override files, but the override merger ignored them. Only the workspace container's ownpropertieswere applied. As a result, workspace APIs, backends, loggers and other child resources were published with source-environment values.Changes
override-merger.ts)resolveOverrideScope(): ifdescriptor.workspaceis set (and the resource is not theWorkspacecontainer itself), it finds the workspace entry (case-insensitive) and builds anOverrideConfigfrom that entry'schildren. Only the 11 child sections the config loader accepts are included.applyOverridesresolves this scope first, then reuses the existing direct, child and grandchild lookups. This covers workspace API diagnostics, operations, policies and releases, operation policies, and product policies with no duplicated logic.apis) no longer apply to workspace-scoped resources with the same name. This matches the Toolkit's parent-chain resolution. Workspace overrides likewise never apply to service-level resources.hasNamedValueOverride(name, overrides, workspace?)now checks the workspace'snamedValuessection. Its callers inpublish-service.tsandsecret-redaction-guard.tspassdescriptor.workspace. Auto-generated workspace named values with an explicit override are therefore published and scanned instead of skipped.environment-overrides.mdwith a description of the scoping rules.workspace-scoped overridessuite tooverride-merger.test.ts. It covers the container itself, top-level child resources, nested API and product sub-resources, isolation between service and workspace scope in both directions, andhasNamedValueOverride.Reviewer notes
policiessection under a workspace, and the issue didn't ask for one..squad/identity/constitution.md) is requested, as required for changes undersrc/.