Abstract
The rise of large language models (LLMs) like ChatGPT presents both opportunities and challenges for programming education. While LLMs offer immediate help with code generation and debugging, they can also lead to cognitive offloading and disengagement from critical thinking. Grounded in cognitive science and constructivist learning theory, this paper introduces MAAS (Metacognitive Assignment Authoring System), a scaffolded assignment design for teaching computational thinking in Python. MAAS incorporates stages such as planning, prediction, incremental debugging, self-explanation, and responsible LLM comparison to promote reflective engagement. A worked example demonstrates how each stage supports deeper learning before LLM use. We then simulate student outcomes under two behavioral profiles – LLM-dependent and reflective – and assess performance on code correctness, conceptual understanding, and cognitive load. Results suggest that while LLM-dependent learners finish tasks quickly, reflective learners gain greater conceptual mastery. MAAS offers a practical blueprint for educators to design assignments that preserve metacognitive integrity and promote learning in the era of AI.