#318 gap 17: a member files a friction note, refused for private text (re-merged onto forge main) #38

Closed
ceres wants to merge 12 commits from ceres/318-friction-note-rebuilt into main
Member

Ports crew-code's crew_friction and its sweep to Martha, gap 17 of #957. The design, the decisions and the Done-when are on #318. This is the same package as PR 1001 on GitHub: nothing here goes beyond what that PR held.

The branch waited on #959. #959 is now on the forge's main (1809a9b7 and its siblings), so the hold is lifted: this tip merges forge main at 7ab86751 into the branch (merges only, no rebase, no conflict) and opens the same tree against the forge's main.

What it does

A member files what it tried, what the tool did and what it needed as an issue in a repository the crew declares, and the note is refused before anything is sent when it carries a private value. The issue is the note: the friction label, the need as the title, Purpose (<kind>): <need> opening the body, the three answers under their own headings, and who filed it. The crew keeps its own index of what it filed, and a sweep drops the entries whose issue has closed.

part where
the note, its title and body, the refusals, the index's text src/file_a_friction_note/friction_note.ts
the tool file_a_friction_note, gh, the label made once src/file_a_friction_note/the_friction_tool.ts
the sweep, every ten minutes, the routed member only src/file_a_friction_note/the_friction_sweep.ts
friction_repos and public_emails src/declare_crew/the_crews_friction.ts, declare_crew.ts, docs/the-declaration.md
the box, the Components row, the port map architecture/c4_diagrams.ts, architecture/README.md, docs/port-map.md

Decisions worth reading (as PR 1001 had them, unchanged):

  • The tool is Martha's own name, file_a_friction_note. crew_friction is crew-code's name and check_marthas_names_are_its_own fails on it.
  • The classes are the scan's own, not a second list, so the move to src/know_the_private_text_classes/ comes first and changes no verdict; a refusal names the class and never the value.
  • A lab hostname is refused like every other class, by the Supervisor's ruling of 2026-11-20, so a note can never turn the daily posted-text report red; lab_hosts and the machine-name family stay out, and the owner can overrule it.
  • The index is one file, notes.json in the crew's own friction place, keyed <repo>#<issue>, because the host contract has no remove.
  • Nothing is sent before every refusal is decided, and the sweep removes nothing it could not read.

Not in this PR

  • No friction count: gap 8's row in #957.
  • The lab hostname works as the Supervisor ruled it rather than as the owner's 2026-11-18 decision had it; the ruling is on #318 and the owner can overrule it.

Refs #318, #957.

Ports crew-code's `crew_friction` and its sweep to Martha, gap 17 of #957. The design, the decisions and the Done-when are on #318. This is the same package as PR 1001 on GitHub: nothing here goes beyond what that PR held. The branch waited on #959. #959 is now on the forge's main (`1809a9b7` and its siblings), so the hold is lifted: this tip merges forge `main` at `7ab86751` into the branch (merges only, no rebase, no conflict) and opens the same tree against the forge's main. ## What it does A member files what it tried, what the tool did and what it needed as an issue in a repository the crew declares, and the note is refused before anything is sent when it carries a private value. The issue is the note: the `friction` label, the need as the title, `Purpose (<kind>): <need>` opening the body, the three answers under their own headings, and who filed it. The crew keeps its own index of what it filed, and a sweep drops the entries whose issue has closed. | part | where | |---|---| | the note, its title and body, the refusals, the index's text | `src/file_a_friction_note/friction_note.ts` | | the tool `file_a_friction_note`, gh, the label made once | `src/file_a_friction_note/the_friction_tool.ts` | | the sweep, every ten minutes, the routed member only | `src/file_a_friction_note/the_friction_sweep.ts` | | `friction_repos` and `public_emails` | `src/declare_crew/the_crews_friction.ts`, `declare_crew.ts`, `docs/the-declaration.md` | | the box, the Components row, the port map | `architecture/c4_diagrams.ts`, `architecture/README.md`, `docs/port-map.md` | Decisions worth reading (as PR 1001 had them, unchanged): - **The tool is Martha's own name, `file_a_friction_note`.** `crew_friction` is crew-code's name and `check_marthas_names_are_its_own` fails on it. - **The classes are the scan's own, not a second list**, so the move to `src/know_the_private_text_classes/` comes first and changes no verdict; a refusal names the class and never the value. - **A lab hostname is refused like every other class**, by the Supervisor's ruling of 2026-11-20, so a note can never turn the daily posted-text report red; `lab_hosts` and the machine-name family stay out, and the owner can overrule it. - **The index is one file**, `notes.json` in the crew's own `friction` place, keyed `<repo>#<issue>`, because the host contract has no `remove`. - **Nothing is sent before every refusal is decided**, and **the sweep removes nothing it could not read**. ## Not in this PR - No friction count: gap 8's row in #957. - The lab hostname works as the Supervisor ruled it rather than as the owner's 2026-11-18 decision had it; the ruling is on #318 and the owner can overrule it. Refs #318, #957.
no_setting_outside_the_declaration refuses a slice importing a directory package.json runs as a program, and the
friction note of #318 must refuse the scan's own classes, so the I/O-free decision moves out of the program: the
classes, public_text.ts, public_digest.ts and their test now sit in src/know_the_private_text_classes/, and both
programs, check_nothing_private_gets_in and check_posted_text_carries_nothing_private, import them. The program
keeps its I/O: main.ts, read_sources.ts, declared.ts and scan_rules_and_visibility.ts. The C4 box, the Components
row, the folds-list entry and the coincidences follow the files.

