Skip to content

fix: standardise demo config filenames on config.txt - #70

Merged
JNK234 merged 2 commits into
mainfrom
fix/demo-config-naming
Aug 13, 2026
Merged

fix: standardise demo config filenames on config.txt#70
JNK234 merged 2 commits into
mainfrom
fix/demo-config-naming

Conversation

@JNK234

@JNK234 JNK234 commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Closes #66. Unblocks #61.

Why

color-sharing failed on setup. It passed "demos/config" to llm:load-config, which resolves against the model's own directory first, so the lookup became demos/color-sharing/demos/config and never matched. Its own config.txt sat beside it, unused.

Three naming conventions were in use across five demos — config, config.txt, and a path-prefixed form.

What

  • Rename demos/baba-is-ai/config and demos/provider-sensitivity/config to config.txt; update both models
  • Point color-sharing at config.txt
  • Track demos/color-sharing/config.txt — it existed locally but was never committed, so a fresh clone got a broken demo even with the path fixed
  • Add .gitignore negations so the config-*.txt secret-protection pattern from chore: gitignore __pycache__ and config files with API keys #42 does not swallow them

Why this unblocks #61

The baba-is-ai library re-submission was rejected over the extensionless config filename. That is now config.txt.

Secrets

Every config was checked before tracking. All carry placeholder keys (YOUR_...) or local Ollama endpoints. No secrets added.

Verification

All three modified models compile headless against NetLogo 7.0.3. The config-resolution check that flagged color-sharing now passes clean.

JNK234 added 2 commits August 13, 2026 16:31
color-sharing failed on setup: it passed "demos/config" to llm:load-config,
which resolves against the model's own directory first, so the lookup became
demos/color-sharing/demos/config and never matched. Its own config.txt sat
beside it, unused.

Three naming conventions were in use across five demos — "config",
"config.txt", and a path-prefixed form. config.txt is the majority
convention, so the two extensionless files are renamed to match. The
extensionless name is also the blocker on #61, where the baba-is-ai library
submission was rejected over it.

- rename demos/baba-is-ai/config and demos/provider-sensitivity/config to
  config.txt; update both models to load the new name
- point color-sharing at config.txt instead of demos/config
- track demos/color-sharing/config.txt, which existed locally but was never
  committed — a fresh clone got a broken demo even with the path fixed
- add .gitignore negations for the three files so the config-*.txt
  secret-protection pattern from #42 does not swallow them

All three configs carry placeholder keys or local Ollama endpoints; no
secrets are added.

Verified: all three models compile headless against NetLogo 7.0.3, and the
config-resolution check that flagged color-sharing now passes.

Closes #66.
The rename updated the model's llm:load-config call but left three
user-facing references pointing at the old extensionless name.

The Info tab reference matters most: it ships inside the .nlogox, and
#61 is a Models Library re-submission that was rejected over exactly
this filename. A reviewer opening the Info tab would be told to edit a
file that no longer exists.

- demos/baba-is-ai/README.md: setup step and file table
- demos/baba-is-ai/baba-is-ai.nlogox: Info tab

Verified: model still compiles headless against NetLogo 7.0.3.
@JNK234
JNK234 merged commit a484e88 into main Aug 13, 2026
2 checks passed
@JNK234
JNK234 deleted the fix/demo-config-naming branch August 14, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: color-sharing demo loads a config path that cannot resolve; demo config naming is inconsistent

1 participant