Page MenuHomePhabricator

WikiLambda: Support the use of Z16K3 / 'has callbacks to the orchestrator'
Open, MediumPublic

Description

Description

Z16K3 is a new Boolean key of Z16/code (see T413943), which will be used to inform the orchestrator whether it needs to be prepared to enact one or more Evaluator-Orchestrator callbacks. The following handling is needed in WikiLambda:

  • Upgrade all relevant PHP code to handle Z16K3 as an optional key (for a transition period).
  • Upgrade all relevant JavaScript/Vue code to handle Z16K3 as an optional key (for a transition period).
  • Upon Publish of a code implementation, use regular expressions to determine whether the code contains one or more Evaluator-Orchestrator callbacks (using the syntax determined by T415235). If so, set Z16K3 to true; otherwise set it to false.

Desired behavior/Acceptance criteria

  • Setting Z16K3 should be done reliably for the obvious Evaluator-Orchestrator callback syntax (determined by T415235), but does not need to detect nonobvious ways in which Python or JavaScript code could specify a callback.
  • After the initial Publish of the code implementation, Z16K3 should always be set in accordance with the most-recent published content (Z16K2 of the relevant Z16/code object).

Completion checklist