Qualify general native raise and job-entry experiments

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend, testing

Research direction

Read the referenced observer checks in cliffs2017/native_observers.py, runtime callback in cliffs2017/native_runtime.py, earnings identity in cliffs2017/commissioned.py, and pilot guard and regression in tests/test_native_observers.py. Start by tracing the general runner’s audit and earnings comparison paths, then inspect the tests for their expected validation. Done means adding the requested general-runner audits, unselected-earner guard, dtype precision regressions, and accurate scope and validation records; the issue calls for separate reviews of several validation topics.

Written by the indexing model from the issue text.

Description

The generic runner in #7 accepts caller-provided input and fact-audit capabilities. The supplied NativeObservers.audit_facts requires the pilot's saved baseline and selection of the first working adult in each household. General raise and job-entry runs still need an observer that supports their selections and input changes. Observer checks, runtime callback.

The general runner also compares realized earnings changes with the requested real-dollar shock at zero tolerance. Stored input casts can prevent that identity from holding. The current code refuses the branch when the error exceeds the tolerance. Earnings identity, currency conversion.

Complete the following before qualifying the general native runner:

  • Supply a fact audit for its initial unperturbed state, every rank selection, each raise size and the job-entry input replacements. Preserve the context, topology, weights, fixed inputs and participation checks.
  • Check unselected people's earnings in the general path. The pilot already refuses changes to those earnings. Pilot guard.
  • Add stored-dtype precision regressions for the general runner's earnings identity and report which cases refuse under its current zero tolerance. The observer regression covers the pilot's rounding diagnostics. Existing observer case.
  • Keep the implementation scope and validation record current: distinguish pilot observers from general interfaces, describe cached reference formula results accurately, and describe floating-point cutoff products without claiming exact arithmetic. Record input-probe scope and any artifact byte-parity gap separately from financial validation.

Review admissibility, denominators, precision tolerances, resource-account conventions and comparison methods separately. The second review of #7 covered part of the change; its unread modules still need their own coverage when this work touches them.

Dominant language
Python
Stars
0
Forks
0
Avg merge
1d 19h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PolicyEngine/us-cliffs-2017

All issues in PolicyEngine/us-cliffs-2017

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.