feat(orchestration): scope workflow model admission to the deployed geography
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
Research direction
Start in cdk/src/handlers/shared/workflows.ts with WORKFLOW_MODEL_ALLOWLIST and disallowedWorkflowModel, then inspect how the stack injects ANTHROPIC_MODEL and ANTHROPIC_DEFAULT_HAIKU_MODEL. Trace the deployed geography plumbing and choose how admission receives it; done means a workflow using a model from another geography is rejected before execution while valid models remain admitted.
Written by the indexing model from the issue text.
Description
Component
CDK / infrastructure (cdk/src/handlers/shared/workflows.ts)
Describe the feature
Scope WORKFLOW_MODEL_ALLOWLIST to the geography the deployment actually grants, instead of admitting all seven.
// cdk/src/handlers/shared/workflows.ts
export const WORKFLOW_MODEL_ALLOWLIST: readonly string[] = DEFAULT_BEDROCK_MODEL_IDS.flatMap(
(bare) => [bare, ...BEDROCK_GEO_REGIONS.map((geo) => `${geo}.${bare}`)],
);
Every geography is admitted regardless of which one the stack was deployed with, so a workflow pinning eu.anthropic.claude-opus-5 on a global deployment passes admission and then fails at turn 0 with AccessDenied — the IAM grant is scoped to one geography's profile ARNs, resolved at synth.
Use case
This is the same failure class the surrounding work exists to eliminate: a model that cannot work is accepted silently and surfaces as an unattributed turn-0 failure rather than a rejection at submit time. repo onboard --model already rejects a wrong-geography value by reading the stack's BedrockGeoRegion output; workflow admission does not.
Proposed solution
The allowlist is a module-level constant in a runtime handler, so the deployed geography is not available where it is currently built. Two shapes:
- Deliver the resolved geography to the admission handler as an environment variable (the stack already injects
ANTHROPIC_MODELandANTHROPIC_DEFAULT_HAIKU_MODELthe same way) and narrow the list at module load. - Fold it into the context-sourced list the file's own comment anticipates ("A future Phase 4 will source this from the repo Blueprint"), which would carry the geography with it.
Not urgent: no shipped workflow pins a model today, so the list is currently unreachable in practice — disallowedWorkflowModel returns null for every shipped descriptor. It becomes reachable the moment one does.
Other information
Raised during review of #806 and deliberately kept out of it — that PR closes the CLI-side and doctor-side instances of this class, and widening it into the runtime admission path needs the geography plumbing above rather than a one-line change.
- Dominant language
- TypeScript
- Stars
- 158
- Forks
- 49
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 17
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws-samples/sample-autonomous-cloud-coding-agents
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aws-samples/sample-autonomous-cloud-coding-agents#908 ·
Maintainers usually reply within 1 day
-
bug v1
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
aws-samples/sample-autonomous-cloud-coding-agents#886 ·
Maintainers usually reply within 1 day
-
bug v1
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
aws-samples/sample-autonomous-cloud-coding-agents#861 ·
Maintainers usually reply within 1 day
-
documentation P2 security
Difficulty 2/5 1-2 days Newbie friendliness 74/100
aws-samples/sample-autonomous-cloud-coding-agents#793 ·
Maintainers usually reply within 1 day
-
Docs: How to clear previously set attributes for a blueprintMay be free again @rkumarus-aws claimed this 43 days ago, and no pull request is open. Opendocumentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
aws-samples/sample-autonomous-cloud-coding-agents#767 · 2 comments ·
Maintainers usually reply within 1 day
All issues in aws-samples/sample-autonomous-cloud-coding-agents
Similar issues
-
Contrib indemnité de départ à la retraite : faire le pont avec le simulateur sur la page génériqueOpenP1
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SocialGouv/code-du-travail-numerique#7561 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
kubernetes-sigs/headlamp#7950 ·
Maintainers usually reply within 3 days
-
README for cliPossibly taken @Janvi-kapoor claimed this today. OpenOSCI'26
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
GauravKarakoti/SecureFlow#1308 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
vitest-dev/vitest#11577 ·
Maintainers usually reply within 1 day