trace-first-starter

TS — TFW-23 / Phase B: Content Language Config

Date: 2026-04-04 Author: Coordinator Status: 🟡 TS_DRAFT — Awaiting approval Parent HL: HL-TFW-23


1. Objective

Add tfw.content_language config key so agents know what language to use when filling artifact content. Templates stay English (Phase A). Content follows user’s preferred language from config. During tfw-init, user is asked for their preference.

2. Scope

In Scope

Out of Scope

3. Affected Files

File Action Description
.tfw/PROJECT_CONFIG.yaml MODIFY Add content_language: en under tfw: block
.tfw/conventions.md MODIFY Add content language rule: agents fill content in configured language
.tfw/workflows/init.md MODIFY Add question about preferred content language to Phase 2 Interview
.tfw/workflows/config.md MODIFY Add content_language entry to Config Sync Registry

Budget: 0 new files, 4 modifications. Within limits.

4. Detailed Steps

Step 1: Add config key to PROJECT_CONFIG.yaml

Add after line 11 (initial_seq: 12):

  content_language: en      # Language for filled artifact content (en, ru, etc.)

Step 2: Add convention rule to conventions.md

Find section 4) Naming. Add rule:

**Content Language:** Template structure (headings, labels, field names) is always English.
Artifact content is filled in the language specified by `tfw.content_language` in PROJECT_CONFIG.yaml.
Default: `en`. Agent MUST check this value before writing artifacts.

Step 3: Update tfw-init workflow

In Phase 2 Interview, add to Batch 1 (line 43-44 area):

- "What language should I use for artifact content? (default: English)"

In Phase 2 Mini-Setup (line 52), ensure the answer is written to tfw.content_language in PROJECT_CONFIG.yaml.

Step 4: Register in Config Sync Registry

Add new section to config.md after ### knowledge:

### content_language

| Config Key | Target File | Section Header | Row Label |
|------------|------------|----------------|-----------|
| `content_language` | `.tfw/conventions.md` | 4) Naming | Content Language |

Step 5: Verify

5. Acceptance Criteria

6. Phase Risks

Risk Mitigation
Agents ignore the config key Convention rule uses MUST language
init.md becomes cluttered One question added to existing batch — minimal

*TS — TFW-23 / Phase B: Content Language Config 2026-04-04*