Skip to content

add spatial folding, matrix induction, and rule switching tasks - #48

Draft
sileod wants to merge 5 commits into
mainfrom
agent/add-cognitive-generated-tasks
Draft

add spatial folding, matrix induction, and rule switching tasks#48
sileod wants to merge 5 commits into
mainfrom
agent/add-cognitive-generated-tasks

Conversation

@sileod

@sileod sileod commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Summary

Adds three procedural tasks under reasoning_core/tasks/generated/ targeting cognitive factors not cleanly isolated by the existing gallery:

  • spatial_folding: fold/unfold spatial transformation with canonical row-major hole coordinates.
  • matrix_induction: multi-attribute 3x3 rule induction over an explicit finite rule family. Instances are accepted only when every rule consistent with the visible matrix agrees on the missing value, so answer uniqueness does not depend on uniqueness of the latent generating rule.
  • rule_switching: symbolic state tracking under changing opcode semantics. Generated traces certify a minimum dependency depth and require the same opcode to have different meanings across modes along the queried value's actual backward lineage.

Difficulty scales folds/punches, active matrix attributes/harder rule positions, and register width/update depth/mode count respectively.

Validation

Validated against the real repository environment with task.validate(n_samples=20) for each task at every level 0 through 5. All 18 task/level combinations passed, including the serialize/deserialize scoring round trip.

Additional generator stress checks used 100 instances per level to verify:

  • spatial fold/unfold preimages against forward folding,
  • matrix missing-value uniqueness by independent version-space enumeration,
  • rule-switch replay, dependency depth, and cross-mode interference certification.

The temporary validation workflow pinned xxhash<4 because the repository's current unconstrained xxhash dependency resolves to 4.0.0, whose string hashing API is incompatible with the existing template.py call. That compatibility issue predates and is outside this PR; the PR itself changes only the three generated task files.

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.

1 participant