@feigi/fleet-ctl 3.158.19 → 3.158.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feigi/fleet-ctl",
3
- "version": "3.158.19",
3
+ "version": "3.158.21",
4
4
  "description": "Agent fleet: run-team controller, merge bot, PR reviewer, and the ticket pipeline they share",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -599,18 +599,25 @@ function shortlist({ cwd }) {
599
599
  return ok("shortlist built");
600
600
  }
601
601
 
602
- // The same `.fleet/` by the directory it names: the checkout holding it is
603
- // stat'd, then resolved through symlinks by the OS, so a `..` after a
604
- // directory that does not exist, or after a file, is not folded away (darwin's
605
- // realpath folds `file/..`; the stat refuses it). The `.fleet` name is kept as
606
- // given, so it works before `.fleet/` exists. A path that is not absolute, or
607
- // whose checkout does not resolve, stays as given.
602
+ // The alarm step accepts a `fleet` spelling only when the OS resolves it to
603
+ // this checkout's `.fleet/`. So the OS stats the part that must exist (the
604
+ // path itself when its last name is `.` or `..`, else the checkout holding it,
605
+ // the directory part), and then resolves that checkout through symlinks. A
606
+ // `..` after a directory that does not exist, after a file, or out of a
607
+ // directory the OS may not search is refused by that stat, though darwin's
608
+ // realpath folds `file/..` and `unsearchable/..` and `join` folds a trailing
609
+ // `..` as text; a `..` after a directory or a symlink to one resolves where
610
+ // the OS takes it; and on a case-insensitive volume a letter-case variant of
611
+ // the checkout path is the same checkout. The `.fleet` name is compared as
612
+ // given, so it works before `.fleet/` exists and `.FLEET` is another name. A
613
+ // path that is not absolute, or that the OS does not resolve, stays as given.
608
614
  function fleetIdentity(path) {
609
615
  if (typeof path !== "string" || !isAbsolute(path)) return path;
610
616
  try {
611
617
  const checkout = dirname(path);
612
- statSync(checkout);
613
- return join(realpathSync.native(checkout), basename(path));
618
+ const name = basename(path);
619
+ statSync(name === "." || name === ".." ? path : checkout);
620
+ return join(realpathSync.native(checkout), name);
614
621
  } catch {
615
622
  return path;
616
623
  }
@@ -151,7 +151,7 @@ Each member's outcome arrives as its own job status. Settle (CONTEXT.md § Coord
151
151
 
152
152
  ## The implementer's tier is the definition's
153
153
 
154
- The tier lives in that definition's frontmatter (`agents/fleet-implementer-<cell>.agent.md`; `slow-high`, the policy cell, for a row with no `tier=` or `cell=`), which is what an omitted `model` takes first — the session's tier applies only when the definition names none, and a member dispatched with `model` set does not get the declared tier back. Omitting `model` is therefore still the mechanism; what changed is that the tier it resolves to is now declared and pinned rather than inherited by accident. Keep `name: impl-<N>`: the name is what makes a member, and both the spend classifier and `member-outcomes.mjs` read it.
154
+ The tier lives in that definition's frontmatter (`agents/fleet-implementer-<cell>.agent.md`; `slow-high`, the policy cell, for a row with no `tier=` or `cell=`), which is what an omitted `model` takes first — the session's tier applies only when the definition names none, and a member dispatched with `model` set does not get the declared tier back. Omitting `model` is therefore still the mechanism; what changed is that the tier it resolves to is now declared and pinned rather than inherited by accident. Keep the `name` `DISPATCH` printed (`impl-<N>`, or the retry name the Pull chose when this session already used `impl-<N>`): the name is what makes a member, and both the spend classifier and `member-outcomes.mjs` read it.
155
155
 
156
156
  ## The merge bot's tier buys nothing its backstop does not cover
157
157