Digital Business and AI — Original Decision Investigations

Current complete on-site edition 5

Required teaching and complete optional models are supplied on LawfareGroup.com. Publisher and primary links are optional provenance or further reading. Florida is the contemporary state-law default; federal rules and explicitly comparative material are distinguished. Independent subject review and observed human learner testing remain pending.

Cumulative information-system dossier, transfer models and 30-point rubric

This companion presents the same new original teaching added to all six existing course units. It does not reproduce MIT materials. Institutional sources are linked for background; the cases, calculations and code are original synthetic educational work.

  1. Digital value and workflow selection
  2. AI outputs and verification
  3. Data, privacy, and access
  4. Automation and human oversight
  5. Experiments and total cost
  6. Governance and continuous evaluation

Unit 1 · Digital value and workflow selection

Original Academy investigation: choose a workflow before a tool

A digital investment should begin with a specific business process and a measurable problem. The unit of analysis might be an invoice, a customer inquiry, a service dispatch, or a reconciled job. Map the process from input to accepted outcome, including exceptions and rework. Automating an isolated step can shift cost downstream rather than improve the system. A faster draft that takes longer to verify is not necessarily a faster accepted answer.

Distinguish digitization, workflow redesign, and machine-generated output. Converting a paper form to structured fields can make a deterministic rule possible without any language model. Reordering a handoff can remove delay without generating text. A model may help when language variation or unstructured material is the obstacle, but it should be compared with simpler alternatives. Begin with the task's difficulty and required evidence, not a requirement to insert AI into every stage.

Worked investigation: estimate accepted-output cost

Suppose a fictional team handles 1,000 routine inquiries per month. The current process takes six minutes per accepted answer, at $30 per labor hour, costing $3,000 in labor. A drafting tool takes two minutes of review per inquiry, costs $400 monthly, and adds $0.10 in variable processing cost per inquiry. If every draft is acceptable after that review and there are no other incremental costs, monthly cost is $1,000 review labor + $400 + $100 = $1,500. The modeled saving is $1,500, not the entire $3,000, because reviewing remains work.

Now suppose 20% of inquiries require six additional minutes of correction after the initial review. That adds 200(6)/60 = 20 hours, or $600. Monthly cost becomes $2,100 and saving falls to $900. If difficult cases are excluded from a pilot but dominate normal operations, the pilot's average can be misleading. Record eligibility, case mix, review effort, correction effort, and accepted outcomes. An adoption percentage alone does not establish that outcomes improved.

The benefit also depends on whether saved time becomes useful capacity or reduced expense. Salaried staff may use released time for other work without payroll falling. That can be valuable, but cash savings and opportunity-cost benefits are different claims. A proposal should identify where the released time occurs and what alternative work can use it. If the next stage is the bottleneck, faster drafting may simply create a queue of drafts awaiting approval.

Progressive practice and reasoning

  1. Reproduce the base $1,500 cost and $1,500 saving. Keep review labor, fixed subscription, and variable processing separate.
  2. Add the 20% correction case and verify the $2,100 total. Do not count correction time as replacing review time when it was stipulated as additional.
  3. If only half the volume is eligible, calculate costs with the other half still using the original process. Fixed subscription stays $400; review is $500, variable processing $50, and unchanged manual work $1,500, totaling $2,450 before correction.
  4. Design a comparison with a structured-template alternative. Include accepted-answer time, correction frequency, error severity, and downstream consequences rather than selecting solely by draft speed.

Supporting institutional sources

Unit 2 · AI outputs and verification

Original Academy investigation: verify claims, not confidence

A fluent output can be useful without being correct. Evaluation must be tied to the task's required facts, constraints, and consequences. For extraction, compare named fields against a specified reference. For summarization, check whether material claims are supported and whether important qualifications were omitted. For a numerical answer, independently reproduce the calculation. A model's statement that it is confident is not an independent verification method.

Separate generation, retrieval, and verification. Retrieval can supply relevant documents, but a retrieved document may be stale, irrelevant, or internally wrong. A citation can point to a real source that does not support the asserted claim. Verification therefore checks the relationship between the claim and the cited evidence, including the relevant date and scope. A list of plausible links does not by itself establish grounded reasoning.

