feat: Ordering Matters demo (rule learning)#15
Conversation
Three agent groups apply identical rules (sense, move, share) in different orders to demonstrate that execution order drives divergent emergent behavior. Includes NetLogo model with BehaviorSpace experiment, LLM rule-inference template, Python analysis script with 15 passing tests, and config/README.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c2f4b59bf4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| to-report format-trajectory [rows] | ||
| let cap min (list sample-size length rows) | ||
| let clipped sublist rows 0 cap |
There was a problem hiding this comment.
Keep trajectory content constant across orderings
The current sampling happens inside format-trajectory via sublist rows 0 cap, which is called separately for forward, reversed, and shuffled; once trajectory-log exceeds sample-size (the default run does), this yields different underlying rows per ordering (earliest rows for forward, latest for reversed, random subset for shuffled), so the measured divergence is confounded by different data rather than pure ordering effects.
Useful? React with 👍 / 👎.
|
|
||
| let reversed reverse forward | ||
|
|
||
| random-seed 1776 |
There was a problem hiding this comment.
Avoid reseeding global RNG during ordering construction
Calling random-seed 1776 in build-trajectory-orderings changes NetLogo's global RNG state, so after running infer-rules/export-data, later setup and go executions draw from a fixed seed and repeated runs lose intended seed variability; this can silently bias or duplicate multi-run experiments.
Useful? React with 👍 / 👎.
Code Review: Ordering Matters Demo ✅Strengths:
Logic Review:
Minor Recommendations:
Status: APPROVED FOR MERGE ✅ |
|
Closing in favor of PR #11 (epiplexity-02-ordering-matters) which covers the same hypothesis with richer analysis (prediction accuracy + coherence scoring) and is grounded in the Finzi et al. paper. |
Tests how trajectory ordering affects LLM rule inference.
What it does:
Key finding: Inferred behavioral rules differ significantly based on trajectory presentation order
Files:
Demonstrates: Ordering effects on LLM-based learning from examples