1/5 Is Not Bigger Than 1/3: Building an Evidence-First Assistant for Class 5 Fractions

1/5 Is Not Bigger Than 1/3: Building an Evidence-First Assistant for Class 5 Fractions

Code scores the answers, a rules engine weighs the evidence, a tamper-evident log records it, and the teacher decides. Here is how I built ClassBridge AI to show a child's thinking without judging the child.

Community Builder and Browserstack Champion


Code scores the answers, a rules engine weighs the evidence, a tamper-evident log records it, and th


Who this is for. Developers who want to build a decision-support tool where code must decide the facts and a person stays in charge. You need basic Python. Part 3 also assumes you can use the AWS command line.

Where the project stands. The scoring, the rule engine, the evidence ledger and a demo page are built and tested. A throttled copy of the demo runs on AWS with made-up students. The teacher application, sign-in, storage and the model-assisted agents are a design, not working software. The rules and questions are author-reviewed and have not been reviewed by teachers. There are no classroom results.

Try it. Live demo (made-up students only, I may take it down):  https://50vuke92xb.execute-api.us-east-1.amazonaws.com 



The problem

Fractions are a gateway topic. A large US and UK study found that children's knowledge of fractions and division in primary school predicted their algebra and overall maths results in high school five or six years later, even after accounting for other kinds of maths knowledge, general ability, working memory and family background ([Siegler et al., 2012]( https://journals.sagepub.com/doi/10.1177/0956797612440101 )). That is a prediction from data, not proof that fractions cause later results.

