Zhang et al studied rule-based behavior by either having human subjects choose the rule themselves or by instructing them to the rule.  They found context-dependent and context-independent (chosen vs instructed)  rule representations in frontal and parietal cortex. This gives insight into the architecture of cognitive control.