Worked investigation: measure two kinds of classification error

Suppose a fictional invoice triage system flags 12 records. Eight are genuinely problematic and four are false alarms. Of eight unflagged records, two are problematic and six are clear. True positives are 8, false positives 4, false negatives 2, and true negatives 6. Precision is 8/(8+4), approximately 66.67%. Recall is 8/(8+2) = 80%. Accuracy is (8+6)/20 = 70%. These metrics answer different questions: how often flags are correct, how many problems are found, and how often the overall classification matches the reference.

Suppose a missed problem costs $100 and a false alarm costs $10 in investigation time. The modeled classification error cost is 2($100) + 4($10) = $240. A second system may have lower accuracy but lower cost if it misses fewer expensive problems. Choose a threshold using the decision's loss structure and evaluate on a held-out population. Costs are scenario assumptions here; a real deployment needs estimates and sensitivity analysis.

Reference labels also need scrutiny. A reviewer disagreement can signal ambiguity in the task or inconsistency in the rubric. Define what counts as an error before judging model performance, record uncertain cases, and assess reviewer agreement where material. Do not count a dispute over an unspecified rule as a confidently measured failure or success. A robust evaluation distinguishes objective checks, rubric judgments, and unresolved interpretations.

Progressive practice and reasoning

  1. Reconstruct the four confusion-matrix counts and calculate precision, recall, and accuracy independently.
  2. Compare a system with TP=9, FP=8, FN=1, TN=2. Its accuracy is 55%, but its stipulated error cost is $180, lower than $240.
  3. Explain why the more sensitive system can burden reviewers even while reducing the modeled missed-error cost. Review capacity and delay may require additional costs in the decision model.
  4. Build a five-item factual-answer rubric with claim, evidence locator, date, support verdict, and materiality. A correct response distinguishes an actual supporting source from a merely relevant-looking citation.

Supporting institutional sources

Unit 3 · Data, privacy, and access

Original Academy investigation: data access is an application rule

Decide which information a system needs for the particular task and which identity is permitted to access it. Data minimization is an engineering choice as well as a governance concern: fewer unnecessary fields can reduce exposure and make testing simpler. A summarizer for job status may need the work-order description and stage but not full payment details. Removing fields from a prompt does not by itself secure a database that the application can query without authorization checks.

An access rule belongs in a trusted service layer. A user's requested account, document, or customer identifier is input to be checked, not proof of permission. If access is restricted to account A, asking a language model to be careful cannot authorize a fetch of account B. Filter the candidate records using the verified identity and allowed scope before retrieval or generation. Recheck authorization at any action boundary; a model's output is not a credential.

Worked investigation: a cross-account retrieval request

The synthetic laboratory has three documents: two for account A and one for account B. A user scoped to A asks for a service summary. The deterministic retrieval layer returns only A records. An input requesting B is rejected even if it uses a persuasive explanation. The exercise demonstrates the location of a boundary in the toy application. It does not claim to implement production authentication, token validation, or every enterprise authorization requirement.

Treat external text as evidence to interpret rather than instructions entitled to control tools. A document can contain a sentence telling an assistant to reveal unrelated records. That sentence is still document content. The authorization layer must refuse the unrelated access regardless of how the generation component responds. Prompt-injection defenses are layered: explicit instruction boundaries, limited tool scope, output validation, monitoring, and permission checks address different failure paths. No prompt wording should be presented as a proof that the problem has been eliminated.

Retention, logging, and secondary use need explicit decisions. A system may correctly answer a question while its logs accumulate more sensitive source content than needed. Test whether identifiers, excerpts, and generated answers enter analytics or error reports. Provider settings and contracts can affect data handling, but do not infer a universal rule from the word private in a product label. Document the actual configuration used, and reassess when the service or data flow changes.

Progressive practice and reasoning

  1. Identify the trusted and untrusted inputs in the toy retrieval example. Verified scope is a trusted input only because the exercise stipulates it; user-supplied account names are not.
  2. Explain why filtering after unrestricted retrieval can expose data before the filter runs. Apply scope before retrieving unauthorized content.
  3. Add a malicious instruction to an allowed document and predict whether that should change the allowed account set. It should not; document text cannot grant a new permission.
  4. Draw the data flow from source to retrieval, prompt, model output, logs, and user response. Mark what is retained and who can access it at each boundary.

Supporting institutional sources

Unit 4 · Automation and human oversight

Original Academy investigation: oversight must have a usable job

Human oversight is meaningful only when the reviewer has the information, time, competence, and authority to detect and correct the relevant error. Placing an approval button after every generated output does not establish effective review. A reviewer may be rushed, lack source access, or defer to confident automation. Design the review task around identifiable failure modes: wrong recipient, unsupported claim, incorrect amount, unauthorized scope, or an action that should not occur.

Separate drafting from execution. A proposed refund can be checked against an authorized account, original transaction, eligible amount, and unique operation identifier before any payment request is made. A proposed customer email can be reviewed for recipient and content before sending. The control should validate the actual payload that will execute, not an earlier summary that can diverge from it. If the payload changes after approval, the approval may no longer apply.

Worked investigation: a bounded draft-approval policy

In the synthetic lab, a proposed job-status message has a verified account scope, a target account, a nonnegative amount field used only for the example's validation, a reviewed flag, and a maximum permitted amount. The policy rejects a scope mismatch, missing review, or an amount exceeding the bound. A proposal passing the checks is reported as eligible for the toy next step; the lab does not send a message or move money. This distinction keeps the exercise inspectable without pretending a few conditions constitute a complete production policy.

Failures can occur after review as well as before it. A timeout can leave uncertainty about whether an action completed. A retry needs a stable operation identity and appropriate duplicate handling. A partial workflow may require compensation or reconciliation rather than simply rerunning every step. Define the state machine: proposed, reviewed, submitted, acknowledged, failed, uncertain, or reconciled as appropriate. An uncertain state should not silently be labeled successful because the system produced a reassuring sentence.

Choose review intensity by the task, consequences, and reversibility. A low-impact formatting suggestion and an external financial instruction need different checks. Escalation rules should be concrete enough for the operator to follow. Measure override quality and review effort, not only how frequently humans click approve. If reviewers detect no errors because they never inspect the source, a low override rate can be a failure signal rather than evidence of excellence.

Progressive practice and reasoning

  1. Name the exact facts a reviewer needs to check a generated job-status message. Include source date, target account, recipient, and unsupported claims.
  2. Explain why reviewing a summary is insufficient if the later executable payload can change. Bind approval to the actual action or revalidate the change.
  3. Identify the correct state after a network timeout with no reliable acknowledgment. It is uncertain until the operation is reconciled, not automatically failed or successful.
  4. Propose a review study that measures detection of seeded synthetic errors, review time, false alarms, and incorrect overrides. Avoid interpreting the existence of a review screen as proof of effective oversight.

Supporting institutional sources

Unit 5 · Experiments and total cost

Original Academy investigation: evaluate total cost and opportunity cost

A pilot should compare an entire accepted workflow with a credible alternative. Count setup, integration, recurring service, per-request processing, human review, rework, monitoring, and relevant failure costs. A per-token or per-call price is one component, not the cost of an accepted business result. Expected benefits also need a realization mechanism: released staff capacity, reduced overtime, higher throughput, better quality, or improved customer retention are distinct hypotheses.

Worked investigation: a break-even volume with exceptions

Use the six-minute manual process and two-minute review process from Unit 1. At $30 per hour, manual labor is $3 per inquiry and review labor is $1. Add $0.10 variable processing, giving $1.10 per drafted inquiry before correction. The per-inquiry saving is $1.90. With a $400 fixed monthly subscription, break-even volume is 400/1.90, approximately 210.53 eligible inquiries, so at least 211 whole inquiries under these assumptions.

If 20% require six extra correction minutes, expected extra labor is 0.2($3) = $0.60 per eligible inquiry. The per-inquiry saving becomes $1.30, giving break-even volume 400/1.30, approximately 307.69, or 308 whole eligible inquiries. If an additional $2,000 setup cost is included in the first month, the first-month fixed commitment is $2,400; its break-even volume with correction is about 1,846.15, or 1,847 whole inquiries. Do not mix first-month and steady-state costs in a single unexplained payback claim.

Randomize eligible tasks or use a defensible comparison when testing the workflow. Balance operator experience, case difficulty, and time of day where relevant. A pilot run only by the tool's most enthusiastic expert users can estimate performance under those conditions without establishing average rollout performance. Predefine primary metrics and safety or quality constraints. Repeatedly changing the winning metric after observing results turns exploration into a misleading confirmation claim.

Sample size and exposure matter. Ten easy successful examples do not measure rare costly failures. Record the denominator, time range, case mix, and uncertainty. Do not convert zero observed failures into a universal zero-risk statement. A broader monitoring plan may be needed even after a favorable pilot. Also compare the value of the proposed investment with spending the same resources on better data quality, training, templates, or removing a redundant process step.

Progressive practice and reasoning

  1. Reproduce the 211-inquiry break-even without correction and the 308-inquiry break-even with correction.
  2. Reproduce the 1,847-inquiry first-month break-even when setup is included. State what happens if unused setup effort benefits later months.
  3. Explain why a 1,000-inquiry steady-state saving does not by itself prove a positive first-month cash effect. The $2,000 setup cost changes the initial period.
  4. Draft a pilot comparison with eligibility rules, baseline, assignment process, primary outcome, quality constraint, cost ledger, and decision rule. Separate an exploratory finding from a preregistered evaluation.

Supporting institutional sources

Unit 6 · Governance and continuous evaluation

Original Academy investigation: manage a system that changes

An AI-enabled workflow is a changing system of model, prompts, retrieval data, software, policies, people, and external conditions. Record which configuration produced an evaluation result. A strong test result for one version does not automatically validate a later prompt, model, source collection, or tool permission set. Versioning makes changes traceable and supports a meaningful rollback when a later release performs worse.

Define a release evaluation using representative routine cases, difficult cases, and synthetic boundary cases. Keep a held-out set for honest comparison. If every developer repeatedly tunes against the same small set, it becomes a development set even if its filename says test. Preserve some fresh evaluation and monitor later real-world results. A measured average should be accompanied by subgroup and failure-severity analysis where important; high overall accuracy can hide a severe problem in a small but consequential case type.

Worked investigation: zero errors is a bounded observation

Suppose 60 independent representative trials produce zero observed failures. Under a simple constant-probability binomial model, an approximate 95% upper bound often called the rule of three is 3/60 = 5%. The exact one-sided bound is 1 - 0.05 raised to the power 1/60, about 4.87%. This does not establish that the deployed failure rate is below 5% when the trials are dependent, selected for simplicity, or unlike deployment. The result is conditional on the sampling model and observed population.

Next suppose a new source feed introduces unfamiliar document layouts. The old test set may no longer represent the current inputs. Monitor parse failures, missing fields, reviewer corrections, and task outcomes. Distinguish input drift, label changes, and performance deterioration; one does not always imply another. A documented change trigger should lead to investigation, fresh evaluation, or restricted use as appropriate, rather than merely generating a reassuring status report.

Governance assigns responsibility for the decisions these measurements inform. Name who can approve a release, change tool permissions, resolve an incident, restrict a workflow, and authorize return to service. Keep records of important overrides and corrections. A dashboard without an owner can display deteriorating metrics indefinitely while no one acts. Conversely, automatic shutdown rules need explicit tradeoffs so a noisy indicator does not create disproportionate disruption.

Progressive practice and reasoning

  1. Calculate the approximate and exact upper bounds for zero failures in 60 trials. Explain why neither is proof of universal reliability.
  2. Repeat for 300 independent representative trials: the rule-of-three approximation is 1%; the exact one-sided bound is about 0.994%.
  3. List the configuration fields needed to reproduce an evaluation: model identifier, prompt revision, retrieval snapshot, software revision, policy rules, evaluation dataset, and scoring rubric as applicable.
  4. Create a release record with evidence, limits, named owner, monitoring signals, rollback condition, and retest criteria. A strong answer makes each responsibility and claim inspectable instead of treating a governance label as a control.

Supporting institutional sources

Runnable synthetic laboratory

