martha#48: the workspace guard judges a call at the repository it names, and as the alias it runs #51
Closed
vesta
wants to merge 0 commits from
vesta/48-git-guard into main
pull from: vesta/48-git-guard
merge into: martha-ai:main
martha-ai:main
martha-ai:venus/149-stranger-docs
martha-ai:pluto/45-a1-wait-through-the-seam
martha-ai:venus/129-no-launcher-endpoint
martha-ai:titan/119-engine-install
martha-ai:saturnus/45-branch-move-head
martha-ai:jupiter/45-a5-line-forms
martha-ai:jupiter/45-volatile-mesh-say
martha-ai:venus/114-forge-release
martha-ai:venus/114-installer-2
martha-ai:venus/8-land-on-any-host-2
martha-ai:titan/111-gitlinks
martha-ai:titan/111-symlink-and-range-reads
martha-ai:juno/040-host-rerecord
martha-ai:vesta/24-remove-github-sponsors
martha-ai:ceres/19-signin-probe
martha-ai:vesta/94-git-guard-blind-shapes
martha-ai:vesta/67-set-a-exports-git-dir
martha-ai:jupiter/47-status-clock
martha-ai:pallas/46-forge-ci-seam
martha-ai:juno/39-offline-private-scan
martha-ai:pluto/23-standin-recopy-476b5724
martha-ai:mercurius/82-installer-steps-past-install
martha-ai:ceres/19-relay-end-written
martha-ai:mercurius/73-declare-alias-folds
martha-ai:pluto/23-standin-recopy
martha-ai:venus/8-land-on-any-host
martha-ai:ceres/19-relay-frame
martha-ai:venus/28-budget-line
martha-ai:ceres/47-hourly-status
martha-ai:terra/batch3-forge-b
martha-ai:pluto/23-declared-digests
martha-ai:ceres/318-friction-note-rebuilt
martha-ai:neptunus/check-private-digests
martha-ai:hygiea/5-tsx-typecheck
martha-ai:terra/batch2-forge
martha-ai:vesta/973-ask-proof-and-pr-base
martha-ai:jupiter/16-5-3-forge-repo-links
martha-ai:mercurius/16-forge-token-shape
martha-ai:jupiter/check-private-stop
martha-ai:terra/batch3-forge
martha-ai:saturnus/1016-crew-mail
martha-ai:venus/999-refresh-modes
martha-ai:uranus/601-martha-forge-workflows
martha-ai:ceres/1041-work-graph
martha-ai:jupiter/957-gap-19-prompt-text
martha-ai:mercurius/987-stranger-text-gate
martha-ai:jupiter/check-private-stop-posted
martha-ai:pluto/1045-under-600
martha-ai:ceres/1041-contract-lines
martha-ai:pluto/1045-free-splits
martha-ai:diverged/hygiea/962-worktree-finish-owner-and-branch
martha-ai:ceres/967-provider-key
martha-ai:saturnus/1016-mesh-key
martha-ai:hygiea/962-worktree-finish-owner-and-branch
martha-ai:pluto/1045-cognitive-complexity
martha-ai:venus/999-refresh-modes-held-merge
martha-ai:pluto/1010-repo-numbers
martha-ai:pluto/1010-drift-numbers
martha-ai:terra/batch-terra-1121e
martha-ai:hygiea/916-provider-subscription-refusal
martha-ai:venus/999-brief-notice
martha-ai:hygiea/992-job-timeouts
martha-ai:pluto/1037-recorded-host-stall
martha-ai:jupiter/1016-crew-memory
martha-ai:pluto/1031-host-2-1-330
martha-ai:terra/batch-terra-1121c
martha-ai:mars/1000-progress-off-tasks
martha-ai:uranus/989-confinement-v
martha-ai:hygiea/985-launcher-verbs-r2
martha-ai:mars/985-rename-handover-match
martha-ai:jupiter/979-guard-places
martha-ai:uranus/980-assign-model
martha-ai:ceres/959-wake-on-idle
martha-ai:uranus/989-confinement-u
martha-ai:juno/802-a-handle-on-my-run
martha-ai:pluto/989-confinement
martha-ai:terra/batch-terra-1120f
martha-ai:mercurius/987-rebased-keep
martha-ai:vesta/308-a-week-of-the-ledger-vesta
martha-ai:jupiter/984-gap-5-crew-state
martha-ai:hygiea/985-launcher-verbs
martha-ai:vesta/915-worktree-finish
martha-ai:terra/batch-terra-1120b
martha-ai:terra/981-review-fix
martha-ai:venus/review-917
martha-ai:final-tip
martha-ai:keep-318-tip
martha-ai:neptunus/1006-review
martha-ai:hygiea/976-the-ci-wait-by-run
martha-ai:terra/979-review-fix
martha-ai:terra/962-review
martha-ai:hygiea/601-row-174-the-engines-settings-watch
martha-ai:uranus/968-markers-r1
martha-ai:terra/981-review
martha-ai:vesta/308-a-week-of-the-ledger
martha-ai:terra/986-review
martha-ai:saturnus/511-up-config
martha-ai:hygiea-601-last3b
martha-ai:hygiea-601-last3
martha-ai:hygiea-601-pre-rebase
martha-ai:jupiter/batch-92
martha-ai:venus/venus-review-929
martha-ai:venus/venus-review-934
martha-ai:uranus/511-up-claude
martha-ai:saturnus/511-refusals
martha-ai:venus/906-token-fixture
martha-ai:jupiter/541-a-engine-start-clean
martha-ai:uranus/614-slice3-approved-skills-on
martha-ai:uranus/614-dw6-unrooted-skill-folders
martha-ai:venus/639-redact-stdin
martha-ai:venus/venus-review-913
martha-ai:neptunus/547-s6-kitty-launch
martha-ai:venus/venus-review-897
martha-ai:neptunus/907-review
martha-ai:venus/898-bundle-main-installer
martha-ai:hygiea/309-a-declared-goal
martha-ai:venus/614-engine-skills-2
martha-ai:neptunus/893-review
martha-ai:venus/639-night2
martha-ai:venus/venus-review-883
martha-ai:jupiter/541-c4-goose-call-answered-by-the-entry
martha-ai:venus/venus-review-866
martha-ai:venus/541-9a-slice-2
martha-ai:mercurius/614-engine-skills
martha-ai:titan/637-updater-switch
martha-ai:pluto/755-fewer-judge-starts
martha-ai:uranus/836-review
martha-ai:mercurius/846-posted-text
martha-ai:neptunus/828-review-r1
martha-ai:titan/801-hint-text
martha-ai:uranus/785-part-2
martha-ai:uranus/797-review
martha-ai:neptunus/830-review
martha-ai:venus/venus-review-837
martha-ai:uranus/724-reap
martha-ai:juno/784-the-launch-a-start-builds
martha-ai:neptunus/784-review-fix
martha-ai:juno/784-the-adapter-under-its-ceiling
martha-ai:diverged/juno/784-the-launch-a-start-builds
martha-ai:juno/784-the-adapter-back-under-origin
martha-ai:neptunus/694-review-fix
martha-ai:juno/732-the-cap-holds-b
martha-ai:neptunus/732-review-fix
martha-ai:titan/541-c3-hints-record
martha-ai:jupiter/host-2.1.328
martha-ai:juno/732-the-cap-holds
martha-ai:ceres/781-launcher-path
martha-ai:uranus/785-hint-files
martha-ai:ceres/724-part-2
martha-ai:neptunus/766-review-fix
martha-ai:uranus/755-hook-filter
martha-ai:jupiter/review-788
martha-ai:neptunus/745-review-fix
martha-ai:uranus/772-judge-env
martha-ai:jupiter/753-keys-declared-twice
martha-ai:pallas/784-launch-request
martha-ai:ceres/562-wire-the-scan
martha-ai:jupiter/744-split-prove-the-core
martha-ai:titan/541-c2-goose-gate-rows
martha-ai:pallas/765-approve-listing
martha-ai:pr-766-tip
martha-ai:terra/769-review
martha-ai:pallas/748-cycle-roots
martha-ai:uranus/uranus-batch-69
martha-ai:venus/venus-review-756
martha-ai:pr-733-head
martha-ai:neptunus/727-shell-quoting
martha-ai:venus/venus-review-738
martha-ai:pallas/694-a-trial-line-keeps-its-transcript
martha-ai:ceres/724-part-1-a-test-leaves-nothing-behind-v2
martha-ai:ceres/tests-leave-nothing-in-the-temp-directory
martha-ai:neptunus/541-2-4-3-the-recording
martha-ai:ceres/700-the-stand-in-reports-its-start
martha-ai:pluto/701
martha-ai:titan/541-6b-multi-host-review-model
martha-ai:uranus/uranus-733r1
martha-ai:scratch-703
martha-ai:titan/541-5-member-host
martha-ai:neptunus/541-2-4-2-the-tool-call
martha-ai:ceres/625-release-redraw
martha-ai:mars/541-acp-transport
martha-ai:ceres/batch-62-redraw
martha-ai:neptunus/541-6-host-model-vocabulary
martha-ai:heads/pr/672
martha-ai:pr/672c
martha-ai:heads/pr/673
martha-ai:juno/541-6-host-model-vocabulary
martha-ai:pr/668b
martha-ai:saturnus/612-no-answer-gets-a-second-launch
martha-ai:ceres/601-release-bump
martha-ai:heads/pr/625
martha-ai:heads/pr/668
martha-ai:pr/656b
martha-ai:heads/pr/666
martha-ai:pallas/611-init-layout
martha-ai:pr/654-r2b
martha-ai:heads/pr/656
martha-ai:pr/662-new
martha-ai:pr/654-new
martha-ai:pr/660-new
martha-ai:saturnus/632-retire-owner-guard
martha-ai:saturnus/602-own-config
martha-ai:ceres/638-read-shape
martha-ai:neptunus/541-10-recorded-goose-host
martha-ai:titan/611-init-layout
martha-ai:venus/244-member-half
martha-ai:titan/165-stand-in-case
martha-ai:pallas/177-tree-stat-record
martha-ai:ceres/314-volatile-path-note-clean
martha-ai:uranus/uranus-batch-48
martha-ai:jupiter/160-where-we-are
martha-ai:uranus/uranus-batch-46
martha-ai:juno/513-budget-r2
martha-ai:pallas/437-trial-builder-r2
martha-ai:pallas/437-trial-builder
martha-ai:saturnus/289b-shell
martha-ai:saturnus/289b-rules
martha-ai:saturnus/289-record-values
martha-ai:ceres/170-vouching-on-real-events
martha-ai:ceres/170-vouching-reaches-the-member
martha-ai:neptunus/136-member-memory
martha-ai:mercurius/4-claw-code-analysis
martha-ai:mercurius/5-scaffold-theme
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 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!51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "vesta/48-git-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #48. The guard's three MISSING parts on the forge gap list, less (c), which is split out to #49: (a) git aliases and (b)
--git-dir/GIT_DIR=. Touched:src/read_the_git_calls_in_a_shell_line/,src/ask_git_what_a_member_is_about_to_change/,src/guard_workspace/. Nothing else, and no new check or refusal.(b) a call that names its repository is judged there
A call's words say which repository it works on — git's
--git-dirand--work-tree(either spelling,--git-dir /xor--git-dir=/x), and aGIT_DIR=<path>assigned before it, which ends at a separator or at the command it stands before, as a shell ends one. The reader carriesgitDirectoryandworkTreeonAGitCall; the adapter asks git at the repository the call names instead of at the place the line was typed, once per distinct pair of places, andAGuardedCall.factsForhands each call the facts of its own repository. A line whose later call names another repository is judged there, not by the first call's facts. The clone rules fire as they would had the call been typed in the named repository:isInAClonereads the repository the call names, sogit --git-dir <clone>/.git push origin HEADfrom anywhere is refused as the same push typed in the clone is, and the notice a clone prints names the repository the call works on.(a) a command word its settings make an alias is judged as what it runs
git nuke, withalias.nuke = push origin HEAD:mainin the repository's settings, is read as that push and refused as one: the adapter asks the repository the call works on (git config --get alias.<word>) and stops at a command the guard reads, at an alias git cannot answer for, at a!alias, or at ten hops; alias-of-alias is read too. The reader owns how an expansion is read (theCallAnAliasExpandsTo,theAliasKeyOf), the adapter only asks git, and the reader stays pure. An alias the repository does not define leaves the words as they were, so the call fails open as before.A limit, stated in the code rather than left to be discovered: a
!alias runs a shell of git's own, which this adapter does not follow; it is left to the clone's ref-transaction hook.Evidence
GIT_DIR=not read; an-calias not expanded; the separator keeping the assignment; the config alias not resolved; the facts not asked at the named repository;factsForignored; the clone not read at the named repository; the notice naming the typed-in place. Three survived a first round and each is now killed by an assertion that pins the claim — recorded in the commits after the build.tsc --noEmit,eslint . --max-warnings=0, andcheck_no_literal_restates_a_value(whole tree and range) are clean here; the forge run on this tip is the proof for the rest of the suite.Not here
Purpose (guard gap): met for the two parts this row kept — (a) git aliases and (b)
--git-dir/GIT_DIR=. Part (c), former workdirs, was split out to GitHubmacula-io/martha#49and is not built here; it waits on the launcher's export ofCREW_FORMER_WORKSPACES, so the row's purpose is met as scoped and (c) remains open on that issue.Landed on main as
d8e33b07f2832b0389aa8a8fd28fede82edf407a(Terra, 22:41:29Z), which is main's tip.-c,--config-env), key and word matched without case, last setting wins, five hops,!aliases left to the ref-transaction seam.--git-dir,--work-treeor an inlineGIT_DIR=is judged at that repository: facts per distinct place,isInAClonereads the named repository, the notice names it.gate coverage,nothing private,the relay loads in the recorded host(martha#19).Pull request closed