Language mechanics invoked by the execution owner, never by UI or bridge code.

interface LanguagePolicy {
    language: KernelLanguage;
    assess(code, spec): string;
    cleanup(): string;
    feedback(outputs): IFeedback;
    initialize?(): string;
    prepare(spec): string;
    run(code, spec): string;
}

Implemented by

Properties

language: KernelLanguage

Methods

  • Restore ordinary exercise state after Run or Submit, including failures. An unsuccessful cleanup makes the kernel ineligible for reuse. This is an ordinary-state guarantee, not isolation from arbitrary hostile code.

    Returns string

  • Restore the ordinary-state baseline and prepare the attempt. Policies may retain authored setup in run() to preserve existing error/output behavior. Partial setup failure must still permit cleanup.

    Parameters

    Returns string