Skip to content

Commit f742cbb

Browse files
committed
Rename SOFTWARE_FACTORY_INTENSIVE_PATH to SFI_PATH
Replaces all 90 occurrences of the environment variable across the eleven files that set or read it. The shorter name matches the SFI_BOX and SFI_KEY convention the repo already uses. City: city · Agent: local-core.manager
1 parent d6f52b9 commit f742cbb

11 files changed

Lines changed: 85 additions & 85 deletions

CLOUD_BOX_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Put `sfbox` on your `PATH`, from the directory holding your clone.
5454
**Copy and paste**
5555

5656
```bash
57-
export PATH="$SOFTWARE_FACTORY_INTENSIVE_PATH/sf-tutorial/participant-box-cli:$PATH"
57+
export PATH="$SFI_PATH/sf-tutorial/participant-box-cli:$PATH"
5858
sfbox --help
5959
```
6060

bootstrap/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 1. Copy this file: `cp .env.example ./.env`
33
# 2. Update .env with your account name, preferred git clone method, etc.
44

5-
SOFTWARE_FACTORY_INTENSIVE_PATH=~/software-factory-intensive
5+
SFI_PATH=~/software-factory-intensive
66
MODEL_PROVIDER=claude # codex, gemini, etc.
77
GITHUB_USERNAME=username
88
GITHUB_CLONE_METHOD=https # ssh, https, or gh

bootstrap/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ This script is destructive and meant to be re-runnable. **If you made any change
7070
**Confirmation prompt.** On launch, you'll see:
7171

7272
```
73-
Are you comfortable with resetting all of $SOFTWARE_FACTORY_INTENSIVE_PATH? (Y/n)
73+
Are you comfortable with resetting all of $SFI_PATH? (Y/n)
7474
```
7575

7676
You must type a **capital `Y`** to continue — `y`, `yes`, or just pressing Enter all abort the script. Nothing has been deleted at the prompt.
7777

78-
**What gets `rm -rf`'d on every run.** Inside `$SOFTWARE_FACTORY_INTENSIVE_PATH` only:
78+
**What gets `rm -rf`'d on every run.** Inside `$SFI_PATH` only:
7979

8080
- `factory*/` — every directory whose name starts with `factory` (e.g. `factory1`, `factory2`)
8181
- `ascii-art/`
8282
- `sf-tutorial/`
8383

84-
Anything outside `$SOFTWARE_FACTORY_INTENSIVE_PATH` is untouched. Anything inside it that doesn't match those names (e.g. `mp-skills/`, pulled by step 05.2) is also untouched.
84+
Anything outside `$SFI_PATH` is untouched. Anything inside it that doesn't match those names (e.g. `mp-skills/`, pulled by step 05.2) is also untouched.
8585

8686
**Other cleanup the script performs.**
8787

bootstrap/bootstrap.sh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if [ -z "$BD_PINNED" ] || [ -z "$DOLT_PINNED" ] || [ -z "$GC_PINNED" ]; then
3434
exit 1
3535
fi
3636

