@plasius/learning 0.2.13 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -1
- package/dist/index.cjs +565 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +563 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1101,6 +1101,19 @@ function validateMissionAuthoringBundle(bundle, module2) {
|
|
|
1101
1101
|
);
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
+
if (learner.boundedSuggestion) {
|
|
1105
|
+
const suggestion = learner.boundedSuggestion;
|
|
1106
|
+
const invalidBoundedSuggestion = suggestion.id.trim().length === 0 || suggestion.source !== "authored-fallback" || suggestion.intent.trim().length === 0 || suggestion.constraints.length === 0 || suggestion.constraints.some((constraint) => constraint.trim().length === 0) || !learnerArtifactIds.has(suggestion.permittedArtifactId) || suggestion.originalSnippet.trim().length === 0 || suggestion.replacementSnippet.trim().length === 0 || suggestion.originalSnippet === suggestion.replacementSnippet || suggestion.explanationPrompt.trim().length === 0 || suggestion.aiOptional !== false || suggestion.learnerApprovalRequired !== true || suggestion.alternatives.length !== 2 || suggestion.alternatives[0] !== "accept" || suggestion.alternatives[1] !== "reject";
|
|
1107
|
+
if (invalidBoundedSuggestion) {
|
|
1108
|
+
issues.push(
|
|
1109
|
+
authoringIssue(
|
|
1110
|
+
"invalid-bounded-suggestion",
|
|
1111
|
+
"A bounded suggestion requires one learner artifact, authored constraints, a visible diff and explicit accept/reject approval.",
|
|
1112
|
+
"learner.boundedSuggestion"
|
|
1113
|
+
)
|
|
1114
|
+
);
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1104
1117
|
const hardware = bundle.hardware;
|
|
1105
1118
|
if (hardware) {
|
|
1106
1119
|
if (module2.category !== "robot" || module2.hardware.mode !== "physical-first" || !module2.hardware.simulatorAvailable) {
|
|
@@ -4587,6 +4600,554 @@ var METEOR_SHIELD_MISSION_ONE_AUTHORING_V1 = {
|
|
|
4587
4600
|
]
|
|
4588
4601
|
}
|
|
4589
4602
|
};
|
|
4603
|
+
var VIBE_GAME_REMIX_LAB_MISSION_ONE_AUTHORING_V1 = {
|
|
4604
|
+
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
4605
|
+
moduleId: "junior-coder.vibe-game-remix-lab",
|
|
4606
|
+
moduleVersion: "1.1.0",
|
|
4607
|
+
missionId: "vibe-game-remix-lab-mission-1",
|
|
4608
|
+
learner: {
|
|
4609
|
+
estimatedMinutes: 20,
|
|
4610
|
+
stages: [
|
|
4611
|
+
{
|
|
4612
|
+
kind: "learn",
|
|
4613
|
+
instruction: "Read how setRescueSpeed(), setGateSpacing() and setGoalCount() change the supplied mini-game.",
|
|
4614
|
+
artifactIds: ["vibe-game-remix-lab-m1-guide"]
|
|
4615
|
+
},
|
|
4616
|
+
{
|
|
4617
|
+
kind: "predict",
|
|
4618
|
+
instruction: "Choose one bounded intent card and predict what its one-line diff will change before viewing it.",
|
|
4619
|
+
artifactIds: ["vibe-game-remix-lab-m1-intent-cards"]
|
|
4620
|
+
},
|
|
4621
|
+
{
|
|
4622
|
+
kind: "build",
|
|
4623
|
+
instruction: "Open the supplied mini-game and keep changes inside its documented settings file.",
|
|
4624
|
+
artifactIds: ["vibe-game-remix-lab-m1-code"]
|
|
4625
|
+
},
|
|
4626
|
+
{
|
|
4627
|
+
kind: "run",
|
|
4628
|
+
instruction: "Use the Run action button to start the private JavaScript preview.",
|
|
4629
|
+
artifactIds: ["vibe-game-remix-lab-m1-code"]
|
|
4630
|
+
},
|
|
4631
|
+
{
|
|
4632
|
+
kind: "assess",
|
|
4633
|
+
instruction: "Run deterministic checks before requesting or applying any suggestion.",
|
|
4634
|
+
artifactIds: []
|
|
4635
|
+
},
|
|
4636
|
+
{
|
|
4637
|
+
kind: "inspect",
|
|
4638
|
+
instruction: "Compare the single authored diff with your prediction and the failed goal evidence.",
|
|
4639
|
+
artifactIds: ["vibe-game-remix-lab-m1-code"]
|
|
4640
|
+
},
|
|
4641
|
+
{
|
|
4642
|
+
kind: "fix",
|
|
4643
|
+
instruction: "Accept or reject the proposed change yourself, then rerun the preview and assessment.",
|
|
4644
|
+
artifactIds: ["vibe-game-remix-lab-m1-code"]
|
|
4645
|
+
},
|
|
4646
|
+
{
|
|
4647
|
+
kind: "explain",
|
|
4648
|
+
instruction: "Explain why you accepted or rejected the change and what the new evidence shows.",
|
|
4649
|
+
artifactIds: []
|
|
4650
|
+
},
|
|
4651
|
+
{
|
|
4652
|
+
kind: "reward",
|
|
4653
|
+
instruction: "Collect the evidence-bound badge after the deterministic score reaches 80 and every safety check passes.",
|
|
4654
|
+
artifactIds: []
|
|
4655
|
+
}
|
|
4656
|
+
],
|
|
4657
|
+
readinessChecks: [
|
|
4658
|
+
{
|
|
4659
|
+
id: "vibe-game-remix-lab-m1-find-setting",
|
|
4660
|
+
prompt: "Point to the documented function that changes how many rescue goals appear.",
|
|
4661
|
+
scored: false
|
|
4662
|
+
}
|
|
4663
|
+
],
|
|
4664
|
+
artifacts: [
|
|
4665
|
+
{
|
|
4666
|
+
id: "vibe-game-remix-lab-m1-code",
|
|
4667
|
+
kind: "starter-code",
|
|
4668
|
+
audience: "learner",
|
|
4669
|
+
solutionBearing: false
|
|
4670
|
+
},
|
|
4671
|
+
{
|
|
4672
|
+
id: "vibe-game-remix-lab-m1-guide",
|
|
4673
|
+
kind: "starter-assets",
|
|
4674
|
+
audience: "learner",
|
|
4675
|
+
solutionBearing: false
|
|
4676
|
+
},
|
|
4677
|
+
{
|
|
4678
|
+
id: "vibe-game-remix-lab-m1-intent-cards",
|
|
4679
|
+
kind: "printable",
|
|
4680
|
+
audience: "learner",
|
|
4681
|
+
solutionBearing: false
|
|
4682
|
+
}
|
|
4683
|
+
],
|
|
4684
|
+
goals: [
|
|
4685
|
+
{
|
|
4686
|
+
id: "vibe-game-remix-lab-m1-starts",
|
|
4687
|
+
statement: "The supplied JavaScript mini-game remains structurally valid and starts.",
|
|
4688
|
+
visibility: "visible",
|
|
4689
|
+
criterionIds: ["vibe-game-remix-lab-build"],
|
|
4690
|
+
completionRequired: true,
|
|
4691
|
+
aiRequired: false
|
|
4692
|
+
},
|
|
4693
|
+
{
|
|
4694
|
+
id: "vibe-game-remix-lab-m1-bounded-remix",
|
|
4695
|
+
statement: "The approved one-file change matches the chosen intent and every published behaviour goal.",
|
|
4696
|
+
visibility: "visible",
|
|
4697
|
+
criterionIds: [
|
|
4698
|
+
"vibe-game-remix-lab-goal-one",
|
|
4699
|
+
"vibe-game-remix-lab-goal-two",
|
|
4700
|
+
"vibe-game-remix-lab-goal-three"
|
|
4701
|
+
],
|
|
4702
|
+
completionRequired: true,
|
|
4703
|
+
aiRequired: false
|
|
4704
|
+
},
|
|
4705
|
+
{
|
|
4706
|
+
id: "vibe-game-remix-lab-m1-private-runtime",
|
|
4707
|
+
statement: "The remix stays inside the private sandbox with no network, personal data or automatic code changes.",
|
|
4708
|
+
visibility: "visible",
|
|
4709
|
+
criterionIds: ["vibe-game-remix-lab-safety"],
|
|
4710
|
+
completionRequired: true,
|
|
4711
|
+
aiRequired: false
|
|
4712
|
+
}
|
|
4713
|
+
],
|
|
4714
|
+
interactions: [
|
|
4715
|
+
{
|
|
4716
|
+
id: "vibe-game-remix-lab-m1-run-control",
|
|
4717
|
+
description: "Start the supplied mini-game preview.",
|
|
4718
|
+
primaryMode: "pointer",
|
|
4719
|
+
alternativeIds: ["vibe-game-remix-lab-m1-keyboard-run"]
|
|
4720
|
+
},
|
|
4721
|
+
{
|
|
4722
|
+
id: "vibe-game-remix-lab-m1-diff-review",
|
|
4723
|
+
description: "Read the removed and added source line before choosing what to do.",
|
|
4724
|
+
primaryMode: "text",
|
|
4725
|
+
alternativeIds: []
|
|
4726
|
+
},
|
|
4727
|
+
{
|
|
4728
|
+
id: "vibe-game-remix-lab-m1-accept-control",
|
|
4729
|
+
description: "Approve the exact immutable suggestion snapshot.",
|
|
4730
|
+
primaryMode: "pointer",
|
|
4731
|
+
alternativeIds: ["vibe-game-remix-lab-m1-keyboard-review"]
|
|
4732
|
+
},
|
|
4733
|
+
{
|
|
4734
|
+
id: "vibe-game-remix-lab-m1-reject-control",
|
|
4735
|
+
description: "Reject the suggestion and preserve the current source.",
|
|
4736
|
+
primaryMode: "pointer",
|
|
4737
|
+
alternativeIds: ["vibe-game-remix-lab-m1-keyboard-review"]
|
|
4738
|
+
}
|
|
4739
|
+
],
|
|
4740
|
+
accessibilityAlternatives: [
|
|
4741
|
+
{
|
|
4742
|
+
id: "vibe-game-remix-lab-m1-keyboard-run",
|
|
4743
|
+
modes: ["keyboard"],
|
|
4744
|
+
equivalentOutcome: true,
|
|
4745
|
+
description: "Press Enter or Space on the play-icon Run button to start the same preview."
|
|
4746
|
+
},
|
|
4747
|
+
{
|
|
4748
|
+
id: "vibe-game-remix-lab-m1-keyboard-review",
|
|
4749
|
+
modes: ["keyboard", "text", "reduced-motion"],
|
|
4750
|
+
equivalentOutcome: true,
|
|
4751
|
+
description: "Read the labelled removed and added lines, then focus Accept or Reject and press Enter or Space."
|
|
4752
|
+
}
|
|
4753
|
+
],
|
|
4754
|
+
evidenceRequirements: [
|
|
4755
|
+
{
|
|
4756
|
+
id: "vibe-game-remix-lab-m1-assessment",
|
|
4757
|
+
goalIds: [
|
|
4758
|
+
"vibe-game-remix-lab-m1-starts",
|
|
4759
|
+
"vibe-game-remix-lab-m1-bounded-remix",
|
|
4760
|
+
"vibe-game-remix-lab-m1-private-runtime"
|
|
4761
|
+
],
|
|
4762
|
+
kind: "assessment-result",
|
|
4763
|
+
retention: "entitlement",
|
|
4764
|
+
containsPersonalData: false
|
|
4765
|
+
},
|
|
4766
|
+
{
|
|
4767
|
+
id: "vibe-game-remix-lab-m1-explanation",
|
|
4768
|
+
goalIds: ["vibe-game-remix-lab-m1-bounded-remix"],
|
|
4769
|
+
kind: "learner-explanation",
|
|
4770
|
+
retention: "attempt",
|
|
4771
|
+
containsPersonalData: false
|
|
4772
|
+
}
|
|
4773
|
+
],
|
|
4774
|
+
sideAdventures: [
|
|
4775
|
+
{
|
|
4776
|
+
id: "vibe-game-remix-lab-m1-inventor",
|
|
4777
|
+
prompt: "Write a new bounded remix intent card with one permitted setting, one constraint and one success test.",
|
|
4778
|
+
completionRequired: false
|
|
4779
|
+
}
|
|
4780
|
+
],
|
|
4781
|
+
rewardBindings: [
|
|
4782
|
+
{
|
|
4783
|
+
id: "vibe-game-remix-lab-m1-badge",
|
|
4784
|
+
badgeId: "vibe-game-remix-lab-mission-complete",
|
|
4785
|
+
goalIds: [
|
|
4786
|
+
"vibe-game-remix-lab-m1-starts",
|
|
4787
|
+
"vibe-game-remix-lab-m1-bounded-remix",
|
|
4788
|
+
"vibe-game-remix-lab-m1-private-runtime"
|
|
4789
|
+
],
|
|
4790
|
+
deterministic: true,
|
|
4791
|
+
random: false,
|
|
4792
|
+
tokenConvertible: false
|
|
4793
|
+
}
|
|
4794
|
+
],
|
|
4795
|
+
functionReference: [
|
|
4796
|
+
{
|
|
4797
|
+
id: "vibe-game-remix-lab-function-speed",
|
|
4798
|
+
signature: "setRescueSpeed(speed)",
|
|
4799
|
+
summary: "Sets the supplied rescue robot's bounded movement speed.",
|
|
4800
|
+
parameters: [{ name: "speed", type: "whole number", description: "A safe speed from 1 to 5." }],
|
|
4801
|
+
effect: "Changes only the private mini-game simulation speed.",
|
|
4802
|
+
example: "setRescueSpeed(3);"
|
|
4803
|
+
},
|
|
4804
|
+
{
|
|
4805
|
+
id: "vibe-game-remix-lab-function-spacing",
|
|
4806
|
+
signature: "setGateSpacing(spacing)",
|
|
4807
|
+
summary: "Sets the gap between original rescue gates.",
|
|
4808
|
+
parameters: [{ name: "spacing", type: "whole number", description: "A bounded spacing from 2 to 6." }],
|
|
4809
|
+
effect: "Changes only the generated gate layout in the private preview.",
|
|
4810
|
+
example: "setGateSpacing(4);"
|
|
4811
|
+
},
|
|
4812
|
+
{
|
|
4813
|
+
id: "vibe-game-remix-lab-function-goals",
|
|
4814
|
+
signature: "setGoalCount(count)",
|
|
4815
|
+
summary: "Chooses how many fictional rescue goals the round contains.",
|
|
4816
|
+
parameters: [{ name: "count", type: "whole number", description: "A bounded goal count from 1 to 4." }],
|
|
4817
|
+
effect: "Changes the labelled rescue-goal count without network or account access.",
|
|
4818
|
+
example: "setGoalCount(3);"
|
|
4819
|
+
}
|
|
4820
|
+
],
|
|
4821
|
+
boundedSuggestion: {
|
|
4822
|
+
id: "vibe-game-remix-lab-m1-authored-goal-diff",
|
|
4823
|
+
source: "authored-fallback",
|
|
4824
|
+
intent: "Make the round contain one more rescue goal.",
|
|
4825
|
+
constraints: [
|
|
4826
|
+
"Change exactly one documented setting.",
|
|
4827
|
+
"Keep the goal count inside the published range.",
|
|
4828
|
+
"Do not add network, storage, DOM or account access."
|
|
4829
|
+
],
|
|
4830
|
+
permittedArtifactId: "vibe-game-remix-lab-m1-code",
|
|
4831
|
+
originalSnippet: "setGoalCount(2);",
|
|
4832
|
+
replacementSnippet: "setGoalCount(3);",
|
|
4833
|
+
explanationPrompt: "Did the new goal count match your prediction, and which assessment evidence proves it?",
|
|
4834
|
+
aiOptional: false,
|
|
4835
|
+
learnerApprovalRequired: true,
|
|
4836
|
+
alternatives: ["accept", "reject"]
|
|
4837
|
+
}
|
|
4838
|
+
},
|
|
4839
|
+
facilitator: {
|
|
4840
|
+
artifacts: [
|
|
4841
|
+
{
|
|
4842
|
+
id: "vibe-game-remix-lab-m1-answer-key",
|
|
4843
|
+
kind: "answer-key",
|
|
4844
|
+
audience: "facilitator",
|
|
4845
|
+
solutionBearing: true
|
|
4846
|
+
},
|
|
4847
|
+
{
|
|
4848
|
+
id: "vibe-game-remix-lab-m1-protected-tests",
|
|
4849
|
+
kind: "protected-test",
|
|
4850
|
+
audience: "facilitator",
|
|
4851
|
+
solutionBearing: true
|
|
4852
|
+
},
|
|
4853
|
+
{
|
|
4854
|
+
id: "vibe-game-remix-lab-m1-safety-notes",
|
|
4855
|
+
kind: "facilitator-note",
|
|
4856
|
+
audience: "facilitator",
|
|
4857
|
+
solutionBearing: true
|
|
4858
|
+
}
|
|
4859
|
+
],
|
|
4860
|
+
protectedGoals: [
|
|
4861
|
+
{
|
|
4862
|
+
id: "vibe-game-remix-lab-m1-protected-resilience",
|
|
4863
|
+
statement: "The sandbox rejects prompt injection, answer dumping, disallowed files, network access and changes outside the approved diff.",
|
|
4864
|
+
visibility: "protected",
|
|
4865
|
+
criterionIds: ["vibe-game-remix-lab-edge-one", "vibe-game-remix-lab-edge-two"],
|
|
4866
|
+
completionRequired: false,
|
|
4867
|
+
aiRequired: false
|
|
4868
|
+
}
|
|
4869
|
+
],
|
|
4870
|
+
prompts: [
|
|
4871
|
+
"Ask for the learner's prediction before revealing the authored diff.",
|
|
4872
|
+
"Do not invite free-form chat; keep intent, evidence and suggestions bound to the current project, rubric and permitted artifact.",
|
|
4873
|
+
"A rejection must leave source unchanged, and AI/provider failure must never block deterministic completion."
|
|
4874
|
+
]
|
|
4875
|
+
}
|
|
4876
|
+
};
|
|
4877
|
+
var VIBE_BUG_DETECTIVE_MISSION_ONE_AUTHORING_V1 = {
|
|
4878
|
+
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
4879
|
+
moduleId: "junior-coder.vibe-bug-detective",
|
|
4880
|
+
moduleVersion: "1.1.0",
|
|
4881
|
+
missionId: "vibe-bug-detective-mission-1",
|
|
4882
|
+
learner: {
|
|
4883
|
+
estimatedMinutes: 20,
|
|
4884
|
+
stages: [
|
|
4885
|
+
{
|
|
4886
|
+
kind: "learn",
|
|
4887
|
+
instruction: "Read how setRobotDirection(), setRobotSteps() and placeRescueBeacon() control the supplied mini-game.",
|
|
4888
|
+
artifactIds: ["vibe-bug-detective-m1-guide"]
|
|
4889
|
+
},
|
|
4890
|
+
{
|
|
4891
|
+
kind: "predict",
|
|
4892
|
+
instruction: "Predict why the robot moves away from the beacon before viewing the one-line repair.",
|
|
4893
|
+
artifactIds: ["vibe-bug-detective-m1-evidence-card"]
|
|
4894
|
+
},
|
|
4895
|
+
{
|
|
4896
|
+
kind: "build",
|
|
4897
|
+
instruction: "Open the intentionally broken mini-game without changing files outside its documented settings artifact.",
|
|
4898
|
+
artifactIds: ["vibe-bug-detective-m1-code"]
|
|
4899
|
+
},
|
|
4900
|
+
{
|
|
4901
|
+
kind: "run",
|
|
4902
|
+
instruction: "Use the Run action button to reproduce the bug in the private JavaScript preview.",
|
|
4903
|
+
artifactIds: ["vibe-bug-detective-m1-code"]
|
|
4904
|
+
},
|
|
4905
|
+
{
|
|
4906
|
+
kind: "assess",
|
|
4907
|
+
instruction: "Run deterministic checks to collect failure evidence before reviewing any suggested fix.",
|
|
4908
|
+
artifactIds: []
|
|
4909
|
+
},
|
|
4910
|
+
{
|
|
4911
|
+
kind: "inspect",
|
|
4912
|
+
instruction: "Compare observed leftward movement with the expected right-side beacon goal and the single authored diff.",
|
|
4913
|
+
artifactIds: ["vibe-bug-detective-m1-code"]
|
|
4914
|
+
},
|
|
4915
|
+
{
|
|
4916
|
+
kind: "fix",
|
|
4917
|
+
instruction: "Accept or reject the exact direction repair yourself, then rerun every regression check.",
|
|
4918
|
+
artifactIds: ["vibe-bug-detective-m1-code"]
|
|
4919
|
+
},
|
|
4920
|
+
{
|
|
4921
|
+
kind: "explain",
|
|
4922
|
+
instruction: "Explain which evidence identified the bug and why the minimal change fixed it without changing other behaviour.",
|
|
4923
|
+
artifactIds: []
|
|
4924
|
+
},
|
|
4925
|
+
{
|
|
4926
|
+
kind: "reward",
|
|
4927
|
+
instruction: "Collect the evidence-bound badge after the deterministic score reaches 80 and every safety check passes.",
|
|
4928
|
+
artifactIds: []
|
|
4929
|
+
}
|
|
4930
|
+
],
|
|
4931
|
+
readinessChecks: [
|
|
4932
|
+
{
|
|
4933
|
+
id: "vibe-bug-detective-m1-read-evidence",
|
|
4934
|
+
prompt: "Point to the observed direction and the beacon position before choosing a repair.",
|
|
4935
|
+
scored: false
|
|
4936
|
+
}
|
|
4937
|
+
],
|
|
4938
|
+
artifacts: [
|
|
4939
|
+
{
|
|
4940
|
+
id: "vibe-bug-detective-m1-code",
|
|
4941
|
+
kind: "starter-code",
|
|
4942
|
+
audience: "learner",
|
|
4943
|
+
solutionBearing: false
|
|
4944
|
+
},
|
|
4945
|
+
{
|
|
4946
|
+
id: "vibe-bug-detective-m1-guide",
|
|
4947
|
+
kind: "starter-assets",
|
|
4948
|
+
audience: "learner",
|
|
4949
|
+
solutionBearing: false
|
|
4950
|
+
},
|
|
4951
|
+
{
|
|
4952
|
+
id: "vibe-bug-detective-m1-evidence-card",
|
|
4953
|
+
kind: "printable",
|
|
4954
|
+
audience: "learner",
|
|
4955
|
+
solutionBearing: false
|
|
4956
|
+
}
|
|
4957
|
+
],
|
|
4958
|
+
goals: [
|
|
4959
|
+
{
|
|
4960
|
+
id: "vibe-bug-detective-m1-starts",
|
|
4961
|
+
statement: "The intentionally broken JavaScript mini-game remains structurally valid and starts.",
|
|
4962
|
+
visibility: "visible",
|
|
4963
|
+
criterionIds: ["vibe-bug-detective-build"],
|
|
4964
|
+
completionRequired: true,
|
|
4965
|
+
aiRequired: false
|
|
4966
|
+
},
|
|
4967
|
+
{
|
|
4968
|
+
id: "vibe-bug-detective-m1-repair",
|
|
4969
|
+
statement: "The robot travels three steps toward the right-side rescue beacon after one minimal direction repair.",
|
|
4970
|
+
visibility: "visible",
|
|
4971
|
+
criterionIds: [
|
|
4972
|
+
"vibe-bug-detective-goal-one",
|
|
4973
|
+
"vibe-bug-detective-goal-two",
|
|
4974
|
+
"vibe-bug-detective-goal-three"
|
|
4975
|
+
],
|
|
4976
|
+
completionRequired: true,
|
|
4977
|
+
aiRequired: false
|
|
4978
|
+
},
|
|
4979
|
+
{
|
|
4980
|
+
id: "vibe-bug-detective-m1-regression-safety",
|
|
4981
|
+
statement: "The repair preserves the bounded step and beacon settings inside the private sandbox.",
|
|
4982
|
+
visibility: "visible",
|
|
4983
|
+
criterionIds: ["vibe-bug-detective-safety"],
|
|
4984
|
+
completionRequired: true,
|
|
4985
|
+
aiRequired: false
|
|
4986
|
+
}
|
|
4987
|
+
],
|
|
4988
|
+
interactions: [
|
|
4989
|
+
{
|
|
4990
|
+
id: "vibe-bug-detective-m1-run-control",
|
|
4991
|
+
description: "Reproduce the supplied mini-game bug in the private preview.",
|
|
4992
|
+
primaryMode: "pointer",
|
|
4993
|
+
alternativeIds: ["vibe-bug-detective-m1-keyboard-run"]
|
|
4994
|
+
},
|
|
4995
|
+
{
|
|
4996
|
+
id: "vibe-bug-detective-m1-diff-review",
|
|
4997
|
+
description: "Read the labelled removed and added direction lines beside the assessment evidence.",
|
|
4998
|
+
primaryMode: "text",
|
|
4999
|
+
alternativeIds: []
|
|
5000
|
+
},
|
|
5001
|
+
{
|
|
5002
|
+
id: "vibe-bug-detective-m1-accept-control",
|
|
5003
|
+
description: "Approve the exact immutable repair snapshot.",
|
|
5004
|
+
primaryMode: "pointer",
|
|
5005
|
+
alternativeIds: ["vibe-bug-detective-m1-keyboard-review"]
|
|
5006
|
+
},
|
|
5007
|
+
{
|
|
5008
|
+
id: "vibe-bug-detective-m1-reject-control",
|
|
5009
|
+
description: "Reject the repair and preserve the current broken source.",
|
|
5010
|
+
primaryMode: "pointer",
|
|
5011
|
+
alternativeIds: ["vibe-bug-detective-m1-keyboard-review"]
|
|
5012
|
+
}
|
|
5013
|
+
],
|
|
5014
|
+
accessibilityAlternatives: [
|
|
5015
|
+
{
|
|
5016
|
+
id: "vibe-bug-detective-m1-keyboard-run",
|
|
5017
|
+
modes: ["keyboard"],
|
|
5018
|
+
equivalentOutcome: true,
|
|
5019
|
+
description: "Press Enter or Space on the play-icon Run button to reproduce the same bug."
|
|
5020
|
+
},
|
|
5021
|
+
{
|
|
5022
|
+
id: "vibe-bug-detective-m1-keyboard-review",
|
|
5023
|
+
modes: ["keyboard", "text", "reduced-motion"],
|
|
5024
|
+
equivalentOutcome: true,
|
|
5025
|
+
description: "Read the text evidence and labelled diff, then focus Accept or Reject and press Enter or Space."
|
|
5026
|
+
}
|
|
5027
|
+
],
|
|
5028
|
+
evidenceRequirements: [
|
|
5029
|
+
{
|
|
5030
|
+
id: "vibe-bug-detective-m1-assessment",
|
|
5031
|
+
goalIds: [
|
|
5032
|
+
"vibe-bug-detective-m1-starts",
|
|
5033
|
+
"vibe-bug-detective-m1-repair",
|
|
5034
|
+
"vibe-bug-detective-m1-regression-safety"
|
|
5035
|
+
],
|
|
5036
|
+
kind: "assessment-result",
|
|
5037
|
+
retention: "entitlement",
|
|
5038
|
+
containsPersonalData: false
|
|
5039
|
+
},
|
|
5040
|
+
{
|
|
5041
|
+
id: "vibe-bug-detective-m1-explanation",
|
|
5042
|
+
goalIds: ["vibe-bug-detective-m1-repair"],
|
|
5043
|
+
kind: "learner-explanation",
|
|
5044
|
+
retention: "attempt",
|
|
5045
|
+
containsPersonalData: false
|
|
5046
|
+
}
|
|
5047
|
+
],
|
|
5048
|
+
sideAdventures: [
|
|
5049
|
+
{
|
|
5050
|
+
id: "vibe-bug-detective-m1-regression-inventor",
|
|
5051
|
+
prompt: "Invent one extra regression test that proves the robot still stops at the rescue beacon.",
|
|
5052
|
+
completionRequired: false
|
|
5053
|
+
}
|
|
5054
|
+
],
|
|
5055
|
+
rewardBindings: [
|
|
5056
|
+
{
|
|
5057
|
+
id: "vibe-bug-detective-m1-badge",
|
|
5058
|
+
badgeId: "vibe-bug-detective-mission-complete",
|
|
5059
|
+
goalIds: [
|
|
5060
|
+
"vibe-bug-detective-m1-starts",
|
|
5061
|
+
"vibe-bug-detective-m1-repair",
|
|
5062
|
+
"vibe-bug-detective-m1-regression-safety"
|
|
5063
|
+
],
|
|
5064
|
+
deterministic: true,
|
|
5065
|
+
random: false,
|
|
5066
|
+
tokenConvertible: false
|
|
5067
|
+
}
|
|
5068
|
+
],
|
|
5069
|
+
functionReference: [
|
|
5070
|
+
{
|
|
5071
|
+
id: "vibe-bug-detective-function-direction",
|
|
5072
|
+
signature: "setRobotDirection(direction)",
|
|
5073
|
+
summary: "Chooses the horizontal direction used by the supplied rescue robot.",
|
|
5074
|
+
parameters: [{ name: "direction", type: "text", description: "Use left or right." }],
|
|
5075
|
+
effect: "Changes only the labelled movement direction in the private mini-game.",
|
|
5076
|
+
example: 'setRobotDirection("right");'
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
id: "vibe-bug-detective-function-steps",
|
|
5080
|
+
signature: "setRobotSteps(count)",
|
|
5081
|
+
summary: "Chooses how many bounded grid steps the robot attempts.",
|
|
5082
|
+
parameters: [{ name: "count", type: "whole number", description: "A bounded count from 1 to 4." }],
|
|
5083
|
+
effect: "Changes the private preview path length without controlling physical hardware.",
|
|
5084
|
+
example: "setRobotSteps(3);"
|
|
5085
|
+
},
|
|
5086
|
+
{
|
|
5087
|
+
id: "vibe-bug-detective-function-beacon",
|
|
5088
|
+
signature: "placeRescueBeacon(position)",
|
|
5089
|
+
summary: "Places the fictional rescue beacon on one labelled side.",
|
|
5090
|
+
parameters: [{ name: "position", type: "text", description: "Use left or right." }],
|
|
5091
|
+
effect: "Changes only the fictional beacon position in the private preview.",
|
|
5092
|
+
example: 'placeRescueBeacon("right");'
|
|
5093
|
+
}
|
|
5094
|
+
],
|
|
5095
|
+
boundedSuggestion: {
|
|
5096
|
+
id: "vibe-bug-detective-m1-authored-direction-repair",
|
|
5097
|
+
source: "authored-fallback",
|
|
5098
|
+
intent: "Make the robot move toward the right-side rescue beacon.",
|
|
5099
|
+
constraints: [
|
|
5100
|
+
"Change exactly one documented direction setting.",
|
|
5101
|
+
"Preserve the step count and beacon position.",
|
|
5102
|
+
"Do not add network, storage, DOM, account or physical hardware access."
|
|
5103
|
+
],
|
|
5104
|
+
permittedArtifactId: "vibe-bug-detective-m1-code",
|
|
5105
|
+
originalSnippet: 'setRobotDirection("left");',
|
|
5106
|
+
replacementSnippet: 'setRobotDirection("right");',
|
|
5107
|
+
explanationPrompt: "Which observed-versus-expected evidence identified the direction bug, and which regression result proves the repair?",
|
|
5108
|
+
aiOptional: false,
|
|
5109
|
+
learnerApprovalRequired: true,
|
|
5110
|
+
alternatives: ["accept", "reject"]
|
|
5111
|
+
}
|
|
5112
|
+
},
|
|
5113
|
+
facilitator: {
|
|
5114
|
+
artifacts: [
|
|
5115
|
+
{
|
|
5116
|
+
id: "vibe-bug-detective-m1-answer-key",
|
|
5117
|
+
kind: "answer-key",
|
|
5118
|
+
audience: "facilitator",
|
|
5119
|
+
solutionBearing: true
|
|
5120
|
+
},
|
|
5121
|
+
{
|
|
5122
|
+
id: "vibe-bug-detective-m1-protected-tests",
|
|
5123
|
+
kind: "protected-test",
|
|
5124
|
+
audience: "facilitator",
|
|
5125
|
+
solutionBearing: true
|
|
5126
|
+
},
|
|
5127
|
+
{
|
|
5128
|
+
id: "vibe-bug-detective-m1-safety-notes",
|
|
5129
|
+
kind: "facilitator-note",
|
|
5130
|
+
audience: "facilitator",
|
|
5131
|
+
solutionBearing: true
|
|
5132
|
+
}
|
|
5133
|
+
],
|
|
5134
|
+
protectedGoals: [
|
|
5135
|
+
{
|
|
5136
|
+
id: "vibe-bug-detective-m1-protected-regressions",
|
|
5137
|
+
statement: "The repaired sandbox rejects extra statements, disallowed values, prompt injection, answer dumping, network access and changes outside the approved diff.",
|
|
5138
|
+
visibility: "protected",
|
|
5139
|
+
criterionIds: ["vibe-bug-detective-edge-one", "vibe-bug-detective-edge-two"],
|
|
5140
|
+
completionRequired: false,
|
|
5141
|
+
aiRequired: false
|
|
5142
|
+
}
|
|
5143
|
+
],
|
|
5144
|
+
prompts: [
|
|
5145
|
+
"Ask the learner to describe observed and expected directions before revealing the authored repair.",
|
|
5146
|
+
"Keep every diagnostic choice tied to the current failing goal and permitted artifact; never invite free-form chat.",
|
|
5147
|
+
"A rejection must preserve the broken source, and AI/provider failure must never block deterministic repair or regression checks."
|
|
5148
|
+
]
|
|
5149
|
+
}
|
|
5150
|
+
};
|
|
4590
5151
|
var ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1 = {
|
|
4591
5152
|
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
4592
5153
|
moduleId: "junior-coder.road-hopper-rally",
|
|
@@ -4954,6 +5515,8 @@ export {
|
|
|
4954
5515
|
SERVO_CREATURE_MISSION_ONE_AUTHORING_V1,
|
|
4955
5516
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|
|
4956
5517
|
STAR_DEFENDER_SQUADRON_MISSION_ONE_AUTHORING_V1,
|
|
5518
|
+
VIBE_BUG_DETECTIVE_MISSION_ONE_AUTHORING_V1,
|
|
5519
|
+
VIBE_GAME_REMIX_LAB_MISSION_ONE_AUTHORING_V1,
|
|
4957
5520
|
assertValidLearningPath,
|
|
4958
5521
|
assertValidMissionAuthoringBundle,
|
|
4959
5522
|
calculateAssessment,
|