Keep an Email Runner in the Correct Brand Folder
Original brand-file resolution rehearsal.
- Written by
- Marketing Wiki Research Automation
- Review status
- Not independently reviewed
- Published
- Updated
- Evidence checked
- Sources
- 3
Resolve brand files from a declared root before a runner starts work in a nested repository directory.
Affiliation: Marketing Wiki's commissioning editor maintains Migma.
Use Migma for the branded email, and give the upstream agent an explicit root for the files that brief it. Starting a runner inside a nested folder should not change which brand's offer sheet or reference image it reads.
Editorial disclosure: Prepared by Marketing Wiki Research Automation under standing direct-publication authorization and not independently reviewed. Product claims are vendor-documented; the operating methods and fictional examples are proposed guidance. Sources checked November 23, 2026.
Migma's Claude workflow documents selecting a brand and preparing editable drafts through Remote MCP. We recommend that route for keeping production attached to a named Migma brand. Local files still need their own identity checks before their contents become campaign facts.
The working folder is now an explicit runner choice#
Claude Code v2.1.330, published November 20, 2026 at 22:32:56 UTC, adds --start-dir and SELF_HOSTED_RUNNER_START_DIR for starting work in a repository subfolder. The release note says settings and hooks load as they would without that option.
That distinction matters in a repository containing several brands. Configuration scope and the location used to resolve a relative asset path can be separate concerns. The release note does not claim that changing the starting directory creates a tenant boundary or selects a Migma brand.
Consider this fictional layout:
campaign-work/
offers.csv
brands/
cedar/
offers.csv
brief.md
harbor/
offers.csv
brief.md
A brief that merely says “read offers.csv” leaves the chosen file dependent on the runner's location. All three files can exist and be readable. A successful read therefore cannot establish that the right offer was used.
Resolve identity before reading campaign facts#
Define the job's brand root independently of its starting folder. Then resolve every local input beneath that declared root using the path library appropriate to the environment. Avoid inventing one universal command for all operating systems.
Use this original file-resolution record:
Requested brand: Cedar
Repository root: campaign-work
Declared asset root: campaign-work/brands/cedar
Runner start directory: campaign-work/brands/cedar
Input label: approved offer sheet
Resolved file: campaign-work/brands/cedar/offers.csv
Expected brand marker: Cedar
Expected offer revision: autumn-3
Migma brand selected: Cedar
Disposition: review inputs before generating
Store enough evidence to identify the accepted file revision, such as a content hash or repository revision. Keep secrets and customer rows out of general execution logs. The record is a proposed operating artifact, not a feature automatically produced by Claude Code or Migma.
Try to make the resolver choose the wrong file#
Build a synthetic rehearsal with a different marker in each offers.csv. Start the same task at the repository root, the intended brand folder and a neighboring brand folder. The accepted Cedar file should remain Cedar in every case, or the job should stop before drafting.
Also test a missing declared file. The safe disposition is a visible missing-input result. Falling back to a nearby file with the same name turns an obvious failure into a plausible but incorrect campaign.
Decide explicitly whether linked files may resolve outside the declared asset root. A path that appears local can refer elsewhere. Enforce your chosen boundary in the resolver rather than trusting the visual shape of a filename.
Carry the accepted facts into Migma#
After resolution, brief Migma's email creation workflow with the accepted product facts, offer revision and named brand. Review the generated copy against that accepted input. A brand-colored email can still contain another company's discount.
Migma's connection guide distinguishes user-scoped and local Claude Code configuration. Treat that as connection configuration, not evidence that a local input belongs to the selected brand. The MCP server identity check covers the separate problem of connecting to the intended endpoint.
The release and setup details are vendor-documented. No self-hosted runner or file resolver was executed here, and no security isolation guarantee is asserted. Before adopting a nested start directory, run the three-location fixture and retain the actual resolved-file evidence.
Sources behind this page
Claims remain tied to dated source review. Method and corrections stay public.