Nothing a scan decides changes: the classes, the rules and the one visibility lookup are the same code, moved. Each
test title the moved file held is at the tip under the same title, so no test is dropped.
A member files what it tried, what the tool did and what it needed, and it becomes an issue in a repository the crew
declares: the friction label, the need as the title, Purpose (<kind>): <need> opening the body, the three answers under
their own headings, and who filed it. Nothing is sent for a note the crew refuses: a repository it did not declare, a
blank part, a control character in the need, or a private value — a home path, a private address, an email outside the
declared domains, a hex id, a token, a lab hostname — by class and never by value, the classes being the scan's own.

The notes filed are kept in one file of the crew's own store, keyed <repo>#<issue>; the host contract has no remove, so
one file rewritten in place is what the sweep can drop a closed note from. The sweep runs every ten minutes, only in
the member the crew's work is routed to, and removes nothing when gh fails or cannot say. The declaration gains
friction_repos and public_emails; the tool is Martha's own name, file_a_friction_note; the relay's mod answers it; and
the box, the Components row, the port-map row and the declaration page say the same as the issue's Done-when.

The lab hostname is refused with the rest, by the Supervisor's ruling of 2026-11-20 on #318, which the owner can
overrule.
# Conflicts:
#	src/declare_crew/declare_crew.node-test.ts
Both sides added to the relay's registration: main's /crew-budget command block
and this branch's split of the tool list. Kept both.
One conflict, two adjacent imports in a_crews_tools.ts: the friction note's
tool and sweep against the engine's usage host (#999 package 5). Both kept.
One conflict, check_nothing_private_gets_in/coincidences.ts: main re-pointed the
token-kind import at the split module; this branch had already moved the two
entries (and their literals) into know_the_private_text_classes with the tests.
Kept this branch's file, whose entries follow the tests; the old path is still a
re-export, so nothing needed re-pointing here.
Both sides kept in the two conflicts: the friction lists import and the
file_friction row from this branch, the wake import and the track_backlog
row from 965.
Merged clean; no conflict. 1024 is not merged: its tip is red on both
attempts ("the relay loads in the recorded host", martha#891).
The merge of #959's wake tool and this branch's friction note put
a_crews_tools.ts at 1127 lines, past the structural floor's 1105: each side
was under it alone (1086 and 1095), together they are over. The pure builders
-- beatsOf, triggerPlaceOf, anOrderOver and the four "asked" shapes -- move to
the_places_a_tool_is_decided_over.ts beside it, and the parent imports them:
two lines in, sixty out, and nothing in the new file imports a value back.
SessionState is exported for that file's types.
Merge remote-tracking branch 'forge/main' into ceres/318-friction-note-rebuilt
Some checks failed
dependency advisories / node in . (pull_request) Successful in 11s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 10s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
CI / Martha's names are its own (pull_request) Successful in 28s
CI / no import cycle (pull_request) Successful in 30s
dependency advisories / node in installer (pull_request) Successful in 11s
CI / links resolve (pull_request) Successful in 29s
CI / structural floor (pull_request) Successful in 28s
CI / the engine drift check bites (pull_request) Successful in 31s
CI / the host drift check bites (pull_request) Successful in 1m9s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 19s
CI / workflows are valid (pull_request) Successful in 32s
CI / every check runs in a job (pull_request) Successful in 18s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 28s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 15s
CI / no literal restates a defined value (pull_request) Successful in 1m11s
CI / the posted text check bites (pull_request) Successful in 16s
CI / gate coverage (pull_request) Failing after 2m48s
CI / nothing private (pull_request) Failing after 22s
CI / no test the base passed goes missing (pull_request) Successful in 41s
CI / the pictures change only with the version (pull_request) Successful in 25s
CI / installer (pull_request) Successful in 2m2s
CI / the relay loads in the recorded host (pull_request) Successful in 15m11s
CI / the clean-install proof removes its container (pull_request) Failing after 15m31s
e77cc044fd
#318 review: a private value in what the tool did or in the need is refused too, not only in what was tried
Some checks failed
dependency advisories / node in . (pull_request) Successful in 13s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 13s
dependency advisories / node in installer (pull_request) Successful in 13s
dependency advisories / node in . (container) (pull_request) Has been skipped
CI / installer (pull_request) Successful in 2m25s
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 34s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
CI / structural floor (pull_request) Successful in 37s
CI / gate coverage (pull_request) Failing after 1m28s
CI / Martha's names are its own (pull_request) Successful in 36s
CI / no import cycle (pull_request) Successful in 35s
CI / the host drift check bites (pull_request) Successful in 1m48s
CI / the engine drift check bites (pull_request) Successful in 1m49s
CI / the posted text check bites (pull_request) Successful in 26s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 25s
CI / workflows are valid (pull_request) Successful in 38s
CI / nothing private (pull_request) Failing after 23s
CI / no test the base passed goes missing (pull_request) Successful in 48s
CI / the pictures change only with the version (pull_request) Successful in 29s
CI / no literal restates a defined value (pull_request) Successful in 1m26s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 19s
CI / every check runs in a job (pull_request) Successful in 21s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 35s
CI / the relay loads in the recorded host (pull_request) Successful in 17m16s
CI / the clean-install proof removes its container (pull_request) Failing after 16m30s
c0304cd4d3
The note's private-text check reads all three answers, but test 6 put each class only in
'tried', so a mutant that scanned 'tried' alone survived. Each class is now also put in
'did' and in 'need'; that mutant fails test 6.

Refs #318
Owner

Closed by the Supervisor for a clean slate (Raf 2026-11-24: "close the stale PRs we need to start from a slate as clean as possible"). Only the Martha pilot path stays open. The branch is kept; reopen if this work comes back.

Closed by the Supervisor for a clean slate (Raf 2026-11-24: "close the stale PRs we need to start from a slate as clean as possible"). Only the Martha pilot path stays open. The branch is kept; reopen if this work comes back.
supervisor closed this pull request 2026-11-24 06:33:22 +00:00
Some checks failed
dependency advisories / node in . (pull_request) Successful in 13s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 13s
dependency advisories / node in installer (pull_request) Successful in 13s
dependency advisories / node in . (container) (pull_request) Has been skipped
CI / installer (pull_request) Successful in 2m25s
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 34s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
CI / structural floor (pull_request) Successful in 37s
CI / gate coverage (pull_request) Failing after 1m28s
CI / Martha's names are its own (pull_request) Successful in 36s
CI / no import cycle (pull_request) Successful in 35s
CI / the host drift check bites (pull_request) Successful in 1m48s
CI / the engine drift check bites (pull_request) Successful in 1m49s
CI / the posted text check bites (pull_request) Successful in 26s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 25s
CI / workflows are valid (pull_request) Successful in 38s
CI / nothing private (pull_request) Failing after 23s
CI / no test the base passed goes missing (pull_request) Successful in 48s
CI / the pictures change only with the version (pull_request) Successful in 29s
CI / no literal restates a defined value (pull_request) Successful in 1m26s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 19s
CI / every check runs in a job (pull_request) Successful in 21s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 35s
CI / the relay loads in the recorded host (pull_request) Successful in 17m16s
CI / the clean-install proof removes its container (pull_request) Failing after 16m30s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martha-ai/martha!38
No description provided.