37-
read -p "Are you comfortable with resetting all of \$SOFTWARE_FACTORY_INTENSIVE_PATH? (Y/n) " confirm
37+
read -p "Are you comfortable with resetting all of \$SFI_PATH? (Y/n) " confirm
3838
if [ "$confirm" != "Y" ]; then
3939
echo "==> Exiting script."
4040
exit 1
@@ -138,29 +138,29 @@ if ! [[ "$TUTORIAL_STEP" =~ ^(00\.1-setup-foundation|00\.2-setup-foundation|00\.
138138
exit 1
139139
fi
140140

141-
if [ -z "$SOFTWARE_FACTORY_INTENSIVE_PATH" ]; then
142-
echo "==> SOFTWARE_FACTORY_INTENSIVE_PATH environment variable not found"
143-
echo "==> Please set the SOFTWARE_FACTORY_INTENSIVE_PATH environment variable in the .env file."
141+
if [ -z "$SFI_PATH" ]; then
142+
echo "==> SFI_PATH environment variable not found"
143+
echo "==> Please set the SFI_PATH environment variable in the .env file."
144144
exit 1
145145
fi
146146

147-
# Sanity check: warn if .env's SOFTWARE_FACTORY_INTENSIVE_PATH doesn't match
147+
# Sanity check: warn if .env's SFI_PATH doesn't match
148148
# the parent directory of sf-tutorial. A mismatch typically means the user
149149
# has sf-tutorial cloned somewhere other than what .env says, which would
150150
# create two parallel software-factory-intensive trees (one with sf-tutorial,
151151
# another with factory1/ascii-art). Most of the time this is misconfiguration,
152152
# not intent — so stop and let the user confirm or abort.
153153
DERIVED_SFI_PATH="$(cd "$TUTORIAL_PATH/.." && pwd -P)"
154-
if [ -d "$SOFTWARE_FACTORY_INTENSIVE_PATH" ]; then
155-
NORMALIZED_ENV_SFI="$(cd "$SOFTWARE_FACTORY_INTENSIVE_PATH" && pwd -P)"
154+
if [ -d "$SFI_PATH" ]; then
155+
NORMALIZED_ENV_SFI="$(cd "$SFI_PATH" && pwd -P)"
156156
else
157-
NORMALIZED_ENV_SFI="${SOFTWARE_FACTORY_INTENSIVE_PATH%/}"
157+
NORMALIZED_ENV_SFI="${SFI_PATH%/}"
158158
fi
159159
if [ "$NORMALIZED_ENV_SFI" != "$DERIVED_SFI_PATH" ]; then
160160
echo ""
161-
echo "==> WARNING: SOFTWARE_FACTORY_INTENSIVE_PATH does not match the parent of sf-tutorial."
161+
echo "==> WARNING: SFI_PATH does not match the parent of sf-tutorial."
162162
echo ""
163-
echo " .env SOFTWARE_FACTORY_INTENSIVE_PATH : $SOFTWARE_FACTORY_INTENSIVE_PATH"
163+
echo " .env SFI_PATH : $SFI_PATH"
164164
echo " sf-tutorial parent directory : $DERIVED_SFI_PATH"
165165
echo ""
166166
echo " Continuing will run the bootstrap against the .env path, leaving"
@@ -262,15 +262,15 @@ print_beads_dolt_hint() {
262262
}
263263
trap print_beads_dolt_hint EXIT
264264

265-
mkdir -p $SOFTWARE_FACTORY_INTENSIVE_PATH
266-
cd $SOFTWARE_FACTORY_INTENSIVE_PATH
265+
mkdir -p $SFI_PATH
266+
cd $SFI_PATH
267267

268268
if gc cities | grep -q "factory"; then
269269
for city in $(gc cities | grep "factory" | awk '{print $2}'); do
270270
# Subshell so `cd` doesn't leak. `gc cities` returns absolute paths that may
271-
# point outside $SOFTWARE_FACTORY_INTENSIVE_PATH (stale registrations from
271+
# point outside $SFI_PATH (stale registrations from
272272
# prior runs with a different .env). Leaking cwd here caused subsequent
273-
# rm -rf calls to nuke directories outside $SOFTWARE_FACTORY_INTENSIVE_PATH.
273+
# rm -rf calls to nuke directories outside $SFI_PATH.
274274
(cd "$city" 2>/dev/null && gc stop) || true
275275
done
276276
fi
@@ -623,13 +623,13 @@ fi
623623

624624
# Run 05.2-bead-gate-checks
625625

626-
if [ ! -d $SOFTWARE_FACTORY_INTENSIVE_PATH/mp-skills ]; then
626+
if [ ! -d $SFI_PATH/mp-skills ]; then
627627
if [ "$GITHUB_CLONE_METHOD" == "https" ]; then
628-
git clone https://github.com/mattpocock/skills.git $SOFTWARE_FACTORY_INTENSIVE_PATH/mp-skills
628+
git clone https://github.com/mattpocock/skills.git $SFI_PATH/mp-skills
629629
elif [ "$GITHUB_CLONE_METHOD" == "ssh" ]; then
630-
git clone git@github.com:mattpocock/skills.git $SOFTWARE_FACTORY_INTENSIVE_PATH/mp-skills
630+
git clone git@github.com:mattpocock/skills.git $SFI_PATH/mp-skills
631631
elif [ "$GITHUB_CLONE_METHOD" == "gh" ]; then
632-
gh repo clone mattpocock/skills $SOFTWARE_FACTORY_INTENSIVE_PATH/mp-skills
632+
gh repo clone mattpocock/skills $SFI_PATH/mp-skills
633633
else
634634
echo "==> GITHUB_CLONE_METHOD environment variable is not valid"
635635
echo "==> Please set the GITHUB_CLONE_METHOD environment variable to a valid value (https, ssh, gh)."
@@ -639,7 +639,7 @@ fi
639639
cd "$ASCII_ART_PATH"
640640
mkdir -p .claude/skills/grill-me
641641
if [ ! -f .claude/skills/grill-me/SKILL.md ]; then
642-
cp $SOFTWARE_FACTORY_INTENSIVE_PATH/mp-skills/skills/productivity/grill-me/SKILL.md \
642+
cp $SFI_PATH/mp-skills/skills/productivity/grill-me/SKILL.md \
643643
.claude/skills/grill-me/SKILL.md
644644
fi
645645

bootstrap/preflight.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ fi
187187
# --------------------------------------------------------------------------
188188
head2 "Local path"
189189

190-
if [ -n "${SOFTWARE_FACTORY_INTENSIVE_PATH:-}" ]; then
191-
if [ -d "$SOFTWARE_FACTORY_INTENSIVE_PATH" ]; then
192-
ok "workspace: $SOFTWARE_FACTORY_INTENSIVE_PATH"
190+
if [ -n "${SFI_PATH:-}" ]; then
191+
if [ -d "$SFI_PATH" ]; then
192+
ok "workspace: $SFI_PATH"
193193
else
194-
fail "workspace: \$SOFTWARE_FACTORY_INTENSIVE_PATH is set but does not exist"
194+
fail "workspace: \$SFI_PATH is set but does not exist"
195195
fi
196196
else
197-
warn "workspace: \$SOFTWARE_FACTORY_INTENSIVE_PATH is unset — bootstrap.sh needs it, the progression pages do not"
197+
warn "workspace: \$SFI_PATH is unset — bootstrap.sh needs it, the progression pages do not"
198198
fi
199199

200200
if [ -w "$HOME" ]; then ok "home directory is writable"; else fail "home directory is not writable"; fi

progression/L1-plan-your-factory.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Register the rig as a **sibling** of the city, the same shape [W3](./W3-run-your
5757
**Copy and paste**
5858

5959
```bash
60-
cd "$SOFTWARE_FACTORY_INTENSIVE_PATH/factory1"
60+
cd "$SFI_PATH/factory1"
6161
git clone <your-repo-url> ../<your-rig-name>
6262
gc rig add ../<your-rig-name> <your-rig-name>
6363
export MY_RIG_PATH="$(cd ../<your-rig-name> && pwd)"
@@ -76,7 +76,7 @@ Then install the base factory into it, so your own rig has the same machinery `a
7676
**Copy and paste**
7777

7878
```bash
79-
gc import add --rig <your-rig-name> "$SOFTWARE_FACTORY_INTENSIVE_PATH/sf-tutorial/artifacts/packs/base-factory"
79+
gc import add --rig <your-rig-name> "$SFI_PATH/sf-tutorial/artifacts/packs/base-factory"
8080
gc import list --rig <your-rig-name>
8181
```
8282

@@ -88,7 +88,7 @@ A **project overview** is a loosely structured document answering a few question
8888

8989
```bash
9090
mkdir -p "$MY_RIG_PATH/docs/current"
91-
cp "$SOFTWARE_FACTORY_INTENSIVE_PATH/sf-tutorial/artifacts/docs/PROJECT_OVERVIEW.template.md" "$MY_RIG_PATH/docs/PROJECT_OVERVIEW.md"
91+
cp "$SFI_PATH/sf-tutorial/artifacts/docs/PROJECT_OVERVIEW.template.md" "$MY_RIG_PATH/docs/PROJECT_OVERVIEW.md"
9292
nano "$MY_RIG_PATH/docs/PROJECT_OVERVIEW.md"
9393
```
9494

@@ -140,7 +140,7 @@ bd create --title "<something you would struggle to explain to a new hire>" --ty
140140
The third one is deliberate. Sling it and watch what your factory does with an under-specified ask:
141141

142142
```bash
143-
cd "$SOFTWARE_FACTORY_INTENSIVE_PATH/factory1"
143+
cd "$SFI_PATH/factory1"
144144
gc sling --rig <your-rig-name> polecat <the-third-bead-id>
145145
```
146146

progression/L2-capability-map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Thirty minutes at the end of Day 1 to get the rows down, and thirty on Day 2 mor
4949
**Copy and paste**
5050

5151
```bash
52-
cp "$SOFTWARE_FACTORY_INTENSIVE_PATH/sf-tutorial/artifacts/docs/capability-map.template.md" "$MY_RIG_PATH/docs/current/capability-map.md"
52+
cp "$SFI_PATH/sf-tutorial/artifacts/docs/capability-map.template.md" "$MY_RIG_PATH/docs/current/capability-map.md"
5353
nano "$MY_RIG_PATH/docs/current/capability-map.md"
5454
```
5555

progression/W2-cloud-box-and-preflight.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Regardless of whether you choose to run the factory in our instructor-provided c
4545
```bash
4646
cd $HOME && mkdir software-factory-intensive
4747
cd software-factory-intensive
48-
export SOFTWARE_FACTORY_INTENSIVE_PATH="$(pwd)"
48+
export SFI_PATH="$(pwd)"
4949
gh repo fork https://github.com/actual-software/sf-tutorial.git --clone
5050
cd sf-tutorial/bootstrap
5151
```
@@ -87,7 +87,7 @@ Then, add the variables to `~/.zshrc` or `~/.bashrc` too so new session windows
8787

8888
```bash
8989
cat <<EOF >> ~/.zshrc
90-
export SOFTWARE_FACTORY_INTENSIVE_PATH="$SOFTWARE_FACTORY_INTENSIVE_PATH"
90+
export SFI_PATH="$SFI_PATH"
9191
export PATH="$HOME/.local/bin:$PATH"
9292
EOF
9393
```
@@ -96,7 +96,7 @@ EOF
9696

9797
```bash
9898
cat <<EOF >> ~/.bashrc
99-
export SOFTWARE_FACTORY_INTENSIVE_PATH="$SOFTWARE_FACTORY_INTENSIVE_PATH"
99+
export SFI_PATH="$SFI_PATH"
100100
export PATH="$HOME/.local/bin:$PATH"
101101
EOF
102102
```

0 commit comments

Comments
 (0)