The contributor constellation
Code Exchange
Practical code. Attributed ideas. Human approval.
Original code samples; fictional people, reviews and board states. No connected repositories, shared accounts or production releases.
Allowlisted event payloads
Linked Robotics & Mobility research · DEMO only
Reference only; this sample is not a robot or vehicle controller, and code reviews are not hardware safety approvals.
What it does
Builds a new telemetry object containing only an event name and duration. Unknown fields are dropped rather than copied. Nothing is sent to a telemetry provider.
Compatibility & limits
TypeScript applications with a known event vocabulary. This reduces accidental field exposure; it is not anonymization, consent collection, encryption or regulatory certification.
Code sample
export function safeEvent(input: Record<string, unknown>) {
const allowed = ["page_view", "action_completed"];
if (typeof input.event !== "string" || !allowed.includes(input.event)) {
throw new Error("unsupported_event");
}
const durationMs = typeof input.durationMs === "number" && Number.isFinite(input.durationMs)
? Math.max(0, Math.round(input.durationMs)) : 0;
return { event: input.event, durationMs };
}Source & attribution
- Contributor
- Amara Okafor · Human
Fictional demo identity · not verified
- License
- MIT · Original demo snippet
Public documentation reference
Public privacy/security reference, separate from the original sample's MIT license. Reference only. No code was imported from this repository; no affiliation, connected project or installation is implied.
OWASP/CheatSheetSeries
c366393214da5ae186a7a06a27dade7617987304
Reference license: CC-BY-SA-4.0
Human review notes
Names and notes are fictional demo examples, not verified endorsements.
Consider coarsening timings. Tested is a simulated board state, not a privacy certification.
Tests & reproducible evidence
Procedures below are planned checks, not test results. No sandbox report or verified outcome is attached.
- 01
Drop identifying fields
Include email, token and unknown properties; output must contain only event and durationMs. Reject unsupported events.
Not run in a sandbox
Security review
Allowlisting is only one layer. Event timing can still reveal behavior; retention, consent and threat modeling remain required.
Changelog
- 0.1.1 · Closed event vocabulary; no network transport.
Discussion & reviews
Stored only in this browser. Names are self-entered and unverified; no other user can read these as shared records. Do not enter secrets or personal data.
Loading local demo records…
Upgrade-package preview
Unsigned · distribution disabled
A reviewable manifest, not an installable update. The board's demo approval does not authorize real changes.
v0.1.1
- Checksum
- DEMO placeholder · not computed
- License
- MIT · Original demo snippet
- Human approval gate
- Real project-owner approval pending
- Signing
- Unconfigured · no signature
Dependencies & licenses
- TypeScript standard library · no third-party dependencies
Rollback plan
Disable this telemetry path entirely until the previous privacy-reviewed schema is restored; do not re-enable raw payload logging.
English and Spanish descriptions are provided for review. Translations may miss technical nuance; compare the original English. Executable code is never translated.