A wrong answer on a fractions question is rarely random. In one study of at-risk fourth graders ordering fractions, about 65% of errors came from applying whole-number logic to fractions ([Error patterns in ordering fractions]( https://pmc.ncbi.nlm.nih.gov/articles/PMC5018237/ )). A child who picks 1/5 over 1/3 may be thinking "5 is bigger than 3". A score of 0 out of 1 shows that the answer was wrong, not why.

A teacher marking thirty worksheets can't always see those patterns, and one answer is too little evidence to act on. The risk runs the other way too: a tool that quickly stamps a child with a label would be worse than none.

ClassBridge AI turns a Class 5 student's multiple-choice answers on a fractions form into an evidence summary a teacher can inspect. Code scores the answers. A fixed rules engine looks for the same pattern in at least two independent kinds of question, and sends conflicting answers to the teacher. Every result links back to the exact question and answer. The student appears only as a pseudonymous code, and a name can't be entered.

It does not diagnose children, label them or grade them, and it assigns nothing by itself. A suggested activity needs a teacher's approval, and none of the seven activities is ready yet.




How it works

ClassBridge AI splits the work into three roles: code decides, models explain, the teacher decides.

Figure 2. Who decides what. "Built" parts exist and are tested. "Proposed" parts are a design.


The deterministic half. Four services are plain code, with no model inside. Scoring marks each answer against the answer key and reports the score as an exact fraction. The rule engine looks for answer patterns that match known misconceptions. It needs matching evidence from at least two independent kinds of question, and if another answer in the same assessment conflicts, it sends the case to the teacher. Evidence validation checks that every claim points to a real response. Follow-up selection picks a parallel form for the next assessment. Today, scoring and the rule engine are built and tested, and a tamper-evident ledger records every step. Evidence validation and follow-up selection are designed but not built.

The model half (proposed). A coordinator would delegate to a small set of model-assisted agents. They would do four jobs. One explains a result in plain language. One writes the reason for a suggested activity, choosing only from activities the library already maps to that misconception. One writes the report narrative, where every sentence must cite evidence. One drafts new question wordings, which stay drafts until a person reviews them. If a model is used, it is an Amazon Nova model and nothing else (Part 2.6).

What the model never does. It never scores, never decides whether a misconception is shown, never checks its own evidence and never assigns anything.

That split is the main idea of this article: the model helps with words, and code owns the facts.



Before you start

Parts 1, 2 and 4 run on your machine and cost nothing. Part 3 creates a few small billable AWS resources (a function, an API and a role) and then removes them. Part 5 is a design and runs nothing.
You need
How to check
Python 3.13 (uv can install it for you)
 python3 --version 
uv, a Python package manager
 uv --version 
A browser
any modern one
Part 3 only: AWS CLI v2, configured for an account where you may create a function
 aws sts get-caller-identity 
You don't need Node or model access. The commands are for macOS and Linux. On Windows the Python path is  .venv\Scripts\python.exe  instead of  .venv/bin/python . I haven't tested Windows.

Part 1. Run it locally

1.1 Install and run the tests. All later commands run from the  classbridge-ai  folder.
git clone [repository URL]
cd classbridge-ai
uv sync --frozen
.venv/bin/python -m pytest
Expected:  714 passed . It took about 3.5 seconds on my machine.
1.2 Check the frozen benchmark. The benchmark is 55 written scenarios, each with a known answer.
python3 evaluation/tools/check_dataset.py 0.4.1
python3 evaluation/tools/check_synthetic_fixtures.py
Expected: the first command reports 20 items, 6 forms and 55 scenarios, then lists what it does not establish. The second reports  1005/1005 checks agree . Both finish in well under a second. These checks show the labels and the rules agree with each other. They don't show the rules are educationally right.
1.3 Start the demo.
PYTHONPATH=backend .venv/bin/python -m classbridge.demo
Open  http://127.0.0.1:8765 . It listens on your machine only. It uses made-up students and stores nothing. It runs the same scoring, rules and ledger code as the tests.

The ClassBridge AI demo page before any student is chosen: a form picker, four made-up students to t


1.4 Predict, then click. On form PRE-F3, read the answers of the sample "One answer conflicts" before you click it. The student picked 1/5 over 1/3, picked 2/9 over 5/8, and then picked the correct answer on "smaller of 1/4 and 1/8".
  1. Predict what the teacher should see. Should a pattern be reported, or should a person look first?
  1. Click the sample.
  1. Explain why. Two independent matches would normally be enough to show a pattern. What does one conflicting answer change?


The result for "One answer conflicts": the heading "A teacher should look: the answers conflict", th

The rules treat a conflict as a reason for a person to look, not as noise to average away.
Now click "Two matching wrong answers".


The result for "Two matching wrong answers": "A pattern is shown", evidence from two kinds of questi

1.5 Check the record. At the bottom of each result is the evidence ledger, a table of what happened and in what order.
The evidence ledger: seven entries from ASSESSMENT_CREATED through three RESPONSE_RECORDED and three

The ledger shows what was written and in what order. It does not show the result is educationally correct.

1.6 What you can't try yet. There is no model, no teacher login and no real students.



Part 2. How the answers are kept honest

A model can state something that isn't in its input. ClassBridge AI's answer to that is to give a model very little to decide. The decisions that matter are made by code, and the code then refuses to continue if the record contradicts itself.

2.1 Code decides what the evidence supports

For each misconception, the rule engine counts independent kinds of question that match it, then checks for answers that conflict.  _classify  in  backend/classbridge/rules/engine.py  is the core of it (abridged):
independent = len(evidence.evidence_group_ids) >= MIN_INDEPENDENT_GROUPS
if independent and evidence.contradictions:
outcome, rule = EvidenceOutcome.NEEDS_HUMAN_REVIEW, R_REV
elif independent:
outcome, rule = EvidenceOutcome.DEMONSTRATED_MISCONCEPTION, R_DEM
else:
outcome, rule = EvidenceOutcome.INSUFFICIENT_EVIDENCE, R_INS # a one-group candidate
What to notice:
  • Input: the number of independent groups and the list of conflicting answers. Both are computed from the student's recorded responses.
  • Threshold:  MIN_INDEPENDENT_GROUPS  is 2. It's a versioned rule, not a setting a teacher or a model can change.
  • Why two groups: one wrong answer is one piece of evidence, so a single match stays a candidate. Matching answers from two different kinds of question are harder to explain as a slip.
  • Why conflict goes to a person: a conflicting answer doesn't lower a score, it changes the outcome to "needs human review". An average would hide the disagreement.
  • Limit: this describes what the answers support. It says nothing about what the child understands.
The same engine never invents evidence. An unanswered question is neither a match nor a conflict, and a wrong answer with no known pattern stays "insufficient evidence".

2.2 The result can't contradict itself

The output contract refuses a result that doesn't add up. Under review, for example, it will not publish a recommendation:
if self.recommendations or not self.recommendations_withheld:
raise ValueError("under review no recommendation is published and they are marked withheld")
The alternative was to rely on every later step remembering this rule. Putting it in the data model means a bug that forgets it fails at once instead of reaching a teacher. The trade-off is that the contract is strict, so a change to the rules needs a change to the contract and its tests.

2.3 The record refuses events that break the order

Every step is written to a tamper-evident ledger. The ledger also checks the order and consistency of what it's asked to record. It refuses a recommendation when the rule result withheld recommendations (abridged):
if withheld:
add(ProblemCode.RECOMMENDATION_WHILE_WITHHELD, e, pos,
"the rule result withheld recommendations")
elif has_rule_result and data.get("misconception_id") not in demonstrated:
add(ProblemCode.RECOMMENDATION_NOT_DEMONSTRATED, e, pos, ...)
It also refuses a recommendation whose status ignores the activity's readiness, a second teacher decision for the same recommendation, a follow-up with no earlier approval, and a response recorded twice. This is a second line of defence: the rule engine already decides, and the ledger checks that nobody later records something that disagrees.
The ledger doesn't prove a recommendation is right. A valid hash shows an entry hasn't changed since it was written, within the chain that was checked. Someone who can rewrite the whole chain and recompute every hash could forge a new one. Detecting that needs an anchor, such as the latest hash kept somewhere else.

2.4 Nothing is assigned without a teacher

An activity can be suggested only for a demonstrated misconception, and only when the activity is ready, meaning its content has been written and reviewed by a teacher. All seven current activities are titles only, so every suggestion is marked "not ready" and none can be approved. The teacher's decision (approve, modify, reject or ask for more evidence) is recorded by the application, not by any model.

2.5 How these protections were tested

  • The rule engine reproduces the expected result for all 55 written scenarios and all 17,634 possible answer patterns of the three forms. A separate reference check, written before the engine, supplies the expected answers.
  • I broke the engine on purpose in 33 ways, such as lowering the threshold or letting review be outranked. The tests caught 32. The one survivor can't change behaviour, and its reason is recorded.
  • I broke the ledger on purpose in 48 ways, such as dropping a field from the hash or accepting a duplicate decision. The tests caught all 48.
  • None of this shows the rules are right for real children.

2.6 Where a model would fit, and which one

A model would be limited to explaining a result it didn't choose, writing the reason for a suggested activity, drafting a report and drafting new question wordings, with drafts held for human review. None of that exists yet.
One rule is already enforced: if a model is used, it is an Amazon Nova model and nothing else. No model is used anywhere today. The code has no model client, and the AWS demo's role has only a basic logging permission, so it couldn't call a model if it tried. For the future, any agent must pass its model ID through a small check:
_NOVA_MODEL_ID = re.compile(r"(?:(?:us|eu|apac|jp|au|us-gov|global)\.)?amazon\.nova-[a-z0-9-]+-v[0-9]+:[0-9]+")

def is_allowed_model(model_id: str) -> bool:
return _NOVA_MODEL_ID.fullmatch(model_id) is not None
It accepts IDs like  amazon.nova-2-lite-v1:0  and refuses other providers, lookalikes and full ARNs. A test runs 26 cases and also scans every source file for another provider's name. The check only validates the shape of an ID. It doesn't prove the model exists or suits the task, and which Nova variant to use is a later decision, made by measurement. When agents arrive, the runtime's permissions must also be limited to Nova models.



Part 3. Put the demo on AWS

This part copies the demo to AWS so you can share a link. Read the limits first.
What you are creating. A public page with no sign-in, backed by one small function. That conflicts with this project's own rule that the real application has no unauthenticated API, so I wrote it down as a time-limited exception. It's acceptable only because every input is made up, nothing is stored and no model or data service is called. It must never carry real student data.


On the left a visitor's browser. Inside an AWS Cloud box, an HTTP API (public, throttled to 5 reques



3.1 Check your limits first

export AWS_REGION=us-east-1
export ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
aws lambda get-account-settings --region $AWS_REGION \
--query '{limit:AccountLimit.ConcurrentExecutions,unreserved:AccountLimit.UnreservedConcurrentExecutions}'
My account's limit was 10, all unreserved and shared with two other functions. A public function with no cap could use all of it and starve them. That is why the next steps put a throttled API in front, instead of giving the function a public URL.

3.2 The entry point

 backend/classbridge/demo/lambda_handler.py  receives the request, serves the page, lists the forms, or runs the analysis. It reuses the same logic as the local demo (abridged):
def handler(event, context):
http = event.get("requestContext", {}).get("http", {})
method, path = str(http.get("method", "GET")).upper(), str(event.get("rawPath", "/"))
if method == "GET" and path in ("/", "/index.html"):
return _response(200, PAGE, "text/html; charset=utf-8")
if method == "GET" and path == "/api/forms":
return _json(200, describe_forms())
if method == "POST" and path == "/api/analyse":
... # read the body, refuse empty, oversized or invalid JSON with a 400
result = run_demo(payload)
return _json(400 if "error" in result else 200, result)
return _json(404, {"error": "not found"})
It sets security headers (including a content security policy), caps the request body at 10,000 bytes, imports no AWS library and never logs a request body. 17 tests cover these. Run them:  .venv/bin/python -m pytest tests/unit/test_lambda_handler.py .

3.3 Package it for Lambda

Pydantic contains compiled code. Installing it on a Mac gives a Mac binary that Lambda can't load, so ask for Linux ARM wheels:
mkdir -p build/pkg
uv export --frozen --no-dev --no-hashes --no-emit-project -o build/requirements.txt
uv pip install --target build/pkg --python-platform aarch64-manylinux2014 \
--python-version 3.13 --only-binary :all: -r build/requirements.txt
rsync -a --exclude '__pycache__' --exclude 'content/item_bank.v0.[0-3]*' \
--exclude 'content/item_bank.v0.4.0.json' --exclude 'content/item_bank.v0.5.0.json' \
backend/classbridge build/pkg/
(cd build/pkg && zip -q -r -X ../classbridge-demo.zip .)
The excluded banks are the older and draft ones. Only v0.4.1 is used. My package came to 2.6 MB.

3.4 Create the role and the function

cat > build/trust.json <<'EOF'
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}
EOF
aws iam create-role --role-name classbridge-demo-lambda-role \
--assume-role-policy-document file://build/trust.json \
--tags Key=Project,Value=ClassBridge Key=Purpose,Value=demo
aws iam attach-role-policy --role-name classbridge-demo-lambda-role \
--policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole

aws lambda create-function --function-name classbridge-demo --region $AWS_REGION \
--runtime python3.13 --architectures arm64 \
--handler classbridge.demo.lambda_handler.handler \
--role arn:aws:iam::$ACCOUNT:role/classbridge-demo-lambda-role \
--zip-file fileb://build/classbridge-demo.zip \
--memory-size 256 --timeout 10 --tags Project=ClassBridge,Purpose=demo
aws lambda wait function-active-v2 --function-name classbridge-demo --region $AWS_REGION
The role holds only the basic logging permission. Wait a few seconds after creating the role before creating the function, or the first attempt may fail.

3.5 Test the function directly, before you expose it

Save a request as  build/event.json :
{"rawPath": "/api/analyse", "requestContext": {"http": {"method": "POST"}},
"body": "{\"form\":\"PRE-F3\",\"answers\":{\"Q-F3-01\":\"B\",\"Q-F3-05\":\"A\",\"Q-F3-02\":\"B\"}}",
"isBase64Encoded": false}
aws lambda invoke --function-name classbridge-demo --region $AWS_REGION \
--cli-binary-format raw-in-base64-out --payload file://build/event.json build/out.json
Expected: status 200, and  build/out.json  holds the conflict result:  NEEDS_HUMAN_REVIEW , rule  R-REV , recommendations withheld, the ledger verified, and a tamper check that reports  HASH_MISMATCH  once. That is the same answer you got locally.

3.6 Put a throttled API in front

aws apigatewayv2 create-api --name classbridge-demo --protocol-type HTTP \
--target arn:aws:lambda:$AWS_REGION:$ACCOUNT:function:classbridge-demo \
--region $AWS_REGION --tags Project=ClassBridge,Purpose=demo \
--query '[ApiId,ApiEndpoint]' --output text
export API_ID=<the id it printed>

aws lambda add-permission --function-name classbridge-demo --region $AWS_REGION \
--statement-id apigw-invoke --action lambda:InvokeFunction \
--principal apigateway.amazonaws.com \
--source-arn "arn:aws:execute-api:$AWS_REGION:$ACCOUNT:$API_ID/*/*"

aws apigatewayv2 update-stage --api-id $API_ID --stage-name '$default' \
--default-route-settings ThrottlingBurstLimit=10,ThrottlingRateLimit=5 --region $AWS_REGION
The throttle is the safeguard. At five requests a second the function can't use more than a small share of your account's concurrency.

3.7 Test it as a visitor would

URL=https://$API_ID.execute-api.$AWS_REGION.amazonaws.com
curl -s -o /dev/null -w "%{http_code} %{time_total}s\n" "$URL/"
curl -s -X POST "$URL/api/analyse" -H 'Content-Type: application/json' \
-d '{"form":"PRE-F3","answers":{"Q-F3-01":"B","Q-F3-02":"A"}}'
curl -s -w " -> %{http_code}\n" -X POST "$URL/api/analyse" -d 'not json'
curl -s -w " -> %{http_code}\n" "$URL/nope"
What I saw: the page returned 200 in about one second, and the analysis returned  DEMONSTRATED_MISCONCEPTION  with a suggested activity marked  INTERVENTION_CONTENT_NOT_READY  in about 0.8 seconds. These are single measurements from my laptop and include the first request's start-up, so treat them as rough. Bad JSON returned 400 and an unknown route returned 404. Then open the URL in a browser and repeat Part 1.4. I checked that it works under the page's security policy with no browser console errors.
Exercise. Predict the status code before each of these, then check: an empty body, a body larger than 10,000 bytes, a question that isn't on the form, an option that doesn't exist.

3.8 Remove it when you're done

Delete five things, in this order, and run each command yourself, one at a time: the HTTP API ( aws apigatewayv2 delete-api ), the Lambda function, the managed policy attachment and then the role ( aws iam detach-role-policy , then  aws iam delete-role ), and the log group  /aws/lambda/classbridge-demo . Then ask for the function by name and confirm AWS says it isn't found.



Part 4. Evaluate it

Everything here runs on your machine and costs nothing. Run each command from the project folder.
.venv/bin/python -m pytest
python3 evaluation/tools/check_dataset.py 0.4.1
python3 evaluation/tools/check_synthetic_fixtures.py
python3 evaluation/tools/mutate_rules.py
python3 evaluation/tools/mutate_ledger.py
What was checked
Result
What it shows
What it does not show
Full test suite
714 passed
the code does what its tests say
that the tests are the right ones
Rule engine against the 55 written scenarios
all agree on outcome, rule, conflicts and withheld recommendations
the engine matches the hand-written expected answers
that those answers are right for real children
Rule engine against all 17,634 possible answer patterns of the three forms
all agree with a separate reference check written before the engine
two independent implementations agree
that either one is educationally correct
Permutation checks (response order, renamed IDs, renamed groups)
1,005 of 1,005 agree
results don't depend on order or on names
nothing about content
Deliberate breaks of the rule engine (33)
32 caught, 1 behaves identically (reason recorded)
the tests notice a broken rule
that no untested rule remains
Deliberate breaks of the ledger (48)
48 caught
the tests notice a broken integrity check
that the ledger can't be rewritten end to end
The AWS handler (17 tests, plus direct, internet and browser checks)
all pass
the hosted copy gives the same answers as the local one
how it behaves under load, or what it costs
The model policy (26 cases and a source scan)
all pass
no other model provider can slip in by accident
that a Nova model would be a good choice
Nine of the 55 scenarios script model or teacher behaviour, which belongs to the later workflow. For those, only the classification is compared. On my machine the rule-engine breaking check takes about 9 seconds and the ledger one about 12. Scoring, the rules and the ledger entries for one student take under a millisecond (median 0.4 to 0.7 ms over 200 runs, depending on how many answers are included).
Review rate. If a student answers every question at random, the rules send 14.1% of PRE-F1 cases, 46.9% of PRE-F2 and 61.7% of PRE-F3 to a teacher. That is a stress figure, not a classroom rate. A high rate may mean the rules or questions create ambiguity, not that children are struggling.
What isn't run yet. There's no live evaluation of a model, because no model-assisted agent exists. The plan is to test each agent switched on and off, behind an explicit confirmation flag, with call and budget caps.
What none of this shows. Teacher agreement, whether the patterns are real in Class 5, or any effect on learning.



Part 5. What comes next (a design, not built)

The real application needs more than the demo: teacher sign-in, storage, an interface a teacher can use for a whole class, and model-assisted agents behind the same guards. Figure 8 shows the target. Only the parts marked BUILT exist.


The proposed architecture: a teacher's browser, hosting and sign-in, an API with an asynchronous wor

The decisions behind it, in short:
  • Why asynchronous. An HTTP API cuts off any integration after at most 30 seconds, and AWS doesn't let you raise that limit ( HTTP API quotas ). The deterministic engine is far faster than that, so a synchronous call would work today. Model-assisted agents can run for tens of seconds, and a saved job record is one place to enforce "this submission was already processed".
  • One attempt, in two places. The worker's call makes one attempt. Lambda retries a failed asynchronous invocation twice by default ( AWS documentation ), so set that to zero and make the worker idempotent.
  • Who is asking. Sign in with Cognito. Take the teacher's identity from the verified token, never from the request body, and start every table key with it, so one teacher can't read another's class. That is a claim to test, not to assume.
  • Least privilege. One role per function. The runtime holds no model permission until an agent needs one, and then only for Amazon Nova.
  • Real data. Keep the tables when the stack is removed and turn on point-in-time recovery. Losing the ledger defeats its purpose.
  • Hosting the engine. AgentCore Runtime earns its place when model-assisted agents run for a long time. Until then a plain function is enough.
I haven't built, deployed or measured any of this.



What it costs

I haven't measured it. The Part 3 demo is a small function behind a throttled API, so I expect pennies or free-tier use, but check your own AWS billing page after trying it. I'm not using another project's prices, because this workload is different. For the future design, measure model tokens per assessment, runtime time, function time, storage reads and writes, and sign-in users, and report cost per assessment and per class of 30, since one request may carry many students.




Lessons and tradeoffs

  • Write down a rule's exact words before you code it. The rule for "correct on the questions asked" said "the applicable evidence set", which could be read two ways. A consistency check found the gap, and the fix was a clarified version of the rule.
  • A test of a hash must cover more than the first entry. My first test of the ledger's hash checked only a first entry, so omitting the sequence number or the previous hash from the hash went unnoticed. Deliberately breaking the code found it.
  • Review your own question bank. An AI-assisted review of the 20 released questions found four needing revision: one answer key with a defensible second answer, and three answer tags that didn't match their descriptions or each other. It also showed that choosing the same option every time can look like a misconception on one form:

The result for the sample "Always picks the third option" on form PRE-F1: the page says "A pattern i

  • Let the engine be strict about conflicts. A conflicting answer sends a case to a teacher. That costs reviews and protects against a wrong label.
  • Check that a safeguard really exists. I reported that the ledger refused recommendations that violate intervention readiness, but at first it didn't. Testing against the approved text found it, and it was fixed.
  • Check your account's limits before you make something public. My account's concurrency limit was 10, shared with other functions. That decided the design: a throttled API in front, not a public function URL.
  • Test the page under its security policy, in a real browser. My first browser check evaluated a string as code, and the strict policy blocked it. That was the policy working, and the fix was a selector-based wait.
  • Scan for what you promise not to use. A test fails if any source file names another model provider, so the Nova-only rule can't erode quietly.



Before real use

  • Teacher review. The questions, patterns and rules have not been reviewed by teachers. Until they are, call the work author-reviewed.
  • Activities. All seven are titles only, so no suggestion can be assigned. They need authoring and teacher review.
  • Follow-up. What counts as a misconception no longer being shown is not specified, so ClassBridge makes no claim of improvement.
  • Student data. Check the data-protection rules that apply to children's data where you deploy. I haven't reviewed them. A name can't be entered, and free text is kept only as a keyed digest.
  • Sign-in and isolation. Test that one teacher cannot read another's class.
  • Ledger anchoring. Decide where the latest ledger hash is kept outside the ledger. Without it, a rewritten chain or removed newest entries go unnoticed.
  • Language. English only.




Troubleshooting

Symptom
Fix
 ModuleNotFoundError: classbridge  when starting the demo
start it with  PYTHONPATH=backend , from the project folder
The demo port is in use
give another port after the module name, for example  ... -m classbridge.demo 8800 
A check can't find its data files
run it from the project folder
A browser test fails with a message about evaluating a string as JavaScript
the page's security policy forbids it. Wait on a selector instead of a script
The function won't import  pydantic_core 
the package was built for the wrong platform. Rebuild with the Linux ARM options in 3.3




Conclusion

ClassBridge AI shows a teacher the evidence behind a child's answers and leaves the decision with the teacher. The main lesson so far is that the parts that must be right are code, not model output: scoring, evidence rules, the record, and the gate before any activity is assigned.
The evaluation shows that the code applies the written rules consistently, and that it notices when a rule or a check is broken. It doesn't show that the rules fit real children, which only teachers can judge. The next steps are teacher review, writing and reviewing the activities, the teacher application, the model-assisted agents behind the same guards (Amazon Nova models only), and then a deployment with measured cost.

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article