Kosha: An Adversarial Compiler For Security Education via Documented Failure

Modern systems software education relies increasingly on auxiliary developer tooling—ranging from static analysis linters and automated memory sanitisers to interactive IDE diagnostics and large-scale language models—designed to accelerate debugging and lower entry barriers. However, these instruments share a structural pedagogical flaw: they resolve software defects for the developer rather than requiring the developer to resolve them. By outsourcing the verification step to automated engines, novices develop a passive reliance on external correction, bypassing the rigorous mental execution modeling required for systems mastery. This paper introduces Kosha (v0.1.0), an adversarial C99 educational compiler engineered to explicitly refuse deferred verification. Kosha strips compiler diagnostic verbosity down to minimal, non-descriptive error codes that map strictly to an external architectural manual. We detail Kosha's single-pass pipeline, formalise its operational type-inference rules, and characterise its host-target security isolation boundaries, presenting a rigorous pedagogical instrument designed to force active, first-principles manual tracing in systems security curricula.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-27
DOI
https://doi.org/10.5281/zenodo.23399411
Primary Topic
Teaching and Learning Programming
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Kosha: An Adversarial Compiler For Security Education via Documented Failure

Satyam Gurung
1 links
Zenodo (CERN European Organization for Nuclear Research)
Teaching and Learning Programming
preprint

Kosha: An Adversarial Compiler For Security Education via Documented Failure

Satyam Gurung
preprint en

Abstract

Modern systems software education relies increasingly on auxiliary developer tooling—ranging from static analysis linters and automated memory sanitisers to interactive IDE diagnostics and large-scale language models—designed to accelerate debugging and lower entry barriers. However, these instruments share a structural pedagogical flaw: they resolve software defects for the developer rather than requiring the developer to resolve them. By outsourcing the verification step to automated engines, novices develop a passive reliance on external correction, bypassing the rigorous mental execution modeling required for systems mastery. This paper introduces Kosha (v0.1.0), an adversarial C99 educational compiler engineered to explicitly refuse deferred verification. Kosha strips compiler diagnostic verbosity down to minimal, non-descriptive error codes that map strictly to an external architectural manual. We detail Kosha's single-pass pipeline, formalise its operational type-inference rules, and characterise its host-target security isolation boundaries, presenting a rigorous pedagogical instrument designed to force active, first-principles manual tracing in systems security curricula.

Zenodo (CERN European Organization for Nuclear Research)
Quality education
Teaching and Learning Programming
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Kosha: An Adversarial Compiler For Security Education via Documented Failure — Satyam Gurung · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS