Repository navigation
Conversation
…mentation ownership
… teardown pointer
|
Speaking as Kun's firstmate: thanks @mikaelz. Proper GitLab landing proof and a refusal before destructive cleanup are both things the fleet wants. I read head Contract-class: new-default. With this tip, every close/retain on the tasks-axi backend first requires VISION, rule by rule: one captain aligns · authority aligns (refuses before destruction) · scripts/agents aligns · restart aligns (retry records kept) · spine: cannot tell (hard dependency on an unpublished consumer) · vendor: GitLab via glab and GitHub preserved, aligns · scope: cannot tell (24 files, three concerns in one PR). Waiting on you (author), whenever it suits:
Live validation (9/9) looks solid, so thank you for that. |
…iew fixture in captain-hold and project-capacity suites, removed the ShellCheck variable-name collision, and updated the macOS snapshot expectation to 20 tests. Five complete suites passed (288 cases), canonical lint partition 2of2 and changed-file lint passed, actionlint passed, and git diff --check passed. Stock macOS Bash 3.2 remains unverified on Linux. Fixture-backed checks do not establish real compatible-consumer integration; public-followup reported its parity skips
|
Speaking as Kun's firstmate: thanks for the CI round, @mikaelz. I read the delta That test change actually confirms my first question. Those suites only pass once a stub that supports Contract-class: new-default (unchanged). VISION: spine and scope are still cannot-tell, and the other rules align, as in my last stamp. Still waiting on you, whenever it suits:
This isn't waiting on Kun yet. |
|
Superseded by #7048, which carries the GitLab landing-proof and review-link fixes on their own. |
Intent
create pr
This approves implementation of the preceding GitLab task-tracking compatibility plan, specifically its Firstmate portion. Repair GitLab landing verification, completion preflight and review-link handling with regression tests, so task cleanup preserves work and records completion safely. The approved plan is ~/github/kunchenguid/firstmate/data/gitlab-task-plan/report.md. Deliver a review-ready PR; do not merge, deploy the changes, or replay ERP's saved completion.
The approved Firstmate plan substance is:
Extend the existing GitLab reader in bin/fm-pr-lib.sh to expose verified MR identity, live source-head SHA, merged state and target branch when requested. Continue explicit host, full project URL and IID addressing with glab rather than using a GitHub CLI for an MR. Validate object shape, state, SHA, exact IID/web URL identity and the literal target branch through Git's branch-name validator. Require agreement between .sha and .diff_refs.head_sha when both exist, and refuse missing or contradictory required evidence. Do not use merge_commit_sha or squash_commit_sha as a source head. Verify installed glab fields with read-only real GitLab output. Preserve existing lightweight state-only reads.
Repair landing proof in bin/fm-teardown.sh through the existing provider parser. Preserve GitHub behavior and its no-URL branch lookup. A merged MR proves landing only when local committed work is contained in its verified source head through existing ancestry/patch containment. Recover an absent exact head through the target repository's refs/merge-requests//head using the existing authenticated origin transport, resolve the fetched object and require the exact verified SHA. Bind the MR identity to the repository used for proof, checking target project identity for fork MRs; do not fetch an unverified host/project, an arbitrary source branch, infer an SSH alias mapping or trust FETCH_HEAD alone. Missing/expired refs, authentication errors, wrong objects and rewritten heads remain inconclusive. For independent three-way tree-equality fallback, use the verified merged MR's actual target rather than a deleted legacy source/base. Fetch that exact target without overwriting base_branch or globally forcing main. Without verified target evidence, preserve legitimate named-base/default behavior and refuse a missing recorded branch rather than guess. Preserve dirty/untracked checks, extra-commit refusal, locks, slot ownership, local-only behavior, generation checks and the explicit discard boundary. Merged state, a merge commit or equal-looking paths alone are not landing proof.
Add one narrow completion preflight helper in the existing backlog transition owner. For close, preview done --dry-run using the actual addressed backend and all completion arguments. For retention, preview update --dry-run for supported row artifacts before deliverable-body writes or metadata removal. Preserve Gerrit note translation. Preview before completion-record publication and destructive cleanup, and in replay before matching metadata removal or retention mutation. Recheck rows, holds and generation under existing locks; never move a new generation or close an unresolved captain call. Keep structural/security record validation separate from consumer compatibility, and preserve safe legacy GitLab, Forgejo and Gerrit records. Deterministic invalid artifacts must refuse cleanup. Retain completion records on preview failure, actual write failure, timeout or uncertainty, and retire them only through existing proved success/stale-generation paths. Preserve cleanup_incomplete semantics and do not report a refused preview as cleanup success.
Extend existing review-link consumers without a universal forge framework. Add GitLab to fm_pf_pr_url_valid by reusing the existing canonical GitLab parser while preserving exact GitHub/Forgejo policy and independent public-safe limits. Preserve full canonical review URLs in snapshots and inactive-return selection, metadata precedence, preferred terminal-ready line shape and scout exclusion. Do not classify incidental mentions, arbitrary HTTPS or issue/doc URLs as delivery. Keep GitHub live-review enrichment GitHub-only. Resolve fresh GitLab review heads in private task refs with exact live SHA validation, outranking stale recorded heads. Missing head evidence may use the existing local-branch warning, never as cleanup proof. Correct affected comments and GitLab/architecture documentation without project-memory additions. Static Forgejo URL acceptance does not imply Forgejo merge/watch support.
The version-floor rollout is last: probe required preview capabilities, and update the numeric floor only to an actual published compatible tasks-axi release after publication, never an invented development version. Publication, deployment and ERP recovery require separate authorization.
Regression and integration evidence must exercise the existing executable owners: optional state-only/full proof reads; nested/self-hosted identities; missing/malformed identity, head, target, CLI or JSON support; fresh exact private head fetches; fork target identity; deleted source/legacy base; actual named targets distinct from default; missing/expired refs; forged objects; extra local commits and dirty/untracked work; GitHub/Gerrit preservation; close and retention preflight without writes; old-consumer refusal before destruction; actual write failures; backend addressing and relocated data; archive/manual mode; stale generation, missing rows, symlink/hardlink/control bytes, foreign-home/data-root and cleanup_incomplete protections; absent-metadata recovery separately from interrupted cleanup with surviving metadata; every crash boundary from publication through retirement; idempotent replay with one exact review link, stable close date and retained captain holds; canonical and malformed URL parity against the compatible tasks-axi consumer; and canonical links in metadata, ready status and Done backlog. Preserve existing public-safe limits and receipt/idempotence behavior. Run targeted regressions, portable lint and required validation. Re-run the private add/update/done/replay incident recipes with the compatible consumer, then a read-only real merged GitLab lookup and fetch/content proof in an independently owned disposable copy. Never repeat real ERP cleanup.
Publish through the approved existing mikaelz/firstmate fork and open a review-ready, non-draft upstream kunchenguid/firstmate PR targeting main. Do not merge that PR, release, deploy, change credentials, update live homes, restart or update the shared daemon, or replay ERP completion.
fm-gitlab-compat approve reconcil
The approved reconciliation retains the earlier validated Firstmate branch at 56f904700ff3af6fdf754ceb5d7db997a00ba223 and the newer preserved validation history at 44e61e486570a30d5a3ea50dd250017ceda1474f. For those available verified identities only, return custody through native keep-local recovery without discarding commits, then combine the retained newer history into the earlier branch through a normal two-parent feature-branch merge. Before fresh validation, verify both original full heads are ancestors of that clean committed combined branch. Preserve the earlier hardlink replay refusal and executable regression, the newer latest-ready review provenance/metadata precedence/scout exclusions, the public-followup fixture shutdown repair, and all valid documentation corrections. Resolve only necessary overlaps, preserve unrelated work, and do not reset, stash, discard, force-push or manually edit managed records. Run the private incident reproductions and regressions, lint and documentation checks, then one fresh full pipeline configured to the approved fork from intake, with the real preview-capable dependency verification plan captured from an absolute file path. Do not reuse the old upstream-bound executor, skip checks, waive failed tests, self-answer ask-user findings, or manually publish.
Authentication complete.
✓ Configured git protocol
✓ Logged in as mikaelz
! You were already logged in to this account
verify pr creation, create if possible
What Changed
Risk Assessment
✅ Low: The changes are bounded to the approved compatibility repair, preserve existing safety controls, and introduce no substantiated correctness, authorization or intent-conformance defects.
Testing
All 13 complete targeted suites and independent live scenarios passed, with consumer-integrity receipts, CLI transcripts and persisted-output evidence retained. Earlier watcher timeouts remain unexplained, but this fresh complete security run passed without waiver. Changes expose CLI/JSON contracts, not a rendered UI; no screenshot was required.
Evidence: Completion, preview, write-failure and recovery receipts
Source: Completion, preview, write-failure and recovery receipts
Evidence: Historical close-date and exact-link idempotence
Source: Historical close-date and exact-link idempotence
Evidence: Real GitLab lookup, fetch, review and old-consumer refusal
Source: Real GitLab lookup, fetch, review and old-consumer refusal
Evidence: Independent GitLab content proof
Source: Independent GitLab content proof
Evidence: Real-consumer canonical and malformed URL parity
Source: Real-consumer canonical and malformed URL parity
Evidence: Dependency identity, suite results and live-driver receipt
Source: Dependency identity, suite results and live-driver receipt
Evidence: Exact verification commands and setup corrections
Source: Exact verification commands and setup corrections
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
Verified the supplied tasks-axi artifact SHA-256 and compared all 34 packaged files byte-for-byte with the installed dependency; details independency.json.Ranbin/fm-test-run.shwith all 13 selected behavioral owners, including complete security, teardown, backlog-atomicity, public-followup, bearings and endpoint-safety suites; exact invocation incommands.txt.Ran disposable live integration drivers for completion previews, actual write refusals, retention, recovery, historical close-date preservation, record guards and relocated-backlog addressing.Ran read-only real GitLab identity, fork-target, named-target, exact-head fetch, content-proof and fresh review-diff checks.Ran real snapshot/inactive-return checks and canonical/malformed URL parity against the supplied compatible consumer.Removed disposable worktree fixtures and verifiedgit status --shortwas clean.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.