@plasius/learning 0.2.12 → 0.2.14
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 +29 -1
- package/dist/index.cjs +649 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -2
- package/dist/index.d.ts +24 -2
- package/dist/index.js +647 -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) {
|
|
@@ -3783,6 +3796,364 @@ var OBSTACLE_EXPLORER_MISSION_ONE_AUTHORING_V1 = {
|
|
|
3783
3796
|
}
|
|
3784
3797
|
}
|
|
3785
3798
|
};
|
|
3799
|
+
var RAINBOW_RESCUE_ROVER_MISSION_ONE_AUTHORING_V1 = {
|
|
3800
|
+
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
3801
|
+
moduleId: "junior-coder.rainbow-rescue-rover",
|
|
3802
|
+
moduleVersion: "1.1.0",
|
|
3803
|
+
missionId: "rainbow-rescue-rover-mission-1",
|
|
3804
|
+
learner: {
|
|
3805
|
+
estimatedMinutes: 20,
|
|
3806
|
+
stages: [
|
|
3807
|
+
{
|
|
3808
|
+
kind: "learn",
|
|
3809
|
+
instruction: "Read what detectColour(), locateTarget(), planSerialCommand(), armHeartbeat() and failSafeStop() do in the private Rainbow Rescue Rover simulator.",
|
|
3810
|
+
artifactIds: ["rainbow-rescue-rover-m1-art"]
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
kind: "predict",
|
|
3814
|
+
instruction: "Predict the simulated colour, target zone, bounded command, heartbeat time and final stopped state before the rescue plan runs.",
|
|
3815
|
+
artifactIds: []
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
kind: "build",
|
|
3819
|
+
instruction: "Adjust the five documented integration calls to recognise one simulated target and plan one safe serial command with a heartbeat and fail-safe stop.",
|
|
3820
|
+
artifactIds: ["rainbow-rescue-rover-m1-code"]
|
|
3821
|
+
},
|
|
3822
|
+
{
|
|
3823
|
+
kind: "run",
|
|
3824
|
+
instruction: "Use the Run action button to start the private Rainbow Rescue Rover integration simulator.",
|
|
3825
|
+
artifactIds: ["rainbow-rescue-rover-m1-code"]
|
|
3826
|
+
},
|
|
3827
|
+
{
|
|
3828
|
+
kind: "assess",
|
|
3829
|
+
instruction: "Run the visible and protected deterministic colour, location, command, heartbeat and stop checks.",
|
|
3830
|
+
artifactIds: []
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
kind: "inspect",
|
|
3834
|
+
instruction: "Compare the highlighted integration-plan line with the first rescue goal that did not pass.",
|
|
3835
|
+
artifactIds: []
|
|
3836
|
+
},
|
|
3837
|
+
{
|
|
3838
|
+
kind: "fix",
|
|
3839
|
+
instruction: "Change one bounded colour, target zone, command, heartbeat or stop call, then rerun and inspect the text telemetry.",
|
|
3840
|
+
artifactIds: ["rainbow-rescue-rover-m1-code"]
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
kind: "explain",
|
|
3844
|
+
instruction: "Explain how family-local colour evidence became a bounded command plan and why the heartbeat and fail-safe stop protect every uncertain state.",
|
|
3845
|
+
artifactIds: []
|
|
3846
|
+
},
|
|
3847
|
+
{
|
|
3848
|
+
kind: "reward",
|
|
3849
|
+
instruction: "Collect the simulated badge when the score and mandatory privacy and safety checks pass; physical completion remains adult-only.",
|
|
3850
|
+
artifactIds: []
|
|
3851
|
+
}
|
|
3852
|
+
],
|
|
3853
|
+
readinessChecks: [
|
|
3854
|
+
{
|
|
3855
|
+
id: "rainbow-rescue-rover-m1-find-privacy",
|
|
3856
|
+
prompt: "Find the rule that keeps Camera Module 3 frames on the family Raspberry Pi and explain why only bounded command labels may leave it.",
|
|
3857
|
+
scored: false
|
|
3858
|
+
}
|
|
3859
|
+
],
|
|
3860
|
+
artifacts: [
|
|
3861
|
+
{
|
|
3862
|
+
id: "rainbow-rescue-rover-m1-code",
|
|
3863
|
+
kind: "starter-code",
|
|
3864
|
+
audience: "learner",
|
|
3865
|
+
solutionBearing: false
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
id: "rainbow-rescue-rover-m1-art",
|
|
3869
|
+
kind: "starter-assets",
|
|
3870
|
+
audience: "learner",
|
|
3871
|
+
solutionBearing: false
|
|
3872
|
+
},
|
|
3873
|
+
{
|
|
3874
|
+
id: "rainbow-rescue-rover-m1-printable",
|
|
3875
|
+
kind: "printable",
|
|
3876
|
+
audience: "learner",
|
|
3877
|
+
solutionBearing: false
|
|
3878
|
+
}
|
|
3879
|
+
],
|
|
3880
|
+
goals: [
|
|
3881
|
+
{
|
|
3882
|
+
id: "rainbow-rescue-rover-m1-starts",
|
|
3883
|
+
statement: "The documented integration-plan settings are valid and the private simulator starts.",
|
|
3884
|
+
visibility: "visible",
|
|
3885
|
+
criterionIds: ["rainbow-rescue-rover-build"],
|
|
3886
|
+
completionRequired: true,
|
|
3887
|
+
aiRequired: false
|
|
3888
|
+
},
|
|
3889
|
+
{
|
|
3890
|
+
id: "rainbow-rescue-rover-m1-target-command",
|
|
3891
|
+
statement: "The rover plan recognises a green simulated target in the centre and selects one bounded forward command.",
|
|
3892
|
+
visibility: "visible",
|
|
3893
|
+
criterionIds: ["rainbow-rescue-rover-goal-one", "rainbow-rescue-rover-goal-two"],
|
|
3894
|
+
completionRequired: true,
|
|
3895
|
+
aiRequired: false
|
|
3896
|
+
},
|
|
3897
|
+
{
|
|
3898
|
+
id: "rainbow-rescue-rover-m1-private-runtime",
|
|
3899
|
+
statement: "The plan arms a heartbeat, ends fail-safe stopped and never accesses a camera, serial port, motor, network or browser storage.",
|
|
3900
|
+
visibility: "visible",
|
|
3901
|
+
criterionIds: ["rainbow-rescue-rover-safety"],
|
|
3902
|
+
completionRequired: true,
|
|
3903
|
+
aiRequired: false
|
|
3904
|
+
}
|
|
3905
|
+
],
|
|
3906
|
+
interactions: [
|
|
3907
|
+
{
|
|
3908
|
+
id: "rainbow-rescue-rover-m1-run-control",
|
|
3909
|
+
description: "Start the private Rainbow Rescue Rover integration simulation.",
|
|
3910
|
+
primaryMode: "pointer",
|
|
3911
|
+
alternativeIds: ["rainbow-rescue-rover-m1-keyboard-run"]
|
|
3912
|
+
},
|
|
3913
|
+
{
|
|
3914
|
+
id: "rainbow-rescue-rover-m1-code-control",
|
|
3915
|
+
description: "Edit the documented colour, target, command, heartbeat and stop calls.",
|
|
3916
|
+
primaryMode: "keyboard",
|
|
3917
|
+
alternativeIds: []
|
|
3918
|
+
},
|
|
3919
|
+
{
|
|
3920
|
+
id: "rainbow-rescue-rover-m1-target-preview",
|
|
3921
|
+
description: "Observe the simulated colour target, command route and stopped state.",
|
|
3922
|
+
primaryMode: "colour",
|
|
3923
|
+
alternativeIds: ["rainbow-rescue-rover-m1-telemetry"]
|
|
3924
|
+
}
|
|
3925
|
+
],
|
|
3926
|
+
accessibilityAlternatives: [
|
|
3927
|
+
{
|
|
3928
|
+
id: "rainbow-rescue-rover-m1-keyboard-run",
|
|
3929
|
+
modes: ["keyboard"],
|
|
3930
|
+
equivalentOutcome: true,
|
|
3931
|
+
description: "Press Enter or Space on the play-icon Run button to start the same simulator."
|
|
3932
|
+
},
|
|
3933
|
+
{
|
|
3934
|
+
id: "rainbow-rescue-rover-m1-telemetry",
|
|
3935
|
+
modes: ["text", "shape", "symbol", "reduced-motion"],
|
|
3936
|
+
equivalentOutcome: true,
|
|
3937
|
+
description: "Read the colour name, target zone, command, heartbeat milliseconds and stopped state without camera access, animation or colour alone."
|
|
3938
|
+
}
|
|
3939
|
+
],
|
|
3940
|
+
evidenceRequirements: [
|
|
3941
|
+
{
|
|
3942
|
+
id: "rainbow-rescue-rover-m1-assessment",
|
|
3943
|
+
goalIds: [
|
|
3944
|
+
"rainbow-rescue-rover-m1-starts",
|
|
3945
|
+
"rainbow-rescue-rover-m1-target-command",
|
|
3946
|
+
"rainbow-rescue-rover-m1-private-runtime"
|
|
3947
|
+
],
|
|
3948
|
+
kind: "assessment-result",
|
|
3949
|
+
retention: "entitlement",
|
|
3950
|
+
containsPersonalData: false
|
|
3951
|
+
},
|
|
3952
|
+
{
|
|
3953
|
+
id: "rainbow-rescue-rover-m1-explanation",
|
|
3954
|
+
goalIds: ["rainbow-rescue-rover-m1-target-command"],
|
|
3955
|
+
kind: "learner-explanation",
|
|
3956
|
+
retention: "attempt",
|
|
3957
|
+
containsPersonalData: false
|
|
3958
|
+
}
|
|
3959
|
+
],
|
|
3960
|
+
sideAdventures: [
|
|
3961
|
+
{
|
|
3962
|
+
id: "rainbow-rescue-rover-m1-remix",
|
|
3963
|
+
prompt: "Invent an original colour rescue rule and add a text, shape or symbol cue that explains the command without camera frames, motion or colour alone.",
|
|
3964
|
+
completionRequired: false
|
|
3965
|
+
}
|
|
3966
|
+
],
|
|
3967
|
+
rewardBindings: [
|
|
3968
|
+
{
|
|
3969
|
+
id: "rainbow-rescue-rover-m1-simulated-badge",
|
|
3970
|
+
badgeId: "rainbow-rescue-rover-mission-complete",
|
|
3971
|
+
goalIds: [
|
|
3972
|
+
"rainbow-rescue-rover-m1-starts",
|
|
3973
|
+
"rainbow-rescue-rover-m1-target-command",
|
|
3974
|
+
"rainbow-rescue-rover-m1-private-runtime"
|
|
3975
|
+
],
|
|
3976
|
+
deterministic: true,
|
|
3977
|
+
random: false,
|
|
3978
|
+
tokenConvertible: false
|
|
3979
|
+
}
|
|
3980
|
+
],
|
|
3981
|
+
functionReference: [
|
|
3982
|
+
{
|
|
3983
|
+
id: "rainbow-rescue-rover-function-detect",
|
|
3984
|
+
signature: "detectColour(colour)",
|
|
3985
|
+
summary: "Selects one labelled colour result in the private simulator.",
|
|
3986
|
+
parameters: [
|
|
3987
|
+
{
|
|
3988
|
+
name: "colour",
|
|
3989
|
+
type: "string",
|
|
3990
|
+
description: "Use red, green, blue or yellow."
|
|
3991
|
+
}
|
|
3992
|
+
],
|
|
3993
|
+
effect: "Returns one simulator colour label and confidence state; it never opens a camera or receives a frame.",
|
|
3994
|
+
example: 'detectColour("green");'
|
|
3995
|
+
},
|
|
3996
|
+
{
|
|
3997
|
+
id: "rainbow-rescue-rover-function-locate",
|
|
3998
|
+
signature: "locateTarget(zone)",
|
|
3999
|
+
summary: "Places the simulated target in one labelled horizontal zone.",
|
|
4000
|
+
parameters: [
|
|
4001
|
+
{
|
|
4002
|
+
name: "zone",
|
|
4003
|
+
type: "string",
|
|
4004
|
+
description: "Use left, centre or right."
|
|
4005
|
+
}
|
|
4006
|
+
],
|
|
4007
|
+
effect: "Updates text, shape and coordinate cues in the simulator without analysing or storing an image.",
|
|
4008
|
+
example: 'locateTarget("centre");'
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
id: "rainbow-rescue-rover-function-command",
|
|
4012
|
+
signature: "planSerialCommand(command)",
|
|
4013
|
+
summary: "Plans one bounded command label for the simulated rover link.",
|
|
4014
|
+
parameters: [
|
|
4015
|
+
{
|
|
4016
|
+
name: "command",
|
|
4017
|
+
type: "string",
|
|
4018
|
+
description: "Use forward, turn-left, turn-right or stop."
|
|
4019
|
+
}
|
|
4020
|
+
],
|
|
4021
|
+
effect: "Records a simulator-only command label; it never opens a serial port or activates motors.",
|
|
4022
|
+
example: 'planSerialCommand("forward");'
|
|
4023
|
+
},
|
|
4024
|
+
{
|
|
4025
|
+
id: "rainbow-rescue-rover-function-heartbeat",
|
|
4026
|
+
signature: "armHeartbeat(duration)",
|
|
4027
|
+
summary: "Arms a bounded simulated command heartbeat.",
|
|
4028
|
+
parameters: [
|
|
4029
|
+
{
|
|
4030
|
+
name: "duration",
|
|
4031
|
+
type: "whole number",
|
|
4032
|
+
description: "A bounded heartbeat from 250 to 1000 milliseconds."
|
|
4033
|
+
}
|
|
4034
|
+
],
|
|
4035
|
+
effect: "Records heartbeat telemetry so an uncertain simulator link becomes stopped; it cannot maintain physical movement.",
|
|
4036
|
+
example: "armHeartbeat(500);"
|
|
4037
|
+
},
|
|
4038
|
+
{
|
|
4039
|
+
id: "rainbow-rescue-rover-function-stop",
|
|
4040
|
+
signature: "failSafeStop()",
|
|
4041
|
+
summary: "Ends the integration simulation in a fail-safe stopped state.",
|
|
4042
|
+
parameters: [],
|
|
4043
|
+
effect: "Marks the private simulator stopped after the bounded command plan; it cannot activate, stop or otherwise control physical hardware.",
|
|
4044
|
+
example: "failSafeStop();"
|
|
4045
|
+
}
|
|
4046
|
+
]
|
|
4047
|
+
},
|
|
4048
|
+
facilitator: {
|
|
4049
|
+
artifacts: [
|
|
4050
|
+
{
|
|
4051
|
+
id: "rainbow-rescue-rover-m1-answer-key",
|
|
4052
|
+
kind: "answer-key",
|
|
4053
|
+
audience: "facilitator",
|
|
4054
|
+
solutionBearing: true
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
id: "rainbow-rescue-rover-m1-protected-tests",
|
|
4058
|
+
kind: "protected-test",
|
|
4059
|
+
audience: "facilitator",
|
|
4060
|
+
solutionBearing: true
|
|
4061
|
+
},
|
|
4062
|
+
{
|
|
4063
|
+
id: "rainbow-rescue-rover-m1-adult-hardware-guide",
|
|
4064
|
+
kind: "facilitator-note",
|
|
4065
|
+
audience: "facilitator",
|
|
4066
|
+
solutionBearing: true
|
|
4067
|
+
}
|
|
4068
|
+
],
|
|
4069
|
+
protectedGoals: [
|
|
4070
|
+
{
|
|
4071
|
+
id: "rainbow-rescue-rover-m1-protected-resilience",
|
|
4072
|
+
statement: "The simulator rejects unsupported colours, zones, serial commands, invalid heartbeats, missing stop calls and any camera, serial or physical-hardware request.",
|
|
4073
|
+
visibility: "protected",
|
|
4074
|
+
criterionIds: ["rainbow-rescue-rover-edge-one", "rainbow-rescue-rover-edge-two"],
|
|
4075
|
+
completionRequired: false,
|
|
4076
|
+
aiRequired: false
|
|
4077
|
+
}
|
|
4078
|
+
],
|
|
4079
|
+
prompts: [
|
|
4080
|
+
"Ask the learner to predict the labelled target, bounded command and final stopped state before suggesting one change.",
|
|
4081
|
+
"Use only authored function guidance and simulator telemetry; never request camera frames or give learner wiring, power or motor-control advice.",
|
|
4082
|
+
"Physical export stays unavailable until an adult acknowledges the exact manifest and every camera, computer, serial, rover and power component has bench-test evidence."
|
|
4083
|
+
]
|
|
4084
|
+
},
|
|
4085
|
+
hardware: {
|
|
4086
|
+
requirementsVersion: "1.0.0",
|
|
4087
|
+
hardwareIncluded: false,
|
|
4088
|
+
completePathItemIds: [
|
|
4089
|
+
"pico-2-w",
|
|
4090
|
+
"breadboard",
|
|
4091
|
+
"usb-data-cable",
|
|
4092
|
+
"jumper-wires",
|
|
4093
|
+
"verified-explorer",
|
|
4094
|
+
"pi-zero-2-w",
|
|
4095
|
+
"camera-3",
|
|
4096
|
+
"pi-storage-power"
|
|
4097
|
+
],
|
|
4098
|
+
incrementalItemIds: [
|
|
4099
|
+
"verified-explorer",
|
|
4100
|
+
"pi-zero-2-w",
|
|
4101
|
+
"camera-3",
|
|
4102
|
+
"pi-storage-power"
|
|
4103
|
+
],
|
|
4104
|
+
components: [
|
|
4105
|
+
{ itemId: "pico-2-w", quantity: 1, acquisitionScope: "complete-path", verificationStatus: "pending-bench-test", compatibilityClaimed: false, physicalCompletionEligible: false },
|
|
4106
|
+
{ itemId: "breadboard", quantity: 1, acquisitionScope: "complete-path", verificationStatus: "pending-bench-test", compatibilityClaimed: false, physicalCompletionEligible: false },
|
|
4107
|
+
{ itemId: "usb-data-cable", quantity: 1, acquisitionScope: "complete-path", verificationStatus: "pending-bench-test", compatibilityClaimed: false, physicalCompletionEligible: false },
|
|
4108
|
+
{ itemId: "jumper-wires", quantity: 12, acquisitionScope: "complete-path", verificationStatus: "pending-bench-test", compatibilityClaimed: false, physicalCompletionEligible: false },
|
|
4109
|
+
{ itemId: "verified-explorer", quantity: 1, acquisitionScope: "incremental", verificationStatus: "pending-bench-test", compatibilityClaimed: false, physicalCompletionEligible: false },
|
|
4110
|
+
{ itemId: "pi-zero-2-w", quantity: 1, acquisitionScope: "incremental", verificationStatus: "pending-bench-test", compatibilityClaimed: false, physicalCompletionEligible: false },
|
|
4111
|
+
{ itemId: "camera-3", quantity: 1, acquisitionScope: "incremental", verificationStatus: "pending-bench-test", compatibilityClaimed: false, physicalCompletionEligible: false },
|
|
4112
|
+
{ itemId: "pi-storage-power", quantity: 1, acquisitionScope: "incremental", verificationStatus: "pending-bench-test", compatibilityClaimed: false, physicalCompletionEligible: false }
|
|
4113
|
+
],
|
|
4114
|
+
safeguards: {
|
|
4115
|
+
adultAssemblyRequired: true,
|
|
4116
|
+
adultAcknowledgementRequiredForExport: true,
|
|
4117
|
+
websiteMayControlHardware: false,
|
|
4118
|
+
simulatorCompletionAvailable: true,
|
|
4119
|
+
simulatedBadgeId: "rainbow-rescue-rover-mission-complete",
|
|
4120
|
+
physicalBadgeId: "rainbow-rescue-rover-physical-builder",
|
|
4121
|
+
physicalBadgeRequiresAdultSignoff: true,
|
|
4122
|
+
adultAssemblySteps: [
|
|
4123
|
+
"Confirm the exact bench-signed rover, Pi Zero 2 W, Camera Module 3 and correct Zero-series camera ribbon identities against the manifest.",
|
|
4124
|
+
"With all power disconnected, fit and inspect the camera ribbon, storage, Pi power, Pico data link and isolated rover assemblies using the adult guide.",
|
|
4125
|
+
"Complete local colour calibration, bounded serial-command, heartbeat, link-loss and fail-safe-stop tests with the wheels lifted clear of the surface."
|
|
4126
|
+
],
|
|
4127
|
+
powerRequirements: [
|
|
4128
|
+
"Use a separate regulated Raspberry Pi power supply for the Pi Zero 2 W and Camera Module 3.",
|
|
4129
|
+
"Use the verified switched protected motor supply for the rover; never power motors, the Pi Zero 2 W or Camera Module 3 from a Pico GPIO pin.",
|
|
4130
|
+
"Keep every power switch accessible and disconnect every source before changing the camera ribbon, storage, wiring, sensors, wheels or chassis parts."
|
|
4131
|
+
],
|
|
4132
|
+
cableRequirements: [
|
|
4133
|
+
"One known data-capable USB cable compatible with the Pico 2 W and Pi Zero 2 W serial plan.",
|
|
4134
|
+
"The correct Zero-series Camera Module 3 ribbon and adult-verified insulated rover and power connectors."
|
|
4135
|
+
],
|
|
4136
|
+
softwarePrerequisites: [
|
|
4137
|
+
"Current Raspberry Pi OS with supported rpicam and Picamera2 software on the family-owned Pi Zero 2 W.",
|
|
4138
|
+
"Supported Pico SDK toolchain and known-good recovery firmware with adult-owned heartbeat, link-loss and emergency-stop behaviour.",
|
|
4139
|
+
"A family-local colour-calibration utility that never uploads, publishes or transmits Camera Module 3 frames."
|
|
4140
|
+
],
|
|
4141
|
+
warnings: [
|
|
4142
|
+
"Hardware is not included with the module.",
|
|
4143
|
+
"No listed camera, computer, rover, serial or power configuration currently claims compatibility or physical-completion eligibility.",
|
|
4144
|
+
"Camera frames remain on the family Raspberry Pi and must never be submitted to Plasius, an agent service or a published project.",
|
|
4145
|
+
"The website never activates motors, opens a camera or serial port, and an uncertain or missing heartbeat must stop the physical rover.",
|
|
4146
|
+
"Moving wheels, pinch points, stalled motors, camera ribbon damage and unsuitable supplies can cause unsafe movement, heat or damage; adult assembly, calibration and testing are mandatory.",
|
|
4147
|
+
"The simulator and simulated badge remain available without physical equipment."
|
|
4148
|
+
],
|
|
4149
|
+
unrelatedHardwareNotRequired: [
|
|
4150
|
+
"cloud camera, object-recognition or face-recognition services",
|
|
4151
|
+
"microphone, speaker, location or biometric sensors",
|
|
4152
|
+
"public hosting, analytics, advertising or external network access"
|
|
4153
|
+
]
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
};
|
|
3786
4157
|
var RESCUE_CREW_COMMANDER_MISSION_ONE_AUTHORING_V1 = {
|
|
3787
4158
|
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
3788
4159
|
moduleId: "junior-coder.rescue-crew-commander",
|
|
@@ -4229,6 +4600,280 @@ var METEOR_SHIELD_MISSION_ONE_AUTHORING_V1 = {
|
|
|
4229
4600
|
]
|
|
4230
4601
|
}
|
|
4231
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
|
+
};
|
|
4232
4877
|
var ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1 = {
|
|
4233
4878
|
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
4234
4879
|
moduleId: "junior-coder.road-hopper-rally",
|
|
@@ -4589,12 +5234,14 @@ export {
|
|
|
4589
5234
|
OBSTACLE_EXPLORER_MISSION_ONE_AUTHORING_V1,
|
|
4590
5235
|
PADDLE_PULSE_MISSION_ONE_AUTHORING_V1,
|
|
4591
5236
|
PIXEL_TRAIL_CHALLENGE_MISSION_ONE_AUTHORING_V1,
|
|
5237
|
+
RAINBOW_RESCUE_ROVER_MISSION_ONE_AUTHORING_V1,
|
|
4592
5238
|
RESCUE_CREW_COMMANDER_MISSION_ONE_AUTHORING_V1,
|
|
4593
5239
|
ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
|
|
4594
5240
|
ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
|
|
4595
5241
|
SERVO_CREATURE_MISSION_ONE_AUTHORING_V1,
|
|
4596
5242
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|
|
4597
5243
|
STAR_DEFENDER_SQUADRON_MISSION_ONE_AUTHORING_V1,
|
|
5244
|
+
VIBE_GAME_REMIX_LAB_MISSION_ONE_AUTHORING_V1,
|
|
4598
5245
|
assertValidLearningPath,
|
|
4599
5246
|
assertValidMissionAuthoringBundle,
|
|
4600
5247
|
calculateAssessment,
|