@mangeshraut712/merge-guide 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -9,7 +9,7 @@ The repository is `mangeshs-merge-guide`. The installed skill folder and invocat
9
9
 
10
10
  ## November 2026 status
11
11
 
12
- Verified **14 November 2026**: public, MIT-licensed source and standalone skill. This checkout targets **0.1.2**, including cache-directory validation and the documentation refresh. Confirm registry availability with `npm view @mangeshraut712/merge-guide@0.1.2 version`; [source installation](#quick-start-from-source) is also available. See [release evidence and limits](docs/results.md).
12
+ Verified **14 November 2026**: public, MIT-licensed source and standalone skill. npm publishes **0.1.3** with GitHub Actions provenance, including the existing cache-directory validation fixes. Verify the release with `npm view @mangeshraut712/merge-guide@0.1.3 version`; [source installation](#quick-start-from-source) is also available. See [release evidence and limits](docs/results.md).
13
13
 
14
14
  ## Start here
15
15
 
@@ -49,18 +49,18 @@ The [contributor playbook](skills/oss-contribution-insights/references/contribut
49
49
 
50
50
  ## Terminal installer
51
51
 
52
- **Target release 0.1.2:** after registry publication, install using the pinned commands below. The installer has passed native Linux, macOS and Windows checks. The [source installer](#quick-start-from-source) remains available.
52
+ **Published release 0.1.3:** install using the pinned commands below. The installer has passed native Linux, macOS and Windows checks. The [source installer](#quick-start-from-source) remains available.
53
53
 
54
54
  Use Node.js 22, 24 or 26 (the current CI matrix) and npm:
55
55
 
56
56
  ```sh
57
- npx @mangeshraut712/merge-guide@0.1.2 install --target codex --dry-run
58
- npx @mangeshraut712/merge-guide@0.1.2 install --target codex
57
+ npx @mangeshraut712/merge-guide@0.1.3 install --target codex --dry-run
58
+ npx @mangeshraut712/merge-guide@0.1.3 install --target codex
59
59
  ```
60
60
 
61
61
  Replace `codex` with `claude` or `cursor`. The dry run shows the destination without writing; an existing installation is refused. To keep the installation in a project, run from that project's root and add `--scope project`. The version pin makes these commands reproducible. See [installer options and safe upgrades](docs/installer.md).
62
62
 
63
- These commands target release **0.1.2** and require that version to be published. [npm package](https://www.npmjs.com/package/@mangeshraut712/merge-guide) · [release validation](docs/results.md). The installer provides the skill files; your chosen agent must already be installed and configured.
63
+ These commands install published release **0.1.3**. [npm package](https://www.npmjs.com/package/@mangeshraut712/merge-guide) · [release validation](docs/results.md). The installer provides the skill files; your chosen agent must already be installed and configured.
64
64
 
65
65
  ### Quick start from source
66
66
 
@@ -51,7 +51,7 @@ async function inventory(root, skipMarker=false, skipGenerated=false) {
51
51
  }
52
52
  const hashes = files => Object.fromEntries(Object.keys(files).sort().map(k=>[k,digest(files[k])]));
53
53
 
54
- export async function install({dest,source=path.join(packageRoot,'skills',NAME),dryRun=false,upgrade=false,version='0.1.2'}) {
54
+ export async function install({dest,source=path.join(packageRoot,'skills',NAME),dryRun=false,upgrade=false,version='0.1.3'}) {
55
55
  dest=path.resolve(dest);
56
56
  await rejectSymlinkAncestors(dest);
57
57
  const files=await inventory(source,false,true);
package/docs/installer.md CHANGED
@@ -4,16 +4,16 @@ The installer copies the bundled skill to an explicit agent destination. It does
4
4
 
5
5
  ## Current availability
6
6
 
7
- **Target release:** `@mangeshraut712/merge-guide@0.1.2`. Use the npm commands below, or the source and locally packed alternatives.
7
+ **Published release:** `@mangeshraut712/merge-guide@0.1.3`. Use the npm commands below, or the source and locally packed alternatives.
8
8
 
9
- Release 0.1.2 targets the public npm package [`@mangeshraut712/merge-guide`](https://www.npmjs.com/package/@mangeshraut712/merge-guide):
9
+ Release 0.1.3 is published with GitHub Actions provenance as the public npm package [`@mangeshraut712/merge-guide`](https://www.npmjs.com/package/@mangeshraut712/merge-guide):
10
10
 
11
11
  ```sh
12
- npx @mangeshraut712/merge-guide@0.1.2 install --target codex --dry-run
13
- npx @mangeshraut712/merge-guide@0.1.2 install --target codex
12
+ npx @mangeshraut712/merge-guide@0.1.3 install --target codex --dry-run
13
+ npx @mangeshraut712/merge-guide@0.1.3 install --target codex
14
14
  ```
15
15
 
16
- Use `--target claude` or `--target cursor` for those tools. To pin the exact release, use `npx @mangeshraut712/merge-guide@0.1.2`. See [validation results](results.md) for the distinction between installer checks, runtime discovery, and native task execution.
16
+ Use `--target claude` or `--target cursor` for those tools. To pin the exact release, use `npx @mangeshraut712/merge-guide@0.1.3`. See [validation results](results.md) for the distinction between installer checks, runtime discovery, and native task execution.
17
17
 
18
18
  After reviewing/downloading this repository, from its root:
19
19
 
@@ -26,8 +26,8 @@ To test the real npm packaging locally (no registry publication):
26
26
 
27
27
  ```sh
28
28
  npm pack
29
- npx --package ./mangeshraut712-merge-guide-0.1.2.tgz merge-guide install --target codex --dry-run
30
- npx --package ./mangeshraut712-merge-guide-0.1.2.tgz merge-guide install --target codex
29
+ npx --package ./mangeshraut712-merge-guide-0.1.3.tgz merge-guide install --target codex --dry-run
30
+ npx --package ./mangeshraut712-merge-guide-0.1.3.tgz merge-guide install --target codex
31
31
  ```
32
32
 
33
33
  These commands use Node/npm, not POSIX-specific copy syntax; npm may ask for execution consent. Node 20+ and npm are prerequisites. A package name alone is not ownership proof; verify the npm owner and linked source repository.
@@ -11,3 +11,9 @@ Keep the execution workflow useful and reviewable; avoid adding rules simply bec
11
11
  The repository and personal ChatGPT skill are separate copies. Neither updates the other automatically. This project does not itself schedule monitoring, install a daemon, send maintainer messages or grant GitHub access. Maintaining a real contribution ledger needs a separately authorized private location and complete checkpoints; see the skill's [incremental evidence guidance](../skills/oss-contribution-insights/references/maintenance.md).
12
12
 
13
13
  Contributions are welcome through [CONTRIBUTING.md](../CONTRIBUTING.md). Do not change accounts, credentials, permissions or auto-publication behavior as incidental maintenance.
14
+
15
+ ## Publishing with provenance
16
+
17
+ Release 0.1.3 introduces the manually dispatched `release.yml` workflow. Ordinary pushes do not publish. After the exact main commit passes all nine release checks, dispatch **Publish npm with provenance** on main. The workflow repeats installer, packed-package and Python validation before publishing from a GitHub-hosted runner with `id-token: write`. Configure `NPM_TOKEN` as a repository secret with publishing access to this package and the npm permissions required for unattended publication; never commit the token.
18
+
19
+ The package enables `publishConfig.provenance`. Release publication must use the hosted workflow, not a local terminal. Confirm registry availability, download the public tarball, verify the provenance attestation and run fresh-cache npx installation checks before announcing success. Release 0.1.2 remains available without provenance; its artifact is unchanged.
package/docs/results.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Validation results and limits
2
2
 
3
+ ## November 14 release 0.1.3 with provenance
4
+
5
+ The [publish workflow](https://github.com/mangeshraut712/mangeshs-merge-guide/actions/runs/43575722083) passed and npm accepted version 0.1.3. After registry processing completed, anonymous metadata and tarball downloads returned HTTP 200. The downloaded SHA-512 matched the provenance subject, which identifies this repository and source commit `26e2830df116ea6cf162ca7a1b91225f2bedbc63`. The tarball SHA-1 is `6acd29d712c5cc5c7c5c594151753c0bf274ebef`.
6
+
7
+ Fresh-cache public npx checks passed for Codex, Claude Code and Cursor: write-free dry runs, actual project installs, marker version 0.1.3 and installed-file hash verification. All nine [source CI checks](https://github.com/mangeshraut712/mangeshs-merge-guide/actions/runs/43575529372) passed. These verify package installation, not agent task execution or upstream acceptance. Version 0.1.2 remains unchanged and has no provenance metadata.
8
+
9
+ ## November 14 release 0.1.2
10
+
11
+ Registry version 0.1.2 and the latest tag are confirmed. Fresh-cache npm execution on macOS passed for Codex, Claude Code and Cursor: write-free dry runs, managed upgrades from 0.1.1, preservation of Python bytecode in backups, and refusal to overwrite added cache-directory notes. These checks verify installation and upgrade behavior, not agent task execution or upstream acceptance.
12
+
13
+ The release source passed 18 installer tests, 28 Python tests and packed-package checks. All nine [hosted release checks](https://github.com/mangeshraut712/mangeshs-merge-guide/actions/runs/43573480190) passed. The published tarball SHA-1 is `af1fe87b81ed0aef3ddfe1a15de11a9040a7928f`.
14
+
3
15
  ## November 14 upgrade regression
4
16
 
5
17
  Release 0.1.1 passes 16 installer tests, including a failing-before/passing-after regression for managed upgrades after Python helpers generate bytecode. Packed Codex, Claude and Cursor installs preserve the complete backup and still refuse edited source or additional notes. Independent review found no blockers. npm accepted version 0.1.1 and the registry confirms it is available. All nine hosted checks passed on Linux, macOS and Windows with Node 22, 24 and 26.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mangeshraut712/merge-guide",
3
- "version": "0.1.2",
4
- "description": "Install Mangesh\u2019s Merge Guide into a supported agent skill directory",
3
+ "version": "0.1.4",
4
+ "description": "Install Mangesh’s Merge Guide into a supported agent skill directory",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "bin": {
@@ -40,6 +40,7 @@
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public",
43
- "registry": "https://registry.npmjs.org/"
43
+ "registry": "https://registry.npmjs.org/",
44
+ "provenance": true
44
45
  }
45
46
  }
@@ -10,6 +10,8 @@ For a specific PR, inspect its metadata, current head and base, diff, linked iss
10
10
 
11
11
  Record evidence provenance: author claim, CI/check output, automated or AI-assisted review, verified maintainer statement, independently reproduced test, or verified landed commit. Preserve unknown identity and automation status. A different account, reviewer badge, or positive review alone does not prove a human maintainer ran the tests. Prefer exact comment permalinks for review claims. Treat any old ledger wording about “human feedback” as historical classification, not verified actor identity.
12
12
 
13
+ For daily contribution targets, read the GitHub contribution calendar bucket for the requested date and report its activity types and observation time. A query spanning the user’s local day can expose adjacent calendar buckets. Select by returned date and label the calendar basis. Report authored PR counts and confirmed upstream merges separately. Keep a shortfall visible and use it to prioritize substantive work.
14
+
13
15
  ## Separate lifecycle, disposition, and quality
14
16
 
15
17
  Keep three independent dimensions:
@@ -8,3 +8,9 @@
8
8
  6. Run relevant tests, lint, type checks, formatting, and required aggregate checks against the final revision. Record commands, outcomes, scope, and head SHA. Distinguish pass, fail, blocked, not run, skipped, neutral, and pending. Green focused tests do not imply full CI success.
9
9
  7. Review the diff independently when warranted or required. Distinguish author claims, CI results, bot/AI-assisted reviews, verified maintainer direction, and independently reproduced evidence. A non-author account is not automatically human or a maintainer. Do not present automated review as maintainer approval. Verify remote checks and review disposition on the latest head; an earlier pass does not certify later changes. Do not claim readiness with unanswered blocking feedback, required checks missing, or policy gates unresolved.
10
10
 
11
+
12
+ ## When local validation is blocked
13
+
14
+ After diagnosing the local blocker, record the checks that ran and the checks that still need the supported environment. When a draft PR is authorized and repository policy allows it, use hosted CI to finish verification. Record the tested head and check links. Move the PR out of draft only after the applicable checks pass and the diff is ready for review. Follow the repository’s ordinary review and merge rules.
15
+
16
+ For example, a dependency patch can pass lint and the lockfile audit while a local engine download stalls. A draft can exercise the supported CI job for installation, generation, build, and tests. If the job requires maintainer authorization, report that gate and keep the missing results pending. If CI passes on the same head, record the hosted results and the remaining review decision.
@@ -44,7 +44,7 @@ def validate(data):
44
44
  def load(path):
45
45
  try:
46
46
  return validate(json.loads(Path(path).read_text(encoding="utf-8")))
47
- except (OSError, json.JSONDecodeError) as exc:
47
+ except (OSError, UnicodeDecodeError, json.JSONDecodeError) as exc:
48
48
  raise LedgerError(f"Cannot read ledger: {exc}") from exc
49
49
 
50
50
 
@@ -39,6 +39,13 @@ class LedgerTests(unittest.TestCase):
39
39
  self.assertEqual(result["github_lifecycle"]["open"], 1)
40
40
  self.assertEqual(result["native_or_full_landed_pr_records"], 1)
41
41
 
42
+ def test_non_utf8_ledger_is_a_ledger_error(self):
43
+ with tempfile.TemporaryDirectory() as tmp:
44
+ path = Path(tmp) / "ledger.json"
45
+ path.write_bytes(b'{"records": "\xff\xfe"}')
46
+ with self.assertRaisesRegex(ledger.LedgerError, "Cannot read ledger"):
47
+ ledger.load(path)
48
+
42
49
  def test_duplicate_node_id_rejected(self):
43
50
  first, second = record(1), record(2)
44
51
  second["pull_request_node_id"] = first["pull_request_node_id"]