Skip to content

fix(runtime): report only observed device metrics (G-27) - #121

Merged
dmuhoro merged 1 commit into
mainfrom
feat/s104-g27-truthful-runtime
Dec 2, 2026
Merged

dmuhoro merged 1 commit into
mainfrom
feat/s104-g27-truthful-runtime

Conversation

@dmuhoro

@dmuhoro dmuhoro commented Dec 2, 2026

Copy link
Copy Markdown
Owner

G-27 — truthful runtime metrics and offline inference

Sprint 104 closes fabricated runtime telemetry and fake local-inference success on the reviewed execution paths.

Status: PARTIAL. This is a scoped fix, not the whole semantic-marker cleanup.

What changed

  • Device profiler — connectivity comes from a lazy NetInfo read. Confirmed online/offline is distinguished from unknown reachability; an unavailable or throwing adapter stays unknown.
  • No invented measurements — RAM, storage, battery, CPU/GPU, network speed, bandwidth, latency, reliability, memory pressure and current usage are null unless observed. Static limits are labelled as configured caps, not device measurements.
  • Scheduler — concurrency is taken from the live active-execution map; the fabricated memory-pressure check is gone.
  • Local inference is cache-only — cache hits return; misses and unsupported offline operations fail explicitly instead of returning synthetic lessons, quizzes, assessments or recommendations.
  • Capabilities — getInferenceCapabilities() reports request types from actual cache counts, not cache-key names.
  • Budgets — unknown capacity selects conservative limits and emits explicit warnings.

Verification (local, pre-push)

Command Result
npm run typecheck PASS — 0 errors
npm run lint PASS — 0 errors, 106 warnings
npm test PASS — 137 files / 756 tests
validate_boundaries.js PASS — 0 violations
npm run lint:cycles PASS — 0 errors, 13 existing orphan warnings
qa_runner.js PASS
npm run build PASS — Expo web export
guard:secret-exposure PASS — 548 files
guard:public-env PASS — 2 names
guard:dist PASS — 596 files

Targeted runtime tests: 7/7.

Remaining scope (explicitly open)

  • 106 lint warnings + 13 orphan warnings → G-28.
  • Broader semantic TODO/STUB/PLACEHOLDER/MOCK/FAKE cleanup → tracked separately; G-27 does not claim it.
  • No physical device or hosted AI provider was available or claimed.

Evidence: docs/evidence/sprint104-g27-truthful-runtime.md
Spec: sprints/sprint_104_truthful_runtime_metrics.md

@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
easytutor Ready Ready Preview Dec 2, 2026 5:00pm UTC

@dmuhoro dmuhoro closed this Dec 2, 2026
@dmuhoro dmuhoro reopened this Dec 2, 2026
@dmuhoro
dmuhoro force-pushed the feat/s104-g27-truthful-runtime branch from c2ab765 to 7bfc46e Compare December 2, 2026 16:52
@dmuhoro
dmuhoro merged commit 7bfc46e into main Dec 2, 2026
12 checks passed

This branch was successfully deployed

1 active (outdated) deployment
Preview – easytutor — c2ab7650 Deployed Dec 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant