chore(ulw-execute): close todos 2-4, record gate-review evidence and ledger
This commit is contained in:
1 parent
32f27b14d9
commit
ae2f920e0b
4 files changed
+308
-3
No files matched your search
@@ -0,0 +1,157 @@
|
||||
# Gate Review - first-place-overhaul todo 3 (ECONOMY.md disclosure, docs-only)
|
||||
|
||||
- **recommendation:** APPROVE
|
||||
- **verdict:** confirmed
|
||||
- **failure_class:** none
|
||||
- **confidence:** 0.97
|
||||
|
||||
## originalIntent
|
||||
Plan todo 3 of `.omo/plans/first-place-overhaul.md`: disclose two known,
|
||||
deliberately-unfixed limitations (F2 `wallet.issue` unbounded self-mint; F3
|
||||
Housing `fairnessDebt` non-finite replay poisoning) in ECONOMY.md's existing
|
||||
"## What this system does NOT guarantee (disclosed honestly)" section, AND
|
||||
reconcile ECONOMY.md's own pre-existing "only net issuance" invariant claim so
|
||||
it no longer asserts as settled fact something the new disclosure contradicts.
|
||||
Explicitly documentation-only - "Must NOT modify any code path, only
|
||||
ECONOMY.md's prose" (plan line 118), per the user's "security doesn't matter"
|
||||
scope decision (plan line 55).
|
||||
|
||||
## desiredOutcome
|
||||
A reader of ECONOMY.md sees the net-issuance invariant stated as design
|
||||
intent (not code-enforced fact), with two accurate new bullets naming the
|
||||
exact file/mechanism and concrete risk for the two disclosed gaps - and no
|
||||
remaining sentence in the doc contradicting that disclosure. No code change,
|
||||
no behavior change.
|
||||
|
||||
## userOutcomeReview
|
||||
The shipped artifact delivers exactly this. Both targeted sentences are
|
||||
softened to "by design ... is meant to be ... see the disclosed limitation
|
||||
below: this is not yet code-enforced", and two new bullets are appended under
|
||||
the correct heading. The disclosures are not merely plausible prose - each was
|
||||
cross-checked against the real code and is technically accurate. Scope is
|
||||
clean: only ECONOMY.md changed; no source file was touched. The user asked for
|
||||
an honest, internally-consistent doc and got one.
|
||||
|
||||
## Checked artifact paths
|
||||
- Worktree: `/home/athapa/patriothacks-wt/first-place-overhaul-todo3` (branch `first-place-overhaul-todo3`)
|
||||
- `ECONOMY.md` (full read, lines 1-45 and 75-135; grep over invariant/issuance/enforce lines)
|
||||
- `src/lib/ledger.ts` (`isIssuePayload`, `computeBalances`)
|
||||
- `src/lib/housing.ts` (`isHousingAssignmentPayload`, `computeFairnessDebtLedger`, `solveHousingAssignment`)
|
||||
- `src/lib/governanceEvents.ts` (`extractQvBallots` - to verify the disclosure's comparison)
|
||||
- `.omo/plans/first-place-overhaul.md` (todo 3 spec + acceptance criteria, lines 55, 117-123)
|
||||
- Commit `208cf76` (ECONOMY.md), commit `7db42fe` (evidence file)
|
||||
|
||||
## Evidence (exact commands + real output)
|
||||
|
||||
### Git state (clean tree, 2 commits on master tip)
|
||||
```
|
||||
$ git log --oneline -4
|
||||
7db42fe (HEAD -> first-place-overhaul-todo3, origin/first-place-overhaul-todo3) docs(evidence): record task-3 ECONOMY.md disclosure evidence
|
||||
208cf76 docs(economy): disclose wallet.issue and Housing fairnessDebt as known limitations; reconcile the contradicted issuance-invariant claim
|
||||
5c2c97d (origin/master, master, ...) chore(ulw-execute): close todo 1+8, record gate-review evidence and ledger
|
||||
57371a5 (origin/first-place-overhaul-todo8) docs(evidence): record todo-8 demo-video-script evidence
|
||||
$ git status --short
|
||||
(empty - clean tree)
|
||||
```
|
||||
master tip `5c2c97d` is the parent of `208cf76`; the two new commits sit directly on top.
|
||||
|
||||
### Scope fidelity (docs-only - no code touched)
|
||||
```
|
||||
$ git show --stat 208cf76
|
||||
ECONOMY.md | 38 ++++++++++++++++++++++++++++++++------
|
||||
1 file changed, 32 insertions(+), 6 deletions(-)
|
||||
$ git show --stat 7db42fe
|
||||
.omo/evidence/first-place-overhaul/task-3-first-place-overhaul.txt | 200 +++...
|
||||
1 file changed, 200 insertions(+)
|
||||
```
|
||||
`208cf76` changes ECONOMY.md ONLY. `7db42fe` adds a `.omo/evidence/` artifact
|
||||
(planning/evidence, not shipped app code). No `src/`, `api/`, or config file in
|
||||
either commit. Matches plan line 118's "Must NOT modify any code path".
|
||||
|
||||
### Push parity
|
||||
```
|
||||
$ git ls-remote origin first-place-overhaul-todo3
|
||||
7db42fed84c2e08a9a142dadfed61d4f793c7ab0 refs/heads/first-place-overhaul-todo3
|
||||
$ git rev-parse HEAD
|
||||
7db42fed84c2e08a9a142dadfed61d4f793c7ab0
|
||||
```
|
||||
Pushed SHA == local HEAD.
|
||||
|
||||
### grep acceptance (QA happy path)
|
||||
```
|
||||
$ grep -c "wallet.issue\|fairnessDebt" ECONOMY.md
|
||||
6
|
||||
```
|
||||
>= 2. Pass.
|
||||
|
||||
## misleading_success_output probe - disclosures are technically accurate, not just plausible
|
||||
|
||||
**Bullet 1 (wallet.issue) - CONFIRMED accurate.** `src/lib/ledger.ts`
|
||||
`isIssuePayload` checks only `p.type === "wallet.issue"`, `typeof p.account ===
|
||||
"string"`, and `amount` finite & >= 0. There is NO check of the signer
|
||||
(`entry.authorPubkey`) against `account`. `computeBalances` folds any entry
|
||||
passing `isIssuePayload` by crediting `entry.payload.account` unconditionally.
|
||||
So any peer can sign a `wallet.issue` crediting their own account an arbitrary
|
||||
amount - exactly as the bullet states. The bullet's comparison is also real:
|
||||
`src/lib/governanceEvents.ts` `extractQvBallots` DOES bind identity -
|
||||
`toAccountId(entry.authorPubkey) !== payload.voterId` skips forged ballots -
|
||||
which `isIssuePayload` has no analogue of.
|
||||
|
||||
**Bullet 2 (fairnessDebt) - CONFIRMED accurate.** `src/lib/housing.ts`
|
||||
`isHousingAssignmentPayload` checks `typeof p.fairnessDebt === "object" &&
|
||||
p.fairnessDebt !== null` but never validates the VALUES are finite numbers.
|
||||
`computeFairnessDebtLedger` does `Object.assign(debt, cycle.fairnessDebt)`,
|
||||
folding whatever values are present (NaN/Infinity included). `solveHousingAssignment`
|
||||
reads `fairnessDebt[residentId] ?? 0` (nullish coalescing does NOT catch NaN)
|
||||
and uses it in `fit: pref.score * (1 + fairnessDebtWeight * debt)`, propagating
|
||||
a poisoned value into the objective of future cycles. The bullet's "blast
|
||||
radius bounded to the housing fairness rotation, never touches Commons Credit"
|
||||
is correct - the debt ledger is a separate reducer. Note: `solveHousingAssignment`
|
||||
DOES validate `slot.capacity` and `pref.score` finiteness, but NOT incoming
|
||||
`fairnessDebt` values, consistent with the disclosure.
|
||||
|
||||
### Invariant softening (acceptance criterion: no longer asserts as settled fact)
|
||||
- Welcome-credit bullet (ECONOMY.md:22): "By design, this is meant to be the
|
||||
ONLY deliberate net issuance ... See the disclosed limitation below: that
|
||||
design intent is not yet code-enforced against a peer self-issuing an
|
||||
arbitrary amount." - softened, cross-references the limitation.
|
||||
- Conservation bullet (ECONOMY.md:37-40): "By design, the only INTENDED net
|
||||
issuance ... is meant to be a stable invariant ... see the disclosed
|
||||
limitation below: this is not yet code-enforced." - softened, cross-references.
|
||||
- The new bullet does NOT claim a future fix ("disclosed as a known
|
||||
limitation, not fixed, per an explicit scope decision for this build") -
|
||||
matches plan line 118's "do not claim it will be fixed later".
|
||||
|
||||
### No remaining contradiction (QA failure-prevented path)
|
||||
`grep -niE "invariant|issuance|net issu|unbounded|inflation|guarantee|enforce"
|
||||
ECONOMY.md` plus a full read of lines 1-45 and 75-135 found no sentence still
|
||||
asserting the net-issuance invariant as unconditionally-already-true. The only
|
||||
other matches are the two softened bullets, the "does NOT guarantee" heading,
|
||||
and unrelated limitation bullets (Personhood, Offline double-spend, Live
|
||||
alerts, health referrals).
|
||||
|
||||
## Skill-perspective / overfit-slop pass (remove-ai-slops + programming criteria applied directly)
|
||||
This is a prose-only change. Per the remove-ai-slops rule that a pure-prose
|
||||
change ships with no new test, the absence of tests here is correct, not a gap.
|
||||
No new production extraction/parsing/normalization was added (zero code
|
||||
changed). No tautological/deletion-only/implementation-mirroring tests exist to
|
||||
flag. No maintenance-burden or false-confidence artifact introduced. The diff
|
||||
is minimal and on-scope. No slop findings.
|
||||
|
||||
## Acceptance-criteria scorecard (plan lines 122-123)
|
||||
- Two new bullets under "does NOT guarantee", each naming file/mechanism +
|
||||
concrete risk, matching existing tone: PASS
|
||||
- ECONOMY.md:22 and :35-36 no longer assert invariant as unconditionally true,
|
||||
cross-referencing the disclosed limitation: PASS
|
||||
- `grep -c "wallet.issue\|fairnessDebt" ECONOMY.md` >= 2: PASS (6)
|
||||
- Re-read ECONOMY.md and confirm no sentence still asserts the contradicted
|
||||
invariant as settled fact: PASS
|
||||
- Documentation-only, no code path modified: PASS
|
||||
|
||||
## blockers
|
||||
None.
|
||||
|
||||
## evidence gaps
|
||||
- `agentToolkit.status().currentAttemptDir` returned NONE (no ulw-loop attempt
|
||||
dir); report written to the fallback path `.omo/evidence/first-place-overhaul-todo3-gate-review.md`,
|
||||
matching the sibling gate-review naming convention in this repo. Not a blocker.
|
||||
@@ -0,0 +1,137 @@
|
||||
# Gate Review - first-place-overhaul plan todo 2 (wallet.transfer signer binding / GAP-3 / F1)
|
||||
|
||||
- **recommendation:** APPROVE
|
||||
- **AdversarialVerify verdict:** confirmed
|
||||
- **failure_class:** none
|
||||
- **confidence:** 0.97
|
||||
- **reviewer:** omo-native-gate-reviewer (st_01a1fa8c)
|
||||
- **worktree:** /home/athapa/patriothacks-wt/first-place-overhaul-todo2 (branch first-place-overhaul-todo2)
|
||||
- **fix commit:** be848703be375fd007be79ee95e630d8d1ecc58d
|
||||
- **date:** 2026-11-20
|
||||
|
||||
## originalIntent
|
||||
A judge (or anyone) poking at the project's "signed event log, nothing is forgeable" claim must not
|
||||
be able to drain funds from an account they do not own. Concretely (GAP-3/F1): `wallet.transfer` in
|
||||
`src/lib/ledger.ts`'s `computeBalances` never checked that `payload.from` belongs to the entry's
|
||||
signer, so any signed transfer drained the named `from` account regardless of who signed it - a real
|
||||
money-movement correctness bug on replay.
|
||||
|
||||
## desiredOutcome
|
||||
`computeBalances` rejects a `wallet.transfer` unless `entry.payload.from === toAccountId(entry.authorPubkey)`,
|
||||
folding the rejection into the existing `rejected` bucket (no new channel), leaving `wallet.issue` and
|
||||
every other payload untouched; a regression test proves a forged transfer leaves the victim unchanged
|
||||
and the legitimate demo transfer still applies; `npm run test` and `npm run build` both exit 0 with no
|
||||
regression against the ~792-test baseline.
|
||||
|
||||
## userOutcomeReview
|
||||
The shipped artifact satisfies the outcome. The forged-transfer class is closed at the cause (replay
|
||||
reducer), the fix generalizes beyond the single executor scenario (see independent probe below), and
|
||||
the legitimate demo path is preserved and verified deterministically. From the user's perspective, the
|
||||
"nothing is forgeable" story is now true for money movement: a signature over someone else's account is
|
||||
ignored on replay.
|
||||
|
||||
## Checked artifact paths
|
||||
- /home/athapa/patriothacks-wt/first-place-overhaul-todo2/src/lib/ledger.ts
|
||||
- /home/athapa/patriothacks-wt/first-place-overhaul-todo2/src/lib/ledger.test.ts
|
||||
- /home/athapa/patriothacks-wt/first-place-overhaul-todo2/src/lib/ledgerConflicts.test.ts
|
||||
- /home/athapa/patriothacks-wt/first-place-overhaul-todo2/src/shell/accountId.ts
|
||||
- /home/athapa/patriothacks-wt/first-place-overhaul-todo2/src/admin/seedEvents.ts (buildDemoWalletPayloads + constants)
|
||||
- /home/athapa/patriothacks-wt/first-place-overhaul-todo2/.omo/evidence/first-place-overhaul/task-2-first-place-overhaul.txt (executor evidence)
|
||||
|
||||
## Independent verification (my own runs)
|
||||
|
||||
### Step 2 - git state
|
||||
`git log --oneline -4` -> `936e4d0` (evidence) + `be84870` (fix) on top of merge-base `5c2c97d`.
|
||||
`git status --short` -> empty (clean tree). Two commits, as claimed.
|
||||
Note: merge-base is `5c2c97d`; current `master` tip is `a3db0d9`, so the branch forked from an earlier
|
||||
master commit. Not a todo-2 criterion; flagged for the integrator (NOTE 2).
|
||||
|
||||
### Step 3 - fix diff (`git show be84870`)
|
||||
- (a) Check is `if (toAccountId(entry.authorPubkey) !== from) { reject; continue; }` - logically equivalent
|
||||
to `payload.from === toAccountId(entry.authorPubkey)`. Confirmed in the live file (ledger.ts transfer branch).
|
||||
- (b) Rejection uses the SAME `rejected.push({...})` into the existing `RejectedTransfer[]` bucket;
|
||||
`RejectedTransfer` became a discriminated union adding `{ reason: "unauthorized-signer" }` alongside the
|
||||
unchanged `{ reason: "credit-limit-breach", ... }`. No new ad-hoc channel.
|
||||
- (c) The signer check runs BEFORE the credit-limit check and is confined to the `isTransferPayload` branch;
|
||||
`isIssuePayload` branch and all other payload handling are untouched. Diff scope confined to the transfer branch.
|
||||
|
||||
### Step 4 - regression test is genuinely behavioral
|
||||
`ledger.test.ts` "rejects a wallet.transfer not signed by the from account's own key": issues 100 to
|
||||
`victim` (authorPubkey 1), then a transfer `from: victim, to: attacker, amount: 100` SIGNED BY authorPubkey 2.
|
||||
Asserts `balanceOf(state, victim) === 100`, `balanceOf(state, attacker) === 0`, `state.rejected.length === 1`,
|
||||
`state.rejected[0].reason === "unauthorized-signer"`. These are real balance + rejection-list assertions on
|
||||
`computeBalances` output - not a source grep, prose pin, or mock-call assertion. A companion test replays
|
||||
`buildDemoWalletPayloads(agent)` signed by the agent and asserts the legitimate issue+transfer still applies
|
||||
(agent 40, fund 10, rejected 0).
|
||||
|
||||
### Step 5 - targeted suite (my run)
|
||||
`npx vitest run src/lib/ledger.test.ts src/lib/ledgerConflicts.test.ts src/lib/gate_probe.test.ts --reporter=verbose`
|
||||
-> 19 passed / 19 (ledger.test.ts 12/12, ledgerConflicts.test.ts 4/4, my throwaway probe 3/3). All green.
|
||||
|
||||
### Step 6 - full suite (my run)
|
||||
`npm run test` -> **Test Files 89 passed (89); Tests 794 passed (794); 0 failed.** Matches claim
|
||||
(baseline ~792 + 2 new). The `ECONNREFUSED 127.0.0.1:3000` lines are backend integration tests gracefully
|
||||
handling an absent relay - non-fatal, every file passes.
|
||||
|
||||
### Step 7 - build (my run)
|
||||
`npm run build` -> `✓ built in 487ms`, PWA precache generated, `BUILD_EXIT=0`. tsc type-check gate passed.
|
||||
|
||||
### Step 8 - MY OWN adversarial probe (the crux)
|
||||
Wrote a throwaway `src/lib/gate_probe.test.ts` (since removed; tree re-confirmed clean) exercising
|
||||
`computeBalances` directly with scenarios DISTINCT from the executor's test:
|
||||
1. **Attacker drains the communal `hollow-commons-fund`:** issue 500 to `hollow-commons-fund`, then
|
||||
attacker (pubkey 42) signs `transfer from hollow-commons-fund to attacker amount 500`.
|
||||
Result: fund stays 500, attacker 0, `rejected[0].reason === "unauthorized-signer"`. **REJECTED.**
|
||||
2. **Attacker redirects a third party's funds:** attacker (pubkey 11) signs two transfers out of
|
||||
victim (pubkey 10) - one to a bystander, one to self. Result: victim 1000 unchanged, attacker 0,
|
||||
bystander 0, both rejected as unauthorized-signer. **REJECTED.**
|
||||
3. **Legitimate owner still moves own funds:** owner (pubkey 5) signs a transfer of their own balance.
|
||||
Result: applied correctly, rejected 0. **Fix does not over-block.**
|
||||
All three passed on the first run. **The fix generalizes - it is not overfit to the executor's single scenario.**
|
||||
|
||||
### Step 9 - real-browser QA
|
||||
Not independently re-run. The legitimate-path assertion it exists to protect (demo issue+transfer applies,
|
||||
no false rejection) is covered deterministically and more strongly by the passing `buildDemoWalletPayloads`
|
||||
unit test, which replays the exact real producer against `computeBalances` (agent 40, fund 10, rejected 0).
|
||||
Treated as NOTE 1, not a blocker.
|
||||
|
||||
### Step 10 - remote SHA
|
||||
`git ls-remote origin first-place-overhaul-todo2` -> `936e4d02beec4029f6f625eb5099c56f6585f027`;
|
||||
local HEAD identical. Pushed, matches.
|
||||
|
||||
## remove-ai-slops / programming overfit-slop pass (my direct check)
|
||||
- New regression test: genuine behavioral assertion (real balances + rejection reason), not tautological,
|
||||
not a prose/source pin, not a mock assertion. Required by the todo and correct.
|
||||
- New demo-fixture test: exercises the real producer `buildDemoWalletPayloads` end-to-end through
|
||||
`computeBalances`; proves non-over-blocking. Not a deletion-only or requested-removal test.
|
||||
- Updated existing transfer tests: a NECESSARY consequence of the behavior change - they used an unbound
|
||||
`from:"A"` / unrelated `authorPubkey` pairing (the exact gap the fix closes), so leaving them unchanged
|
||||
would make them assert nothing meaningful. Binding `from` to `accountFor(authorPubkey)` is correct
|
||||
maintenance, not slop.
|
||||
- "constructor" prototype-pollution test simplification: removed the credit-limit-breach-from-"constructor"
|
||||
branch because a transfer can no longer originate FROM "constructor" (from must equal a hex
|
||||
`toAccountId` string). The remaining test still exercises Object.prototype safety via issue+transfer TO
|
||||
"constructor", and `creditLimitFor`'s own `hasOwnProperty` guard is independently covered. Acceptable
|
||||
adaptation to a now-unconstructible scenario, not deletion-only slop.
|
||||
- Production code: `RejectedTransfer` -> discriminated union is minimal; no new rejection channel;
|
||||
`toAccountId` reused (not reimplemented); no unnecessary extraction/parsing/normalization. The check is
|
||||
one `if` mirroring the established `extractQvBallots` signer-binding pattern. Clean.
|
||||
- Code-review report coverage: no standalone code-review report artifact for todo 2 was found under
|
||||
`.omo/`; the executor evidence file documents the slop-relevant reasoning (necessary test updates, no
|
||||
new channel, no demo exemption). I performed the overfit/slop pass directly rather than relying on report
|
||||
coverage, as required.
|
||||
|
||||
## blockers
|
||||
None.
|
||||
|
||||
## NOTES (non-blocking, not tied to a todo-2 success criterion)
|
||||
1. Executor browser-QA prose says "wallet balance 50"; the actual legitimate demo final balance is 40
|
||||
(50 welcome grant - 10 commons contribution). 50 is the welcome-grant amount, not the ending balance.
|
||||
Secondary narration only; the legitimate flow is correctly verified by the passing unit test.
|
||||
2. Branch forked from master commit `5c2c97d`; current master tip is `a3db0d9`. The integrator should
|
||||
merge/rebase onto current master; the ledger fix itself is isolated to `src/lib/ledger*.ts` and
|
||||
`src/shell/accountId.ts`, so conflict risk is low.
|
||||
|
||||
## Evidence gaps
|
||||
None affecting approval. The only unreproduced step (real-browser Playwright QA) is covered by an
|
||||
equivalent, stronger, deterministic unit test.
|
||||
@@ -104,7 +104,7 @@ Your next move: approve, or ask for the high-accuracy review first (it runs auto
|
||||
Commit: Y | multiple, see execution log | chore(repo): commit pending docs/video-redesign work in scoped commits
|
||||
Recommended task executor category: quick - mechanical git hygiene, git-master skill covers the exact mechanics, zero remaining judgment calls
|
||||
|
||||
- [ ] 2. Fix wallet.transfer to bind payload.from to the signer's own account id
|
||||
- [x] 2. Fix wallet.transfer to bind payload.from to the signer's own account id
|
||||
What to do: in src/lib/ledger.ts's computeBalances (the isTransferPayload branch, currently lines 163-181), before applying a transfer, drop/ignore it unless `entry.payload.from === toAccountId(entry.authorPubkey)` - import toAccountId from ../shell/accountId.ts (already imported the same way by src/lib/governanceEvents.ts's extractQvBallots at governanceEvents.ts:140-143, which does the exact same signer-binding check for ballots: `toAccountId(entry.authorPubkey) === payload.voterId`). A rejected transfer must land in the same `rejected`/ignored bucket computeBalances already uses for other invalid entries (follow the existing pattern for e.g. a NaN/overdraft transfer at ledger.ts, do not invent a new rejection channel). Plan Consultant VERIFIED this fix needs NO demo-fixture exemption, by reading every real wallet.transfer producer in src/: src/shell/walletTransfer.ts:18 sets `from = toAccountId(await getPublicKey())` (the signer IS always the sender, by its own doc comment); src/admin/seedEvents.ts:167-176's buildDemoWalletPayloads sets `from: agent` where `agent` IS the demo-loading identity's own account id, appended via the local-signing `append()`; the communal `hollow-commons-fund` account is only ever a transfer DESTINATION (`to`), never a `from` - no code path anywhere pays FROM a fund the signer doesn't own. Add a regression test confirming the demo fixture's own transfer still applies correctly post-fix (not just that forged ones are rejected) - do not merely assume it from this note. Must NOT touch wallet.issue (todo covered separately, scoped out of code-fix per user decision) or any other payload type's validation.
|
||||
Closes: GAP-3 (F1)
|
||||
Parallelization: Wave 0 | Blocked by: 1 | Blocks: 6 (the public deploy must not ship before this lands) | Can parallelize with: 3,4
|
||||
@@ -114,7 +114,7 @@ Your next move: approve, or ask for the high-accuracy review first (it runs auto
|
||||
Commit: Y | fix(ledger): reject wallet.transfer not signed by the from-account's own key
|
||||
Recommended task executor category: deep-low - correctness fix with real replay-semantics reasoning (what "reject" means for an already-committed entry on replay), but the exact pattern to copy and the exact file are both named, so the worker can settle it from what it reads
|
||||
|
||||
- [ ] 3. Disclose wallet.issue unbounded self-mint and Housing fairnessDebt poisoning as known limitations, and reconcile ECONOMY.md's own contradicted invariant claim (no code fix, per explicit user instruction)
|
||||
- [x] 3. Disclose wallet.issue unbounded self-mint and Housing fairnessDebt poisoning as known limitations, and reconcile ECONOMY.md's own contradicted invariant claim (no code fix, per explicit user instruction)
|
||||
What to do: add two new bullets to ECONOMY.md's existing "## What this system does NOT guarantee (disclosed honestly)" section (starts at ECONOMY.md:73, existing bullets include "Personhood / Sybil resistance" at :74 and "Offline double-spend" at :80 - match their exact prose style: plain statement of the gap, why it exists, what bounds the damage if anything). Bullet 1 (wallet.issue): a peer can sign an arbitrary-amount wallet.issue to their own account; nothing authenticates "issuer" identity the way extractQvBallots authenticates voter identity, so the stated "only the bounded welcome credit is net issuance" invariant is not code-enforced today - disclosed as a known limitation, not fixed, per an explicit scope decision (do not claim it will be fixed later). Bullet 2 (Housing fairnessDebt): a synced housing.assignment event's fairnessDebt values are not validated for finiteness at the replay boundary, so a malformed/malicious synced event could poison the fairness ledger for future cycles - disclosed as a known limitation. THEN (plan-consultant finding, GAP-10): ECONOMY.md:22 ("This is the ONLY deliberate net issuance") and ECONOMY.md:35-36 ("The only net issuance is the bounded welcome credit, so at steady state Sigma(balances) = residents x welcome - a stated, stable invariant, not unbounded inflation") currently assert this as SETTLED FACT - directly contradicted by the new wallet.issue disclosure above. Soften both to something like "by design, the only INTENDED net issuance is the bounded welcome credit (see the disclosed limitation below: this is not yet code-enforced against a peer self-issuing an arbitrary amount)" - do not delete the aspirational/design statement, just stop asserting it as already-guaranteed fact. Must NOT modify any code path, only ECONOMY.md's prose - this todo is documentation-only by explicit user instruction.
|
||||
Closes: GAP-10
|
||||
Parallelization: Wave 0 | Blocked by: 1 | Can parallelize with: 2,4
|
||||
@@ -124,7 +124,7 @@ Your next move: approve, or ask for the high-accuracy review first (it runs auto
|
||||
Commit: Y | docs(economy): disclose wallet.issue and Housing fairnessDebt as known limitations; reconcile the contradicted issuance-invariant claim
|
||||
Recommended task executor category: writing - pure prose addition/softening matching an established style, zero code risk
|
||||
|
||||
- [ ] 4. Correct EDGE-CASES.md's stale "QV credit-value forgery remains open" claim
|
||||
- [x] 4. Correct EDGE-CASES.md's stale "QV credit-value forgery remains open" claim
|
||||
What to do: EDGE-CASES.md:79's sentence "Follow-up (off-limits root): putResidentCredit accepts any credit value via unsigned P2P CRDT — single-row value forgery remains; real fix = move credit grants onto the signed Event Log." is FALSE as written - this session's ultrabrain adversarial pass hand-traced computeQvTally (src/lib/governanceEvents.ts:303-336) and confirmed vote weight is derived ONLY from the signed Event Log's own clamped ballot credits (via extractQvBallots), never the unsigned CRDT `.credits` field, which is used solely as a membership marker. Rewrite that sentence to state the item is VERIFIED ALREADY FIXED, with a one-line trace citing governanceEvents.ts:303-336/313/323, and note the residual (still-real, still-disclosed-elsewhere) gap is Sybil/self-enrollment buying one extra vote at the clamped honest weight (ECONOMY.md's Personhood bullet already covers this - do not duplicate, just cross-reference it). Must NOT alter any other row/claim in EDGE-CASES.md - this is a single-sentence correction.
|
||||
Closes: GAP-8
|
||||
Parallelization: Wave 0 | Blocked by: 1 | Can parallelize with: 2,3
|
||||
|
||||
@@ -207,3 +207,14 @@
|
||||
{"event":"verify-confirmed","plan":"first-place-overhaul","task":"8","verifier_id":"st_01a1fa80","verdict":"confirmed","confidence":0.96,"ts":"2026-11-20T19:51:54.307Z"}
|
||||
{"event":"task-landed","plan":"first-place-overhaul","task":"8","commit_worktree":"57371a5","commit_master":"57371a5 (fast-forward)","ts":"2026-11-20T19:51:54.307Z"}
|
||||
{"event":"task-completed","plan":"first-place-overhaul","task":"8","checkpoint":"x","artifact":".omo/evidence/first-place-overhaul/task-8-first-place-overhaul.md","ts":"2026-11-20T19:51:54.307Z"}
|
||||
{"event":"harness-failure","plan":"first-place-overhaul","task":"4","session_id":"st_01a1fa86","failure_class":"harness","description":"patriotai-responses/gpt-5.6-luna 429 recurring infra issue. No commits made yet. Redispatching on a different category (unspecified-high) per prior-run lesson.","ts":"2026-11-20T19:55:53.203Z"}
|
||||
{"event":"verify-confirmed","plan":"first-place-overhaul","task":"3","verifier_id":"st_01a1fa87","verdict":"confirmed","confidence":0.97,"ts":"2026-11-20T19:57:37.496Z"}
|
||||
{"event":"task-landed","plan":"first-place-overhaul","task":"3","commit_worktree":"7db42fe","commit_master":"7db42fe (fast-forward)","ts":"2026-11-20T19:57:37.496Z"}
|
||||
{"event":"task-completed","plan":"first-place-overhaul","task":"3","checkpoint":"x","artifact":".omo/evidence/first-place-overhaul/task-3-first-place-overhaul.txt","ts":"2026-11-20T19:57:37.496Z"}
|
||||
{"event":"verify-confirmed","plan":"first-place-overhaul","task":"4","verifier_id":"st_01a1fa89","verdict":"confirmed","confidence":0.97,"ts":"2026-11-20T20:01:52.199Z"}
|
||||
{"event":"task-landed","plan":"first-place-overhaul","task":"4","commit_worktree":"a3db0d9","commit_master":"a3db0d9 (fast-forward)","ts":"2026-11-20T20:01:52.199Z"}
|
||||
{"event":"task-completed","plan":"first-place-overhaul","task":"4","checkpoint":"x","artifact":".omo/evidence/first-place-overhaul/task-4-first-place-overhaul.txt","note":"disclosed non-blocking note: a second related 'Credit-value forgery (Assembly QV)' row elsewhere in EDGE-CASES.md left untouched, in-scope per plan's single-sentence restriction","ts":"2026-11-20T20:01:52.199Z"}
|
||||
{"event":"verify-confirmed","plan":"first-place-overhaul","task":"2","verifier_id":"st_01a1fa8c","verdict":"confirmed","confidence":0.97,"note":"verifier's own independent forged-transfer probes (fund-drain, third-party redirect) also rejected - fix generalizes beyond the executor's own test scenario","ts":"2026-11-20T20:06:05.115Z"}
|
||||
{"event":"task-landed","plan":"first-place-overhaul","task":"2","commit_worktree":"32f27b1","commit_master":"32f27b1 (fast-forward)","ts":"2026-11-20T20:06:05.115Z"}
|
||||
{"event":"task-completed","plan":"first-place-overhaul","task":"2","checkpoint":"x","artifact":".omo/evidence/first-place-overhaul/task-2-first-place-overhaul.txt","ts":"2026-11-20T20:06:05.115Z"}
|
||||
{"event":"wave-complete","plan":"first-place-overhaul","wave":"0+0b","note":"todos 1,2,3,4,8 all landed and independently verified on master","ts":"2026-11-20T20:06:05.115Z"}
|
||||
Reference in new issue
Block a user