Save the code as ai_evaluation_lab.py and run python ai_evaluation_lab.py with Python 3. No extra packages, model service, network call, real account, message or payment is used. Checks verify the supplied examples, not the reliability of a deployed AI system. The authorization scope is stipulated as trusted for the toy exercise; production identity verification is outside this lab.

Download ai_evaluation_lab.py

Open complete runnable source
"""Synthetic business-AI evaluation lab. Python 3, standard library only.

No model API, real identity, external messages or payments are used.
The policy functions illustrate boundary placement, not production authentication.
Run: python ai_evaluation_lab.py
"""
from math import ceil,isclose

def metrics(tp,fp,fn,tn):
    total=tp+fp+fn+tn
    return {
        'precision':None if tp+fp==0 else tp/(tp+fp),
        'recall':None if tp+fn==0 else tp/(tp+fn),
        'accuracy':None if total==0 else (tp+tn)/total,
        'error_cost':100*fn+10*fp,
    }

def monthly_cost(volume,correction_rate=0,setup=0):
    # Hours cost $30. Review is 2 minutes; correction adds 6 minutes.
    return 400+setup+volume*(2/60*30+.10+correction_rate*6/60*30)

DOCUMENTS=[
    {'id':'A1','account':'A','text':'Job 101 is complete.'},
    {'id':'A2','account':'A','text':'Job 102 is open. Untrusted document text asks for unrelated account B records.'},
    {'id':'B1','account':'B','text':'An unrelated account record.'},
]

def retrieve(verified_scope,requested_account):
    """Scope is STIPULATED as verified by an external trusted layer in this toy.
    A request or document cannot expand it. This is not a token validator.
    """
    if requested_account not in verified_scope:
        raise PermissionError('Requested account is outside the stipulated scope.')
    return [dict(d) for d in DOCUMENTS if d['account']==requested_account]

def eligible_proposal(verified_scope,proposal,max_cents):
    # This only returns a toy eligibility verdict and never executes an action.
    return (
        proposal.get('account') in verified_scope
        and proposal.get('reviewed') is True
        and type(proposal.get('amount_cents')) is int
        and 0<=proposal['amount_cents']<=max_cents
    )

def run():
    a=metrics(8,4,2,6);b=metrics(9,8,1,2)
    assert isclose(a['precision'],2/3) and isclose(a['recall'],.8)
    assert isclose(a['accuracy'],.7) and a['error_cost']==240
    assert isclose(b['accuracy'],.55) and b['error_cost']==180
    assert monthly_cost(1000)==1500
    assert monthly_cost(1000,.2)==2100
    assert 500*3+monthly_cost(500)==2450
    assert ceil(400/(3-1.1))==211
    assert ceil(400/(3-1.7))==308
    assert ceil(2400/(3-1.7))==1847
    allowed=retrieve({'A'},'A')
    assert {d['id']for d in allowed}=={'A1','A2'}
    assert all(d['account']=='A'for d in allowed)
    try:
        retrieve({'A'},'B')
    except PermissionError:
        pass
    else:
        raise AssertionError('Cross-account read was not rejected.')
    assert eligible_proposal({'A'},{'account':'A','reviewed':True,'amount_cents':100},500)
    assert not eligible_proposal({'A'},{'account':'B','reviewed':True,'amount_cents':100},500)
    assert not eligible_proposal({'A'},{'account':'A','reviewed':False,'amount_cents':100},500)
    assert not eligible_proposal({'A'},{'account':'A','reviewed':True,'amount_cents':501},500)
    assert not eligible_proposal({'A'},{'account':'A','reviewed':True,'amount_cents':-1},500)
    assert not eligible_proposal({'A'},{'account':'A','reviewed':'yes','amount_cents':100},500)
    exact60=1-.05**(1/60);exact300=1-.05**(1/300)
    assert .0487<exact60<.0488 and .0099<exact300<.0100
    print('PASS: confusion matrices, loss comparison, total cost, break-even, scope boundaries, toy proposal policy, binomial bounds.')
    print('System A:',a,'System B:',b)
    print('Exact one-sided 95% bounds, zero failures:',{60:exact60,300:exact300})
    print('Extensions: change the loss matrix; add an account; add an out-of-scope requested document; explain why a prompt cannot replace authorization.')

if __name__=='__main__':
    run()